Find Stocks who move less then x% in the last few days

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #138438 quote
    EnjeruEnjeru
    Participant
    New

    Hi,

    I try to screen for stocks who move less than x% each day.

    I tried the following:

    CL = Close
    CL1 = Close [1]
    Perc1 = CL/CL1*100-100 //(I also tried CL1/CL)
    Con1 = Perc1 <= 3
    SCREENER[Con1]

     

    I still get stocks that moved 4% for example,

    Thx for the help šŸ™‚

    #138444 quote
    VonasiVonasi
    Moderator
    Master

    Try this (not tested):

    CL = Close
    CL1 = Close[1]
    Perc1 = (((max(CL,CL1)/(min(CL,CL1))*100)-100
    Con1 = Perc1 <= 3
    SCREENER[Con1]

    Please re-read the forum rules before posting again and always use the ‘Insert PRT Code’ button when posting code. I will edit and tidy up your post.

    #138445 quote
    EnjeruEnjeru
    Participant
    New

    Hi,

    First of all, thank you very much.

    I tried but I keep getting an error on this line:

    Perc1 = (((max(CL,CL1)/(min(CL,CL1))*100)-100

    “Syntx error: line 3, character 43

    Please complete the syntax of this line.”

    Thx alot.

    #138467 quote
    EnjeruEnjeru
    Participant
    New

    Hi,

    Fixed it, was missing a )) at the end.

    Thank you very much.

    #138468 quote
    VonasiVonasi
    Moderator
    Master

    Sorry – unequal amount of ()

    Change it to:

    Perc1 = ((max(CL,CL1)/min(CL,CL1))*100) -100
    #138472 quote
    VonasiVonasi
    Moderator
    Master

    I think my head has been out in the Greek sun too much! This is the calculation you should be using:

    Perc1 = ((abs(close-open)/open)*100)
    #138479 quote
    EnjeruEnjeru
    Participant
    New
    Perc1 = ((abs(close-open)/open)*100)

    Doesn’t work.

    Shouldn’t I compare the closing of the last two candles?

    #138481 quote
    VonasiVonasi
    Moderator
    Master

    If you want to include any gaps then just change OPEN to CLOSE[1]

Viewing 8 posts - 1 through 8 (of 8 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

Find Stocks who move less then x% in the last few days


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Enjeru @enjeru Participant
Summary

This topic contains 7 replies,
has 2 voices, and was last updated by VonasiVonasi
6 years, 3 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 07/05/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...