Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Onrender in 2 panels

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

    Onrender in 2 panels

    Hello,

    I have an indicator that uses custom plots in the indicator panel, drawing within OnRender. It also writes text objects using draw.text to the chart window. It creates quite a few text drawing objects, so I would rather use onrender and plot them as needed, rather than draw.text. Problem is, Onrender cannot draw both in the indicator panel and the chart window? Splitting into 2 different indicators is not an option as it would be duplicating work / inefficient. Any elegant solution to this?

    #2
    Hello pjsmith,

    From my understanding, the drawOnPricePanel overload for drawing objects, temporarily changes the DrawOnPricePanel property for the indicator just before the object is rendered and then changed back.

    You might try doing something like that, though I cannot guarantee the functionality.

    In general, our suggested workaround is have one indicator (either instance or type) per panel that draws whats needed on that panel.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    683 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    386 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    584 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    585 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X