Sure Forex Hedging
Sure Forex Hedging is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. Its name points to hedged buy / sell positions. It raises the lot size after losses (martingale — high risk), can hold buy and sell positions together and places pending orders. It has 27 settings, for example initial deal (default 0), stoploss (default 60) and takeprofit (default 30). 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 · v1.0 · Free
About Sure Forex Hedging
Sure Forex Hedging is an expert advisor (trading robot) for MetaTrader 4. It increases the lot size after a losing trade (martingale), can hold buy and sell positions at the same time (hedging) and places pending buy/sell stop or limit orders. It has 27 settings, such as Initial deal, Stoploss and Takeprofit. MQL source code included.
It also can size trades from your balance and risk percent.
Files in the download: SureForexHedging.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 |
|---|---|---|
| Initial deal | 0 | Direction of initial deal: 0 - buy deal, 1 - sell deal, other values - new opening disabled |
| Stoploss | 60 | Stoploss for all deals |
| Takeprofit | 30 | takeprofit for all deals |
| Fixed lot | 0.1 | If > 0, the initial deal will be opened with this lot |
| Deposit lot | 0 | If fixed_lot is 0 and deposit_lot > 0, initial deal will be opened with volume Balance / deposit_lot |
| Martin koeff1 | 3 | Lot multiplier for first hedging deal |
| Martin koeff2 | 2 | Lot multiplier for second, third and further hedging deals |
| Enable daily profit | 0 | Enable option to stop trading if a daily profit exceeds following values (it considers profit for AL |
| Daily profit | 0 | Daily profit in the account currency |
| Daily profit percent | 0 | Daily profit as a percent to Balance of start of the day |
| Distance0 | 30 | If > 0, distance for placing 1-st hedging deal |
| Distance1 | 0 | If > 0, distance for placing 2-nd hedging deal |
| Distance2 | 0 | If > 0, distance for placing 3-rd hedging deal |
| Distance3 | 0 | If > 0, distance for placing 4-th hedging deal |
| Distance4 | 0 | If > 0, distance for placing 5-th hedging deal |
| Distance5 | 0 | If > 0, distance for placing 6-th hedging deal |
| Distance6 | 0 | If > 0, distance for placing 7-th hedging deal |
| Distance7 | 0 | If > 0, distance for placing 8-th hedging deal |
| Distance8 | 0 | If > 0, distance for placing 9-th hedging deal |
| Distance9 | 0 | If > 0, distance for placing 10-th hedging deal |
| Normal spread | 0 | This value in pips is substracted from SELL takeprofit and added to SELL stoploss to consider the sp |
| Sep0 | common EA settings | |
| Params digits | 4 | If = 4, then stoploss, takeprofit and distances are specified in 4-digit points, if = 5, then in 5-d |
| Initial magic | 123000 | Initial magic number for 1-st deal. Hedging deals add 1 to this number |
| Market execution | 0 | Set to 1 for ECN and STP accounts (stoploss and takeprofit are modified only after an order is sent) |
| Command attempts | 5 | Number of simultaneous attempts of sending broker requests (if some error occurs) |
| Max slippage | 10 | Maximum slippage |
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 · Martingale · Pending Orders · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code