Duxx![]() Elite ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 881 Joined: 2/18/2009 ![]() | Hi Jim I think I made a mistake but not on my computer right now to test. I left the -1 after bar - I should have just input bar - will test and post again once I get to the computer. Thank you Jim Here is what I input last night: #Indicator #param "CurrATRpds", 15 #param "HistATRpds", 660 Dim RatioHistVol as Single If bar - 1 < HistATRpds then RatioHistVol = ATR(CurrATRpds) / ATR(bar - 1) Else RatioHistVol = ATR(CurrATRpds) / ATR(HistATRpds) End If Plot( "HistVol", RatioHistVol ) PlotLabel(2) Return RatioHistVol |