Harmonic Trader EA Pro
- Experts
- 버전: 1.3
- 활성화: 5
Harmonic Pattern EA is a multi-timeframe Expert Advisor for MetaTrader 5 that detects Bat, Gartley, Crab, Butterfly, Shark, Cypher, 5-0 and AB=CD harmonic patterns with an internal ZigZag pivot engine. For every detected pattern it draws the pattern legs, the Potential Reversal Zone (PRZ), the stop loss level and the Fibonacci take profit projection directly on the chart. A built-in dashboard reports the signal status of every configured symbol and timeframe and offers manual Buy, Sell and Close buttons per symbol. Positions can be sized as a fixed lot or as a percentage of the account balance, and the EA provides daily loss and win limits, a per-symbol losing-trade limit, a cap on the number of simultaneously open symbols, weekday trading-hour filters and an optional trailing stop.
Each pattern is validated against its own Fibonacci ratio window for the XB, AC, BD and XD legs (and the AB=CD ratio where applicable), with the ratio windows expressed in the 15-level Fibonacci table used by the EA. Two independent tolerance settings control how strict the validation is: one set of tolerances for the B, C and D points and one set for the PRZ range.
Pivot detection
Two pivot engines are available:
- Internal ZigZag (default) — a ZigZag engine implemented inside the EA. The Depth, Deviation and Backstep parameters follow the classic ZigZag logic. The EA does not load any external indicator, so there is no dependency on the presence of the standard ZigZag indicator in the terminal.
- Pivot Left/Right — a classic fractal pivot detection based on the number of bars to the left and to the right of the pivot, plus a separate "right start" value used for the first pivot of a leg.
Signal and confirmation logic
For every closed bar the EA checks whether a valid pattern exists. When a pattern is valid, the EA records:
- the pattern name and direction,
- the Potential Reversal Zone (PRZ),
- the stop loss level derived from the pattern's own Fibonacci structure,
- the take profit level derived from the AD leg (TP1 at 0.382 AD, TP2 at 0.618 AD).
A signal is treated as confirmed only when price closes beyond the PRZ in the direction of the pattern. Automatic trading uses confirmed signals only. Manual buttons on the dashboard are also available for discretionary execution.
Trade management
- Every automatic market order is sent with a stop loss. If the pattern does not produce a valid stop loss level, the order is skipped and the reason is written to the Experts journal.
- The EA verifies the broker's minimum stop distance before sending an order and adjusts the request accordingly, so orders are not rejected because of an invalid stop level.
- Free margin is verified with the terminal's margin calculation before sending.
- Volume is validated against the symbol's minimum volume, maximum volume and volume step.
- The filling mode is selected from the modes supported by the symbol, and the execution mode is taken into account (including exchange execution).
- Sending is retried up to three times with a short delay when the trade server rejects a request.
- An optional trailing stop moves the stop loss only when the configured start level has been reached, and only by the configured step. It also respects the broker's stop level and freeze level.
Dashboard
The dashboard is drawn on the chart in the corner selected by the display inputs. It contains:
- a header with the EA name, a close button and an expand/collapse button,
- a column per configured timeframe,
- a row per configured symbol, with the current signal of each timeframe,
- a Buy, a Sell and a Close button for each symbol,
- a floating profit/loss value per symbol and a total value,
- a scan time indicator in milliseconds.
Clicking a timeframe cell switches the chart to that symbol and timeframe. Clicking Buy or Sell opens a position in the direction of the signal present on that symbol after a confirmation dialog. Clicking Close closes the EA positions of that symbol. The dashboard reacts to the chart's click events and can be collapsed to a single header line.
Alerts
Signals can be reported through three independent channels, each one optional:
- terminal alert window,
- push notification to the MetaTrader 5 mobile application,
- email message.
An alert is generated once per bar per symbol and timeframe, so the same signal is not repeated on every tick.
Risk controls
- Fixed lot or risk percentage position sizing. In risk mode the lot is derived from the stop loss distance and the symbol's tick value, so the potential loss approximates the configured percentage of the account balance.
- Per-symbol losing-trade limit — stop opening new trades on a symbol after a configured number of losing closed trades in the current day.
- Daily loss limit and daily win limit in account currency — when reached, the EA closes all of its positions and stops trading for the rest of the day.
- Group profit target — when the floating profit of all EA positions reaches the configured amount, all EA positions are closed.
- Maximum number of open symbols — the EA stops opening new positions when the configured number of symbols already has open positions.
- Weekday filters — each weekday can be enabled or disabled, with its own start and stop time in server time.
