Tradescript Code : Price and RSI Divergence Intraday Signal.

Tradescript code to identify Divergence in Price and RSI values. This is a classic trading strategy used by intraday and positional traders.

This code works with The Zerodha Pi scanner for generating Intraday divergence signals.

Tradescript code for Price RSI Divergence Signal for Reversal Signal :

REF(CLOSE,3) < REF(CLOSE,2) AND
REF(CLOSE,2) < REF(CLOSE,1) AND
REF(CLOSE,2) < CLOSE AND
RSI(CLOSE,14) < REF(RSI(CLOSE,14),1)

Screenshot for the Signal:

Tradescript Codes Price RSI Divergence