Here's the typical order flow I'd like to have with a discretionary futures daytrade:
- Submit entry with transmit set to 1.
- Entry gets filled, submit target / stop OCO bracket order (w/transmit set to 1 on the 2nd order of the two)
- Either target or stop is reached or a manual close of the trade.
Is the basic pattern I need to do each time through the AFL is to call GetOrderStatus(orderId, True) and (and GetPositionSize() on fills) and then manage the transition states with static variables?