Stoch RSI 14 code help

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #203390 quote
    marco7630
    Participant
    New

    Hello,

    Can somebody help me to create a code for the following.

    <span style=”font-weight: 400;”>Show all the assets that fits the following requirements:</span>

      <li style=”font-weight: 400;” aria-level=”1″><span style=”font-weight: 400;”>The stoch RSI 14 needs to increase at least with 60 points on the current day and</span>
      <li style=”font-weight: 400;” aria-level=”1″><span style=”font-weight: 400;”>The SMA20 (daily) needs to be in an upward trend</span>

    Thanks

    Gr Marco

    #203393 quote
    JS
    Participant
    Veteran
    xrsi = RSI[14]
    xStoRSI = Stochastic[14,3](xrsi,highest[20](xrsi),lowest[20](xrsi))
    C1 = xStoRSI - xStoRSI[1] > 60
    xSMA = Average[20](Close)
    C2 = xSMA - xSMA[1] > 0
    SCREENER(C1 and C2)
    
    #203423 quote
    marco7630
    Participant
    New

    Hi,

     

    I does not seem to work. Did i do something wrong? I made a short video https://www.loom.com/share/ef37e7fe9ee2457189190181b90c8cef

     

    gr Marco

    #203424 quote
    robertogozzi
    Moderator
    Master

    Replace line 6 with:

    SCREENER[C1 and C2]

    as barackets are required for conditions, while parentheses are required for criteria.

    #203425 quote
    JS
    Participant
    Veteran

    Sorry, Screener(C1 and C2) must be Screener[c1 and C2]

    Square hooks […]

    #203444 quote
    marco7630
    Participant
    New
    Hello,   Please have a look at attachment.   gr Marco
    2022-11-02_19-35-01.png 2022-11-02_19-35-01.png
    #203446 quote
    JS
    Participant
    Veteran

    I don’t get this share (HZNP) on my screen at all…???

    #203447 quote
    marco7630
    Participant
    New
    SNTG is another example
    #203448 quote
    JS
    Participant
    Veteran

    Here the difference between “StoRSI” does not exceed 60…

    Scherm­afbeelding-2022-11-02-om-20.33.03.jpg Scherm­afbeelding-2022-11-02-om-20.33.03.jpg
    #203450 quote
    marco7630
    Participant
    New
    The increase is 71 points. See attachment
    2022-11-02_21-10-07.png 2022-11-02_21-10-07.png
    #203454 quote
    JS
    Participant
    Veteran

    What formula do you use for your indicator “Stoch RSI(14)”?

    #203455 quote
    marco7630
    Participant
    New
    I did not use a formula. I used the standard indicator. See attachment
    2022-11-02_21-27-26.png 2022-11-02_21-27-26.png
    #203457 quote
    JS
    Participant
    Veteran

    I don’t know how the internal formula for the “Stochastic RSI” is calculated…

    But it’s clear that this is where the problem lies…

    #203524 quote
    marco7630
    Participant
    New
    This is the formule used: //Start Code<br aria-hidden=”true” />lengthRSI = 14 //RSI period<br aria-hidden=”true” />lengthStoch = 14 //Stochastic period<br aria-hidden=”true” />smoothK = 10 //Smooth signal of stochastic RSI<br aria-hidden=”true” />smoothD = 3 //Smooth signal of smoothed stochastic RSI<br aria-hidden=”true” /> <br aria-hidden=”true” />myRSI = RSI[lengthRSI](close)<br aria-hidden=”true” />MinRSI = lowest[lengthStoch](myrsi)<br aria-hidden=”true” />MaxRSI = highest[lengthStoch](myrsi)<br aria-hidden=”true” /> <br aria-hidden=”true” />StochRSI = ((myRSI-MinRSI) / (MaxRSI-MinRSI))*100<br aria-hidden=”true” /> <br aria-hidden=”true” />Return StochRSI<br aria-hidden=”true” />//End code
    #203525 quote
    marco7630
    Participant
    New
    Maybe better readable in attachment
    Start-Code.docx
Viewing 15 posts - 1 through 15 (of 26 total)
  • You must be logged in to reply to this topic.

Stoch RSI 14 code help


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
marco7630 @marco7630 Participant
Summary

This topic contains 25 replies,
has 3 voices, and was last updated by marco7630
3 years, 4 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 11/01/2022
Status: Active
Attachments: 5 files
Logo Logo
Loading...