Duxx
 Elite
       Posts: 881
Joined: 2/18/2009
User Profile |
Hi Jim
I erased the -1
Not sure I understand what you mean to wrap up the whole thing - Do you mean this?
Thank you for bearing with me
#Indicator
#param "CurrATRpds", 15
#param "HistATRpds", 660
Dim RatioHistVol as Single
If bar < HistATRpds then
RatioHistVol = ATR(CurrATRpds) / ATR(bar)
Else
RatioHistVol = ATR(CurrATRpds) / ATR(HistATRpds)
End If
Plot( "HistVol", RatioHistVol )
PlotLabel(2)
Return RatioHistVol
|