PDA

View Full Version : DrawRectangle to the right of current bar?


clearpicks
07-31-2008, 12:43 PM
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

clearpicks
07-31-2008, 12:48 PM
Similar issue on other methods such as drawline, drawtext etc. The parameters barsAgo only makes it not possible to draw anything on future bars.

NinjaTrader_Ray
07-31-2008, 12:56 PM
That is correct, you can't currently draw into the future.