EMA Crossover

I'm struggling with this simple one (probably because I'm new at this)
Stocks whose 50-day EMA crossed its 100-day EMA to the upside in the last 5 market days
THANK YOU!!!

Comments

  • You could write the simple scan for 50 x 100 for today, and then run it for each of the past five days (kind of a pain).

    To get it one scan, without specifying the which day the crossover happened, you could test for 50 > 100, and 6 days ago 50 < 6 days ago 100. If the 50 was below six days ago, and above today, there must have been a crossover somewhere in between.