As you know when already long and a short entry is triggered NT will automatically close out the long position, and cancel the stop. Then it will take the short entry and set the stop as defined in the strategy.
The problem I'm having is that I am not receiving an email to close the old position when a position is being flipped. I do receive an email about the new entry and to set a new stop as the former is handled in my OnOrderUpdate method and the latter in my OnExecution() method.
However, I am not sure how I can catch the 'flip position' event. I would like to know when positions are being flipped so that I can email myself a 'close short' email before I get my 'go long' email. In other words I'm looking for the best method/way to hook into that.
i hope the above makes sense - if not please ask away. Thanks for any help in advance.


Comment