Hi all,
I have started receiving Error 10 for a code that I have used from the course that has never given me any issues before. Has anyone else recently encountered this?
The code that is giving me this issue is:
bi = bi – bi[0];
To provide more context, it is being used in the plots price limit code as follows:
//
//Plots Limit Price level
bi = BarIndex();
bi = bi – bi[0];
SelBar = SelectedValue(bi);
HV = IIf(bi >= SelBar && bi <= SelBar+5,SelectedValue(BuyLimit),Null);
Plot(HV,”Trigger Price”,ParamColor(“Buy Limit Colour”,colorRed),styleLine |styleNoTitle,Null,Null,0);
It seems very weird because this shouldn’t even impact the backtest to my understanding.
Hay pointers much appreciated!
Thanks,
Dustin