Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2010.08.24 10:12

MACD Histogram, multi-color [v04] - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 20

Real author:

traderak20, based on MACD.mq5 by MetaQuotes, Copyright 2009, MetaQuotes Software Corp.


A MACD indicator with histogram to show the difference between the MACD and Signal lines.

For the calculation of the MACD line you can choose from the usual price types. For the calculation of the Signal line yo can choose between SMA or EMA. The histogram can be switched between single and multi-color.

Requires: MovingAverages.mqh (default include file in terminal_data_folder\MQL5\Include)

Look in the source to switch on/off error messages:

bool   ShowErrorMessages=false;      // turn on/off error messages for debugging


MACD Histogram, multi-color

Update history:

  • Fixed bug with the colors of the histogram;

2010 09 26: v03

  • Added MODE_SMMA and MODE_LWMA as MA methods for Signal line;
  • Made ENUM_APPLIED_PRICE the last input parameter on the list;

2010 08 24: v02B

  • Indicator first published;
Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.