I spent most of yesterday reading your references on Order Management, Advanced Order Management and relevant examples. I still can't quite get the behaviour I am looking for/expecting from NT. Hopefully you can help.
Question 1:
If I enter a Long position via EnterLong() and set a stop loss for this order via SetStopLoss() - both from within OnBarUpdate() - is it possible for me to simply exit the order (via ExitLong) when certain conditions are met...? If so, how would I do it...? Would I have to cancel the stop first? Or is it simply not possible at all?
Question 2:
If I have entered a Long position via EnterLong() within OnBarUpdate(), and subsequently set a stop loss for the order via ExitLongStop() within OnOrderUpdate(), then similar to above, how do I change the existing stop order to an 'at market' exit order when certain conditions are met...? At the moment I am calling CancelOrder(the stop order) first, which works fine, but any subsequent ExitLong() that I call seems to have no effect. Any ideas?
Many Thanks
Comment