Ah gotcha, I have been misreading you altogether! 🙂
Right I will set it going on Demo Live / Realtime and let you know!
I set it going Live and got the same error message as you within 3 minutes … so each time the code executes.
So I changed line 60 as shown and the error message stopped. I guess it’s because there is no TradeIndex until you get your first trade? So it’s back to you now for a proper fix? 🙂
nb = barindex - 1 //tradeindex
PS how about maybe ?
nb = barindex - max (1, Tradeindex)
Above works on backtest with same results.
I’ll try it on Live now.
I’ll do the same and get back to you, thank you so much.
Okay, live works. I don’t recommand to use it thow, i don’t like the shape of that curve. but i can work on it now, thank you again!
I dont know what the variable “nb” is made for, but if it is used as an indicator period, seems obvious that it can’t be negative (and that’s what happen with the first barindex), that’s why the system stopped in ProOrder. GraHal has spotted the problem (well done), seems that “sharing knowledge” is working finally here 😉