OPEN-SOURCE SCRIPT

Auto Chart Pattern Mapper Pro v2

982
Overview

Auto Chart Pattern Mapper Pro v2 is a technical analysis indicator that scans the most recent price history for recognizable chart patterns using confirmed swing pivots. When a qualifying pattern is detected, the script automatically draws the pattern geometry, projects potential breakout levels, and displays a structured trade plan consisting of a suggested entry, target, and stop.

The indicator is intended to assist with chart analysis by organizing market structure into a visual format. It does not predict future price movement with certainty and should be used alongside a trader's own analysis and risk management.

How the Indicator Works

The script analyzes up to 600 historical candles using confirmed pivot highs and pivot lows to identify price structure.

From these pivots, it compares the geometry against predefined pattern rules including:

Flags
Pennants
Triangles
Rectangles
Double Tops
Double Bottoms
Triple Tops
Triple Bottoms
Head and Shoulders
Inverse Head and Shoulders
Cup and Handle
Inverted Cup and Handle
Rising Wedges
Falling Wedges

When one of these structures meets the script's requirements, the indicator highlights the pattern directly on the chart.

Additional Confirmation

In addition to pattern recognition, the script evaluates several technical conditions that may provide additional context:

Higher-timeframe EMA trend alignment
Relative volume compared to a moving average
Basic market structure (higher highs/higher lows or lower highs/lower lows)
Break of market structure
Fair Value Gap (FVG) detection
Simple Order Block detection

These factors contribute to an internal setup score used to help organize qualifying patterns.

Chart Display

When a qualifying pattern is detected, the indicator can display:

Pattern boundaries
Swing geometry
Trendline projections
Pattern highlight zone
Fair Value Gap zones
Order Block zones
Entry level
Target level
Stop level

A dashboard summarizes the current analysis.

Dashboard

The dashboard displays:

Current pattern
Bullish or bearish bias
Overall setup score
Higher-timeframe trend
Relative volume
Market structure
Fair Value Gap status
Entry
Target
Stop
Estimated reward-to-risk ratio
Inputs

The indicator allows users to customize:

Analysis lookback period
Pivot sensitivity
Pattern tolerance
ATR filters
Higher-timeframe confirmation
Volume confirmation
Fair Value Gap confirmation
Order Block confirmation
Market structure confirmation
Entry buffer
Stop buffer
Target projection
Minimum setup score
Display options

These settings allow the indicator to be adjusted for different markets and timeframes.

Suggested Workflow
Apply the indicator to a chart.
Allow the script to identify a completed pattern.
Review the displayed pattern and dashboard.
Compare the suggested trade plan with your own market analysis.
Wait for price to confirm the breakout before considering any trading decision.
Manage risk according to your own trading plan.
Notes
Pattern recognition is based on confirmed historical pivots. As a result, patterns are identified after sufficient price confirmation rather than at the exact turning point.
The setup score is an internal ranking based on the script's rules and should not be interpreted as a probability of success.
Entry, target, and stop levels are calculated using the detected pattern geometry and user-defined ATR settings.
This indicator is designed as a chart analysis tool and does not provide financial or investment advice. Past market behavior does not guarantee future results.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.