
- MetaTrader 4
- Expert Advisor
- v2.0
- Updated: 11/11/2026
Royal Hedge Fund EA Source Code (MQ4)
Editable MQL4 source for a hedging and scalping EA on MetaTrader 4, built for the M5 chart, with two set files
- MetaTrader 4, version 2.0
- Symbols: EURUSD, US30, NAS100, US100
- M5 timeframe, hedging and scalping logic
- 1 compiled file, 1 source file and 2 set files
- Recommended minimum deposit: $100
Choose how to get it
Digital product — download after payment
Free to try: edit it in the Builder, backtest, download the EA.
Builds an MT5 version
Download right after payment
Refund policy
Refunds within 7 days of purchase for a broken or mismatched file, a duplicate charge, or a paid order without download access. No refund once a working file is downloaded, and no profit guarantee.
Read the refund policyRoyal Hedge Fund is an expert advisor for MetaTrader 4, and this download gives you its editable MQL4 source code next to the compiled file.
- Platform: MetaTrader 4 · Version 2.0
- Symbols: EURUSD, US30, NAS100, US100 · Timeframe: M5
- Strategy: hedging, scalping · Grid/martingale: not mentioned
- Recommended minimum deposit: $100
- In the package: full MQL4 source code (editable), 1 compiled file, 2 set files
This Royal Hedge Fund source code MQ4 package is for traders and developers who want to open an expert advisor in MetaEditor and read how it works. The EA is written for MetaTrader 4 and, as listed, combines hedging with scalping on the M5 chart.
Hedging here means holding buy and sell positions on the same symbol at the same time. Scalping means aiming at small moves with short trades. The listing names EURUSD, US30, NAS100 and US100 as the symbols, and version 2.0 as the release.
The download contains one compiled file, one source file and two set files. A set file is a saved list of input settings that you load from the EA's inputs window. There is no PDF and no DLL in the package.
The source suits people who like to study the logic or adjust it for their own testing. Any change you make is your own work, and nothing here promises that an edited version will behave well. Open the Strategy & Settings tab for the strategy details, or check the source code catalogue for other MQ4 and MQ5 files. If you want to compare approaches, Algo Samurai EA Source Code (MQ4) (also hedging) and Forex Envy EA Source Code (MQ4) (grid and scalping) are listed with grid or martingale logic, unlike this one.
Like every product here, it is also included in the membership, and you can download it right after payment.
Trading foreign exchange and CFDs carries a high level of risk and may not be suitable for all investors. Past performance does not guarantee future results; only trade with money you can afford to lose.
Strategy type
The listing describes the logic as hedging and scalping. Grid and martingale use are not mentioned in the facts, so this page makes no statement about them. Read the source to see exactly how orders are opened and sized before you rely on it.
Symbols and timeframe
Listed symbols are EURUSD, US30, NAS100 and US100, all on the M5 timeframe. US30 and NAS100 are index CFDs, and their names can differ between brokers, so check how your broker labels them in Market Watch.
Deposit and set files
The recommended minimum deposit is $100. The package has two set files, and each one is a starting configuration to load and review, not a recommendation of results. Open the inputs after loading and check every value against your own account.
Why hedging needs a check
A hedging EA holds opposite positions on one symbol. Some accounts, such as netting accounts or brokers with restrictions, do not allow that, so confirm with your broker before you test.
Scalping and costs
Short M5 trades are sensitive to spread and execution speed. Compare the spread on each listed symbol before you judge any test run.
Test first
Run the compiled EA on a demo account first, with the 2 set files in turn, and watch how it behaves on each symbol. Trading is risky and any strategy can lose money, so read the risk notice in the Overview.
This product is for MetaTrader 4 only. No minimum build is listed, so use a current MT4 build from the MetaTrader 4 website if yours is old.
- Unzip the download. It holds one source file, one compiled file and two set files.
- Put the compiled file in the Experts folder of your MT4 data folder, then restart the platform or refresh the Navigator.
- To read or change the logic, open the source file in MetaEditor and compile it again. Compile your edited copy before you attach it to a chart.
- Attach the EA to an M5 chart of EURUSD, US30, NAS100 or US100, with algo trading switched on.
- Load one of the two set files from the inputs window and review the values.
The package needs no DLL. No help with code changes is promised, so keep a copy of the untouched source before you edit.
Does the Royal Hedge Fund source code run on MetaTrader 5?
No. The listing is for MetaTrader 4, and the source is MQL4. An MT5 account needs a separate MQL5 version, which this download does not include.
What do I get besides the editable MQL4 file?
You get one compiled file, one source file and two set files, with no PDF and no DLL. The compiled file runs as it is, and the source is for reading or editing in MetaEditor.
Which symbols and timeframe should I attach it to?
The listing names EURUSD, US30, NAS100 and US100 on M5. The facts give no other symbols or timeframes, so anything else is your own experiment on a demo account.
Can Royal Hedge Fund hold buy and sell positions on EURUSD M5 on my account type?
Hedging opens buy and sell positions on one symbol together. If your account type does not allow opposite positions, the logic cannot work as written. Ask your broker, then test on a demo account first.
How should I test the two set files before going live?
Load one set file at a time on a demo account, on an M5 chart of a listed symbol, and review the inputs. Trading is risky, and the recommended minimum deposit of $100 is only a guide, and losses are possible. The risk notice in the Overview applies.
Where do I read the refund terms for the Royal Hedge Fund download?
Read the refund policy for the terms. The shop sells the files, and no support from the EA's author is implied.
- Platform
- MetaTrader 4
- Type
- Expert Advisor
- Category
- Source Code
- Version
- v2.0
- Updated
- 11/11/2026
| Role | File name | Size | Version |
|---|---|---|---|
| Executable file | Royal_Hedge_Fund_EA_Source_Code__MQ4_.zip | 30.5 KB | v2.0 |
Related products
Reviews
No reviews yet.
Tags: EA Source Code





