Thanks in advance.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Vertical line all panels
Collapse
X
-
Hello Seaeagle,
Thank you for your post.
Drawing objects are only drawn on the panel of the instance of the script that drew them (such as an indicator panel) or on the price panel. In an indicator, this may be determined by the DrawOnPricePanel property:
If you want a drawing object to appear on all panels of charts using the same instrument, you could draw the object as a global drawing tool. For a vertical line, this would require one of the following overloads to draw it that includes the isGlobal bool:
Draw.VerticalLine(NinjaScriptBase owner, string tag, int barsAgo, bool isGlobal, string templateName)
Draw.VerticalLine(NinjaScriptBase owner, string tag, DateTime time, bool isGlobal, string templateName)
A global drawing tool could be used as a workaround for showing a vertical line on all chart panels; here is an example where I manually draw a global vertical line on an ES chart, then I add a transparent ES data series to the second panel and disable auto scale so the vertical line even displays on that panel for a different instrument:
World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.
Please don't hesitate to reach out if we may be of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
608 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
355 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 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
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment