when eod price goes above 21 day wma

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #106197 quote
    malanovamaimalanovamai
    Participant
    New

    hello, i am very new at this.

    i want to be able scan for stocks where the price has crossed the 21 day wma.

    Can you help? Thanks

    #106217 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Try this:

    TIMEFRAME(Daily)
    MyAvg = average[21,2](close)     //2=wma
    TIMEFRAME(default)
    x=0
    IF close CROSSES OVER MyAvg THEN
       x=1
    ELSIF close CROSSES UNDER MyAvg THEN
       x=2
    ENDIF
    SCREENER[x](x AS "1=↑, 2=↓")
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

when eod price goes above 21 day wma


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
7 years, 1 month ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 09/02/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...