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.
Weekly Price Channel Scan
Answers
-
The "breakout" is going to be a crossover.
Try replacing the > with an X on the second line.
https://support.stockcharts.com/doku.php?id=scans:advanced_scan_syntax:crossover_scans0 -
lmkwin's answer is basically correct - it's much easier to do the scan with the x (crossover ) operator.
The Price Channel indicator is a little different than others, in that it is lagged by one bar. The explanation is here:
https://school.stockcharts.com/doku.php?id=technical_indicators:price_channels
The x operator seems to be coded to take that difference into account. So, you could just say:
and [weekly close x weekly Upper Price Chan(20)]
However, this statement will often be true AFTER a breakout as well, as a trending stock often closes the week above the prior week's high. So your scan will pick up stocks in mid-trend. To get just breakouts, you want to insure that the Upper Price Channel has been flat for some number of weeks. So your first line might be
and [1 week ago weekly Upper Price Chan(20) = 10 weeks ago weekly Upper Price Chan(20)]
or something similar. The number of weeks you choose should be the minimum you would consider necessary for a meaningful breakout ( but less than the length of the channel (20), since the channel will change its value when the channel length expires).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