• 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

why are there outputs before the activation of a script?

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

    why are there outputs before the activation of a script?

    Please take a look to the screenshot, thank you.

    #2
    Hello teafortwo,

    Thanks for your post.

    When the strategy is applied it will process all historical data (each historical bar will call OnBarUpDate()) and when the strategy has processed the historical data it then connects to live data which is what the output window shows.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thank you!

      How can i separate the historical calls from the live calls or is there an event like onbarupdate that only handles the live data?

      Comment


        #4
        Hello teafortwo,

        Thanks for your reply.

        You can separate based on the "state", either State.Historical or State.Realtime, in the OnBarUpdate().

        Reference: https://ninjatrader.com/support/help...nt8/?state.htm

        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Need to move this thread to NT8 forum ...

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by fredrikn, 05-08-2019, 04:01 AM
          17 responses
          664 views
          1 like
          Last Post emtrader  
          Started by zacharydw00, Yesterday, 10:19 PM
          0 responses
          2 views
          0 likes
          Last Post zacharydw00  
          Started by chafan11, Yesterday, 09:28 PM
          0 responses
          5 views
          0 likes
          Last Post chafan11  
          Started by GreenspanAlec, Yesterday, 05:32 PM
          0 responses
          7 views
          0 likes
          Last Post GreenspanAlec  
          Started by mrwarkhan, Yesterday, 03:45 PM
          0 responses
          16 views
          0 likes
          Last Post mrwarkhan  
          Working...
          X