Need formula for SuperTrend

Hello,
Am looking for formula that zerodha Kite implemented in his charts. It would be also good if you could provide TR, ATR, SuperTrend formula.

I have tried few but its not matching with Kite SuperTrend.