OPEN-SOURCE SCRIPT

Up Weeks (William O'Neil)

Updated
The indicator draws boxes when close to close returns are positive for at least a specified number of bars. The last bar is only included in the box (if positive) after the market is closed, to avoid false positives.

The standard use (by William O'Neil) is on weekly charts, using at least five consecutive up bars to define a box (indicating strong institutional buying activity).

Options:
* minimum number of up bars to form a box
* include flat bars (zero return) in the up count
* add labels to top and bottom box levels, as shown in the sample chart
Release Notes
Added options to disable showing boxes and to enable coloring bars/candles when the box is active
Candlestick AnalysisChart patternsTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer