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