MACD Divergence
MACD Divergence — a MetaTrader 4 indicator kept in the Old Kings collection. Its name points to MACD (moving average convergence / divergence) and divergence between price and an oscillator. Its source code uses moving averages. It draws arrows on the chart. It has 17 settings, for example fast Length (default 12), slow Length (default 26) and MACDLength (default 9). Load it on a demo chart and check whether its signals repaint before trusting them. Inside: 2 indicator files with source code (.mq4) you can open and edit in MetaEditor and a PDF guide. 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 MACD Divergence
MACD Divergence is an indicator for MetaTrader 4 based on Moving Average. It draws buy and sell arrows on the chart. It has 17 settings, such as Fast length, Slow length and Macd length. MQL source code included.
Files in the download: Installation-Manual.pdf, MACD_Divergence_RobertSTUDY.ts, MACD_Divergence_Robert_LowerSTUDY.ex4, MACD_Divergence_Robert_LowerSTUDY.mq4, MACD_Divergence_Robert_LowerSTUDY.ts, Mechanical MACD Divergence.png.
Settings
| Setting | Default | What it does |
|---|---|---|
| Fast length | 12 | |
| Slow length | 26 | |
| Macd length | 9 | |
| Average type | MODE_EMA | |
| Draw lines | true | Рисовать линии? |
| Draw arrows | true | Рисовать стрелки? |
| __ | . | |
| Draw lines on chart | true | Divergence lines on chart? |
| Draw lines on macd | true | Divergence lines on macd? |
| Color bullish div | clrYellow | Color bullish divergence |
| Color bearish div | clrOrange | Color bearish divergence |
| Lines style | STYLE_SOLID | Line style |
| ___ | . | |
| Use alert | true | Use Alert? |
| Alert on close bar | true | On bar close? |
| Send mail | false | Send mail? |
| Send notification | false | Send notification? |
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: MACD · Divergence · Buy/Sell Arrows · Moving Average · MT4 Indicator · MQL4 Source Code