Thanks Ddlv, but NumOpenTotal also crashes. BTW v1.16
I also thought maybe look back might be causing it.
But removing that also didn't help.
It will work until the trade is opened, or until the comparison is true.
I thought maybe it was the TradeOpenPrice inside the loop, but the manual says that should work.
The loop is inside the run() function, but I tried it in it's own function and that didn't work either.
How should one retrieve the open price for each trade if multiple trades are open?
I can probably create an array and move the price when a trade is opened.
I'm stuck again.
Thanks
P