In the screenshots of your last post, we see the account position is 1 long here and here.
Looking at the first screenshot here, I do not see a strategy applied to the chart, but the chart shows the account is 1 long, and the strategy using the 16 UniRenko data series (assuming this is the NQ strategy because your screenshot does not show which instruments have strategies applied) is flat (but the account is 1 long.) This would mean the strategy is out of sync with the account.
Edit: Actually, the 16 UniRenko strategy is disabled so there is no calculated strategy position.
Strategy positions are separate from actual account positions. As long as the strategy is the only thing submitting orders to the account, it will stay in sync with the account. If the strategy is out of sync after enabling it, you will want to have a good understanding on how the strategy gets its position when processing historical data, and how the start behaviors come into play.
I have included some information on Start Behaviors and Strategy/Account Positions below.
Strategy/Account Positions and Start Behavior information
When a strategy is enabled, it processes historical data to determine trades that the strategy would have made on the data that is already on the PC/chart and to determine what position the strategy is in. (Strategy positions are separate from actual Account positions.)
Wait Until Flat will wait until this virtual/historical position is closed before live orders can be submitted. It ensures that the strategy starts trading live from a flat position. If you enable the strategy when the account is flat, the strategy will wait until this position (calculated from historical data) is closed so it is logically making trades starting from an entry signal.
Immediately Submit automatically submits working orders from when the strategy processed historical data, and assumes the strategy position and account position are where you want it when you enable the strategy. This is typically used to have a strategy resume a position after disabling/enabling. If the strategy already had live orders running, the orders will resume with the new enablement of the strategy if they match the historically calculated orders. If the orders calculated from historical data do not match the live working orders, the live working orders will be cancelled and replaced by those calculated from historical data.
Sync Account Positions is an additional option that has NinjaTrader submit an order to sync the account position to the position calculated by the strategy. (Not the other way around.)
Adopt Account Position would be used if you want the strategy to inherit the Account Position on enablement. This requires additional programming.
If you do not want the strategy to calculate a position from processing historical data. Simply add if (State == State.Historical) return; to the top of your strategy logic so historical processing is skipped. The strategy will then always start from a flat position because it has not calculated any orders.
Strategy vs. Account Position — https://ninjatrader.com/support/help..._account_p.htm
Start Behaviors — https://ninjatrader.com/support/help..._positions.htm
Comment