Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-time current bar open price

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

    Multi-time current bar open price

    In a multi-timeframe strategy,
    how can the opening price of the currently building bar of another timeframe be accessed?

    For example:
    barsSeriesIndex 0 is a 1 minute PeriodType
    barsSeriesIndex 1 is a 1 week PeriodType

    When in the BarUpdate method and BarsInProgress=0, how can the opening price of the currently building weekly bar be obtained?

    Opens[1][0] returns the open of the last completed bar, not the open of the currently building bar.

    #2
    There is no currently building bar when you are backtesting. Backtest is pure snapshots. Weekly bars come in at the end of each week. There is nothing inbetween.

    In real-time you have to use CalculateOnBarClose = false and then you can access the weekly bar via Opens[1][0]
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    591 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    342 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    555 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X