I'm looking to place an entry order at X after price has hit Y price, but then cancel the entry order sitting at X if price falls below Z. For instance, in a long scenario, when price hits 161 I want to place a long limit order at 170 so that if price travels to 170 the long order is entered (along with OCO profit and stop orders set via SetProfitTarget() and SetStopLoss()). However, if price never reaches 170 but instead hits 155, I want to cancel the long limit order (and the associated OCO profit and stop orders associated with the entry order) and start waiting for my next signal.
Is there a way to use the Managed Approach to place and then cancel the entry, profit and stop orders if the "bail" price is hit?
I have found the NT Strategy example whereby I use the Unmanaged Approach to cancel the orders (using CancalOrder()), however at this point I'd like to use NT7's Managed Approach until I get a bit more comfortable with the parts and pieces of automated order management.
Does anyone have any ideas?
At this point I have set the TimeInForce within the Initialize() method as:
TimeInForce = Cbi.TimeInForce.Gtc;
Thanks for your help, I REALLY appreciate it.
All best,
Aventeren

Comment