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);
{股旁网-股票公式网站 www.gupang.com}
周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;
202108211302.jpg
|