OPEN-SOURCE SCRIPT

Auto Trend Channels OXE

238
This indicator automatically detects and draws trend channels based on swing highs and lows.
How it works:
It identifies pivot points (swing highs/lows) using your chosen lookback period, then connects consecutive pivots to form channels:

Descending channels connect lower highs (resistance line), with a parallel support line projected from the lowest low between those highs
Ascending channels connect higher lows (support line), with a parallel resistance line projected from the highest high between those lows

Key features:

Channels extend forward so you can see where price might interact with them
Broken channels automatically switch to dashed lines and show "✗" labels
Fill shading helps visualize the channel zone
Info table shows current pivot counts

Trading application:
You'd use this for identifying trend direction and potential reversal zones. Price bouncing off channel boundaries = continuation. Price breaking through = potential trend change or acceleration. The "break detection" highlighting makes it easy to spot when a channel has been invalidated.
The pivot length setting is your main control - higher values find longer-term, more significant channels; lower values catch shorter-term moves.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.