Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawRectangle to the right of current bar?

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

    DrawRectangle to the right of current bar?

    How can I draw rectangles or regions to the right of a specific bar?
    In my indicator, when a specific condition is ture, I would like to draw a rectangle starting from that signal bar, the right edle is 60 bar to the right side to mark the stop out time while the upper and lower edges represents the target and stop prices. The problem is that it seems startBarsAgo and endBarsAgo pnly accept non-negative numbers, which makes me only able to draw rectangle to the left side of the signal bar. Any idea what is wrong? Thanks.

    - Clearpicks

    #2
    Similar issue on other methods such as drawline, drawtext etc. The parameters barsAgo only makes it not possible to draw anything on future bars.

    Comment


      #3
      That is correct, you can't currently draw into the future.
      RayNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      95 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      50 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      31 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      35 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      72 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X