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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        137 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        120 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X