Price above 200 MA for 5 months.

Forums ProRealTime English forum ProScreener support Price above 200 MA for 5 months.

  • This topic has 2 replies, 2 voices, and was last updated 2 years ago by avatarMary.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #201111

    Hello,
    How do you describe a condition for Screener where you want to screen stocks whose Price is above 200 Moving Average for 5 months straight, not less, not more, Exactly  5 months?

    Thank you.

    #201131

    You can code it like this, with a monthly timeframe that has sufficient history to compute a 200 period moving average:

    or you can also make it on a daily timeframe, to check for the last 100 days (which is roughly 5 months of trading days)

     

    #201172

    Thank you Nicolas!

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login