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
Comment