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 NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X