X_1:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_2:=EMA(X_1,9);
X_3:=REF(CLOSE,1);
X_4:=BARSLAST(REF(crOSS(X_1,X_2),1));
X_5:=REF(CLOSE,X_4+1)>CLOSE AND REF(X_1,X_4+1)<X_1 AND CROSS(X_1,X_2);
macd底背:IF(X_5>0,(-0.1),0);
X_6:=BARSLAST(REF(crOSS(kdj.K(9,3,3),kdJ.D(9,3,3)),1));
X_7:=REF(CLOSE,X_6+1)>CLOSE AND REF(KDJ.K(9,3,3),X_6+1)<KDJ.K(9,3,3) AND CROSS(KDJ.K(9,3,3),KDJ.D(9,3,3));
KDJ底背:IF(X_7>0,(-0.1),0);

