wrong results with simple moving average rebound screener

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #47971 quote
    lore
    Participant
    New

    Hi,
    I have been using this very simple screener for a while to look for stocks in uptrend rebounding on the 50 days moving average. It was actually working until I started to obtain also values below the moving average as in the file attached. Cannot find on what I am wrong.
    This is the screener code

    a=Average[50]
    
    c1= summation[30](close>a)=30
    
    c2=low<a
    
    screener [c1 and c2]

    and attached you see the file with one of the stocks I get: there are also a few closes below the 50 day moving average when I put the condition of the last 50 closes being above it.

    thank you

    screener.png screener.png
    #47983 quote
    Nicolas
    Keymaster
    Master

    This is odd, your code should work correctly. On the NASQAQ stocks list, I do not get any result right now, do you still have that problem this morning?

    #47989 quote
    lore
    Participant
    New

    yes … i keep on getting results below the moving averge.. especially the most recent ones

    #48001 quote
    Nicolas
    Keymaster
    Master

    Do you have live subscription to NASDAQ Stocks list? Still don’t have any results in my screener window today for this code. Do you?

    #48077 quote
    lore
    Participant
    New

    have these results today

    and they apear to be correct

    this is weird because yesterday I got completely wrong results with the same code

    Cattura2.png Cattura2.png
    #49485 quote
    Nicolas
    Keymaster
    Master

    About this issue, I heard that it was a problem in Daily timeframe only and it has now been fixed, do you agree?

    #157675 quote
    dave_moz
    Participant
    Junior

    Hi,

    I see this is an old post but I think I’m seeing a similar issue in that ProScreener returns different values of EMA than what is actually on the chart.

    Doing some tests I see that ProScreener thinks the EMA200 is ~1.5% lower than what it actually is.

    Did you resolve your issue and does this sound anything like the same thing?

     

    Thanks.

    #157686 quote
    Nicolas
    Keymaster
    Master

    Your problem is not related, a 200 periods EMA needs more than 254 bars to calculate, which is the history limit of ProScreener, therefore the value may differ. I suggest you use an arithmetic moving average instead, SMA200 is ok.

    dave_moz thanked this post
    #157797 quote
    dave_moz
    Participant
    Junior

    I see, that makes sense.

    Thank you.

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

wrong results with simple moving average rebound screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
lore @lore Participant
Summary

This topic contains 8 replies,
has 3 voices, and was last updated by dave_moz
5 years, 2 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 10/02/2017
Status: Active
Attachments: 2 files
Logo Logo
Loading...