Hello everyone, I want to write an indicator. I want to show A on top of red candles and B on top of green candles. Then, if the combination of ABAA occurs, I want a red line to appear on that combination.
I print the characters A and B on the candles like this:
//@version=4
study('Example', overlay=true)
B = close >= open
plotchar(B, char='B')
A = close <= open
plotchar(A, char='A')
but I don't know how the red line code will be on ABAA combinations. Please help me!!!