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 argusthome, Yesterday, 10:06 AM
    0 responses
    14 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    11 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    9 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    4 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    31 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X