However, when I select "Wait until flat before executing live", I get a "phantom" position when I enable my strategy -- e.g., I see an unrealized value, but no position.
When the next entry signal occurs, I get an error message when Ninjatrader tries to close the "phantom" trade. As a side note, on connection loss, I have Handling set as "KeepRunning", and I have Cancel Entry/Exit orders checked under order handling.
Is there a way in my code or via settings to prevent active historical orders? When I start my strategy, I don't want historical orders to be placed. I'd like for trading to begin at the next entry signal after I turn on my strategy. Thanks in advance.
Comment