INVITE-ONLY SCRIPT
已更新

TRharmonic Ultimate

232

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.
快照

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

快照

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.

快照

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.
快照

Pattern labels display Fibonacci ratios directly on formations, providing transparency in detection criteria.
版本注释
Updated to Pine Script v6
版本注释

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
版本注释
minor bug fixed
版本注释
The TP1 error belonging to the Alternate Bat Pattern has been fixed
版本注释
The zigzag algorithm has been modified, toggle switches have been added to enable/disable pattern groups, and the triangle pattern logic has been updated
版本注释
Double top and double bottom labels have been corrected
版本注释
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.
版本注释
Triangle patterns detection logic has been redesigned from Fibonacci-based detection to slope-based detection.
版本注释
A dedicated angular detection algorithm was developed to accurately identify triangle chart patterns.
Stop-loss levels have been optimized specifically for 4-point, 5-point, and 6-point triangle formations.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。