Trend identification, as bullish and bearish territories with this indicator, made of a 55 periods Triangular Moving Average shifted with its 21 previous value.
A small band is made of 2 over TMA plus and minus factorized ATR value.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
//parameters // fact = 0.13 // p = 55 // s = 21 a = TriangularAverage[p](close) b = a[s] atx = AverageTrueRange[13](close) factor = atx * fact hh = b + factor l = b - factor Return b AS "55 TMA MID", hh AS "55 TMA HIGH", l AS "55 TMA LOW" |
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
Hi Nicolas
Britains .itf file didn’t work for me … I had to change h to hh at line 13 and h to hh at line 16 as per your code above.
Thanks
Graham
Thank you GraHal for pointing this error, i have corrected the code in the file. The code in the post above remain correct.