Big challenge... for me at least: Count candles crossed by a horizontal line
-
Hello guys,
I'd like to count how many candles are crossed by a horizontal line, over a defined period of time (analogous to market profile TPOs). See image below. Is there any way to count how many candles are crossed by the yellow line over the last "X" hours, days etc?
I thought of using condition blocks under "once per bar", to check if the line is within candle's high/low boundaries, then somehow count how many passes occurred, but I wasn't able to implement that.
-
@moreirajbn said in Big challenge... for me at least: Count candles crossed by a horizontal line:
passes occurred, but I wasn't able to implement that.
which candles do you mean by "cross"?
-
@miro1360
Hi,
I wish to count how many candles the yellow line "hits" (or touches, or crosses) in that period of time.... see new image below.... yellow line is hitting/touching/crossing 17 candles (red "X"es) within that time windowThanks...

-
-
@miro1360
Excellent Miro, thank you so much.. I'll try it right now... -
Miro, you are a pro
I would say that this is a job for some custom indicator or a custom block.

