Asc wedge
Flags a rising wedge: the 100-bar high climbs while the 100-bar low climbs faster, squeezing the range.
Asc wedge reads the 100-bar highest and lowest closes, the Donchian lines the default trend inputs build. It fires when the high line has risen more than eps percent over the last 20 bars, the low line has risen faster than the high line over those 20 bars, and the high still sits above the low. Those lines are rolling extremes that step as old bars drop out, not fitted trendlines, so the wedge is inferred from their shape.
How to read it
- Markers sit on the candles where the wedge condition holds, not where price breaks out.
- A run of markers means the range top is rising and the bottom is closing in on it from below.
- At default settings it marks a stretch about once a day, so markers cluster rather than appear alone.
- A marker is a setup to watch; a close through the top or bottom of the range is a separate event.
What it outputs
- Asc wedge
- True on the bars where the rising-wedge condition holds, and off on all other bars.
When it fires
The 100-bar high has risen more than eps percent over 20 bars, the 100-bar low has risen faster than the high over the same 20 bars, and the high is above the low. That is the moment the range tilts upward and narrows from below. It does not confirm a breakout.
Settings
- eps
- Minimum percent rise of the 100-bar high over the last 20 bars. Raising it demands a steeper top line, so it fires less. Lowering it accepts a flat or falling top, so it can fire on a range whose top is falling; at -6 the top may fall almost 6%.
Pitfalls
- Only eps is adjustable here. The 100-bar and 20-bar windows come from the default inputs, and the low-line-faster test has no threshold, so a tiny slope gap counts.
- The source docstring says highs and lows, but the default inputs use closes, so the lines are close-based channel edges.
- On SPY one-minute bars for September 2026 it fired 23 times, on 0.6% of bars. Treat markers as context, not a trade trigger.