When you insert this code:
if(CurrentBar < 10) {return;}
However, I'm working on something which is not a conventional indicator but I need the calculations to stop 10 bars from now, i.e. from the right of the chart.
I'd be very grateful for any advice about what the equivalent of the above code is in order to achieve this.
Thanks in advance.
Comment