PRT_Stochastic RSI v1.1

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #87852 quote
    GraHal
    Participant
    Master

    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! 🙂

    Nicolas, ginko, BjornH, kmilo20000 and Alai-n thanked this post
    PRC_Stoch-v1.1.jpg PRC_Stoch-v1.1.jpg
    #168471 quote
    ebjiadang
    Participant
    New

    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.

    GraHal, Alai-n and UkDownUnder thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

PRT_Stochastic RSI v1.1


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by ebjiadang
4 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/02/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...