Missing one variable in code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #207577 quote
    marco7630
    Participant
    New

    Hello,

     

    I have the following 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
    C1 = (StochRSI[1] – StochRSI) > 60
    xSMA = Average[20](Close)
    C2 = xSMA – xSMA[1] < 0
    C3 = Volume > 500000
    SCREENER [C1 and C2 and C3](Volume as “Volume”)

    What do i need to change to only see assets that have a price of a least 5 usd on the current price candle? Thanks

    #207610 quote
    robertogozzi
    Moderator
    Master

    Adding the C4 condition will do. There you go:

    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
    C1 = (StochRSI[1] - StochRSI) > 60
    xSMA = Average[20](Close)
    C2 = xSMA - xSMA[1] < 0
    C3 = Volume > 500000
    C4 = close > 5
    SCREENER [C1 and C2 and C3 and C4](Volume as "Volume")
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Missing one variable in code


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
marco7630 @marco7630 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
3 years, 1 month ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 01/17/2023
Status: Active
Attachments: No files
Logo Logo
Loading...