Scan for price above daily 9 ema


Category:
0
0

Hello, I am looking for a scan that scans for stocks that are currently (not previous day candle close) trading above the daily 9ema. An example would be like +1% above the daily 9ema of current price. Current price could be last, ask, bid. The problem with default scan is it scans for stocks that above the previous days close price. Thank you!

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on March 17, 2020 8:35 pm
690 views
0
Private answer

I don't know what you mean by "default scan". You can construct this using the Condition Wizard:

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

However if you want to include the portion for x percent above/below the ema you will need to modify that code. Which for many can be quite challenging. So here is a basic script you can use to run this specific scan:

def ema = ExpAverage(close, 9);
plot scan = close >= ema * 1.01;

This will return stocks where current price is trading greater than or equal to the 9 period ema plus 1%.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on March 18, 2020 11:50 am
0
Hey thanks for the response! The default scan im speaking of is under "Edit Scan Query" Add filter>Study>Popular Studies>MovingAverages_Scan. In this scan you can search for stocks above of below the MA's. But during trading, I noticed it wasnt picking up some stocks that were over the 9ema because its scanning for stocks above the "close" candle of the day before. Therefore the scan is actually behind a day.
( at March 18, 2020 6:44 pm)