Loading…

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

SettingDefaultWhat it does
Magic248Magic number that tells this EA's orders apart
CommentsOBOS DivergenceComment written on the orders
Trade lot settingsMoney Management
Start lot0.01
Range25
Level5
Increment0.01
Tp in money1.0
EnvelopeSet The Channel
Envelope period36moving average length
Env ma method00=sma,1=ema,2=smma,3=lwma.
Shift0shift relative to current bar indicator data is posted
Envelope deviation0.05envelope width
Moving averageSet The Breakout
Ma period16Period or timeframe used by the calculation
Ma method0
Ma shift0Bar shift (0 = current bar)
Derivative oscillator settingsSet The Trigger
Rsi der14
Hedgefalse
Hedge start1
H lot factor0.5
H tp factor1.0
Lot multiplier 21.5How much the lot size grows after a loss
Lot multi 2 level3

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Divergence · Martingale · Hedging · Breakout · Moving Average · Channels & Envelopes · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria