Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw a Vertical Line between two points

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

    Draw a Vertical Line between two points

    Hello,

    I am trying to draw a vertical line between two points a high and low of a indicator that I have calculated. The high and low plots fine, its just connecting the two.

    I have been looking at this syntax, but it looks like it will draw a vertical line across the chart, not between two points: http://www.ninjatrader.com/support/h..._tools__ob.htm

    Cheers,

    SodyTexas

    #2
    I found my answer:

    DrawLine(CurrentBar.ToString(),false,0,HighFancy[0],0,LowFancy[0],Color.LimeGreen, DashStyle.Solid,1);

    Thanks

    Comment


      #3
      Hello SodyTexas,

      A Vertical Line is going to Plot a continuous line from the Top to the very Bottom of the of the chart panel at a single Time. If you want to plot a line between two different point then you may want to use a regular line as you are able to specify a start and end point or if you want to see these High and Low points no matter what Time you are looking at on a chart you may use the Horizontal Line that will show a Line at that specific Price.

      Let me know if you are able achieve what you are looking for on the Chart.
      JCNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      597 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      343 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      556 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      555 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X