Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnRender for Multiple Panels

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

    OnRender for Multiple Panels

    Is there any sample code available for drawing on multiple panels

    Scenario:
    2 Panels: Panel 0 is Price Bars, Panel 1 is Indicator
    Indicator plot is done normally (copied MACD into a new indicator and working with that)

    I am trying to draw a line in the Indicator Panel (is working fine) and draw a line in the Bars Panel (not working) from OnRender. The Start and End Vectors are within the Height and Width of the panel but nothing is drawn.

    Thanks

    (Can post the code if that helps with or without all the Prints.)

    #2
    Hello TAJTrades,

    Thanks for opening the thread.

    Indicators can only plot and do custom rendering in one panel determined by IsOverlay, but drawing objects can be placed on either the indicator panel or the price panel with DrawOnPricePanel.

    If you would like to have one indicator draw to the price panel and the indicator panel, I would recommend to use DrawOnPricePanel = true and IsOverlay = true and use drawing tools for the drawing on the price panel.

    If you would like to use do custom rendering in separate panels, I would advise to use 2 separate indicators to render to the indicator panel and another to render to the Price Panel.

    Publicly available documentation on the items discussed can be referenced here:

    DrawOnPricePanel - https://ninjatrader.com/support/help...pricepanel.htm

    IsOverlay - https://ninjatrader.com/support/help.../isoverlay.htm

    Please let us know if you have any additional questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X