OPEN-SOURCE SCRIPT
Auto Trend Channel

Auto Trend Channel
This indicator automatically draws a dynamic trend channel based on the 2 most recent swing highs and 2 most recent swing lows. It supports multi-timeframe (MTF) analysis and intelligently refreshes the channel when new pivot points are formed.
It’s designed to help traders visualize dynamic price channels in real time, making it useful for trend-following, breakout detection, and support/resistance analysis.
🛠️ Features:
🔍 Auto-detects pivot highs and lows using customizable sensitivity
📅 Works on any timeframe, with optional higher-timeframe input
➡️ Extends trendlines forward into the future by a defined number of bars
🔁 Automatically replaces old channels with new ones as new pivots form
🌈 Optional channel fill between upper and lower trendlines for better visualization
💡 Usage Tips:
Use higher sensitivity (e.g., 15–30) on higher timeframes like Daily or Weekly
Use lower sensitivity (e.g., 5–10) for intraday trading on 15m–1h charts
Combine with volume or price action for entry confirmation at channel boundaries
This indicator automatically draws a dynamic trend channel based on the 2 most recent swing highs and 2 most recent swing lows. It supports multi-timeframe (MTF) analysis and intelligently refreshes the channel when new pivot points are formed.
It’s designed to help traders visualize dynamic price channels in real time, making it useful for trend-following, breakout detection, and support/resistance analysis.
🛠️ Features:
🔍 Auto-detects pivot highs and lows using customizable sensitivity
📅 Works on any timeframe, with optional higher-timeframe input
➡️ Extends trendlines forward into the future by a defined number of bars
🔁 Automatically replaces old channels with new ones as new pivots form
🌈 Optional channel fill between upper and lower trendlines for better visualization
💡 Usage Tips:
Use higher sensitivity (e.g., 15–30) on higher timeframes like Daily or Weekly
Use lower sensitivity (e.g., 5–10) for intraday trading on 15m–1h charts
Combine with volume or price action for entry confirmation at channel boundaries
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.