Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by BartMan, Today, 06:49 PM
    0 responses
    3 views
    0 likes
    Last Post BartMan
    by BartMan
     
    Started by Alley93, Today, 04:20 PM
    0 responses
    1 view
    0 likes
    Last Post Alley93
    by Alley93
     
    Started by joselube001, Today, 02:49 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by TheFil, Today, 06:20 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by WalterSkinner, Today, 03:14 PM
    0 responses
    11 views
    0 likes
    Last Post WalterSkinner  
    Working...
    X