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

OnStartUp NT8

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

    OnStartUp NT8

    Hello

    I'm trying to transfer my code from NT7 to NT8.

    Is there a OnStartUpevent on NT8? if not, whatss its equivilant?

    Thanks

    #2
    Hello kiss987,

    Thank you for the post.

    You can find descriptions of each of the new states here: https://ninjatrader.com/support/help...=OnStateChange

    As far as which is comparable, if you are trying to execute code once Configure, Historical or DataLoaded would likely be good choices. There are now more states to give programmers a more granular approach to creating add-ons.

    You may also find the code-breaking changes guide helpful: https://ninjatrader.com/support/help...ng_changes.htm

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply

      Transition is also a state which called once, correct?

      Comment


        #4
        Hello kiss987,

        Thank you for the post.

        Yes, that is correct, a majority of the states will only be called once and are generally each for specific purposes in the platform. For your code, most of the time it doesn't matter which state you place your code in unless that code requires a specific state or a specific time when it is run.

        Generally, I suggest thinking through what you need to do overall and then compare that to the help guide descriptions of the states to see where your idea best fits in. Everyones code will be different so these just give developers more options for initializing code.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        3 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        238 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        384 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        4 views
        0 likes
        Last Post oviejo
        by oviejo
         
        Started by pechtri, 06-22-2023, 02:31 AM
        10 responses
        125 views
        0 likes
        Last Post Leeroy_Jenkins  
        Working...
        X