Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Way to reset strategy/account positions?

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

    Way to reset strategy/account positions?

    Hi,

    I had a strategy that had some errors with serialization, causing NT to shut down unexpectedly. I've since fixed those errors, but noticed that one my symbols (NG) is now consistently out of sync with any strategy I run.

    Is there a way to wipe the slate clean and somehow reset the position information for a particular symbol?

    Jeremy
    Jeremytang
    NinjaTrader Ecosystem Vendor - Shark Indicators

    #2
    Hello Jeremy,

    The strategy position is generated by the signals of the strategy. There's no way to state it explicitly.

    You may consider adding the following lines to your strategy, which means it only runs on real time data. With this the strategy won't run on historical data and should then be in a flat state at the start.

    if (Historical)
    return;
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hi,
      I have a question relating to reconcilliation between STRATEGY position and ACCOUNT position. I understand the concept and operation of Strategy vs. Account. What I would like to do is to generate an ALERT or NOTICE (such as an email) when the Strategy is out of Sync with Account positions?
      With thanks in advance,
      MT

      Comment


        #4
        Hello MKTTHOTS,

        Unfortunately this is something that would have to be monitored manually. There aren't built in NinjaScript methods that can access your account position.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Thanks Ryan & understood. Question, what is the best way to monitor this in your opinion?

          Comment


            #6
            You can use the NinjaTrader control center for this. The strategies tab will show your strategy position. The positions tab will show account positions.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              How come I don't get the strategy position under strategy tab? The account position under position tab looks fine. I am running NT7.0.1000.1. with IB connection.

              Comment


                #8
                never mind, I found the reason.

                Comment


                  #9
                  Glad you got it resolved, for more info on different sync options in NT7 please see this article from the helpguide - http://www.ninjatrader.com/support/h..._positions.htm

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by CarlTrading, 03-31-2026, 09:41 PM
                  1 response
                  67 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by CarlTrading, 04-01-2026, 02:41 AM
                  0 responses
                  36 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CaptainJack, 03-31-2026, 11:44 PM
                  0 responses
                  59 views
                  1 like
                  Last Post CaptainJack  
                  Started by CarlTrading, 03-30-2026, 11:51 AM
                  0 responses
                  62 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CarlTrading, 03-30-2026, 11:48 AM
                  0 responses
                  53 views
                  0 likes
                  Last Post CarlTrading  
                  Working...
                  X