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 agclub, 04-21-2024, 08:57 PM
    5 responses
    32 views
    0 likes
    Last Post agclub
    by agclub
     
    Started by ESHunter, Today, 08:06 PM
    2 responses
    12 views
    0 likes
    Last Post ESHunter  
    Started by ETFVoyageur, 05-07-2024, 07:05 PM
    19 responses
    149 views
    0 likes
    Last Post ETFVoyageur  
    Started by ETFVoyageur, Yesterday, 10:13 PM
    3 responses
    26 views
    0 likes
    Last Post ETFVoyageur  
    Started by ETFVoyageur, Yesterday, 12:52 AM
    3 responses
    33 views
    0 likes
    Last Post ETFVoyageur  
    Working...
    X