Custom MACD Indicator For MT4

Custom MACD Indicator For MT4

Table Of Contents:

  1. Custom MACD Indicator For MT4
  2. Installing the Custom MACD Indicator For MT4
  3. Parameters of the Custom MACD Indicator For MT4
  4. Buffers of the Custom MACD Indicator For MT4
  5. Main Parts Of The Code

The Custom MACD Indicator For MT4 is a customized version of the popular Moving Average Convergence Divergence (MACD) indicator. It graphically depicts the difference in long term market sentiment and short term market sentiment relative to price. Just like conventional MACD, the signals generated by this indicator include zero line crossover, signal line crossover, and divergence in indicator and price direction.

FREE Custom MACD Indicator

Download the FREE Custom MACD Indicator for MT4.

To receive my email 100% sure: 
Put my email on your whitelist!

 

Partially Automated Trading Besides Your Day Job

Alerts In Real-Time When Divergences Occur

 

Installing the Custom MACD Indicator For MT4

After you downloaded the indicator via the form above you need to unzip the zip-file. Then you need to copy the file MACD.mq4 into the folder MQL4\Indicators of your MT4 installation. After that please restart MT4 and then you will be able to see the indicator in the list of indicators.

Parameters of the Custom MACD Indicator For MT4

The Custom MACD Indicator For MT4 has 3 parameters to configure.

extern int FastEMA=12; extern int SlowEMA=26; extern int SignalSMA=9; 

Buffers of the Custom MACD Indicator For MT4

The Custom MACD Indicator For MT4 provides 2 buffers.

SetIndexBuffer(0,MacdBuffer); SetIndexBuffer(1,SignalBuffer); 

Main Parts Of The Code

int start()   {    int limit;    int counted_bars=IndicatorCounted(); //---- last counted bar will be recounted    if(counted_bars gt 0) counted_bars--;    limit=Bars-counted_bars; //---- macd counted in the 1-st buffer    for(int i=0; i lt limit; i++)       MacdBuffer[i]=iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i)-iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i); //---- signal line counted in the 2-nd buffer    for(i=0; i lt limit; i++)       SignalBuffer[i]=iMAOnArray(MacdBuffer,Bars,SignalSMA,0,MODE_SMA,i); //---- done    return(0);   } //+------------------------------------------------------------------+ 

 

About Me

I'm Mike Semlitsch the owner of PerfectTrendSystem.com. My trading career started in 2007. Since 2013 I have helped thousands of traders to take their trading to the next level. Many of them are now constantly profitable traders. 

The following performance was achieved by me while trading live in front of hundreds of my clients:

Connect With Me:  

Results From 5 Months!
This service starts soon! Be the first who get's notified when it begins!

This FREE Indicator Can Transform
Your Trading!

FREE Indicator + Telegram Group


Request the Ultimate Double Top/Bottom Indicator which is used by 10,000+ traders.