Y1:SMA(RSV1,3,1);
Y2:SMA(Y1,6,1);
STICKLINE(Y1>Y2,Y1,Y2,6/3,0),COLOR0000FF;
STICKLINE(Y1<=Y2,Y1,Y2,6/3,0),COLORGREEN;
STICKLINE((Y1>Y2 AND ABS(Y1-Y2)STICKLINE((Y1>Y2 AND ABS(Y1-Y2)REF(Y1,1)),Y1,Y2,9/3,0),COLORBROWN;
STICKLINE((Y1
Y4:SMA(Y3,10,1),COLORLIBLUE,LINETHICK2;
STICKLINE(Y3>Y4,Y3,Y4,1/3,0),COLORFF00FF;
STICKLINE(Y3<=Y4,Y3,Y4,1/3,0),COLORBLUE;
LC:=REF(CLOSE,1);
TEMP1:=MAX(CLOSE-LC,0);
TEMP2:=ABS(CLOSE-LC);
A:SMA(TEMP1,10,1)/SMA(TEMP2,10,1)*100,COLORBLACK,LINETHICK2;
底:18;
中:50;
顶:85;
STICKLINE(A>中,A,中,2/3,0),COLORYELLOW;
STICKLINE(A<中,A,中,2/3,0),COLORLIGRAY;
金叉1:=CROSS(Y1,Y2);
STICKLINE(金叉1,顶,中,1/3,0),COLORRED;
死叉1:=CROSS(Y2,Y1);
STICKLINE(死叉1,顶,中,1/3,0),COLORGREEN;
金叉2:=CROSS(Y3,Y4);
STICKLINE(金叉2,中,底,1/3,0),COLORFF00FF;
死叉2:=CROSS(Y4,Y3);
STICKLINE(死叉2,中,底,1/3,0),COLORBLUE;