MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

 A B C D E F G H I J K L M N O P R S T U V W Y Z #

DiNapoli DEMA Smoothed MACD
>> Hi, I am trying to build a custom indicator of the above using a modified moving average
does anyone have the formula please?

DiNapoli DEMA Smoothed MACD

N1:=8;
TN8:=Mov(C,N1,E);
S8:=((n1-1)/2)*
C+((n1-3)/2)*
Ref(C,-1)+((n1-5)/2)*
Ref(C,-2)+((n1-7)/2)*
Ref(C,-3)+((n1-9)/2)*
Ref(C,-4)+((n1-11)/2)*
Ref(C,-5)+((n1-13)/2)*
Ref(C,-6)+((n1-15)/2)*
Ref(C,-7);
MMA8:=TN8+(6*S8)/((n1+1)*n1);
N2:=17;
TN17:=Mov(C,N2,E);
S17:=((n2-1)/2)*
C+((n2-3)/2)*
Ref(C,-1)+((n2-5)/2)*
Ref(C,-2)+((n2-7)/2)*
Ref(C,-3)+((n2-9)/2)*
Ref(C,-4)+((n2-11)/2)*
Ref(C,-5)+((n2-13)/2)*
Ref(C,-6)+((n2-15)/2)*
Ref(C,-7)+((n2-17)/2)*
Ref(C,-8)+((n2-19)/2)*
Ref(C,-9)+((n2-21)/2)*
Ref(C,-10)+((n2-23)/2)*
Ref(C,-11)+((n2-25)/2)*
Ref(C,-12)+((n2-27)/2)*
Ref(C,-13)+((n2-29)/2)*
Ref(C,-14)+((n2-31)/2)*
Ref(C,-15)+((n2-33)/2)*
Ref(C,-16);
MMA17:=TN17+(6*S17)/((n2+1)*n2);
VALUE:=MMA8-MMA17 ;
n3:=9;
TN9:=Mov((VALUE),n3,E);
s9:=((n3-1)/2)*
(VALUE)+((n3-3)/2)*
Ref((VALUE),-1)+((n3-5)/2)*
Ref((VALUE),-2)+((n3-7)/2)*
Ref((VALUE),-3)+((n3-9)/2)*
Ref((VALUE),-4)+((n3-11)/2)*
Ref((VALUE),-5)+((n3-13)/2)*
Ref((VALUE),-6)+((n3-15)/2)*
Ref((VALUE),-7)+((n3-17)/2)*
Ref((VALUE),-8);
SIGNAL:=TN9+(6*S9)/((n3+1)*n3);
VALUE;
SIGNAL;
0

Source / From: TOP