Need Python code for RSI Divergence (exactly matching Kite chart – 5 min candles)

tukkan
Hi everyone,

I’m looking for a Python implementation of RSI divergence that gives the same bullish/bearish divergence points as seen on Kite charts for 5-minute candles.

I’ve tried multiple versions (Wilder RSI, pandas-ta, custom pivot logic etc.), but none align perfectly with Kite’s divergence labels.

Details:

RSI = 14-period, source = Close

Divergence = Regular (bullish/bearish only)

Timeframe = 5 min

Need to confirm:
RSI type used in Kite (Wilder / EMA / SMA?)
Pivot/swing lookback bars
How Kite selects the divergence bar

If anyone has code or knows the exact divergence logic Kite uses, please share ????

(Using Zerodha historical candles, pandas + numpy setup)

Thanks!
Tagged:
Sign In or Register to comment.