Ilan 193
Ilan 193 is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. Its source code uses CCI. It raises the lot size after losses (martingale — high risk), works with a grid of orders and places pending orders. It has 40 settings, for example Lot Exponent (default 1.2), Take Profit (default 50) and Pip Step (default 50). Watch it on a demo account for a while — robots can behave differently with each broker. Inside: 3 indicator 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 Ilan 193
Ilan 193 is an expert advisor (trading robot) for MetaTrader 4 based on CCI. It increases the lot size after a losing trade (martingale), opens a grid of orders at fixed price steps and places pending buy/sell stop or limit orders. It has 40 settings, such as Lot exponent, Take profit and Pip step. MQL source code included.
It also moves the stop loss behind price (trailing stop / break-even) and can size trades from your balance and risk percent.
Files in the download: Ilan_RSI_mm_extr193.mq4, i-Regr.mq4, TrendMagic.mq4, StrategyTester_193.gif, StrategyTester_193_lock.gif.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Lot exponent | 1.2 | . 0.1, : 0.15, 0.26, 0.43 ... |
| Take profit | 50 | dec , = 0 |
| Pip step | 50 | dec |
| C9 | MM | |
| Lots | 0.1 | 0.01 0.1 0.15 |
| Risk | 2 | % , = 0 Lots |
| Last trade | 100 | = + lastradeprofit |
| Take profit last | 10.0 | dec LastTrade |
| Las trade size | 17 | % , 10 000 1 |
| Max trades | 50 | Maximum number of open trades |
| Open new cycle | true | false, , .. |
| S11 | ||
| Trend ps | 7 | dec , =0 , |
| Profit perc | 5 | dec 10% , |
| Min profit pips | 15 | dec , , + MinProfitPips |
| Min profit pips one | 2 | dec , , + MinProfitPips |
| Num tr | 2 | |
| F dir | 2 | |
| C3 | ||
| Magic number | 54321 | Magic number that tells this EA's orders apart |
| Slip | 3.0 | dec |
| Perc down | 0 | .. "" (.. ) 30 % , |
| Perc close | 0 | 10 % 30 , , 60 % , 20 % |
| Com on | 0 | =0 |
| C4 | ||
| Tf ilan x | 0 | . mper = 5 - H1 |
| N h1 | 0 | =3 3 1 |
| N h4 | 0 | =5 5 4 |
| C8 | ||
| Lock s | 0 | , =0 , =0.5, 50% |
| L mag n | 689 | |
| Num lock min | 10 | |
| Num loc | 15 | |
| Max dist | 400 | dec |
| Lock profit perc | 1 | % |
| Koridor | 50 | dec |
| Lmul | 2 | |
| Max lock trades | 4 | |
| Cc period | 50 | TrendMagic |
| Atr period | 5 | TrendMagic |
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 · Grid · Pending Orders · Trailing Stop & Break-even · Risk & Lot Size · CCI · MT4 Indicator · MQL4 Source Code