Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Time Frame Tick Bars

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

    Multi Time Frame Tick Bars

    When using multiple time frames of tick bars, it appears that only the main instrument is firing the OnBarClose() method. This is causing my code to execute improperly when I use BarsInProgress as follows. Is there a way around this? Will this affect the code when running live?

    Code:
    HighPoint=Avg[BarsInProgress];

    #2
    OnBarUpdate() is fired for every market data event on all your instruments. If you do not receive a fire from an instrument it means there is no data.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      My mistake. FYI it was not firing because I had the period type as minute instead of tick.

      Code:
      protected override void Initialize()
      {
      Add(PeriodType.Minute,TimeFrame1);
      }

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      601 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      347 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
      559 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      558 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X