Harmoni Companion EA
- エキスパート
- バージョン: 1.5
- アクティベーション: 5
HarmoniCompanion trades the signals of the HarmoniPredict harmonic pattern indicator. It takes every new signal HarmoniPredict publishes, on every symbol and timeframe it scans, sizes the position from your risk setting, and manages the exit by rule: partial closes at each profit target, a breakeven stop, and a trailing stop after TP2.
Requirements
Live, HarmoniCompanion needs HarmoniPredict running on a chart in the same terminal. Attach HarmoniCompanion to any one chart; it receives the signals of every pair HarmoniPredict scans and trades each on its own symbol. It never opens a trade without a HarmoniPredict signal.
In the Strategy Tester, nothing else is needed. HarmoniCompanion contains the indicator's signal engine and trades the tested symbol from it, so you can test it before buying either product.
How it trades
HarmoniPredict follows each harmonic pattern through its lifecycle and publishes events as they happen. Choose which ones HarmoniCompanion trades:
- First entry signal only (default): one trade per pattern, on its activation.
- All entry signals: the activation and up to a set number of later re-entries.
- PRZ touched: one trade when price first touches the Price Reversal Zone.
- All events: PRZ touch, activation and re-entries, as several trades per pattern.
With the indicator's default XA-level entry, HarmoniCompanion can place a limit order at the XA level before price arrives. It is cancelled when the pattern's time window ends or the pattern breaks. If price touches the level without a fill, a market order follows.
Every order uses the pattern's own stop loss and profit targets from HarmoniPredict.
Filters
A signal is traded only if it passes the filters you set:
- symbols and timeframes (default M15 to D1)
- direction: long, short or both
- pattern type: each of the nine patterns has its own switch
- minimum quality score (default 65)
- maximum spread, and how far price may have run from the signal's entry
- maximum open trades in total and per symbol
It also skips a signal when price has already passed the stop or TP1, when the stop is inside the broker's stops level, or when the margin isn't there.
Position size and risk
- Risk a percentage of balance per trade (default 1%), sized from the distance to the stop, or trade fixed lots.
- In the multi-entry modes, the percentage is a budget per pattern, shared between its entries by weights you choose.
- A cap on the open risk of all trades together (default 5% of balance). A trade whose stop is at breakeven no longer counts.
- Stops closer than half an ATR are widened, with the size reduced so the money at risk stays the same.
Exits
- Close a share of the trade at TP1, TP2 and TP3 (default 50%, 30% and 20%).
- Optionally bank part of the trade at 2R, before TP1.
- Move the stop to breakeven at 1R, including costs and a small buffer.
- Move the stop to entry at TP1 and to TP1 at TP2, then trail it after TP2.
- Optionally close after a set number of bars.
Each trade's exit state is saved in the terminal, so a restart doesn't lose track of what has been done.
Info panel
A compact panel in the HarmoniPredict style shows the connection to the indicator, trading status, open trades with their stage and profit, today's closed profit, and the last signals with the reason each was taken or skipped. One click pauses new trades while open ones are still managed. Click a trade to open its chart.
Getting started
- Attach HarmoniPredict to a chart and set the symbols and timeframes it scans.
- Attach HarmoniCompanion to any chart in the same terminal and allow algo trading.
- Check the panel shows the indicator as connected. Only signals published after HarmoniCompanion starts are traded.
- Test your settings in the Strategy Tester and on a demo account before trading live.
Run one copy per terminal. HarmoniCompanion manages only its own trades, identified by its magic number.
Trading involves risk of loss. Harmonic patterns do not predict price, and past results in testing do not guarantee future results. Choose a risk setting you can afford.
Input parameters
Paste this table into the description below the line above, or into a linked blog post. Names match the inputs dialog of version 1.05.
| Group | Input | Default | What it does |
|---|---|---|---|
| Signals | Trade Only These Symbols | empty (all) | Comma list of symbols to trade |
| Signals | Trade Only These Timeframes | M15, M30, H1, H4, D1 | Signal timeframes to trade (empty = all) |
| Signals | Trade Direction | Long and short | Long only, short only or both |
| Signals | Minimum Quality Score | 65 | Skip signals scoring below it (0 = any) |
| Signals | Trade Which Signals | Only first entry signal | PRZ touched, first entry signal, all entry signals, or all events |
| Signals | Max Re-entries Per Pattern | 2 | Re-entry trades per pattern in the all-entry modes |
| Signals | Trade Gartley … Trade Nen-Star | true | One switch per pattern type |
| Entry | Place A Limit Order At The XA Level Before The Touch | true | Limit order at the XA level while a pattern waits for the touch |
| Entry | Max Price Run From Signal Entry (x risk) | 0 (off) | Skip a signal once price has moved this far from its entry |
| Entry | Widen A Stop Closer Than This To Entry (x ATR) | 0.5 | Widens very tight stops; size is reduced to keep the risk |
| Entry | Max Spread (points) | 0 (off) | Skip a signal when the spread is wider |
| Entry | Max Open Trades Per Symbol / In Total | 0 (no limit) | Trade-count limits |
| Exit | Close % Of The Trade At TP1 / TP2 / TP3 | 50 / 30 / 20 | Partial closes; the level reaching 100% becomes the take profit |
| Exit | Move The Stop To Break-Even At This Profit (x risk) | 1.0 | Breakeven at 1R (0 = off) |
| Exit | Break-Even Padding Beyond Costs (points) | 10 | Buffer added to entry plus costs |
| Exit | Bank Part Of The Trade At This Profit (x risk) | 2.0 | Partial close before TP1 (0 = off) |
| Exit | % Of The Trade Banked There | 50 | Share closed at that profit |
| Exit | Move The Stop To Entry At TP1 | true | Stop to entry when TP1 is reached |
| Exit | Move The Stop To TP1 At TP2 | true | Stop to TP1 when TP2 is reached |
| Exit | Trail Stop Loss After TP2 | true | Trails at the TP1–TP2 distance |
| Exit | Close After N Bars Of The Signal's Timeframe | 0 (off) | Time exit |
| Risk | Position Size | Percent of balance at risk | Or fixed lots |
| Risk | Fixed Lots | 0.01 | Used in fixed-lot mode |
| Risk | Risk Per Trade (% of balance) | 1.0 | Per trade; per pattern in the all-entry modes |
| Risk | Weight Of The PRZ Touch / Entry Signal / Each Re-entry | 30 / 40 / 15 | How a pattern's budget is shared in the all-entry modes |
| Risk | Max Open Risk Of All Trades (% of balance) | 5.0 | Cap on total open risk (0 = off) |
| Execution | Magic Number | 211559 | Identifies HarmoniCompanion's trades |
| Execution | Max Slippage (points) | 10 | Slippage allowed on market orders |
| Execution | Order Comment Prefix | HC | Prefix of the order comment |
| Execution | Enable Logging | true | Trade actions in the Experts journal |
| Panel | Show Info Panel / Panel Position / Panel Font Size | true / upper right / 8 | Panel display |
