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 i2w8am9ii2, Today, 04:36 PM
      2 responses
      12 views
      0 likes
      Last Post i2w8am9ii2  
      Started by WeyldFalcon, Today, 02:07 PM
      2 responses
      13 views
      0 likes
      Last Post WeyldFalcon  
      Started by hfwiley, Today, 03:02 PM
      2 responses
      17 views
      0 likes
      Last Post hfwiley
      by hfwiley
       
      Started by pdennis, Today, 02:34 PM
      3 responses
      21 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by tonynt, Today, 01:47 PM
      3 responses
      22 views
      0 likes
      Last Post NinjaTrader_Kate  
      Working...
      X