Close below and above 50 EMA TOS


Category:
0
0

Hello,

I’m trying to make simple scan that will look for stocks that close below the 50 EMA TWO days ago, and close above the 50 EMA ONE day ago.  I tried a few different wizard setups but they did not work.

So two step scan:

  1. Close below 50 EMA two days ago
  2. Close above 50 EMA one day ago.

I tired doing the attached but it included items that closed above the 50 EMA.

Many thanks!

Jeff

Attachments:
Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on December 22, 2019 3:47 pm
371 views
0
Private answer

What you have here is a basic crossover scan. I'm certain there must be several examples here in the Q&A form already. If the close is below the EMA two bars ago, then above the EMA one bar ago, this is the same them as saying the price crossed above the EMA one bar ago. This is a very basic scan that can be built in just a few clicks of the mouse using the Condition Wizard.

Link to my tutorial video for building scans using the Condition Wizard:

https://www.hahn-tech.com/thinkorswim-condition-wizard/

Screenshots below show the steps required to create this scan using the Condition Wizard.

The code you provided in your screenshot is only looking for the close below the EMA two bars ago. That code does not capture the price crossing above the EMA one bar ago.

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on December 22, 2019 4:21 pm