Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          579 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X