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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    27 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    283 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    280 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    131 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X