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 | 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%"
return StochRSI as "StochRSIv1.1"
PS
After all the above prep, it got too late, I went to bed and so never tried my idea after all! 🙂
Thank you very much, you helped me a lot !
I just changed the line 13.
myRSI = RSI[lengthRSI]((open+high+low+close)/4)
Have good trades.