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.
Scanning for trends
Hi all,
What would be a good way to scan for stocks that are currently in trends (either up or down) and have been for a while? I would obviously like the trend to be as strong as possible, with as little rangebound action as possible.
Thanks
What would be a good way to scan for stocks that are currently in trends (either up or down) and have been for a while? I would obviously like the trend to be as strong as possible, with as little rangebound action as possible.
Thanks
0
Comments
-
You could write a scan that looks at a long term moving average, like the daily 200 or the weekly 40 at several points in time, and compares the later points to the earlier points. If you want an up trend, the later points should be greater; for a down trend, they should be less.
So, for an uptrend, something like
and [sma(200, close) > 21 days ago sma(200,close)]
and [21 days ago sma(200, close) > 63 days ago sma(200, close)]
and [63 days ago sma(200, close) > 126 days ago sma(200, close)]
etc.
For a weekly version, use "weeks ago" and "weekly close".
Another possibility is to test for a stochastic level, with custom parameters:
and [min(251, Fast Stoch %K(251, 1)) > 70]
This says the close has been in the upper 30 per cent of the 251 day range for 251 days.
You can edit all the parameters, including the interval days (21 - 63, 63 -126, 251) and the sma and Stoch lengths (200, 251) to see what happens.0 -
Another possibility for up trends:
and [slope(50, sma(200, close)) > .05]
For down trends:
and [slope(50, sma(200, close)) < -0.15]
Again, play with the parameters 50, 200 and .05, -.015
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