Hi, am trying to create an indicator which marks nth candle (usually 20th, 50th and 200th candle) with an arrow.
So far, tried DRAWARROWDOWN(barindex -20, close) and DRAWARROWDOWN(20, close) but mixed results….former marks all candles while latter marks all except last 20.
If BarIndex is, say, 780, the first one will mark the 20th candle before the current one, while the latter will mark just one candle, the 760th candle before the current one (barindex 20) not ALL candles.
Of course it depends where you use those instructions, whether inside a loop or not.
You could mark all candles on the tens boundary, you could write:
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue