X_1:=12;
X_2:=26;
X_3:=9;
X_4:=EMA(CLOSE,X_1)-EMA(CLOSE,X_2);
X_5:=EMA(X_4,X_3);
X_6:=(X_4-X_5)*2;
X_7:=X_6;
X_8:=CONST(HHV(X_6,240));
X_9:=0.3*X_8;
DIF:X_4,COLORGREEN;
DEA:X_5,COLORWHITE;
DIF升:IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORMAGENTA;
DEA升:IF(DEA>=REF(DEA,1),DEA,DRAWNULL),COLORLIRED;
MACD:X_6,COLORSTICK,COLORYELLOW;
X_10:=CROSS(DIF,DEA);
X_11:=X_10 AND DEA>0;
X_12:=BARSLAST(CROSS(0,DEA));
X_13:=COUNT(X_11,X_12);
X_14:=X_11 AND X_13=2;
DRAWICON(X_14,0.8*DEA,1);
DRAWICON(X_14,0.7*DEA,1);
X_15:=BARSLAST(REF(CROSS(DIF,DEA) AND DIF<0,1));
X_16:=HHV(CLOSE,6);
X_17:=REF(X_16,X_15+1)>X_16 AND REF(DIF,X_15+1)<DIF AND CROSS(DIF,DEA) AND DIF<0 AND X_15>=12;
X_18:=KDJ.K(9,3,3);
X_19:=KDJ.D(9,3,3);
X_20:=RSI.RSI1(6,12,24);
X_21:=RSI.RSI2(6,12,24);
X_22:=BARSLAST(REF(CROSS(X_18,X_19),1));
X_23:=REF(CLOSE,X_22+1)>CLOSE AND REF(X_18,X_22+1)<X_18 AND CROSS(X_18,X_19) AND X_22>=9;
X_24:=BARSLAST(REF(CROSS(X_20,X_21),1));
X_25:=REF(CLOSE,X_24+1)>CLOSE AND REF(X_20,X_24+1)<X_20 AND CROSS(X_20,X_21) AND X_24>=6;
X_26:=BARSLAST(REF(CROSS(DEA,DIF) AND DIF>0,1));
X_27:=LLV(CLOSE,6);
X_28:=REF(X_27,X_26+1)<X_27 AND REF(DIF,X_26+1)>DIF AND CROSS(DEA,DIF) AND DIF>0 AND X_26>=12;
X_29:=BARSLAST(REF(CROSS(X_19,X_18),1));
X_30:=REF(CLOSE,X_29+1)<CLOSE AND REF(X_18,X_29+1)>X_18 AND CROSS(X_19,X_18) AND X_29>=9;
X_31:=BARSLAST(REF(CROSS(X_21,X_20),1));
X_32:=REF(CLOSE,X_31+1)<CLOSE AND REF(X_20,X_31+1)>X_20 AND CROSS(X_21,X_20) AND X_31>=6;
M底背:IF(X_17>0,1,0),NODRAW,COLORRED;
K底背:IF(X_23>0,1,0),NODRAW,COLORMAGENTA;
R底背:IF(X_25>0,1,0),NODRAW,COLORYELLOW;
M顶背:IF(X_28>0,1,0),NODRAW,COLORGREEN;
K顶背:IF(X_30>0,1,0),NODRAW,COLORFFCC66;
R顶背:IF(X_32>0,1,0),NODRAW,COLORGRAY;
STICKLINE(M底背,(-0.33)*X_9,0,1,0),COLORRED;
STICKLINE(K底背,(-0.66)*X_9,0,1,0),COLORMAGENTA;
STICKLINE(R底背,-X_9,0,1,0),COLORYELLOW;
STICKLINE(M顶背,0.33*X_9,0,2,0),COLORGREEN;
STICKLINE(K顶背,0.66*X_9,0,2,0),COLORFFCC66;
STICKLINE(R顶背,X_9,0,2,0),COLORGRAY;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,0,0),COLOR00CCFF;
STICKLINE(MACD>=REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORFF5599;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORFFFF55;
J:KDJ.J,NODRAW;
RSI:X_20,NODRAW,COLORMAGENTA;
CCI:CCI,NODRAW;
|