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 kempotrader, Today, 08:56 AM
      0 responses
      6 views
      0 likes
      Last Post kempotrader  
      Started by kempotrader, Today, 08:54 AM
      0 responses
      4 views
      0 likes
      Last Post kempotrader  
      Started by mmenigma, Today, 08:54 AM
      0 responses
      2 views
      0 likes
      Last Post mmenigma  
      Started by halgo_boulder, Today, 08:44 AM
      0 responses
      1 view
      0 likes
      Last Post halgo_boulder  
      Started by drewski1980, Today, 08:24 AM
      0 responses
      3 views
      0 likes
      Last Post drewski1980  
      Working...
      X