Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

synchronizing advice

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

    synchronizing advice

    Hi,
    When I'm running a strategy, I close a position manually when I'm up a good amount. That disables the strategy and puts it in a yellow/orange state.
    That means it is waiting for it to be flat.
    I can see that it thinks a position is still open.
    So I try to resynchronize.
    I even restart NT but it doesnt fix the problem.
    The only way for it to work again is for the strategy itself to close the position when its enabled.

    Please advise me on what I can do to avoid this? thanks

    #2
    Hello ezrollin,

    After re enabling the strategy it would try to re enter the position that you closed out but that is now a historical position. That means it leaves an open position and the start behavior waits until flat.

    The strategy closing the position and resuming would be expected to happen, it wouldn't enable immediately in that use case. If you want it to start immediately you will have to prevent it from placing historical trades. You can also explore changing the start behavior but that also entails you developed the script for that specific behavior. https://ninjatrader.com/support/help...hlightsub=sync

    Comment


      #3
      I've looked. I dont see any setting to change it to where it doesnt place historical trades. I dont know how to do it?

      I've even tried: closing the strategy. Disconnecting. Resetting the database. Restarting the system. Restarting the strategy.
      But it still wants to wait for the trade thats not technically there to be closed by the strategy.
      (So all that work remoting in from my phone doesnt work either)
      thanks

      Comment


        #4
        Hello ezrollin,

        There is not setting for that specifically, you would have to just make your script so it works only in realtime in its logic. As part of your entry conditions you can check if the State equals State.Realtime, that would avoid any entries being submitted for historical bars.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        50 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        127 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X