I would like to see all stocks that meet the following requirements:
- The Stoch RSI 14 has been above the value 90 within the last 5 days
- AFTER that the STOCH RSI 14 falls below the value 80
- On the current candle it again crosses over the value 90
There you go:
//PRC_Stochastic RSI v1.1 | indicator 06.12.2016 Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge converted and adapted from Pinescript version
//forked by GraHal to look same as PRT Platform inbuilt Stochastic RSI
//
lengthRSI = 14
lengthStoch = lengthRSI
myRSI = RSI[lengthRSI](close)
MinRSI = lowest[lengthStoch](myrsi)
MaxRSI = highest[lengthStoch](myrsi)
StochRSI = (myRSI-MinRSI) / (MaxRSI-MinRSI)*100
//
c1 = (summation[5](StochRSI > 90) = 5)[2]
c2 = StochRSI CROSSES OVER 90
SCREENER[c1 AND c2](StochRSI AS "Stochastic RSI")