Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawLine into the future?

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

    DrawLine into the future?

    I've been trying to draw a line into the future using DrawLine. I want it to stop a specified number of bars into the future and not continue indefinitely as in the case of a ray or extended line. I've tried passing negative integers into DrawLine for the future ending point but to no avail. Is it possible to exend DrawLine (or any type of line or drawing object) into the future with a specified ending point? Thanks.

    #2
    Its is not possible to draw a line into the future use future bars as an index value.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks. I finally thought not. I'll just use an extended line or ray and keep track of when I cross it.

      Comment


        #4
        I was wondering if this issue has since been resolved or a workaround developed? At session open, I'd like to draw lines on the chart from there to session end.

        Comment


          #5
          You can only draw lines in places where there are bars associated with it. You can try using DrawHorizontalLine. I think it will extend out indefinitely.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          580 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          336 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