N:=10;
X_1:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_2:=EMA(X_1,9);
DDD:=100*(X_1-X_2)*2,COLORFF00FF,LINETHICK2;
DDD2:=EMA(DDD,N),COLORGREEN,LINETHICK2;
X_3:=crOSS(DDD,DDD2) AND DDD2>=0 AND DDD2<1.5 AND CLOSE/REF(CLOSE,1)>1 AND CLOSE>MA(CLOSE,5) AND CROSS(CLOSE,REF(HHV(HIGH,15),1));
红三角:X_3;