Ilan VS Trend Trading Last TP V1
From the Old Kings archive: Ilan VS Trend Trading Last TP V1, an expert advisor (trading robot) for MetaTrader 4. Judging by its name, it is built around following the trend. The file name marks it as version 1. In the code it works with moving averages and CCI. It raises the lot size after losses (martingale — high risk), works with a grid of orders and moves the stop behind price. It has 20 settings, for example Pip Step Exponent (default 1), Default Pips (default 50) and Max Pips (default 100). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. 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 · Free
About Ilan VS Trend Trading Last TP V1
Ilan VS Trend Trading Last TP V1 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average and CCI. It increases the lot size after a losing trade (martingale), opens a grid of orders at fixed price steps and moves the stop loss behind price (trailing stop / break-even). It has 20 settings, such as Pip step exponent, Default pips and Max pips. MQL source code included.
It also can size trades from your balance and risk percent.
Files in the download: Ilan_VS_TrendTrading_LastTP_v1_2.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 |
|---|---|---|
| Pip step exponent | 1 | How much the lot size grows after a loss |
| Default pips | 50 | PipStep |
| Max pips | 100 | PipStep |
| Lots | 0.1 | Trade size in lots |
| Lotdecimal | 2 | 0 - (1), 1 - (0.1), 2 - (0.01) |
| Take profit first order | 20.0 | Take profit distance |
| Take profit seria | 10.0 | Take profit distance |
| Ma time frame | 7 | Period or timeframe used by the calculation |
| Ma period | 6 | Period or timeframe used by the calculation |
| Ma delta | 3 | , |
| Cc ilevel | 160 | CCI , , |
| Magic number | 2222 | ( ) |
| Max trades | 10 | Maximum number of open trades |
| Use last trade tp | FALSE | |
| Last trade number | 5 | |
| MM | false | |
| Risk | 1 | 0.01 - . |
| Balans | 1000 | , 1000 |
| Manual first order | false | |
| Debug | 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: Trend · Martingale · Grid · Trailing Stop & Break-even · Risk & Lot Size · Moving Average · CCI · MT4 Expert Advisor · MQL4 Source Code