Custom
Custom — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Its source code uses moving averages. It places pending orders, moves the stop behind price and can size trades from your risk. It has 40 settings, for example Time Frame (default 0), s0 (default ==== (Mode: 1 - , 2 -) and O Mode (default 1). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. Inside: 5 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 Custom
Custom is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It places pending buy/sell stop or limit orders, moves the stop loss behind price (trailing stop / break-even) and can size trades from your balance and risk percent. It has 40 settings, such as Time frame, S0 and O mode. MQL source code included.
Files in the download: Custom\expert.zip, Custom\exp_iCustom_v1.zip, Custom\exp_iCustom_v2.zip, Custom\exp_iCustom_v3.zip, Custom\exp_iCustom_v4.zip, Custom\exp_iCustom_v5.mq4, Custom\exp_iCustom_v6.mq4, Custom\exp_iCustom_v7.zip ….
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Time frame | 0 | : 0 - . 1,5,15,30,60,240,1440... |
| S0 | ==== (Mode: 1 - , 2 - , 3 - , 4 - | |
| O mode | 1 | 1- , , 2- , , 3- |
| O i custom name | Custom | |
| O i custom param | / | "/". bool true 1, false - 0. , !!! |
| O m1 i buy buf index | 0 | |
| O m1 i sell buf index | 1 | |
| O m2 i main buf index | 0 | |
| O m2 i signal buf index | 1 | |
| O m3 i buf index | 0 | |
| O m3 buy level | 20 | ( ) |
| O m3 sell level | 80 | ( ) |
| O m4 i buf index | 0 | |
| O i shift | 1 | . 1 - , 0 - ( ). 2,3,4... |
| O opt 1 use | false | 1. iCustomParam, Opt_X_Index Opt_X_Value |
| O opt 1 index | 0 | 1 ( iCustomParam). . |
| O opt 1 value | 0 | 1 |
| O opt 2 use | false | 2 |
| O opt 2 index | 0 | 2 ( iCustomParam). . |
| O opt 2 value | 0 | 2 |
| O opt 3 use | false | 3 |
| O opt 3 index | 0 | 3 ( iCustomParam). . |
| O opt 3 value | 0 | 3 |
| O opt 4 use | false | 4 |
| O opt 4 index | 0 | 4 ( iCustomParam). . |
| O opt 4 value | 0 | 4 |
| O opt 5 use | false | 5 |
| O opt 5 index | 0 | 5 ( iCustomParam). . |
| O opt 5 value | 0 | 5 |
| S1 | ==== == (_O_Mode: 1 - sl tp, 2 - , 3 - | |
| S2 | ==== (Mode: 1 - , 2 - , 3 , 4 ) = | |
| C mode | 1 | 1- , , 2- , , 3- |
| C use open param | false | ( ). , _C_UseOpenParam=true _C_M1_..., _C_M2_..., _C_M3_... _C_Mode ( , ) |
| C i custom name | Custom | |
| C i custom param | / | "/". bool true 1, false - 0. , !!! |
| C m1 i close buy buf index | 0 | |
| C m1 i close sell buf index | 1 | |
| C m2 i main buf index | 0 | |
| C m2 i signal buf index | 1 | |
| C m3 i buf index | 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: Pending Orders · Trailing Stop & Break-even · Risk & Lot Size · Moving Average · MT4 Expert Advisor · MQL4 Source Code