Hedge EA V6.5 2 2
This Old Kings expert advisor (trading robot) for MetaTrader 4 is called Hedge EA V6.5 2 2. Its name points to hedged buy / sell positions. The file name marks it as version 6.5.2. In the code it works with moving averages and Bollinger Bands. It can size trades from your risk and handles several symbols. It has 34 settings, for example eaname (default [6.3]), Magic (default 1001) and Autotrade (default true). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. 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 · v6.5 · Free
About Hedge EA V6.5 2 2
Hedge EA V6.5 2 2 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average and Bollinger Bands. It can size trades from your balance and risk percent and works on several symbols at once. It has 34 settings, such as Eaname, Magic and Autotrade. MQL source code included.
Files in the download: HedgeEA_v6.5(Bullforyou.com).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 |
|---|---|---|
| Eaname | [6.3] | Expert Name and first part of comment line |
| Magic | 1001 | Magic Number ( 0 - for All positions) |
| Autotrade | true | Set to false to prevent an entry after an exit |
| Symbol1 | GBPJPY | |
| Symbol1is long | true | Set to true to put long orders on the second pair |
| Symbol2 | CHFJPY | |
| Symbol2is long | false | Set to true to put long orders on the second pair |
| Lotsizes | Set Ratio to 1 to use equal | |
| Lots | 0.1 | Lots for first pair if MM is turned off |
| Use auto ratio | true | |
| Ratio | 1.8 | Ratio between the two pairs |
| Sma value for range | 200 | |
| Data | Input Data | |
| Stop manage acc | false | Stop of Manage Account switch(Close All Trades) |
| Max loss | 0 | Maximum total loss in pips or USD |
| Data2 | Correlation Settings | |
| Use correlation | true | Set to true if you want to use correlation as an entry signal |
| C period | 20 | If the correlation is used to check before put new Orders |
| Min correlation | 0.8 | |
| Max correlation | 1.0 | |
| Data3 | Bollinger Band Settings | |
| Use bollinger | false | Set to true to use Bollinger bands as an entry signal |
| Bollinger symbol | GBPCHF | |
| Bollinger period | 20 | Period must be in minutes |
| Bollinger tf | 60 | |
| Bollinger dev | 2 | |
| Data4 | SWAP Settings | |
| Use swap | true | Select true if you want to use swap on profit calculation |
| Data5 | Money Management | |
| Profit target | 50 | Profit target in pips or USD |
| Money management | true | |
| Risk | 20 | Risk |
| Auto profit | true | When the price of Bolliner pair passes the Upper Bollinger close all trades |
| Email report | false | Turn this alert on or off |
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 · Multi-Currency · Moving Average · Bollinger Bands · MT4 Expert Advisor · MQL4 Source Code