Hello, I found a new indicator proposed by John Ehlers in the last episode of better system trader
103 – A brand new, more responsive indicator with John Ehlers
I converted the indicator from the Easy language code version.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
AA= 0.1 CC = 1 - AA if barindex = 1 then CC = .9 RE1 = 0 RE2 = 0 RE3 =0 RE4 = 0 RE5 = 0 RE6 = 0 RE7 = 0 RE8 = 0 EMA = 0 Signal = 0 endif if barindex > 1 then EMA = AA*Close + CC*EMA[1] RE1 = CC*EMA + EMA[1] RE2 = EXP(2*LOG(CC))*RE1 + RE1[1] RE3 = EXP(4*LOG(CC))*RE2 + RE2[1] RE4 = EXP(8*LOG(CC))*RE3 + RE3[1] RE5 = EXP(16*LOG(CC))*RE4 + RE4[1] RE6 = EXP(32*LOG(CC))*RE5 + RE5[1] RE7 = EXP(64*LOG(CC))*RE6 + RE6[1] RE8 = EXP(128*LOG(CC))*RE7 + RE7[1] Signal = EMA - AA*RE8 endif return Signal,0 |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
@Francesco78 Thank you for sharing this code. Shouldn’t we define the EMA and its period first?
HI Khaled, EMA is defined here
EMA = AA*Close + CC*EMA[1]
I am not very present on this forum anymore, pls follow me on linkedin thanks!
Thanks, but if I may ask what’s EMA Period? The price which reverses the EMA[20] is not the same compared to the one which reverses the EMA[10]
EMA is not a moving average, it is just the name we called the quantity defined above
My bad. Thank you so much!