OPEN-SOURCE SCRIPT
Auto Trend Channel [TCMaster]

This indicator automatically identifies key swing highs and lows to draw dynamic trend channels on your chart. It works on the current timeframe or any higher timeframe of your choice. The trend channel is extended into the future to help visualize potential price movement.
Features:
Detects significant pivot highs and pivot lows based on configurable sensitivity.
Automatically plots an upper resistance line and a lower support line to form a trend channel.
Extends the trend channel into the future by a configurable number of bars.
Optionally supports higher timeframe analysis to smooth out price action.
Fills the area between the upper and lower trend lines for better visualization.
Inputs:
Pivot Sensitivity: Number of bars used to detect pivot highs/lows. Higher values filter out minor swings.
Extend Future (bars): How many bars the trend lines should be extended forward.
Timeframe: Choose a higher timeframe to calculate pivots, or leave blank to use the current chart timeframe.
Usage:
Use this indicator to visually identify trending price channels and potential support/resistance zones. It can be helpful for trend trading, breakout strategies, and swing analysis.
Features:
Detects significant pivot highs and pivot lows based on configurable sensitivity.
Automatically plots an upper resistance line and a lower support line to form a trend channel.
Extends the trend channel into the future by a configurable number of bars.
Optionally supports higher timeframe analysis to smooth out price action.
Fills the area between the upper and lower trend lines for better visualization.
Inputs:
Pivot Sensitivity: Number of bars used to detect pivot highs/lows. Higher values filter out minor swings.
Extend Future (bars): How many bars the trend lines should be extended forward.
Timeframe: Choose a higher timeframe to calculate pivots, or leave blank to use the current chart timeframe.
Usage:
Use this indicator to visually identify trending price channels and potential support/resistance zones. It can be helpful for trend trading, breakout strategies, and swing analysis.
開源腳本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免責聲明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
開源腳本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免責聲明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.