Urgent Help With Code for zerodha

Hi it will be very helpful if anyone can help .

I want code for IF

last 2 or three candles have exact same low so it should generate a signal.

and one code for

if last 2 or three candels have same highs it should genrate the signal .

Thanks

LONG TRADESCRIPT CODE:

REF(LOW,2) = REF(LOW,1) AND
LOW = REF(LOW,1)

SHORT TRADESCRIPT CODE:

REF(HIGH,2) = REF(HIGH,1) AND
HIGH = REF(HIGH,1)

Remove Line 1 if you need only 2 candles.

Your Script generated an error
Error: Scripts generated no trades.

Today GAIL made three same high on 15 min chart at 12:15, 12:30, 12:45.

Please help to deduct this type to alert in scanner @ Zerodha .

Thanks .

The above code has been modified to match the Candle pattern you mentioned:

Thank you sooo much for your prompt help but still no luck , This code cannot deduct any alert in last 4 days also :frowning: .

Please help to resolve it .

I want to scan in real time if any stock has three or two same lows continuously

in 15 min timeframe so i can add it to my watch list