OIF, 'PLACE;SIM101;NQ 12-21;BUY;1;MARKET;0;0;DAY;;9001;;' processing
OIF, 'CHANGE;;;;1;;16499.75;16369.75;;;9001;;' processing
OIF, 'CHANGE;;;;1;;16499.75;16369.75;;;9001;;' order with ID/Name '9001' is in a terminated state and can't be changed
the trade is live, not terminated
So I send a Place Order and give it an order id ie 9001 , I read the Sim101_9001.txt in the outgoing folder and get the fill price
I then compute limit and stop prices and send a change order file to the incoming.
After reading my own post here I am wondering if I am using the correct file??? So I place the trade and the order is complete so how am I actually changing the order??
My idea is once filled I retrieve the fill price and then send the stoploss and target prices.
On another thought, if I refer to a specific strategy can I have a trade management strategy running and when the order is filled that it will handle the trade?
Any ideas on this will be helpful.
Comment