Hi jcl.

Re. nested for(open_trades), I've had some initial success with this workaround code:

Code:
void	sub(other paramenters,int TID) {
	TRADE	*SaveThisTrade	= ThisTrade;
	for(open_trades) {
		// anything that doesn't close TID
	}
	for(open_trades) if(TradeID==TID) break;
	ThisTrade	= SaveThisTrade;
}

void	run () {
	// do some stuff
	for(open_trades) {
		// do stuff
		sub(other parameters,TradeID);
		// do other stuff
	}
	// do more stuff
}



Of course, since I can't see "under the covers" I don't know if there are any pitfalls to this method, and would appreciate your comments!

Thanks.