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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          174 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          331 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          252 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          356 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          183 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X