OM 2WAY V3.6
OM 2WAY V3.6 — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. This copy is version 3.6. Its source code uses moving averages. It works with a grid of orders. It has 32 settings, for example EAName (default OM_2WAY_v3.6), Magic Number Buy (default 123456789) and Magic Number Sell (default 987654321). 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 · v3.6 · Free
About OM 2WAY V3.6
OM 2WAY V3.6 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It opens a grid of orders at fixed price steps. It has 32 settings, such as Ea name, Magic number buy and Magic number sell. MQL source code included.
Files in the download: OM_2WAY_v3.6.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 |
|---|---|---|
| Ea name | OM_2WAY_v3.6 | |
| Magic number buy | 123456789 | Magic number that tells this EA's orders apart |
| Magic number sell | 987654321 | Magic number that tells this EA's orders apart |
| S1 | >>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
| On screen info | true | |
| Show clock | false | |
| Draw average price | false | |
| Dual trade | false | |
| New trade buy | true | |
| New trade sell | true | |
| S4 | >>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
| S5 | >>> | |
| Check new bar | true | ... |
| Max trades | 30 | Maximum number of open trades |
| Pip step | 25.0 | Distance between orders |
| Pip step exponent | 1.0 | How much the lot size grows after a loss |
| Static take profit | 15 | Take profit distance |
| S6 | >>> | |
| Profit persent | 30 | (10...50) |
| Second profit persent | 50 | |
| S8 | >>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
| S9 | >>> | |
| Start lot | 0.2 | n |
| Lot increment | 0.1 | * |
| Max lot | 30 | |
| Use auto lot | false | ... |
| Auto lot | 0.5 | ... |
| Auto lot increment | 0.3 | * |
| S10 | >>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
| S11 | >>> | |
| I ma period | 700 | Period or timeframe used by the calculation |
| I ma open distance | 60 | Distance between orders |
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: Grid · Moving Average · MT4 Expert Advisor · MQL4 Source Code