Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Different versions of strategy

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

    Different versions of strategy

    Greetings,

    We have a strategy that prints its version from inside Initialize() function.

    Every time the strategy gets updated, its version is incremented, it is exported via File->Utilities and then that zip is installed on top of the previous strategy version on another machine.

    Recently, we had noticed that in Output Window there are outputs from 2 different versions! How is that possible?

    Many thanks in advance!
    Alex.

    #2
    Hi Alex,

    Initialize() is likely not the best place for this, as it's called anytime you access Right Click > (Indicator or strategy) screen from chart, for example.

    If you want to run certain items only once per instance of your strategy, use OnStartup() instead.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by alex.nt View Post
      Greetings,

      We have a strategy that prints its version from inside Initialize() function.

      Every time the strategy gets updated, its version is incremented, it is exported via File->Utilities and then that zip is installed on top of the previous strategy version on another machine.

      Recently, we had noticed that in Output Window there are outputs from 2 different versions! How is that possible?

      Many thanks in advance!
      Alex.
      You either really do have 2 different instances/versions of the Strategy running, or you may have created a default template for the older strategy.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by geotrades1, Today, 10:02 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by ender_wiggum, Today, 09:50 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by rajendrasubedi2023, Today, 09:50 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by bmartz, Today, 09:30 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by geddyisodin, Today, 05:20 AM
      3 responses
      26 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X