还是macd好用,不过bs买卖点迟来2天感觉有点马后炮
{MacDD//先建立引用公式
A:EMA(CLOSE,5)-EMA(CLOSE,26);
B:EMA(A,3);}
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
A:=EMA(CLOSE,5)-EMA(CLOSE,26);
AA:="MACDD.A#WEEK";
B:=EMA(A,3);
BB:="MACDD.B#WEEK";
DRAWICON(crOSS(AA,BB),MACD-0.06,7);
DRAWICON(CROSS(BB,AA),MACD+0.06,8);
{DRAWICON(CROSS(DIF,DEA),DIF,1);
DRAWICON(CROSS(DEA,DIF),DIF,2);}