Sharing a trend indicator, based upon the ATR of the ATR: the double ATR trend indicator.
(not knowing if this indicator already exists)
The indicator is smoother then regular averages with the same period setting.
The double ATR trend indicator is calculated as follows:
DATR = Averagetruerange[Period](Averagetruerange[Period](Close))
For detecting the more general trend, the DATR is also calculated on a double period:
DATR2 = Averagetruerange[Period*2](Averagetruerange[Period*2](Close))
The default period setting is 15, the indicator should be added to the graph (like moving averages). For comparison a 15 bars moving average is added.
Possibly the double ATR trend indicator on a double period could be used as a moving stop loss
As with most trend indicators, this indicator works well in a trending market, but not so well in a non trending, zigzagging market.
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 |
// Default Period = 15 // To be added to the graph itself like a moving average //double ATR Period = 15 DATR = Averagetruerange[Period](Averagetruerange[Period](Close)) //double ATR with doubled period DATR2 = Averagetruerange[Period*2](Averagetruerange[Period*2](Close)) if DATR < DATR[1] then r=255 g=0 b=0 else r=0 g=176 b=80 endif if DATR2 < DATR2[1] then ar=255 ag=0 ab=0 else ar=0 ag=176 ab=80 endif return DATR coloured(r,g,b) style(Line, 5) as "DATR", DATR2 coloured(ar,ag,ab) style(Line, 5) as "DATR2" |
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 :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Hi man, I installed the indicator and i don’t know why but my graph it is so big
sounds interesting I’ll take a look