Originally Posted By: DdlV
This isn't in a TMF, is it? for(open_trades) is a no-no in a TMF...

Without seeing the rest of the script, could it be what's bit me in the past? open_trades is a bit mis-named. It includes pending trades also. To be sure the 1st (or any) trade is open you must add if(TradeIsOpen)...


Thanks, this fixes the issue laugh