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

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.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by halgo_boulder, Today, 08:44 AM
    0 responses
    1 view
    0 likes
    Last Post halgo_boulder  
    Started by drewski1980, Today, 08:24 AM
    0 responses
    3 views
    0 likes
    Last Post drewski1980  
    Started by rdtdale, Yesterday, 01:02 PM
    2 responses
    17 views
    0 likes
    Last Post rdtdale
    by rdtdale
     
    Started by TradeSaber, Today, 07:18 AM
    0 responses
    7 views
    0 likes
    Last Post TradeSaber  
    Started by PaulMohn, Today, 05:00 AM
    0 responses
    10 views
    0 likes
    Last Post PaulMohn  
    Working...
    X