UDP
UDP is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. It raises the lot size after losses (martingale — high risk), works with a grid of orders and can size trades from your risk. It has 30 settings, for example Attention (default !!! !!!), Head Line (default 17.03.2009) and Buy Block (default ------- -------). 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.0 · Free
About UDP
UDP is an expert advisor (trading robot) for MetaTrader 4. It increases the lot size after a losing trade (martingale), opens a grid of orders at fixed price steps and can size trades from your balance and risk percent. It has 30 settings, such as Attention, Head line and Buy block. MQL source code included.
Files in the download: UDP.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 |
|---|---|---|
| Attention | !!! !!! | |
| Head line | 17.03.2009 | |
| Buy block | ------- ------- | |
| Buy pip step exponent | 1 | How much the lot size grows after a loss |
| Buy lot exponent | 1.69 | How much the lot size grows after a loss |
| Buy lot size | 0.01 | |
| Buy pip step | 30 | . PipStepExponent . |
| Buy tp | 10 | |
| Buy max trades | 10 | - |
| Sell block | ------- ------- | |
| Sell pip step exponent | 1 | How much the lot size grows after a loss |
| Sell lot exponent | 1.69 | How much the lot size grows after a loss |
| Sell lot size | 0.01 | |
| Sell pip step | 30 | Distance between orders |
| Sell tp | 10 | |
| Sell max trades | 10 | Maximum number of open trades |
| General block | ------- ------- | |
| Open new tf | 1 | |
| Open next tf | 60 | |
| Back bar | false | |
| Back bar tf | 15 | , BackBar, . |
| Fix lot | true | . |
| Lot step | 2000 | . .. LotStep LotSize. 2000 0.01, 4000 0.02 |
| Official variable | ------- ------- | |
| Max attempts string | MaxAttempts= | |
| Max attempts | 3 | - . |
| Information on chart string | InformationOnChart - () | |
| Information on chart | true | , () |
| Magic number | 123456789 | Magic number that tells this EA's orders apart |
| Lot decimal | 0 |
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 · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code