Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnExecution and Multi-Time Frame Strategies

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

    OnExecution and Multi-Time Frame Strategies

    For a multi-time frame strategy, when inside the OnExecution function and I reference Open, High, Low, or Close, how do i know which time frame it is getting the data from? Should I be checking BarsInProgress?

    Thanks!

    #2
    Style, the OnExecution() is not tied to any bars update event, it's strictly monitoring for fill reports, incoming executions - so the BarsInProgress filter would not make sense really here.

    For data access you can use Opens, Closes, Lows or Highs, which would let you point to a specific frame to get the last known data from.

    Alternatively you can set a tracking variable in OnBarUpdate() that would update on your needed BarsInProgress calls.

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      For data access you can use Opens, Closes, Lows or Highs, which would let you point to a specific frame to get the last known data from.
      This is exactly what I needed. Thanks so much! I didn't even know those arrays existed.

      Comment


        #4
        You're welcome, all price input types would have such multiseries 'cousins' - Typicals, Medians and Weighteds are available as well.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        646 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X