OPEN-SOURCE SCRIPT
[GrandAlgo] ATR Trend Matrix

The ATR Trend Matrix is a dynamic trendline indicator designed to help traders visualize market structure using ATR-based trend projections. This tool adapts to price action and highlights potential support and resistance zones based on Average True Range (ATR) calculations.
Key Features
How It Works
User Settings
General Settings
Matrix Settings

Trading Applications
The ATR Trend Matrix is a powerful tool for traders who want a dynamic, adaptive trendline system that reacts to market structure and volatility. With customizable settings, multi-level ATR projections, and trade signal detection, this indicator provides a comprehensive approach to price action analysis.
Key Features
- ATR-Based Trendlines – Calculates and plots dynamic trendlines using an adjustable ATR factor.
- Multi-Level Matrix System – Provides up to four matrix levels, each customizable with different ATR multipliers.
- Swing High & Low Detection – Automatically detects market pivots to serve as anchor points for trendlines.
- Adjustable Trend Length – Fine-tune the sensitivity of trendlines using the Swing Length and Trend-Line Length Multiplier.
- Auto-Adjustment Mode – When enabled, trendlines update dynamically as ATR evolves.
- Buy & Sell Signals – Marks potential trade setups when price crosses below or above Matrix Level 1.
How It Works
- Detects Swing Points – Identifies key highs and lows in the market using the length setting.
- Plots ATR-Based Trendlines – Calculates trendlines using ATR with user-defined multipliers for four matrix levels.
- Adjusts Dynamically – If Auto Adjust is enabled, trendlines shift with ATR movements.
- Identifies Trade Signals – Highlights potential buy/sell zones when price interacts with Matrix Level 1 trendlines.
- Manages Active Trendlines – Automatically updates and removes trendlines based on price interaction.
User Settings
General Settings
- ATR Factor – Controls the ATR multiplier for trendline calculation.
- Swing Length – Defines the number of bars for swing high/low detection.
- Trend-Line Length Multiplier – Adjusts the extension length of trendlines.
- Auto Adjust Trendlines – Enables real-time adjustment of trendlines as ATR changes.
Matrix Settings
- Matrix Level 1-4 – Enable or disable individual trendline levels.
- Matrix Factors – Customize the ATR multipliers for each matrix level.
Trading Applications
- Trend Confirmation – Use the primary trendline and matrix levels to gauge trend strength.
- Support & Resistance Zones – ATR-based trendlines can act as dynamic support/resistance.
- Breakout & Rejection Signals – Identify potential breakouts or reversals when price interacts with matrix levels.
- Volatility-Based Trading – ATR helps adjust trendlines based on market volatility.
The ATR Trend Matrix is a powerful tool for traders who want a dynamic, adaptive trendline system that reacts to market structure and volatility. With customizable settings, multi-level ATR projections, and trade signal detection, this indicator provides a comprehensive approach to price action analysis.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Try our free trial today grandalgo.com
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Try our free trial today grandalgo.com
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。