TradingView
Vorfield
Feb 16, 2020 8:04 PM

Average Range Convergence Divergence 

GERDAU MET ON N1B3

描述

Hi there,

It's a script that plot the ATR (Average True Range) and ADR (Average Day Range) together and do an histogram of it. The histogram is the difference from ATR to ADR, I believe that it shows the average GAP in the asset. So I can easily found the offset to use when defining my stop.

PT
Esse script desenha o ATR (no profit True Range) e o ADR (media da diferença entre máximas e minimas) junto da diferença entre essas médias em formato de histograma. O gap médio de um ativo é mostrado no histograma.
评论
Vorfield
Hi, there I did some changes in the script.
I add a new length input called length2. After that by line 21 and 22, I did.
//adr := 100.0*(adr/closes)
//ar := 100.0*(ar/closes)
padr=adr/closes
par =ar/closes
adr:=100.0*(pow(1+(padr/closes), length2)-1)
ar :=100.0*(pow(1+(par/closes), length2)-1)

So you it will be possible estimate the variation indicated on length2 using as reference the value of length.

PT
Oi, acima algumas mudancas para estimar uma variacao por um input novo length2 usando como referencia o valor de length.
ASIFKERIM
Hi, how this indicator use for day trading
Vorfield
@hjsjshs, I don't have idea, What I do in swing is add the histogram value on my stop loss. Maybe, you can use to define a stop loss using a max of the two value (adr/ar)
更多