Martingail Expert V1.0 Stochastic V1.1
From the Old Kings archive: Martingail Expert V1.0 Stochastic V1.1, an expert advisor (trading robot) for MetaTrader 4. As the name suggests, the idea behind it is the Stochastic oscillator. The file name marks it as version 1.0. In the code it works with the Stochastic oscillator and moving averages. It raises the lot size after losses (martingale — high risk) and can size trades from your risk. It has 30 settings, for example MAF (default ---------------- MA Filt), Ma Period (default 200) and Ma Mode (default 1). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. 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 Martingail Expert V1.0 Stochastic V1.1
Martingail Expert V1.0 Stochastic V1.1 is an expert advisor (trading robot) for MetaTrader 4 based on Stochastic and Moving Average. It increases the lot size after a losing trade (martingale) and can size trades from your balance and risk percent. It has 30 settings, such as MAF, Ma period and Ma mode. MQL source code included.
Files in the download: !Åα«τΓ¿.é᪡«!.txt, MartingailExpert_v1.0_Stochastic v1.1.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 |
|---|---|---|
| MAF | ---------------- MA Filter | |
| Ma period | 200 | Period or timeframe used by the calculation |
| Ma mode | 1 | 0=sma, 1=ema, 2=smoothed, 3=linear weighted |
| DBO | ---------------- Distance between orders | |
| Step | 25 | Distance between orders |
| Step mode | 0 | Distance between orders |
| MAR | ---------------- Martingale | |
| Use with win | true | |
| Use with loss | true | |
| Mult | 1.5 | |
| Lotsbuy | 0.01 | |
| Lotssell | 0.01 | |
| SLTP | ---------------- SL TP | |
| TP | 1000 | Take profit distance |
| SL | 1000 | Stop loss distance |
| Proffactor | 10 | |
| STO | ---------------- Stochastic | |
| Per k | 200 | |
| Per d | 20 | |
| Slow | 20 | |
| STOL | ---------------- Stoch Levels | |
| Zone buy | 50 | |
| Zone sell | 50 | |
| EXT | ---------------- Extras | |
| Max open buy orders | 100 | 1=disabled |
| Max open sell orders | 100 | 1=disabled |
| Stop if equity over | 15000 | max profit in pips allowed per day |
| Slippage | 3 | Maximum slippage allowed when opening a trade |
| Use max spread | false | Maximum spread allowed to trade |
| Max spread | 2 | max spread |
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: Stochastic · Martingale · Risk & Lot Size · Moving Average · MT4 Expert Advisor · MQL4 Source Code