Price Time and MA Screener

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

    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
    thesagethesage
    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.
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

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 thesagethesage
5 years, 3 months ago.

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