Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw object on second data series

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

    Draw object on second data series

    Hi,

    I have a strategy using two data series (two time frames from the same instrument) and I'd like to be able to make my strategy draw an object on the secondary series to help me debug my code.

    I have my chart window set up with both data series in separate panes (pane 1 = primary data series, pane 2 = secondary data series) and at the moment if I draw an object, e.g Draw.Dot(), based on logic related to the secondary series it will draw the object on pane 1, the primary data series.

    How can I configure my code to draw the object in the second data series, or pane 2?

    Thanks,

    Neil

    #2
    Hello burtinlondon,

    Thanks for your post.

    Drawing objects (e.g. Draw.Dot()) can only be drawn into the panel owned by the script (primary series), or the price panel.

    You would not be able to draw the object in the secondary series. Secondary series are not synchronized to Chart Bars.

    You could consider drawing the object on the primary series in a separate panel, or you could draw the object on the price panel.

    See this help guide page for more information about adding indicators to strategies: https://ninjatrader.com/support/help..._strategie.htm

    Let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X