Draw.Text(this, "crossbelow" +CurrentBar, "look for short" , 1, High[1]);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
why does draw paint only the main panel
Collapse
X
-
why does draw paint only the main panel
I have a indicator that does drawtext functionality. in my chart, i configured the indicator to show in new panel instead of overlay. however the paint is still showing in the main price panel. how do i force the draw.text to paint in the panel that the indicator is running.
Draw.Text(this, "crossbelow" +CurrentBar, "look for short" , 1, High[1]);
Tags: None
-
Hello junkone,
Thank you for the question.
Drawing objects are seperate from Plots, currently any Plots would be in panel 1 but drawing objects would be in panel 0.
To correct this, you would need to change the DrawOnPricePanel property so the Objects follow the indicator panel instead.
protected override void Initialize()
{
DrawOnPricePanel = false;
}
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,603 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
8 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
4 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
12 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Comment