Thanks in advance.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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:
Please don't hesitate to reach out if we may be of further assistance.Emily C.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ageeholdings, Today, 07:43 AM
|
0 responses
3 views
0 likes
|
Last Post
by ageeholdings
Today, 07:43 AM
|
||
Started by pibrew, Today, 06:37 AM
|
0 responses
4 views
0 likes
|
Last Post
by pibrew
Today, 06:37 AM
|
||
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
14 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
12 views
0 likes
|
Last Post Today, 12:38 AM |
Comment