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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      65 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      35 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      59 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Working...
      X