I receive this error when trzing to compile my indicator in NT7(last version):
Error on calling 'OnBarUpdate' method for indicator 'EmaTrend' on bar 0: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
here a copy of the code that I created:
// Accelleration
if (
EMA(8)[0] > EMA(8)[1]
&& EMA(13)[0] > EMA(13)[1]
&& EMA(21)[0] > EMA(21)[1]
)
I just want to say: if EMA8(actual bar) > EMA8(precedent bar).. then
did I missed something?
Thanks!
Frederic
Comment