RAVI Indicator - Creation and Coding?

Hi Everyone,

Does anyone know how does ravi calculate its value in Zerodha Kite?

I mean how does it generate red and green signal/candle after the white ones?

What is the basis of this?