
- MetaTrader 4
- Expert Advisor
- v14
- Updated: 11/11/2026
Generic EA Source Code (MQ4)
Editable MQ4 source for a hedging strategy on GBPUSD, USDJPY and GBPCAD at M15, with 11 set files for MetaTrader 4.
- MetaTrader 4 source code, version 14
- One MQ4 source file and 11 set files
- Hedging strategy on the M15 timeframe
- Symbols: GBPUSD, USDJPY, GBPCAD
- No DLL in the package
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 policyThis download is the editable MQ4 source code of an expert advisor for MetaTrader 4, supplied with a set of ready-made input files.
- Platform: MetaTrader 4 · Version 14
- Symbols: GBPUSD, USDJPY, GBPCAD · Timeframe: M15
- Strategy: hedging · Grid/martingale: not mentioned
- Recommended minimum deposit: $500
- In the package: full MQL4 source code (editable), 11 set files
Generic source code MQ4 is the editable program text of an expert advisor (EA, an automated trading program) written for MetaTrader 4; the MQ4 and MQ5 source code guide explains what source code is. Instead of a finished EX4 file, you receive the MQ4 file that you can open, read and change in MetaEditor, the editor built into the platform.
The listing describes the strategy as hedging, which means holding buy and sell positions on the same symbol at the same time. It names GBPUSD, USDJPY and GBPCAD as the symbols and M15 as the timeframe. Whether the listing's grid or martingale behaviour exists is not stated, so this page makes no claim about it.
The download suits traders and developers who use MT4 and want to study how a hedging EA is built, or adjust its logic for those three pairs. Nothing here promises that a modified version will behave the same way as the unmodified one.
The package holds one source file (version 14) and 11 set files, with no compiled file, no PDF and no DLL. A set file is a saved list of input values that you load from the EA's inputs window. Details are on the Strategy & Settings tab. The download is available right after payment, and every product is also included in the membership.
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 states a hedging strategy. In practice a hedge here means opposite positions can be open on one symbol together, so your broker and account type must allow hedging before you test it. Open exposure on both sides can still lose money, and you should read the source code to see how positions are opened and closed.
Symbols, timeframe and deposit
- Symbols: GBPUSD, USDJPY, GBPCAD
- Timeframe: M15
- Recommended minimum deposit: $500
- Version: 14
Grid and martingale use are not mentioned in the listing. Prop-firm suitability is not stated either, so check the rules of any firm yourself. For other MT4 source code packages to compare, see Waka Waka EA Source Code (MQ4) and ClevrFx EA Source Code (MQ4).
The 11 set files
The package includes 11 set files. Each is a starting configuration of input values, not a recommendation of results. Because you also hold the source, you can compare the inputs in each file with the variables in the code.
General practice
Compile the code, load one set file on a demo account and watch several sessions on GBPUSD M15 before thinking about a live account. Check lot size, stop levels and spread against the $500 figure, and keep your own notes when you change a value.
Platform and files
This product is for MetaTrader 4 only. A minimum build is not listed. The package is one archive containing one MQ4 source file and 11 set files. No DLL is included, so there is no DLL setting to change.
Steps
- Extract the archive on your computer.
- Copy the MQ4 file into the Experts folder of your MT4 data folder (File, Open Data Folder, MQL4, Experts).
- Open it in MetaEditor and compile it. Compiling produces the EX4 file the platform runs. The code is not pre-compiled, and no help with changes is promised.
- Attach the EA to a chart of GBPUSD, USDJPY or GBPCAD set to M15, with algo trading enabled.
- Load one of the 11 set files from the Inputs tab of the EA window.
You can download MetaTrader 4 from metatrader4.com. Always test on a demo account first.
Do I get a ready-to-run EX4 file with this MQ4 package?
No. The Files fact lists no compiled file. You receive one MQ4 source file and 11 set files, and you compile the source yourself in MetaEditor.
Which symbols and timeframe do the 11 set files target?
The listing names GBPUSD, USDJPY and GBPCAD on M15. It does not say which symbol each set file belongs to, so open them and compare the inputs before loading one.
Can I test the Generic hedging EA on GBPUSD, USDJPY and GBPCAD without a hedging account?
Hedging means buy and sell positions can be open on the same symbol together. Some brokers and account types restrict this, so confirm it on a demo account first. Trading is risky, and the risk notice in the Overview applies to every test.
Is the $500 minimum deposit a requirement for this version 14 code?
It is the recommended minimum deposit given in the listing, not a promise of any result. A demo account with a similar balance lets you see how the strategy behaves before you commit real money.
Is there any DLL to allow when I compile the Generic MQ4 source?
No. The Files fact states DLL: no, so nothing needs to be allowed in the platform options for DLL imports.
Can I get a refund for the Generic MQ4 source code package?
Read the refund policy for how refunds are handled. Changes to the code are your own work, and no help with them is promised.
- Platform
- MetaTrader 4
- Type
- Expert Advisor
- Category
- Source Code
- Version
- v14
- Updated
- 11/11/2026
| Role | File name | Size | Version |
|---|---|---|---|
| Executable file | Generic_EA_Source_Code__MQ4_.zip | 374.7 KB | v14 |
Related products
Reviews
No reviews yet.
Tags: EA Source Code





