Price Time and MA Screener

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #171973 quote
    thesage
    Participant
    New

    Hi,

    I’m new here and am in need of some help for a screener I am trying to build. My coding knowledge isn’t great and I’ve been trying to sort of fudge together code from what I’ve been able to find here on the forums but to not much success.

    As a run down what I am trying to achieve is the following:-

    50ema above 200ema

    50ema above 200ema for at least 40 days

    price below 20ema and/or price has dropped <=10% in the last 10 days

    For the code so far I’ve got the below to return stocks where the 50ema is above the 200ema.

    timeframe(Daily)
     
    EMA50 = ExponentialAverage[50] (close)
    EMA200 = ExponentialAverage[200] (close)
     
    Condition = (EMA50 > EMA200)
     
    SCREENER[Condition]

     

    Thank you in advance for any help

    #171979 quote
    robertogozzi
    Moderator
    Master

    There you go:

    timeframe(Daily)
    EMA20  = ExponentialAverage[20] (close) 
    EMA50  = ExponentialAverage[50] (close)
    EMA200 = ExponentialAverage[200] (close)
    c1     = (summation[40](EMA50 > EMA200) = 40) //Ema50 > Ema200 for at least 40 days (the current one is included)
    c2     = close < Ema20
    c3     = (close / close[10]) <= 0.90          //price dropped at least 10% in the last 10 days
    Condition = c1 AND (c2 OR c3)
    SCREENER[Condition]
    thesage thanked this post
    #171988 quote
    thesage
    Participant
    New

    Thanks for the quick reply and code. I really appreciate that 🙂

    What I’ll do as well is try and go through the code to learn for future reference what each of the bits means and does.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Price Time and MA Screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
thesage @thesage Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by thesage
4 years, 9 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 06/18/2021
Status: Active
Attachments: No files
Logo Logo
Loading...