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.
Golden Cross within X days
Comments
-
You can run the scan multiple times with the existing code - just change the run date.
You can do that by clicking in the drop down above the scan window where it says Starting 0 days before... etc. Click on the zero, then click on any date on the calendar (any trading day). The scan will run looking at data as of the close of that date.
You can save the result in a separate list for each date, or merge the results into one list.
Also, I think to get a true golden cross, you should add code that says the 200 MA is falling (meaning, less than it was, say, a month ago).
and [sma(200,close) < 20 days ago sma(200,close)]
(note: the scan engine default is today and daily, so you don't have to specify that in your scan - ok if you do, but not required).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