# MACD Aspray indicator

#### tugiacar

##### Member
Hi I use Macd Aspray in metastock formula is

(MACD()-Mov(MACD(),9,E));
Mov((MACD()-Mov(MACD(),9,E)),9,E);0

this is metastock formulas....do you have this formula for amibroker..if with oscillator..

#### hitesh

##### Active Member
Hi I use Macd Aspray in metastock formula is

(MACD()-Mov(MACD(),9,E));
Mov((MACD()-Mov(MACD(),9,E)),9,E);0

this is metastock formulas....do you have this formula for amibroker..if with oscillator..

_SECTION_BEGIN("MACD Aspray");

Aspray = (MACD()-EMA(MACD(),9));
Sig = EMA(Aspray,9);

Plot(Aspray,"Aspray",colorRed,styleLine);
Plot(Sig,"Signal",colorBlue,styleLine);

/*
original Macd Aspray in metastock formula is

(MACD()-Mov(MACD(),9,E));
Mov((MACD()-Mov(MACD(),9,E)),9,E);0

*/
_SECTION_END();

Note : Please cross check result with Metastock

#### THE LORD

##### Active Member
how can we make the macd histogram

#### THE LORD

##### Active Member
ok now the histograme is here

_SECTION_BEGIN("MACD Aspray");
Aspray = (MACD()-EMA(MACD(),9));
Sig = EMA(Aspray,9);
Plot(Aspray,"Aspray",colorRed,styleLine);
Plot(Sig,"Signal",colorBlue,styleLine);
Plot(Aspray-Sig ,"MACD Histogram",31,styleHistogram);
_SECTION_END();