New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.

SCAN 1 month time frame, 20SMA>=50SMA>=100SMA

I am going nuts how to make it work. I know it is very simple but it's really difficult for me. Any help would be so much appreciated. Thanks!

Comments

  • markdmarkd mod
    edited May 2020
    Unless things have changed, it may be that you have to use the modifier "monthly" in front of the sma( ) function AND INSIDE the sma( ) function to specify that you want to average monthly data (your subscription also has to give you access to monthly data). Same goes for weekly data using the "weekly" modifier. The scan editor does not flag an error if you leave out the inside the function modifier, but maybe it should.

    If you don't specify anything, the scan engine assumes you mean daily data and it will work fine.

    So, try this:

    and [monthly sma(20, monthly close) >= monthly sma(50, monthly close)]
    and [monthly sma(50, monthly close) >= monthly sma(100, monthly close)]

    A hundred months is a long time - (8.33 years) - newer stocks won't get picked up.
Sign In or Register to comment.