
- MetaTrader 4
- Expert Advisor
- v2
- Updated: 11/11/2026
EA Sunan Giri Source Code (MQ4)
Editable MQL4 source of a martingale EA for MetaTrader 4, listed for EURUSD and GBPUSD on M15 and H1, with three set files.
- MetaTrader 4, version 2
- One MQL4 source file and 3 set files
- Martingale strategy, grid/martingale: yes
- EURUSD and GBPUSD on M15 and H1
- No DLL listed 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 MQL4 source code of the Sunan Giri expert advisor for MetaTrader 4. It is a martingale EA that you open and compile in MetaEditor.
- Platform: MetaTrader 4, version 2
- Symbols: EURUSD, GBPUSD
- Timeframes: M15, H1
- Strategy: martingale (grid/martingale: yes)
- Recommended minimum deposit: $1,000
- In the package: one MQL4 source file, 3 set files, no compiled file, DLL: no
The EA Sunan Giri source code MQ4 package gives you the editable program text of a MetaTrader 4 expert advisor rather than a ready-to-attach compiled file. The strategy is listed as martingale, which means the lot size is increased after a losing trade. The version in this download is 2.
It suits traders and developers (see the MQ4 and MQ5 source code guide) who want to read how the logic is written, adjust it in MetaEditor and compile their own build. Nothing here promises that a change will work, so treat every edit as something to test before it touches a live account.
The download contains one MQL4 source file and three set files (saved lists of input settings you can load in MetaTrader). It has no compiled file and no PDF, and the file list shows no DLL. The listing names EURUSD and GBPUSD on the M15 and H1 timeframes.
Open the Strategy & Settings tab for the strategy details and the recommended minimum deposit, and the Installation tab for the compile steps. If you already use the catalogue through the membership, this product is part of it, like every other product on the site.
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
The strategy is martingale, and the grid/martingale fact is marked yes. In practice this means position size grows after a loss, so a run of losing trades can push drawdown (the drop from the account's peak balance) up quickly. Whether the code also opens extra orders at fixed price steps is not stated, so read the source to see exactly how it adds positions. Other martingale source packages here include ClevrFx EA Source Code (MQ4) and Algo Samurai EA Source Code (MQ4).
Symbols, timeframes and deposit
The package is listed for EURUSD and GBPUSD, on the M15 and H1 timeframes. The recommended minimum deposit is $1,000. Because the lot size can step up after losses, a smaller balance leaves less room for a losing sequence, so check the lot settings against your own balance.
Set files
There are three set files. A set file stores input values that you load from the EA's inputs window, so each one is a starting configuration, not a recommendation of results. The facts do not say what separates the three, so open each in a text editor or load it on a demo chart and compare the values before choosing one.
Testing practice
Prop-firm suitability is not mentioned in the facts, so do not assume it. Run any build you compile on a demo account first, with the same symbol and timeframe you plan to use. Check the settings before you trade live.
Platform and files
This is a MetaTrader 4 product. The download is a zip archive with one MQL4 source file and three set files. There is no compiled file, so the EA will not run until you compile it. No DLL is listed, and no minimum build is given in the facts.
Steps
- Unzip the archive and copy the source file into the Experts folder of your MQL4 data directory (in MetaTrader 4, use File, then Open Data Folder).
- Open the file in MetaEditor and compile it. Fix any errors if you have edited the code, then refresh the Navigator in MetaTrader.
- Attach the compiled EA to a EURUSD or GBPUSD chart on M15 or H1, the symbols and timeframes the facts list.
- In the EA's inputs window, press Load and choose one of the three set files. Check each value before you enable live trading.
You can get the platform itself from the MetaTrader 4 platform.
Why does the Sunan Giri download have no EX4 file I can attach right away?
The Files fact lists no compiled file, only one source file and three set files. You compile the MQL4 source in MetaEditor first, then attach the result to a chart in MetaTrader 4.
Can I load the three Sunan Giri set files on a GBPUSD H1 chart?
GBPUSD and H1 are both in the facts, along with EURUSD and M15. Load a set file from the inputs window on a demo chart first and check that the values suit that symbol and timeframe.
What does the martingale strategy mean for a $1,000 account?
Martingale raises the lot size after a losing trade, so losses can grow faster than in a fixed-lot approach. $1,000 is the recommended minimum deposit, not a safeguard. Read the risk notice at the end of the Overview, and test every setting on a demo account before going live.
Does this source code need a DLL?
The Files fact says DLL: no, so the package lists none. Check your own edits if you add anything, because that would be outside this download.
Will it work on MetaTrader 5?
No. The platform is MT4 and the file is MQL4, which MetaTrader 5 does not compile as it is. Use it on MetaTrader 4 only.
What if I need a refund?
Read the refund policy for the terms.
- Platform
- MetaTrader 4
- Type
- Expert Advisor
- Category
- Source Code
- Version
- v2
- Updated
- 11/11/2026
| Role | File name | Size | Version |
|---|---|---|---|
| Executable file | EA_Sunan_Giri_Source_Code__MQ4_.zip | 12.4 KB | v2 |
Related products
Reviews
No reviews yet.
Tags: EA Source Code





