How to Apply breakout coding in Zerodha

How to apply Breakout strategy in Zerodha PI

a = hhv(close, 200);

b = ((a / close) - 1) * 100;

filter = b < 1; // Near all time highs

As per the above given condition

SET A = HHV(200)

SET B = ((A/CLOSE)-1)*100

B < 1
1 Like