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.
Moving average crossover in the last 5 days
Answers
-
The easiest and most accurate way is to run this code for today:
and [ema(10, close) x ema(20,close)]
Then re-run the scan for each of the last four days by adjusting the calendar tool " Starting 0 trading days before the..." above the scan window. Click on the zero and select yesterday's date. Repeat for each date.
If you want one scan, you would need to write a more complicated "or" routine.
and
[
[ema(10, close) x ema(20,close)]
or
[1 day ago ema(10, close) x 1 day ago ema(20,close)]
or
[ 2 days ago ... ]
or
...
]
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