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

OnMarketData and Session Template

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

    OnMarketData and Session Template

    Seems OnMarketData continues to execute on my chart after the close of my session template. Is there a way to make OnMarketData honor the beginning and ending time of a custom session template? thanks

    #2
    Hello pman777,

    I am testing for the behavior.

    If am I am able to reproduce, I will report the behavior to our development (and inquire if this is expected).

    I appreciate your patience while I test.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello pman777,

      I was able to confirm the session template prevents only OnBarUpdate from processing and does not prevent OnMarketData/OnMarketDepth or other methods from being triggered and that this is expected behavior.

      Would you like to submit a feature request for the NinjaTrader Development to consider preventing OnMarketData (or other specific methods) from being triggered outside of the session template (Trading Hours in NT8) in a future version of NinjaTrader?
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Originally posted by NinjaTrader_ChelseaB View Post
        I was able to confirm the session template prevents only OnBarUpdate from processing and does not prevent OnMarketData/OnMarketDepth or other methods from being triggered and that this is expected behavior.
        Is there any history on why this was originally done this way? Just wondering.

        Comment


          #5
          Hello sledge,

          Thank you for your response.

          OnMarketData and OnMakretDepth are subscriptions to the live data. Chart bars are built by the Session Template/Trading Hours in order to view the graphs and studies over the desired collection of bars. This means OnBarUpdate is restricted to only the bars updating in the Session.

          This is essentially the difference between live data and a graph that is collection of data (Charts).

          Please let me know if you have any questions.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by prdecast, Today, 06:07 AM
          0 responses
          3 views
          0 likes
          Last Post prdecast  
          Started by i019945nj, 12-14-2023, 06:41 AM
          3 responses
          60 views
          0 likes
          Last Post i019945nj  
          Started by TraderBCL, Today, 04:38 AM
          2 responses
          17 views
          0 likes
          Last Post TraderBCL  
          Started by martin70, 03-24-2023, 04:58 AM
          14 responses
          106 views
          0 likes
          Last Post martin70  
          Started by Radano, 06-10-2021, 01:40 AM
          19 responses
          610 views
          0 likes
          Last Post Radano
          by Radano
           
          Working...
          X