JCL,

for(last_trades) is supposed to loop open/pending trades.

However
Quote:
for (last_trades)
{
printf (" n TradeDir=%i",TradeDir);
}
will print 1/-1 for all trades, both open and closed.

Why would it?