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?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Onrender in 2 panels
Collapse
X
-
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?Tags: None
-
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
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
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
386 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
584 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
585 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment