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 algospoke, Today, 06:40 PM
        0 responses
        10 views
        0 likes
        Last Post algospoke  
        Started by maybeimnotrader, Today, 05:46 PM
        0 responses
        7 views
        0 likes
        Last Post maybeimnotrader  
        Started by quantismo, Today, 05:13 PM
        0 responses
        7 views
        0 likes
        Last Post quantismo  
        Started by AttiM, 02-14-2024, 05:20 PM
        8 responses
        168 views
        0 likes
        Last Post jeronymite  
        Started by cre8able, Today, 04:22 PM
        0 responses
        10 views
        0 likes
        Last Post cre8able  
        Working...
        X