I read so many posts last night and today and I finally gave up and want to ask for a bit of help.
I have a strategy that Calculates OnEachTick and inside of it placed a custom indicator that Calculates OnBarClose.
AddChartIndicator(ATRExponential(20));
double ATR = ATRExponential(20)[0];
This leads to the indicator calculating OnEachTick as well, and I cannot access the previous bar value which is more stable, using this:
double ATR = ATRExponential(20)[1];
Comment