• 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 alcmvd, Today, 03:02 AM
          0 responses
          3 views
          0 likes
          Last Post alcmvd
          by alcmvd
           
          Started by Dragon989, 11-02-2018, 04:59 PM
          2 responses
          64 views
          0 likes
          Last Post krimkrim  
          Started by Bikotoru, Yesterday, 04:34 PM
          0 responses
          11 views
          0 likes
          Last Post Bikotoru  
          Started by dmking, Yesterday, 03:42 PM
          2 responses
          9 views
          0 likes
          Last Post nikhilkanna1234  
          Started by login_dejavu, Yesterday, 03:30 PM
          1 response
          13 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Working...
          X