Pine Code TradingView

Job ID: 31303594

Budget: ₹600 – ₹1,500 INR

RBR = rally[0] and base[1] and base[2] and base[3] and base[4] and base[5] and base[6] and rally[7]

I need code for avoiding multiple depeated same type candle. In the above multible base are there. Need in Sigle code
Related categories: Pine Script