I implemented the Momentum Strategy from the Black Book. However, I would like to only place all orders in TWS without transmitting them directly so I can check them before they get filled.
int OldLots = brokerCommand(GET_POSITION,Asset);
if(NewLots > OldLots && GoLong)
else if(NewLots < OldLots)
Thank you in advance for your help, L