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:	731
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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    618 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    419 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    293 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    414 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    367 views
    0 likes
    Last Post CarlTrading  
    Working...
    X