Missing one variable in code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #207577 quote
    marco7630marco7630
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
3 years, 8 months ago.

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