Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy not refreshing on focus

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

    Strategy not refreshing on focus

    I might be doing something wrong here, but I wouldn't know exactly what it is because the strategy compiled correctly, and it appears to work fine in chart window, but when I try to select the strategy in Strategy Analyzer, the Parameters do not update with the new strategy parameters.

    Ex.

    If I select from the back test drop down Custom Strategy 1, the parameters change to show the available exposed paremeter for strategy 1.

    If I change to custom stragey 2, the parameters still show the first set from strategy 1.

    If I go to custom strategy 3, it shows parameters for strategy 3.

    It would seem that something is wrong with my strategy 2. But i have been combing over line by line for the past hour and the structure is exactly the same as the rest. Eventually I have commented out almost all the code, and it still does not refresh. I also tried renaming it as a new strategy and recompiling, same thing.

    Any ideas of what to look for?

    #2
    Sounds like some declaration may have been screwed up. Perhaps you could try copying out all the logic parts inside OnBarUpdate() and just create a completely new strategy to put it back into.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      Sounds like some declaration may have been screwed up. Perhaps you could try copying out all the logic parts inside OnBarUpdate() and just create a completely new strategy to put it back into.
      OK, I found the offending line (typo, but still a valid statement). It was in the declaration section. Thanks for pointing me in the right direction.

      Comment


        #4
        Excellent, thanks for letting us know.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        68 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 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