Help creating a scan 3 days in a row
Comments
-
The brute force way would be to describe each close in the series in terms of the prior close, so starting with the most recent day, it would be
and [close > 1 day ago close]
and [1 day ago close > 2 days ago close]
etc.
But the last day in the series has to be a down day, so
and [x days ago close < y days ago close]
A more sophisticated way would be to use ROC(1), which you can also use to see whether a close was up or down. If ROC(1) is positive the close was up, if less than zero it was down. So:
and [3 days ago ROC(1) < 0]
and [min(3, ROC(1)) > 0]
min(3, ROC(1)) > 0 says the last three closes were up - today's close (in other words, 0 days ago), 1 day ago close and two days ago close.
3 days ago ROC(1) < 0 says the fourth close back was down.0 -
Thanks Mark I appreciate your help will give it a shot!0
Categories
- All Categories
- 2.4K StockCharts
- 397 SharpCharts
- 146 Other Charting Tools
- 69 Saved Charts and ChartLists
- 1.5K Scanning
- 74 Data Issues
- 177 Other StockCharts Questions
- 224 Technical Analysis
- 155 Using Technical Analysis
- 6 InterMarket and International
- 19 Market and Breadth Indicators
- 44 Market Analysis
- 109 Trading
- 109 Trading Strategies
- 162 S.C.A.N the StockCharts Answer Network forum
- 64 Using this StockCharts Answer Network forum
- 98 s.c.a.n. archives
- 7 Off-Topic
- 7 The Cogitation & Rumination Emporium
- Forum Test Area
