Consensus Copier
Following a single signal source means every one of that source's bad calls becomes this account's bad call. This EA reads up to eight independent feed files - each one a plain direction and timestamp, nothing else - and only opens a trade once at least K of them agree on the same direction within a configurable agreement window. A single noisy, lagging, or occasionally wrong feed can no longer move the account on its own; it has to be corroborated by other genuinely independent sources first. Agreement is judged per direction, not globally: for each candidate direction (BUY, then SELL) the EA finds the newest vote for that direction, then counts how many other votes for the same direction fall within InpAgreementWindowSec of that newest one. A feed that has gone silent (its most recent line older than InpMaxSignalAgeSec) simply stops counting toward consensus rather than being treated as an implicit vote either way. If the account is already holding a consensus-opened position and a fresh, equally-strong consensus later forms in the opposite direction, the EA treats that as a genuine reversal signal and closes the existing position - it does not wait for the position's own stop or target. Notes and limitations - Consensus is evaluated only on direction and freshness - it does not weigh feeds by historical reliability. A feed that is right 90% of the time counts exactly the same as one that is right 50% of the time. - If the winning consensus count later drops below K while a position is held, that alone does not close the position - only an opposing consensus of at least K does. A fading-but-not-reversing consensus is not treated as an exit signal. - This EA does not write any feed file itself - each master/bridge side producing those files is outside this project's scope. - Fixed lot size only; it does not re-derive position size from equity or risk percent (see Risk Remapping Copier elsewhere in this catalogue for that concern).
Expert advisor · MT4 · v1.0 · Free
About Consensus Copier
Consensus Copier is an expert advisor (trading robot) for MetaTrader 4. It has 16 settings, such as Symbol, Feed file1 and Feed file2. MQL source code included.
Files in the download: ConsensusCopier.ex4, ConsensusCopier.mq4, ConsensusCopier.txt.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Symbol | EURUSD | Symbol this consensus copier trades |
| Feed file1 | consensus_feed1.csv | Master feed file 1, in MQL4\Files\; blank = unused |
| Feed file2 | consensus_feed2.csv | Master feed file 2; blank = unused |
| Feed file3 | consensus_feed3.csv | Master feed file 3; blank = unused |
| Feed file4 | consensus_feed4.csv | Master feed file 4; blank = unused |
| Feed file5 | Master feed file 5; blank = unused | |
| Feed file6 | Master feed file 6; blank = unused | |
| Feed file7 | Master feed file 7; blank = unused | |
| Feed file8 | Master feed file 8; blank = unused | |
| Min agree count | 3 | K: minimum number of feeds that must agree on direction |
| Agreement window sec | 120 | Feeds must have signalled within this many seconds of each other |
| Max signal age sec | 180 | A feed's most recent signal older than this is treated as silent |
| Lots | 0.10 | Fixed lot size for the consensus trade |
| Magic number | 47300 | Magic number stamped on orders this EA opens |
| Slippage points | 30 | Maximum acceptable slippage, in points |
| Poll interval sec | 2 | Seconds between checks of the feed files |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
- Test it first on a demo account or in the Strategy Tester.
Tags: Buy/Sell Arrows · Trade Copier · MT4 Expert Advisor · MQL4 Source Code