股票:=EMA(CLOSE,12)-EMA(CLOSE,26);
技术指标大全:=EMA(股票,9);
MACD:=(股票-技术指标大全)*2,COLORSTICK;
cccss1:STICKLINE(MACD>0,MACD,0,2,1),COLORRED;
cccss2:STICKLINE(MACD<0,MACD,0,2,0),COLORCYAN;
sssscc1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);{选股公式-选股指标www.gs6699.com}
sssscc2:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(sssscc1,1)+2),0.5);
ssssca1:DRAWLINE(sssscc2,MACD,REF(sssscc2,1),REF(MACD,1),1),COLORWHITE;
sssscc3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);{好股票WWW.GOODGUPIAO.COM}
sssscc4:=CROSS(BACKSET(CROSS(MACD,0) OR (ISLASTBAR AND MACD<0),REF(sssscc3,1)+2),0.5);
ssssca2:DRAWLINE(sssscc4,MACD,REF(sssscc4,1),REF(MACD,1),1),COLORYELLOW;
ssssca3:STICKLINE(MACD>0 AND MACD>ssssca1 AND ssssca1>0,MACD,ssssca1,2,0),COLORYELLOW;
ssssca4:STICKLINE(MACD<0 AND MACD<ssssca2 AND ssssca2<0,MACD,ssssca2,2,0),COLORGREEN;
AK: EMA(ssssca1,1)*1.22,COLORRED;
ssssca5: EMA(AK,3),COLORGREEN;
ssssca6:DRAWTEXT(REFX(sssscc2,1),AK*0.98,''),COLORWHITE;
ssssca8:DRAWTEXT(REFX(sssscc4,1),MACD,''),COLORYELLOW;