INVITE-ONLY SCRIPT
Mis à jour

TRharmonic Ultimate

215

TRharmonic Ultimate - Professional Harmonic Pattern Detection System
Technical Overview
TRharmonic Ultimate is a real-time harmonic pattern recognition system built on Pine Script v5. The system analyzes 25+ harmonic formations across multiple ZigZag depths simultaneously, providing traders with instant pattern detection and pre-calculated trading levels.

Core Features
The indicator uses a zero-lag ZigZag algorithm with right offset set to 0, eliminating the typical 1-5 bar delay found in standard pivot-based systems.

Pattern detection operates across 10 simultaneous ZigZag depth calculations ranging from 15 to 150 bars, ensuring coverage of both short-term and long-term formations.

Each detected pattern includes automatically calculated entry price, stop loss, and three take-profit levels based on standard Fibonacci retracement principles.

The system validates patterns using adjustable tolerance bands between 7% and 10%, allowing traders to balance between detection sensitivity and accuracy.

MACD confirmation can be optionally enabled to filter signals, reducing false positives by requiring momentum alignment with pattern direction.

Dragon pattern detection uses proprietary ratio validation specifically designed for this rare formation's unique Fibonacci relationships.
snapshot

Wolfe Wave recognition includes full 6-point structure analysis with automatic EPA (Estimated Price Arrival) line projection.

snapshot

The algorithm performs geometric validation beyond simple ratio checking, including trendline mathematics and positional requirements.

Pattern drawings automatically adapt to chart theme (dark/light mode) with customizable color schemes for all 25+ formations.



A built-in deduplication system prevents multiple alerts for the same pattern within a specified bar range.

Technical Advantages
The ZigZag calculation method processes pivot points in real-time without requiring bar closure confirmation.

snapshot

Memory management is optimized to handle 500+ bars of historical data while maintaining calculation speed.

Pattern-specific algorithms account for individual formation characteristics rather than using generic detection logic.

The system can detect rare patterns like Dragon and Wolfe Wave that most commercial indicators cannot identify reliably.

All Fibonacci calculations are performed automatically, eliminating manual measurement errors common in discretionary trading.

The indicator maintains clean chart visualization by automatically removing outdated pattern drawings after a configurable time period.


Multi-layer validation processes include ratio checks, geometric positioning, and optional momentum confirmation.
snapshot

Pattern labels display Fibonacci ratios directly on formations, providing transparency in detection criteria.
Notes de version
Updated to Pine Script v6
Notes de version

MACD confirmation function getMacdConfirmation() was defined but never used in any pattern detection
All 32 patterns were missing MACD confirmation checks
Pattern detection was working without momentum confirmation
Notes de version
minor bug fixed
Notes de version
The TP1 error belonging to the Alternate Bat Pattern has been fixed
Notes de version
The zigzag algorithm has been modified, toggle switches have been added to enable/disable pattern groups, and the triangle pattern logic has been updated
Notes de version
Double top and double bottom labels have been corrected
Notes de version
We implemented an ATR-based noise filter and right=0 realtime pivots in the ZigZag engine, and aligned the MACD confirmation logic with the new fast-detection design for more responsive and cleaner pattern signals.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.