UP:IF(DIF VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1),COLORBB0000,LINETHICK1;
DN:IF(DIF VAR2 AND DEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2),COLORAA00AA,LINETHICK1;
DIF,COLORGREEN;
DEA,COLORGREEN;
零上金叉买:0,COLORBLUE,CROSSDOT,LINETHICK1;
IF(DIF DEA,DIF,DRAWNULL),COLORRED,LINETHICK1;
IF(DEA REF(DEA,1),DEA,DRAWNULL),COLORMAGENTA;
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
LOWV:=LLV(LOW,3);
HIGHV:=HHV(HIGH,3);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
STICKLINE(MACD REF(MACD,1)AND CROSS(K,J),0,MACD,2,0),COLORGREEN;
STICKLINE(MACD REF(MACD,1)AND CROSS(J,K),0,MACD,2,0),COLORRED;