Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to prevent sync on strategy startup

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to prevent sync on strategy startup

    i sometimes have a open position left by a strategy. after i restart the ninjatrader, i dont want the sync to occur forcing the position to be closed. how can i do it?

    Enabling NinjaScript strategy 'GoldenGoose6/249781957' : On starting a real-time strategy - StartBehavior=ImmediatelySubmitSynchronizeAccount EntryHandling=All entries EntriesPerDirection=5 StopTargetHandling=Per entry execution ErrorHandling=Ignore all errors ExitOnSessionClose=False SetOrderQuantityBy=Strategy ConnectionLossHandling=Recalculate DisconnectDelaySeconds=10 CancelEntriesOnStrategyDisable=False CancelExitsOnStrategyDisable=False Calculate=On each tick IsUnmanaged=True MaxRestarts=4 in 5 minutes

    #2
    Hello junkone,

    Thanks for your post.

    You could consider re-enabling your strategy using the 'Immediately Submit' start behavior.

    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.

    Start Behaviors: https://ninjatrader.com/support/help..._positions.htm

    Strategy vs. Account Position: https://ninjatrader.com/support/help..._account_p.htm

    Here is a forum thread that discusses more about Start Behaviors: https://forum.ninjatrader.com/forum/...​​
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    86 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    151 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    79 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    53 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    61 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X