command=PLACE;
account=Sim101;
instrument=NQ 09-24;
strategy = TV NQ;
action=buy;qty=1;
order_type=MARKET;
tif=DAY;
If I send a close order such as:
command=CLOSEPOSITION;
account=Sim101;
strategy = TV NQ;
instrument=NQ 09-24;"
The position and the ATM close.
The problem is that if NT doesn't receive the close and simply receives another opening order, in the opposite direction or not, the ATMs stay open.
So, I'm trying to write a NT script that monitors the market position for the account and then closes any inappropriate ATM orders.
The trouble I have is obtaining the various order IDs required for things like AtmStrategyClose(); In addition, most of these types of functions close the strategy.
Thoughts?

Comment