Monday, January 22, 2018

How to remove MACD indicator histogram to two lines on Meta Trader 4 platform

The common MACD indicator usually made up of 2 lines in many forex trading platform. However the most popular trading platform Meta Trader 4 only using one line and a histogram which make life more difficult when you are trying to make it as simple as possible.



Fortunately there is a way to change the MACD indicator by editing on the Meta Editor. It's actually very easy as 1 2 3 only if you know where to change. Here is the way how to do it.

Step 1:

Open Meta Trader trading platform and go to Tools >> MetaQuotes Language Editor

Step 2:

In MetaQuotes Language Editor expand the indicator folder by click on the "+" where you will find MACD indicator in the list and double click on that. This will open up the codes that made up the MACD indicator and find this line of code "SetIndexStyle(0,DRAW_HISTOGRAM)". Then change the DRAW_HISTOGRAM to "DRAW_LINE" this will change the histogram into the second line of the MACD.

Step 3:

Once that is done save the changes and closed the Meta Trader platform. Re-open it again and use the MACD you should see the common 2 lines MACD indicator. Refer to the 3rd screenshot below

Note: Please use the latest version of Meta Trader Version 4 Build 1090 (May 2017) because it supported MQL5 Language Editor.





No comments:

Post a Comment