I have built a strategy based on a swing system that submits stop losses and profit targets to scale out of a position.
Everything works fine -- it puts in the stop losses / targets just fine. It scales out just fine. The problems occur when I hold a position overnight. If the strategy is holding a position at I close NT down for the day after the markets close, then the next day when I open it up and start the strategy again, it does one of two things:
1). If I have NT set to immediately fill historical orders, it puts in all new stop losses / profit targets based on the current ask price, even though the stop losses / profit targets from the previous day are already there.
2). If I set NT to wait until flat to submit orders, it doesn't put in new stop losses / targets, but the existing ones that are there are no longer associated with a strategy. That is, on the orders tab, they are still listed, but they have nothing in the Strategy column.
In the second case above, I also notice that on the executions tab, I see fake orders -- buy or sell orders that aren't actually submitted -- though I assume that this is just to tell me the current state of the strategy (whether it currently thinks it is long or short). Very bizarre and confusing way of representing this, by the way.
First question:
===========
Please advise what the best practice is for this case. What setting should I be using? I assume that I should set it to wait until flat.
Second question:
=============
Assuming your answer is to tell me to set it to wait until flat, I have a problem with this. Let's say on a given day, the lines cross and the system goes short. It puts in the profit targets / stop losses. At some point, one of my profit targets is hit and 20% of my shares are sold off. Great. When the markets close, I shut down NinjaTrader.
The next day, I load up NinjaTrader and start my strategy again. I have it set to "wait until flat", so no new targets / stop losses are put in. But again, remember that the existing ones now show up on the orders tab as not being associated with any strategy. Let's say the lines now cross, and the strategy should now cover the remaining 80% and go long. Is it going to cover when it's set to "wait until flat?" Is it going to remember that it only needs to cover 80%, even though it was shut down overnight and restarted and the targets/stops are no longer associated with the strategy?
To complicate matters further, I have a second strategy running (not a swing system, no targets/stops, just a simple end of day, EMA cross strategy) that trades the same instrument. If both strategies are in the market, is there going to be interference between the two?
Thank you.

Comment