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!
See more
See less

Partner 728x90

Collapse

Vertical line all panels

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Vertical line all panels

    Hi, is there an add on that will draw a vertical line through all chart panels. I have searched the eco-system and this site to no avail.
    Thanks in advance.

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    3 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X