Hi Pork,

TradeIsOpen is a trade variable, so it's designed to be accessed within the open_trades loop (or a TMF) for each trade, not outside the loop. You may be confusing it with NumOpenTotal, which is a global variable...

HTH.