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 jpapa, Today, 07:22 AM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by kevinenergy, 02-17-2023, 12:42 PM
      116 responses
      2,757 views
      1 like
      Last Post kevinenergy  
      Started by franatas, 12-04-2023, 03:43 AM
      7 responses
      106 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Jltarrau, Today, 05:57 AM
      3 responses
      8 views
      0 likes
      Last Post Jltarrau  
      Started by f.saeidi, Today, 05:56 AM
      2 responses
      8 views
      0 likes
      Last Post NinjaTrader_Erick  
      Working...
      X