TradingView
rstraat
13 Feb 2018 pukul 09.36

ADX Volatility Moving Average 

GoldOANDA

Deskripsi

The ADXVMA is a volatility based moving average with the volatility being determined by the value of the ADX. The ADXVMA provides levels of support during uptrends and resistance during downtrends. Original NT indicator by Fat Tails on futures.io, just ported it to pinescript
Komentar
sudhir.mehta
Thanks for sharing!!!! Great work!!!!!!
ViZiV
Don't suppose you could include the bar color to match the current color of the ADXVMA? Like the one on Ninjatrader if your familiar? I'm terrible at coding :)
rstraat
@ViZiV, well I just didn't implement it, I just don't like bar coloring in general
ViZiV
@rstraat, That's totally fair, I guess i will try n figure it out... can't be that hard surely XD I at least appreciate you putting this on tradingview. I think your literally the only person to do so. So thank you
pjay
very neat!
nikunj1985
Is it possible to add

02 Bollinger bands (200 + 20 period ) & 03 Keltner channels
Half trend.

I really don't know how to use Pine scrip. I believe this is a great indicator , all in all , very simple and neat. However will be grateful if you can add up these add ones.
nikpfx23
Great work and thanks for sharing! I'm pretty new to Pine Script in general and was looking if you could help me understand where "epsilon = 0.1 * nz(volatility[1])" this fits into all the code. I dont see epsilon being used anywhere.

Thanks for any help on this!
rstraat
@nikpfx23, epsilon is a very small number, used for comparing floatingpoint variables, so my guess it is this line #58 if (hhv-llv)>0.0 where original epsilon was used instead of 0.0, why this has been changed, maybe I did that, I just forgot or don't know, just ported the code.
Lebih lanjut