Pro Gainer
From the Old Kings archive: Pro Gainer, an expert advisor (trading robot) for MetaTrader 4. In the code it works with the Stochastic oscillator. It raises the lot size after losses (martingale — high risk), places pending orders and moves the stop behind price. It has 37 settings, for example GN (default --- General ---), Magic Number (default 20120505) and Rescue Magic Number (default 20130101). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. Inside: 2 EA files 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 Pro Gainer
Pro Gainer is an expert advisor (trading robot) for MetaTrader 4 based on Stochastic. It increases the lot size after a losing trade (martingale), places pending buy/sell stop or limit orders and moves the stop loss behind price (trailing stop / break-even). It has 37 settings, such as Gn, Magic number and Rescue magic number. MQL source code included.
It also trades only in the hours you set (time filter) and can size trades from your balance and risk percent.
Files in the download: ForexProGainer_v2-EDU.mq4, ForexProGainer_v2-EDU.ex4.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Gn | --- General --- | |
| Magic number | 20120505 | Magic number that tells this EA's orders apart |
| Rescue magic number | 20130101 | Magic number that tells this EA's orders apart |
| Manual magic number | 20140101 | Magic number that tells this EA's orders apart |
| Slippage | 3 | Maximum slippage allowed when opening a trade |
| Mo | --- Modes --- | |
| Enable buy | TRUE | |
| Enable sell | TRUE | |
| Enable rescue buy | TRUE | |
| Enable rescue sell | TRUE | |
| Enable manual buy | TRUE | |
| Enable manual sell | TRUE | |
| Mm | --- Money Management --- | |
| Max orders | 9 | Maximum number of open trades |
| Stop loss | 220.0 | Stop loss distance |
| Lots size | 0.1 | |
| Buy lots multiple | 1.0 | How much the lot size grows after a loss |
| Sell lots multiple | 1.0 | How much the lot size grows after a loss |
| Money management | TRUE | |
| Risk percent | 0.1 | Risk per trade (percent of balance) |
| Preserved balance | 0 | |
| Max draw down percentage | 100.0 | |
| Max draw down | 0.0 | |
| Rescue orders total start | 10 | |
| Manual signal comment | manual | Comment written on the orders |
| Tf | --- Time Filter --- | |
| Use auto gm toffset | TRUE | |
| Auto fallback on fail | TRUE | |
| Gmt offset | 1 | |
| Monday filter | FALSE | |
| Monday start hour | 14 | Hour when trading starts (server time) |
| Trade on friday | TRUE | |
| Trade on blackout days | TRUE | |
| Trade on nfp days | TRUE | |
| Close before no trade days | TRUE | |
| Write log to file | FALSE | |
| Verbose log | FALSE |
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: Martingale · Pending Orders · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · Stochastic · MT4 Expert Advisor · MQL4 Source Code