I set up the Market Analyzer grid for the first time and I'm seeing wrong values in the output of the indicator that I've added, even though the indicator works perfectly on a chart.
On the charts, my indicator ranges from 0-1 with Plot0 and this is drawn correctly, however within the MA cell the Plot0 value returnes small values like -0.14 or 0.30 etc. Looking at the charts, I realised that it's actually taking the current bar value and subtracting the previous bar value.
The script I am using might be at fault however, and I'd like for somebody to tell me if what I'm doing is bad. The values I'm using depend on session opening prices which I calculate within OnBarUpdate like so:
if (Bars.FirstBarOfSession) { SessionOpen_Main = Open[0]; SessionOpen_Base = Opens[1][0]; }
If so, how would I fix that? Thank you.
Comment