Divergence
Divergence — a MetaTrader 4 indicator kept in the Old Kings collection. Judging by its name, it is built around divergence between price and an oscillator. Its source code uses MACD, RSI, ADX and Momentum. It has 6 settings, for example ind (default 1), pds (default 10) and f (default 1). Load it on a demo chart and check whether its signals repaint before trusting them. Inside: 1 indicator 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.
Indicator · MT4 · v1.0 · Free
About Divergence
Divergence is an indicator for MetaTrader 4 based on MACD, RSI, ADX and Momentum. It has 6 settings, such as Ind, Pds and F. MQL source code included.
Files in the download: Divergence.mq4.
Settings
| Setting | Default | What it does |
|---|---|---|
| Ind | 1 | MACD=1, RSI=2, DMI=3, Mom=4 |
| Pds | 10 | indicator periods |
| F | 1 | price field: Close=1, High/Low=2 |
| Ch | 0 | peak/trough depth minimum (0-1) |
| Shift | 0 | shift signals back to match divergences |
| Max bars | 1000 |
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 → Indicators.
- 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 indicator from the Navigator onto a chart and adjust the settings.
Tags: Divergence · MACD · RSI · ADX · Momentum · MT4 Indicator · MQL4 Source Code