• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 timcjpfx, Today, 01:18 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Tyler  
        Started by lordvader34, Today, 12:48 PM
        2 responses
        12 views
        0 likes
        Last Post lordvader34  
        Started by Newtrader101, Today, 11:06 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Newtrader101, Today, 11:03 AM
        2 responses
        9 views
        0 likes
        Last Post Newtrader101  
        Started by rickyblah12, Today, 09:57 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Working...
        X