hey set4..... tillsons is more about smoothing than anything else.... the fib componet allows for some shift.... so it might be better just to apply tillsons math to the macd formula rather than using the fml("") function..... below would be a quick first guess at the best way to achieve that..... better coders might have a neater layout....
the code below has inputs for the 12,26,9 values along with the fib adjustments just in case other values are desired..... see what you think......h
tillsons macd
---------------------------------
pdss:=Input("slow periods ",1,50,26);
pdsf:=Input("fast periods ",1,50,12);
pdssig:=Input("signal",1,20,9);
a:=Input("slow fib ",0,2, 1); {fiboncia setting}
e1:=Mov(P,pdss,E);
e2:=Mov(e1,pdss,E);
e3:=Mov(e2,pdss,E);
e4:=Mov(e3,pdss,E);
e5:=Mov(e4,pdss,E);
e6:=Mov(e5,pdss,E);
c1:=-a*a*a;
c2:=3*a*a+3*a*a*a;
c3:=-6*a*a-3*a-3*a*a*a;
c4:=1+3*a+a*a*a+3*a*a;
aa:=c1*e6+c2*e5+c3*e4+c4*e3;
b:=Input("fast fib ",0,2, 1); {fiboncia setting}
e1:=Mov(P,pdsf,E);
e2:=Mov(e1,pdsf,E);
e3:=Mov(e2,pdsf,E);
e4:=Mov(e3,pdsf,E);
e5:=Mov(e4,pdsf,E);
e6:=Mov(e5,pdsf,E);
c1:=-b*b*b;
c2:=3*b*b+3*b*b*b;
c3:=-6*b*b-3*b-3*b*b*b;
c4:=1+3*b+b*b*b+3*b*b;
bb:=c1*e6+c2*e5+c3*e4+c4*e3;
0;
aaa:=Mov(bb ,pdsf ,E )- Mov(aa ,pdss ,E );
bbb:=Mov(aaa,pdssig,E);
d:=aaa-bbb;
d; { click on the d line after ploting and change it to histogram style}
aaa;
bbb;
-----------------------------------------------