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 Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  648 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  369 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  109 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  573 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  575 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X