I have a strategy which uses EnterLongStopMarket() and EnterShortStopMarket() to open positions after a long or short signal. These orders generally work. However, before opening a long position the strategy will close any existing short position using ExitShort(). When this happens, the short position is closed but the new long position is never opened. Also, a message appears in the error log with the text 'An entry() method to submit an entry order at Date/Time has been ignored...'
If I replace EnterLongStopMarket() with a simple EnterLong then everything works - I can close an existing position and open a new one on the same bar.
So why does Strategy Analyzer reject ExitShort / EnterLongStopMarket on the same bar when it is happy with ExitShort / EnterLong ?
Thank you,
Jimmy
Comment