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 first time 52 week highs
Comments
-
It's a little more complicated than it seems because the 52 week high is a moving target. You can see this if you put a Price Channel on your chart. I use 251 days as an equivalent to 52 weeks (52 weeks x 5 days = 260 days minus (usually) 9 market holidays = 251). Some years will be different because one or more holidays can fall on a non-market day.
Usually we think of the last 52 week high being 52 weeks ago, but if the trend is up, it might have been the day before, or a week or a month or two months ago - some period less than 52 weeks ago.
If the stock has been in a down trend, the 52 week high can really be 52 weeks ago. But, as an aside, it is not necessarily a high in the sense of being a peak price. As time passes, the peak price is no longer in the time frame, so the high keeps falling to the lower highs in the decline after the peak until it hits a lower peak. Again, the Price Channel on the chart will show this.
When you write the scan, you have to decide where you want to pick up the 52 week high - in other words, how long to do you want it to be since the last time there was a 52 week high.
So, if you want to pick up the first new high in a year (which is the situation you want - the stock has been falling, but has recovered to the highest price in 52 weeks):
and [1 day ago Upper Price Chan(251) = min( 251, Upper Price Chan(251))]
and [ high x 1 day ago Upper Price Chan(251)]
If it doesn't have to be the very first crossing (which sometimes is better if the first time there was a lot of selling), then you can make the Upper Price Channel equal to itself some number of days ago, say, a month (meaning the Channel has been flat, meaning price has been under it for at least 21 days):
and [1 day ago Upper Price Chan(251) = 21 days ago Upper Price Chan(251)]
and [ high x 1 day ago Upper Price Chan(251)]
You will have to play around with the parameter a little (21 days) to see what you get for results. Keep in mind that not all new highs, especially first new highs, are breakouts signalling more higher prices to come. They can be tops again, at least for a while.
Note: Price Channels are "off by one" - they don't include the current bar. So in some cases it appears that the scan picks up the second bar to cross the Price Channel. Here's the Chart School explanation:
The Price Channel formula does not include the most recent period. Price Channels are based on prices prior to the current period. A 20-day Price Channel for October 21 would be based on the 20-day high and 20-day low ending the day before, October 20. A channel break would not be possible if the most recent period was used.0 -
Thanks very much Mark. This works much better than the scans I have tried. I will play around with the 21 days to 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