Type : Function, Name : McdMo
Inputs:
R(Numeric),
S(Numeric),
Q(NUmeric),
Dsp(Numeric),
Smth(Numeric);
Vars:
Mo(0),
Avg(0),
Diff(0);
Mo=MACD(C,R,S);
Avg=XAverage(MACD(C,R,S),Q);
Diff=Mo-Avg;
McdMo=Average(Diff-Diff[Dsp],Smth);
Type : Function, Name : MacdDiff
Inputs:
R(Numeric),
S(NUmeric),
Q(Numeric);
Vars: Mac(0),
Avg(0);
Mac=MACD(C,R,S);
Avg=Xaverage(MACD(C,R,S),Q);
MACDDiff=Mac-Avg;
Type : Indicator, Name : Macd Momentum
Inputs:
R(12),
S(26),
Q(9),
Dsp(10),
Smth(3);
Vars:
Mo(0),
Diff(0);
Diff=MacdDiff(R,S,Q);
Mo=McdMo(R,S,Q,Dsp,Smth);
Plot1(Diff,»Diff»);
Plot2(Mo,»Macd Mo»);