James Beach / Publications
Forum
Selected order with wrong magic number
Hi there, I have written some code which basically loops through open orders and then filters them by their magic number. Something along the lines of extern int BuyMagicNumber = xxxxx; for ( int PositionIndex = OrdersTotal () - 1 ; PositionIndex >= 0 ; PositionIndex --) { if (! OrderSelect