OPEN-SOURCE SCRIPT
AetherEdge Pattern Recognition Trendline

🖊️ Overview
AetherEdge Pattern Recognition Trendline is a next-generation automated pattern recognition indicator that fuses classical chart pattern theory with an AI scoring engine. It detects major patterns such as Head & Shoulders, Double Top/Bottom, Triangle, Wedge, Flag/Pennant, and Rectangle in real time, while quantifying their reliability through a 5-dimensional AI score covering shape fit, symmetry, volume profile, time profile, and trend context. It is the ultimate platform for fully automating the artisanal art of chart analysis.
🔶 Key Features
8 Major Pattern Detections: H&S, IH&S, DT, DB, Triangle, Wedge, Flag/Pennant, Rectangle
5-Dimensional AI Scoring: Shape / Symmetry / Volume / Time / Trend Context
Dynamic Pivot Analysis: Up to 60-pivot historical buffer
Target Zone Projection: Measured-Move-based price targets
Automatic Neckline Drawing: Visualizes breakout reference levels
ATR-Based Tolerance: Allows natural fluctuation in peak/trough heights
Trend Context Evaluation: Incorporates EMA21/55 bias for pattern validity
Break Confirmation Logic: ATR-coefficient-based false-signal filter
Pattern Lifecycle Management: Tracks Detected / Completed / Failed states
Stats Panel: Cumulative count of detections, completions, and failures
🧠 Technical Architecture
This indicator is an advanced system that redefines classical technical theory through AI scoring.
Pivot Detection: Detects pivot highs/lows over pivotLR bars and stores price, bar index, and type (high=1, low=-1) in a structured buffer.
Pattern Library: Each pattern requires at least minPivots pivots and is geometrically validated against shape rules (e.g., H&S: center peak highest, shoulders at similar levels).
Shape Fit Score: Normalizes the deviation from the theoretical ideal using ATR × atrTol.
Symmetry Score: Quantifies time/price symmetry between left and right halves; misshaped patterns score low.
Volume Profile Score: Compares average volume in the early and late halves of the pattern; healthy patterns typically decay in volume during the late phase.
Time Profile Score: Patterns under 15 bars are penalized (0.3), peak around 30 bars (1.0), decay above 80 bars, and become stale beyond 150.
Trend Context Score: Bullish patterns (IH&S, DB, etc.) score higher in uptrends; bearish patterns score higher in downtrends; neutral patterns gain bonus when a clear directional bias exists.
AI Composite Score: Weighted average of all five components, evaluated against the minScore threshold.
Pattern UDT: A type-safe structure holding name, startBar, endBar, neckline, target, stop, score, col, bullish, completed, failed, and line references.
Lifecycle Tracking: Maintains Detected / Completed / Failed counters via the stats array.
⚙️ Recommended Settings & Tuning Guide
Crypto Defaults:
BTC (4H): pivotLR=5, minScore=0.55, atrTol=0.5, zoneFactor=1.0
ETH (1H): pivotLR=4, minScore=0.50, atrTol=0.6, projBars=30
SOL/XRP (15M): pivotLR=3, minScore=0.45, atrTol=0.7, breakConfirm=0.3
Long-Term (1D): pivotLR=8, minScore=0.65, maxLookback=300, zoneFactor=1.5
Tuning Guide:
Strict Mode: minScore=0.70, wShape=0.40 to capture only premium patterns
Relaxed Mode: minScore=0.40, atrTol=0.8 to detect a wider range
Trend-Focused: wTrend=0.30, wShape=0.20 to prioritize trend alignment
Volume-Focused: wVol=0.35 to surface only volume-backed patterns
Symmetry-Focused: wSym=0.30 for clean structures (great for H&S, DT/DB)
Short-Term Scalping: projBars=20, breakConfirm=0.1 for early entries
Long-Term Investing: zoneFactor=1.5–2.0 for larger targets
💡 How to Use in Practice
H&S/DT detected + neckline break: Bearish entry; use target zone as profit objective
IH&S/DB detected + neckline break: Bullish entry; hold until Measured Move target
Triangle detected: Wait for breakout; trade in the direction once breakConfirm is exceeded
Wedge detected: Rising wedge = bearish reversal; falling wedge = bullish reversal
Flag/Pennant: Trend-continuation pattern, ideal for pullback/retest entries
Rectangle: Range trades at extremes; breakouts confirm directionality
Multi-Timeframe: Higher-TF pattern + lower-TF break = high-confidence setup
AetherEdge Synergy: Combine with Quantum-Inspired Breakout Scanner for probability × shape double confirmation
Failed Pattern Edge: A "Failed" verdict often acts as a strong reverse signal
⚠️ Important Notes
Pivot confirmation introduces a pivotLR-bar lag
Patterns are drawn upon completion; exercise caution for real-time entries
Excessively low minScore increases false detections
Patterns longer than maxLookback are excluded
Multiple overlapping patterns may be drawn simultaneously
Volume Score accuracy degrades on instruments with unreliable volume data
🚨 Disclaimer
This indicator is a technical analysis tool provided for educational and research purposes only and does not constitute financial advice. AI scores are evaluations based on historical shape rules and statistical properties and do not guarantee future performance. All trading decisions are made at your own risk and should be accompanied by proper risk management.
AetherEdge Pattern Recognition Trendline is a next-generation automated pattern recognition indicator that fuses classical chart pattern theory with an AI scoring engine. It detects major patterns such as Head & Shoulders, Double Top/Bottom, Triangle, Wedge, Flag/Pennant, and Rectangle in real time, while quantifying their reliability through a 5-dimensional AI score covering shape fit, symmetry, volume profile, time profile, and trend context. It is the ultimate platform for fully automating the artisanal art of chart analysis.
🔶 Key Features
8 Major Pattern Detections: H&S, IH&S, DT, DB, Triangle, Wedge, Flag/Pennant, Rectangle
5-Dimensional AI Scoring: Shape / Symmetry / Volume / Time / Trend Context
Dynamic Pivot Analysis: Up to 60-pivot historical buffer
Target Zone Projection: Measured-Move-based price targets
Automatic Neckline Drawing: Visualizes breakout reference levels
ATR-Based Tolerance: Allows natural fluctuation in peak/trough heights
Trend Context Evaluation: Incorporates EMA21/55 bias for pattern validity
Break Confirmation Logic: ATR-coefficient-based false-signal filter
Pattern Lifecycle Management: Tracks Detected / Completed / Failed states
Stats Panel: Cumulative count of detections, completions, and failures
🧠 Technical Architecture
This indicator is an advanced system that redefines classical technical theory through AI scoring.
Pivot Detection: Detects pivot highs/lows over pivotLR bars and stores price, bar index, and type (high=1, low=-1) in a structured buffer.
Pattern Library: Each pattern requires at least minPivots pivots and is geometrically validated against shape rules (e.g., H&S: center peak highest, shoulders at similar levels).
Shape Fit Score: Normalizes the deviation from the theoretical ideal using ATR × atrTol.
Symmetry Score: Quantifies time/price symmetry between left and right halves; misshaped patterns score low.
Volume Profile Score: Compares average volume in the early and late halves of the pattern; healthy patterns typically decay in volume during the late phase.
Time Profile Score: Patterns under 15 bars are penalized (0.3), peak around 30 bars (1.0), decay above 80 bars, and become stale beyond 150.
Trend Context Score: Bullish patterns (IH&S, DB, etc.) score higher in uptrends; bearish patterns score higher in downtrends; neutral patterns gain bonus when a clear directional bias exists.
AI Composite Score: Weighted average of all five components, evaluated against the minScore threshold.
Pattern UDT: A type-safe structure holding name, startBar, endBar, neckline, target, stop, score, col, bullish, completed, failed, and line references.
Lifecycle Tracking: Maintains Detected / Completed / Failed counters via the stats array.
⚙️ Recommended Settings & Tuning Guide
Crypto Defaults:
BTC (4H): pivotLR=5, minScore=0.55, atrTol=0.5, zoneFactor=1.0
ETH (1H): pivotLR=4, minScore=0.50, atrTol=0.6, projBars=30
SOL/XRP (15M): pivotLR=3, minScore=0.45, atrTol=0.7, breakConfirm=0.3
Long-Term (1D): pivotLR=8, minScore=0.65, maxLookback=300, zoneFactor=1.5
Tuning Guide:
Strict Mode: minScore=0.70, wShape=0.40 to capture only premium patterns
Relaxed Mode: minScore=0.40, atrTol=0.8 to detect a wider range
Trend-Focused: wTrend=0.30, wShape=0.20 to prioritize trend alignment
Volume-Focused: wVol=0.35 to surface only volume-backed patterns
Symmetry-Focused: wSym=0.30 for clean structures (great for H&S, DT/DB)
Short-Term Scalping: projBars=20, breakConfirm=0.1 for early entries
Long-Term Investing: zoneFactor=1.5–2.0 for larger targets
💡 How to Use in Practice
H&S/DT detected + neckline break: Bearish entry; use target zone as profit objective
IH&S/DB detected + neckline break: Bullish entry; hold until Measured Move target
Triangle detected: Wait for breakout; trade in the direction once breakConfirm is exceeded
Wedge detected: Rising wedge = bearish reversal; falling wedge = bullish reversal
Flag/Pennant: Trend-continuation pattern, ideal for pullback/retest entries
Rectangle: Range trades at extremes; breakouts confirm directionality
Multi-Timeframe: Higher-TF pattern + lower-TF break = high-confidence setup
AetherEdge Synergy: Combine with Quantum-Inspired Breakout Scanner for probability × shape double confirmation
Failed Pattern Edge: A "Failed" verdict often acts as a strong reverse signal
⚠️ Important Notes
Pivot confirmation introduces a pivotLR-bar lag
Patterns are drawn upon completion; exercise caution for real-time entries
Excessively low minScore increases false detections
Patterns longer than maxLookback are excluded
Multiple overlapping patterns may be drawn simultaneously
Volume Score accuracy degrades on instruments with unreliable volume data
🚨 Disclaimer
This indicator is a technical analysis tool provided for educational and research purposes only and does not constitute financial advice. AI scores are evaluations based on historical shape rules and statistical properties and do not guarantee future performance. All trading decisions are made at your own risk and should be accompanied by proper risk management.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.