Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Imported strategy shows on strategy analyzer but not it's parameters

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

    Imported strategy shows on strategy analyzer but not it's parameters

    Hi,

    Minor problem that isn't inhibiting me at the moment, but it is curious because it's unusual:

    I developed a ninjascript strategy on my main computer, exported it to a .zip file (non dll version), and imported it onto my laptop. The strategy works on charts, and when I load strategy analyzer the strategy shows up on the dropdown list to select it, but when it's selected it does not refresh the user-definable parameters with the parameters for that strategy (inputs, start date, end date, etc) - it just continues to show those from the most recently shown strategy instead.

    Has anyone heard of this before, or know what is causing it?

    Steps I've taken to resolve:

    Close strategy analyzer window, delete strategy, restart ninjatrader, import strategy again. It continues to act this way, just on the one strategy, but on the main computer it can be backtested on just fine.

    I am in no hurry for a solution because I don't need to backtest it on the laptop, it's just that it's unusual behaviour and ultimately should not be like this.

    Thanks!

    #2
    Hello RunnrX,

    It sounds like there may be a strategy template for this.

    Please go to the following location and delete any files that share a name with your strategy.
    • (My) Documents\NinjaTrader 7\templates\Strategy


    Let me know if there is no file sharing a name with your strategy in this location.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you --

      There was not an .xml file for my strategy's name, only another strategy with a different name that I made

      Comment


        #4
        What I mean is, the problem is still persisting. I suppose I could remove and reinstall ninjatrader 7 but I'd like that to be my last resort because I've set everything quite nicely on it by this time (thank you for looking into this with me!)

        Comment


          #5
          Originally posted by RunnrX View Post
          What I mean is, the problem is still persisting. I suppose I could remove and reinstall ninjatrader 7 but I'd like that to be my last resort because I've set everything quite nicely on it by this time (thank you for looking into this with me!)
          Have you rebooted the laptop?

          Comment


            #6
            RunnrX,

            I'd like to have a remote support session with you.

            Please send me an email to support[at]ninjatrader[dot]com. In the body of the email write Attn: Chelsea #888914.

            I look forward to receiving your email.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hi NinjaTrader_ChelseaB,

              once my strategy was no longer in an open position, I actually did just restart the laptop and the issue has been resolved. The strategy in question is functioning perfectly in the strategy analyzer -- thank you for your time and attention on this!

              Comment


                #8
                Have you rebooted the laptop?
                That did the trick, but why, I wouldn't know. Thank you!

                Comment


                  #9
                  Originally posted by RunnrX View Post
                  That did the trick, but why, I wouldn't know. Thank you!
                  Do you really want to know the arcane and mystical wonders of the internal workings of that thing called M$ Windez? It is Windez: who knows why you have to reboot? Just reboot already!

                  Comment


                    #10
                    We actually found the source of the problem, which was an unlikely source, because it occurred again.

                    In my code I had a line:

                    AddLineBreak(TickerSymbol, PeriodType.Minute, 10, 3).. whatever the syntax was..

                    we don't know why, but adding a line break bars object as a secondary bars object was the line of code that made strategy analyzer refuse to show the strategy's parameters. It seems completely unrelated but it was absolutely the cause, somehow.

                    I switched around the order of the bars objects, which means I put the Strategy Analyzer to "line break" mode as it's chart style for barsobject 0, and then used Add(PeriodType.Minute, 10); to add a candlestick chart as barsobject 1, and it worked fine, and the strategy still works as desired at the same time

                    I think the developers are going to look into why the AddLineBreak() method would have any effect on such a thing as the strategy analyzer's parameters panel

                    Comment


                      #11
                      Originally posted by RunnrX View Post
                      I switched around the order of the bars objects, which means I put the Strategy Analyzer to "line break" mode as it's chart style for barsobject 0, and then used Add(PeriodType.Minute, 10); to add a candlestick chart as barsobject 1, and it worked fine, and the strategy still works as desired at the same time
                      Correction - it turns out I really need the candlesticks as barsobject 0 and Line Break as barsobject 1 in order for the strategy to work correctly (stop losses to be hit as in real life, etc)

                      For that reason, whatever is up with AddLineBreak() I look like I'll have to wait for it to be fixed before I can step forward with this strategy

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      633 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      364 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      105 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      567 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      568 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X