OPEN-SOURCE SCRIPT

Auto Trend Channel [TCMaster]

224
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.

免責聲明

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.