Crossover screeners with price and volume filters

Forums ProRealTime English forum ProScreener support Crossover screeners with price and volume filters

Viewing 1 post (of 1 total)
  • #21670

    Hi All,

    Apologies if this question has been covered previously, I am a complete noob when it comes to coding screeners.

    Firstly I have amended one of the built in crossover screeners to fit the criteria I am looking for. It works great. However I am looking to add two additional criteria. I would like to add a price range, for instance all opportunities with price below X, or between X & Y. I have tried a few things and cant work it out.

    It would also be helpful to add a volume criteria, so all shares with a trading volume of +x.

    The code I have so far is below any help would be greatly appreciated.

     

    REM Calculate a simple moving average over the last 5 days

    ema5 = ExponentialAverage[5](close)

    REM Calculate a simple moving average over the last 21 days

    ema21 = ExponentialAverage[21](close)

    REM Calculate the differential speed between the short and the long moving average

    speed = MOMENTUM(ema21-ema5) * 100 / CLOSE

    REM Display securities for which short MA has just crossed over long MA.  Show the fastest crossings first.

    IF ema5 CROSSES OVER ema21 THEN

    SCREENER (speed AS “Speed”)

    ENDIF

     

    I am also trying to set up a screener to identify crossovers where the ema 21 crosses the SMA 400. I have recently been informed that I can’t screen for any averages over 250? Is this correct? If so is there any other way to identify these cross overs?

    Best regards,

    Andrew

Viewing 1 post (of 1 total)

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