Hedge EA V4
Hedge EA V4 — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Judging by its name, it is built around hedged buy / sell positions. This copy is version 4. It can hold buy and sell positions together and can size trades from your risk. It has 24 settings, for example Expert Name (default HedgeEA V.4), Magic (default 1001) and Symbol1 (default GBPJPY). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. Inside: 1 EA file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.
Expert advisor · MT4 · v4 · Free
About Hedge EA V4
Hedge EA V4 is an expert advisor (trading robot) for MetaTrader 4. It can hold buy and sell positions at the same time (hedging) and can size trades from your balance and risk percent. It has 24 settings, such as Expert name, Magic and Symbol1. MQL source code included.
Files in the download: HedgeEA_v4.mq4.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Expert name | HedgeEA V.4 | |
| Magic | 1001 | Magic Number ( 0 - for All positions) |
| Symbol1 | GBPJPY | |
| Symbol1is long | true | |
| Symbol2 | CHFJPY | |
| Symbol2is long | false | |
| Lotsizes | Set Ratio to 1 to use equal | |
| Lots | 0.1 | Lots |
| Ratio | 1.8 | |
| Data | Input Data | |
| Stop manage acc | false | Stop of Manage Account switch(Close All Trades) |
| Use pips | false | |
| Profit target | 50 | Profit target in pips or USD |
| Max loss | 0 | Maximum total loss in pips or USD |
| Data2 | Correlation Settings | |
| Use correlation | false | If the correlation is used to check before put new Orders |
| Min correlation | 0.8 | |
| Max correlation | 1.0 | |
| Data3 | SWAP Settings | |
| Use swap | true | |
| Data4 | Money Management | |
| Account is micro | false | |
| Money management | true | |
| Risk | 15 | 10% |
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: Hedging · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code