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.
SP500 scan for stocks in uptrend pulling back to 21 day EMA
Comments
-
Scans require you to be specific about what you want.
For instance, you need to specify what "stocks in an uptrend" means in term the scan engine can understand. Note that everyone has a different idea of what an up trend is depending on how they want to trade. An up trend might mean the 200 MA is rising, or, the 50 MA is rising or the 21 MA is rising, etc.
Then, you have to specify what pulling back to the 21 day EMA means. There are different ways to do it. You might specify that the ema is inside the range of current bar, i.e. the ema is less than today's high and greater than today's low. Or you could specify the the 3 day ema today is less than the 3 ema yesterday - that could catch a turn toward the 21 ema before it actually crosses it.
Once you have decided specifically what you want, it's easier to find the code to do it. But if you need help, post what you have and we'll tweak it.
0
Categories
- All Categories
- 2.3K StockCharts
- 395 SharpCharts
- 146 Other Charting Tools
- 69 Saved Charts and ChartLists
- 1.5K Scanning
- 73 Data Issues
- 177 Other StockCharts Questions
- 218 Technical Analysis
- 155 Using Technical Analysis
- 2 InterMarket and International
- 19 Market and Breadth Indicators
- 42 Market Analysis
- 109 Trading
- 109 Trading Strategies
- 163 S.C.A.N the StockCharts Answer Network forum
- 65 Using this StockCharts Answer Network forum
- 98 s.c.a.n. archives
- 5 Off-Topic
- 6 The Cogitation & Rumination Emporium
- Forum Test Area