Within 1% to Moving average

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #16956 quote
    HockeytraderHockeytrader
    Participant
    Junior

    Hi friends. I wanna make a screener for stock thats within 1% from a moving average. I just can’t make myself clear about how to 1% code should be.

    #16960 quote
    NicolasNicolas
    Keymaster
    Legend
    It should look like this:
    percent = abs(close-average[20])/close*100
    
    return percent 
    price-percent-from-moving-average.png price-percent-from-moving-average.png
    #17306 quote
    HockeytraderHockeytrader
    Participant
    Junior
    It says return can only be used in trading systems. Can you help me build the screener?
    #17313 quote
    GraHalGraHal
    Participant
    Master
    Hi Hock Replace Return with Screener (Nicolas was just testing us! :)) Cheers GraHal
    #17788 quote
    HockeytraderHockeytrader
    Participant
    Junior
    Thanks! But i can’t make it work. Can you help me do the screener?
    #17794 quote
    NicolasNicolas
    Keymaster
    Legend
    Yes, please find below the screener of your request:
    percent = abs(close-average[20])/close*100>=1
    
    screener [percent] 
    It will detect and sort out all shares with Close more or equal to 1% from the moving average 20 periods.
    #17814 quote
    GraHalGraHal
    Participant
    Master
    I nearly always want to see the ‘value’ on a Screener, so if you add / amend as below then you can see what the percentage from MA is.
    percent = abs(close-average[20])/close*100>=1
    
    screener [percent]  (abs(close-average[20])/close*100 as "percent from MA")
    
    Nicolas thanked this post
Viewing 7 posts - 1 through 7 (of 7 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

Within 1% to Moving average


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by GraHalGraHal
9 years, 9 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 11/22/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...