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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
78 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment