I am trying to get ATR 14 day value in an indicator. However, when the indicator is loaded in a lower time frame chart, i.e. hour or minute. the ATR daily value is different from I get in a daily time frame chart.
the way I'm getting the ATR 14 day value is
else if (State == State.Configure) { AddDataSeries(Data.BarsPeriodType.Day, 1); } else if (State == State.DataLoaded) { atrDaily = ATR(BarsArray[1], 14); }
I couldn't figure out what am I doing wrong.
Thank you very much for your help.
Comment