Stoch RSI 14 code help

Forums ProRealTime English forum ProScreener support Stoch RSI 14 code help

Viewing 11 posts - 16 through 26 (of 26 total)
  • #203528
    JS

    Hi @marco7630

    Question about the formula:

    Why are “smoothK” and “smoothD” in the formula when they are not being used?

    //Start Code
    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

    Return StochRSI
    //End code

    #203538

    Hello,

    I asked prorealtime which formule they used for this indicator and this was their reply.

    gr Marco

    #203539
    JS

    Okay, strange but more importantly, does this formula match the formula you use, do they give the same values?

    #203546

    Actually the full code is:

    but the standard formula I found over the internet, in several sites (and applied by PRT),  doesn’t use the K and D lines,

     

     

    #203550
    JS

    Thanks Roberto…

    Then the screener will now work as you intended…

     

    #203577

    It is working:-). Thanks

    1 user thanked author for this post.
    avatar JS
    #203578

    What would i need to change in the code to get only results that have more than 60 DECLINE and a downward SMA20?

     

    #203580
    JS
    #203593

    Great. What do i need to add to only see stocks with more than 500k volume on last trading day?

    #203595
    JS
    #203621

    Hello,

    I would like to add the following to the code. I only want to see stocks with Bolinbger Bandwidth (20 2) greater than 10% (0,1)

    What do i need to add?

     

    gr Marco

     

Viewing 11 posts - 16 through 26 (of 26 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login