Price moving above moving average from below

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #169721 quote
    samdsamd
    Participant
    New

    I was wondering how you would write a simple screener to find stocks that are crossing the 20 simple moving average from below with an average(last 50 days) daily volume of over 200k shares per day.

    #169723 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go:

    Timeframe(Daily)
    MyVol = average[50,0](volume) >200000
    Timeframe(default)
    Sma20 = close CROSSES OVER average[20,0](close)
    Cond = MyVol AND Sma20
    Screener[Cond]
    #169729 quote
    samdsamd
    Participant
    New

    That’s awesome Roberto, thank you! I was wondering can you set the date to check for example April 1st 2021 the stocks moving above the 20 day moving average?

    #169735 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Yes, but since ProScreener scans markets live, we have to check some days ago, from now up to April 21st. I used 30 to make sure it’s enough.

    There you go:

    Timeframe(Daily)
    MyVol = average[50,0](volume) >200000
    Timeframe(default)
    Sma20 = 0
    IF Date = 20210421 THEN
       Sma20 = close CROSSES OVER average[20,0](close)
    endif
    Cond  = summation[30](MyVol AND Sma20)       //scan within the last 30 bars
    Screener[Cond]
    #169737 quote
    samdsamd
    Participant
    New

    Thank you again for the quick reply. Just wondering how far back can I go? If I wanted to see one year ago from Friday if I change the 30 to 370 and in the if statement I changed the date to 20200421 would it work? Sorry to keep bothering you.

    #169744 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    ProScreener has a 254-bar limit (less 5o required by the average makes it a 204-bar lookback).

Viewing 6 posts - 1 through 6 (of 6 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 moving above moving average from below


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
samd @samd Participant
Summary

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

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