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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      142 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      81 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      125 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      119 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      98 views
      0 likes
      Last Post CarlTrading  
      Working...
      X