Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Draw objects with multiple bars

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

    Using Draw objects with multiple bars

    In a strategy I added a bar object with a different time frame using the same instrument. I added the strategy to a chart and manual added the bar series to the chart so that now I can see both the original series and the added series.

    I then used the BarsInProgress == 1 selection to draw a dot hoping on the added series. However, the dot only appears only at the original time frame.

    Draw objects can NOT be used with multiple time frames except on the base time frame! CORRECT?

    #2
    Hi GuyFB,

    Correct, although you are accessing another series, the series that you add the strategy to (same for an indicator) is the one the drawing objects will be applied to.
    TimNinjaTrader Customer Service

    Comment


      #3
      Solution

      Tim,
      There is a solution to this problem::

      If you are dealing with two data series and wish to plot draw object on one then make that the primary series in the chart and change the programing in your strategy appropriately. Works like a charm...

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      66 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      36 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
      52 views
      0 likes
      Last Post CarlTrading  
      Working...
      X