TRharmonic v21
- 지표
- Muhammed Rasid Bakir
- 버전: 20.0
- 활성화: 5
TRharmonic v21 — Harmonic Pattern Detector
A professional MetaTrader 5 harmonic pattern indicator. Detects 29 classic and advanced pattern types in real time, automatically projects Entry, SL, TP1, TP2, and TP3 levels at every pattern commit, and locks active patterns at bar close (no repaint). Works with every broker and produces consistent signals across forex, metals, indices, crypto, and stocks.
What It Does
- Detects 29 harmonic patterns in real time (Classic, Advanced, Anti, Swan, Exotic groups)
- Calculates and draws SL / TP1 / TP2 / TP3 levels on every pattern commit
- Locks the D point the moment its bar closes; no repaint as standard
- 8 gate CurveCast + TRE confirmation engine filters for high quality signals
- Optional Potential Reversal Zones (PRZ) and multi timeframe scanning
Pattern Library (29)
- Classic (10): Gartley, Bat, Alternate Bat, Butterfly, Crab, Deep Crab, Shark, AB=CD, ABCD Extension, 5-0
- Advanced (4): EW Impulsive, Dragon, Wolfe Wave, 3-Drives
- Anti (5): Anti-Gartley, Anti-Bat, Anti-Butterfly, Anti-Crab, Anti-Shark — trend continuation signals
- Swan (2): Black Swan, White Swan — extreme reversals
- Exotic (8): Nenstar, Leonardo, Cypher, Anti-Cypher, Alternate Shark, Partizan, Navarro, Anti-Nenstar
Alert Routing
Every pattern commit, TP hit, SL, BE exit, TP1 trail exit, expiration, and invalidation event fans out to the following routes, each independently togglable:
- MT5 Terminal popup (Alerts tab, timestamped)
- Per event sound cues (separate .wav for pattern commit / TP / SL / invalidation)
- On chart toast cards (top right, auto-expiring)
- MetaQuotes ID mobile push notifications
- Email via MT5 SMTP configuration
Cooldown on a (patternId, kind) basis prevents the same event from firing twice in rapid succession.
Themes
- CORPORATE — deep navy background, cyan/teal accent; standard office use
- OBSIDIAN — near black violet background, mint/coral accent; low light environments
- LIGHT — light background, Flat UI palette; daylight
- CUSTOM — all colors user defined (background, accents, panel, gold)
Preset Profiles
- BEGINNER: Conservative: strict confirmation threshold (7 of 8), Classic + Advanced groups only, maximum 3 active patterns
- BALANCED: Balanced default: mid confirmation threshold (5 of 8), all groups on, maximum 10 active patterns
- PRO: Broader coverage: mid confirmation threshold (5 of 8), all groups on, maximum 10 active patterns
- CUSTOM: All parameters honored from individual user inputs; full manual control
Who It Is For
- Manual harmonic traders — eliminates the burden of pattern detection and level calculation
- Algorithmic traders — use alert / email integration to trigger external EAs
- Analysts — PRZ projections provide pre commit zone visualization
Compatibility
- MetaTrader 5 (build 3000 and above)
- All brokers; no broker specific dependencies
- Forex (majors + crosses), metals (XAU / XAG), indices (S&P 500, DAX, etc.), crypto (BTC / ETH / alt), stocks
- All timeframes (M1 through W1); per timeframe optimized presets (AUTO, FAST, MEDIUM, TREND modes)
Pattern Colors — Lifecycle States
The indicator uses color to convey the current state of every pattern at a glance:
| Color | State | Meaning |
| Vibrant (bull green / bear red) | ACTIVE | The pattern is being tracked. SL / TP / BE events can still occur. The pattern has not closed or been invalidated within the tracking window (200 bars by default). |
| Sepia brown | CLOSED | The trade has ended, whether by TP3 hit, SL hit, break-even stop, TP1 trail exit, or tracking expiration. The pattern is not removed from the chart; it remains in brown as a historical reference. No further events fire. |
| Gray dashed | INVALIDATED | The pattern is structurally broken: price crossed through the D level in the opposite direction (D+3 rule) or a structural invalidation occurred. The pattern is marked with a gray dashed outline. Any open position tied to this pattern should be reviewed manually. |
Trade Closing — Three Stage Ladder
When a pattern commits, the indicator calculates four levels: Entry, SL, TP1, TP2, TP3. Trade management follows a strict three stage ladder exit system. Hitting each level closes part of the position AND moves the stop up. Net effect: no full risk loss (full minus 1R) happens after TP1; no full opportunity loss happens before TP3.
Ladder Flow
- Entry and SL: When a pattern commits, the Entry price is locked at the D point. The SL is assigned based on the pattern type to either the X level or a Fibonacci depth. The original SL represents a full 1R risk.
- TP1 Hit (Stage 1): When price reaches TP1: 50 percent of the position is closed. The SL moves from Entry to the Entry price itself, known as Break Even (BE). From this moment: (a) if price reverses, the SL equals Entry closes the residual half at zero and the composite result is about plus 0.5R; (b) if price continues, we progress to TP2.
- TP2 Hit (Stage 2): When price reaches TP2: another 25 percent of the original position (half of the remaining 50 percent) is closed. The SL moves to TP1, which is called a TP1 trail and locks in at least plus 1R on the remaining 25 percent. From this moment: (a) if price reverses to TP1, the residual closes at the locked plus 1R; (b) if price continues, we progress to TP3.
- TP3 Hit (Stage 3 — Final): When price reaches TP3: the remaining 25 percent of the position closes. The trade is fully complete. The pattern turns sepia brown. Composite result on a full ladder TP1 + TP2 + TP3 is roughly plus 2.0R.
Lifecycle Events
The following events are monitored throughout the tracking window (default 200 bars) and routed to the configured alert channels:
- SL Hit (No TP reached): Price touched the original SL level without any TP being hit. The full position closes. Result: minus 1R. The pattern turns sepia brown.
- BE Exit (After TP1): After TP1 triggered, price returned to the Entry level; the remaining 50 percent of the position closed at Entry. The TP1 leg had already booked plus 1R on its half, so the BE exit contributes 0R. Composite result: about plus 0.5R. The pattern turns sepia brown.
- TP1 Trail Exit (After TP2): After TP2 triggered, price returned to the TP1 level; the remaining 25 percent of the position closed at TP1. The TP1 and TP2 legs had already booked profit; the TP1 trail exit locked plus 1R on the residual. Composite result: about plus 1.5R. The pattern turns sepia brown.
- TP3 Hit (Final Target): The remaining position closed at TP3. The trade completed successfully. Composite result: about plus 2.0R. The pattern turns sepia brown.
- Expired: The tracking window (InpTrackingMaxBars, default 200) closed without any SL, TP, or invalidation event. The pattern is marked expired, which is a passive end. The user must manage any remaining residual position manually. The pattern turns sepia brown.
- Invalidated: Price crossed the structural D reference level of the pattern (D+3 rule or structural break). The pattern is considered geometrically broken. It is marked with a gray dashed outline. The user must manually manage any open position.
This color and lifecycle scheme applies uniformly across all 29 pattern types. Reading the three states at a glance (active, closed, invalidated) lets you quickly assess the current state of your portfolio.
