Trade script to identify fall or rise in RSI

Hi,

Can anyone help me by providing the script for identifying fall or rise in RSI.

Thanks in advance