Hello, I do not know how to code at all and I have tried around a little. I think it’s a relativly easy indicator to write, but I can’t figure out how.
What I want is the indicator to do is:
if 2 candles that are next to eachother have the same high, change the candle colour of the second/or both candles to R67 G140 B166
and if 2 candles that are next to eachother have the same low, change the candle colour of the second/ or both candles R124 G55 B203
I have made it work on tradingview with this code if that helps in any way.
barcolor((high == high[1] ) ? color.navy : na)
barcolor((low == low[1] ) ? color.black: na)
plot (close)