To try out an idea quickly I was using the Simplified Creation tool, but the Stochastic RSI is not available / usable in ProBuilder Language. So I looked in our Library and found a PRC Stochastic RSI (thanks to Nicolas, as always) but the output does not look the same as the in-built Stochastic RSI.
I made a fork of the PRC_Stochastic RSI and got the output (lower Indicator attached) to look the same as the inbuilt PRT version (upper Indicator attached).
Then I find the Insert PRT Code wouldn’t work on the Library post (I guess it only works for the original poster of a new Library entry??).
So below is the PRC Stochastic RSI v1.1 for anybody who wants it.
PRC_Stochastic RSI v1.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//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//RSI period
lengthStoch=14//Stochastic period
//smoothK = 10 //Smooth signal of stochastic RSI
//smoothD = 3 //Smooth signal of smoothed stochastic RSI
myRSI=RSI[lengthRSI](close)
MinRSI=lowest[lengthStoch](myrsi)
MaxRSI=highest[lengthStoch](myrsi)
StochRSI=(myRSI-MinRSI)/(MaxRSI-MinRSI)*100
//K = average[smoothK](stochrsi)*100
//D = average[smoothD](K)
//return K as "K%", D as "D%"
returnStochRSIas"StochRSIv1.1"
PS
After all the above prep, it got too late, I went to bed and so never tried my idea after all! 🙂
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue