OPEN-SOURCE SCRIPT

Auto Trend Channel [TCMaster]

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

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.