Announcement

Collapse
No announcement yet.

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 southpacific001, 02-26-2021, 09:25 PM
        13 responses
        61 views
        0 likes
        Last Post southpacific001  
        Started by punkiy2111, Today, 05:22 PM
        0 responses
        2 views
        0 likes
        Last Post punkiy2111  
        Started by secrettrader, Today, 03:36 PM
        0 responses
        8 views
        0 likes
        Last Post secrettrader  
        Started by t3chn0, Today, 01:03 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by jleira, Today, 02:27 PM
        0 responses
        25 views
        0 likes
        Last Post jleira
        by jleira
         
        Working...
        X