DIF:=EMA(CLOSE,5)-EMA(CLOSE,26);
DEA:=EMA(DIF,3);
macd:=(DIF-DEA)*2;
ddiF:EMA(CLOSE,12)-EMA(CLOSE,26);
ddeA:EMA(DDIF,9);
DMacD:(DDIF-DDEA)*2,COLORSTICK;
日金:=crOSS(DDIF,DDEA);
{-股票公式网站 }
周DIF:MA(DIF,5),POINTDOT,LINETHICK1,COLORWHITE;
周DEA:MA(DEA,5),POINTDOT,LINETHICK1,COLOR33FF99;
周金▲:DRAWTEXT(CROSS(周DIF,周DEA),周DIF,'▲'),COLORRED;
日周同金:DRAWTEXT(CROSS(周DIF,周DEA) AND 日金,DMACD,'▲日周同金'),COLORYELLOW;