Obos Divergence
This Old Kings expert advisor (trading robot) for MetaTrader 4 is called Obos Divergence. Its name points to divergence between price and an oscillator. In the code it works with moving averages and a price channel. It raises the lot size after losses (martingale — high risk), can hold buy and sell positions together and trades breakouts. It has 25 settings, for example magic (default 248), Comments (default OBOS Divergence) and Trade Lot Settings (default Money Management). Watch it on a demo account for a while — robots can behave differently with each broker. 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 Obos Divergence
Obos Divergence is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average and Channels & Envelopes. It increases the lot size after a losing trade (martingale), can hold buy and sell positions at the same time (hedging) and trades breakouts. It has 25 settings, such as Magic, Comments and Trade lot settings. MQL source code included.
Files in the download: OBOS_Divergence(Bullforyou.com).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 |
|---|---|---|
| Magic | 248 | Magic number that tells this EA's orders apart |
| Comments | OBOS Divergence | Comment written on the orders |
| Trade lot settings | Money Management | |
| Start lot | 0.01 | |
| Range | 25 | |
| Level | 5 | |
| Increment | 0.01 | |
| Tp in money | 1.0 | |
| Envelope | Set The Channel | |
| Envelope period | 36 | moving average length |
| Env ma method | 0 | 0=sma,1=ema,2=smma,3=lwma. |
| Shift | 0 | shift relative to current bar indicator data is posted |
| Envelope deviation | 0.05 | envelope width |
| Moving average | Set The Breakout | |
| Ma period | 16 | Period or timeframe used by the calculation |
| Ma method | 0 | |
| Ma shift | 0 | Bar shift (0 = current bar) |
| Derivative oscillator settings | Set The Trigger | |
| Rsi der | 14 | |
| Hedge | false | |
| Hedge start | 1 | |
| H lot factor | 0.5 | |
| H tp factor | 1.0 | |
| Lot multiplier 2 | 1.5 | How much the lot size grows after a loss |
| Lot multi 2 level | 3 |
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: Divergence · Martingale · Hedging · Breakout · Moving Average · Channels & Envelopes · MT4 Expert Advisor · MQL4 Source Code