Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to add an indicator based on time-based bars to a tick chart?

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

    How to add an indicator based on time-based bars to a tick chart?

    I want to trade on a tick chart but have some indicators available which are based on time-based bars. Unfortunately this requires a chart which also has the time-based bars added, since that is the only way you can add the indicator.

    But this messes up the tick-chart since the time-based bar becomes the bar used to define the axis.

    Is there a way to workaround this limitation and have the tick chart have equidistant bars with the time bar based indicator plotted on the tick-chart? I do realize that the spacing will be messed up on the indicator plot, but that is fine.

    #2
    aviat72,

    The only workaround for this is to instead of relying on the primary series you attach the indicator to you add a secondary series of the series you want to use for the indicator and run it that way. Your code would need to skip all BarsInProgress = 0 events and only process BarsInProgress = 1 events.
    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
    626 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    359 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    562 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    567 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X