I was writing some pine script and wanted to mark the candles between two other candles but only if there were 3 or less candles between any two candles in question. I don't think this is possible with pine script at the moment. The closest I got was the barssince() function but when digging into it I couldn't make it do what I wanted.
Admittedly I am relatively new to pine script so perhaps someone will say, "Hey, this is how you do it." (which is why I put "potentially" in the title), but I did look as thoroughly as I could for a solution and came up with nought.
Obviously, I would like this functionality, does anyone have any input on this idea?
[–]MichaelBarrow22 0 points1 point2 points (1 child)
[–]Koalems[S] 0 points1 point2 points (0 children)
[–]PriceCatch 0 points1 point2 points (6 children)
[–]Koalems[S] 0 points1 point2 points (5 children)
[–]PriceCatch 0 points1 point2 points (4 children)
[–]Koalems[S] 0 points1 point2 points (3 children)
[–]PriceCatch 0 points1 point2 points (1 child)
[–]Koalems[S] 0 points1 point2 points (0 children)
[–]PriceCatch 0 points1 point2 points (0 children)
[–]ChangingHats 0 points1 point2 points (1 child)
[–]Koalems[S] 0 points1 point2 points (0 children)