Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to draw vertical line in price chart from indicator code?

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

    How to draw vertical line in price chart from indicator code?

    Hi folks,

    Inside the code of an indicator, I am using "DrawVerticalLine()" to draw a vertical line to segment the curves. However, I found this vertical line is restricted in the window of the indicator.
    How can I draw vertical line in the price chart from the code of an indicator?

    I attached a picture here.

    Thank you very much!

    Best Regards
    David


    Click image for larger version

Name:	VL.png
Views:	701
Size:	69.0 KB
ID:	1115122

    #2
    Hello David,

    Drawing objects have to appears in one panel.

    If you would like to see the line in both panels the indicator would need to be added twice, with the Panel set to 0 and 1.

    Are you unable to draw a vertical line at all?
    Or are you just unable to see it in both panels?
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    129 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    74 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    116 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    110 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    89 views
    0 likes
    Last Post CarlTrading  
    Working...
    X