relative strength = RSI

index

current RSI = C_RSI

max RSI for period = Mx_RSI

min RSI for period = Mi_RSI

StochRSI

= (C_RSI - Mi_RSI) / (Mx_RSI - Mi_RSI)

interpreting

1. if StochRSI = 0.8 or 80( real world chart) is overbought condition

2. if StochRSI = 0.2 or 20 ( real world chart) is oversold codition

StochRSI and MAStochRSI cross over interpretation

1. if StochRSI cross above MAStochRSI then it's bullish signal

2. if StochRSI cross below MAStochRSI then it's bearish signal.