Pine Code TradingView -- 3

Job ID: 31307171

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]

Need Pine Code/Coder to avoid same repeated conditon. In above Base condition repeating multiple times. Need to change with Single condition.
Related categories: Pine Script