Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawLine

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

    DrawLine

    Hello,

    Can the DrawLine method be used to draw lines extending to a future point when using this overloaded method:

    Code:
    DrawLine(string tag, bool autoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, Color color, DashStyle dashStyle, int width)
    endBarsAgo would seem to indicate that the DrawLine method will only draw between two past points.

    Is it possible to use this method to draw a line connecting a point in the past (i.e 10 bars ago) to a future point? For example, can it draw to the bar that is 6 bars ahead of the value of CurrentBar? Or must endBarsAgo be a positive value (>= 0)?

    Thank you.

    #2
    Originally posted by ivb73077 View Post
    Hello,

    Can the DrawLine method be used to draw lines extending to a future point when using this overloaded method:

    Code:
    DrawLine(string tag, bool autoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, Color color, DashStyle dashStyle, int width)
    endBarsAgo would seem to indicate that the DrawLine method will only draw between two past points.

    Is it possible to use this method to draw a line connecting a point in the past (i.e 10 bars ago) to a future point? For example, can it draw to the bar that is 6 bars ahead of the value of CurrentBar? Or must endBarsAgo be a positive value (>= 0)?

    Thank you.
    You use a negative index for future bars.

    Comment


      #3
      Great. Thank you.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      582 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      338 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
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X