DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1
AND 底背离;
黑马来临:IF(二次金叉>0,C,0);
求质钟表行店:黑马来临;
买:STICKLINE(二次金叉,0, C*0.8,4,0),COLORFF00FF,LINETHICK2;
准备:STICKLINE(底背离,0, C*0.4,3,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(二次金叉,C*0.75,'*黑马来临'),LINETHICK3,COLORFFFFFF;
DRAWTEXT(底背离,C*0.3,'↙准备'),LINETHICK3 ,,COLOR38B0DE;