OPEN-SOURCE SCRIPT
Auto Chart Pattern Mapper Pro v2

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.
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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.