MACD of another indicator

Keith Watford  
pipspiper:

Hello guys,

i managed to add a MA to an indicator, using the MAOnBuffer,

What is  MAOnBuffer?

pipspiper  
Keith Watford:

What is  MAOnBuffer?

#include <MovingAverages.mqh>

switch(*MA MODE*)
  {
   case MODE_EMA:
      ExponentialMAOnBuffer(rates_total,prev_calculated,begin,*MA period*,*indicator buffer*,*MA buffer*);
      break;
   case MODE_LWMA:
      LinearWeightedMAOnBuffer(rates_total,prev_calculated,begin,*MA period*,*indicator buffer*,*MA buffer*);
      break;
   case MODE_SMA:
      SimpleMAOnBuffer(rates_total,prev_calculated,begin,*MA period*,*indicator buffer*,*MA buffer*);
      break;
   case MODE_SMMA:
      SmoothedMAOnBuffer(rates_total,prev_calculated,begin,*MA period*,*indicator buffer*,*MA buffer*);
      break;
  }
pipspiper  
Any ideas guys ???
Fernando Carreiro  
pipspiper: Any ideas guys ???

If you study how the MACD is calculated, then you would know. Do some homework and research.

MACD is difference between a fast and a slow EMA, and the signal is an EMA of the difference.

pipspiper  
Fernando Carreiro:

If you study how the MACD is calculated, then you would know. Do some homework and research.

MACD is difference between a fast and a slow EMA, and the signal is an EMA of the difference.

Thanks, ur comment actually solved the problem