买:=IF("KDJ.J"<-10,10,0);
条件:=CROSS(9.9,买);
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,5);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);
MA1:=MA(VAR4,2);{}
STICKLINE(VAR4>MA1,VAR4+3,MA1,4,1),COLORRED;
STICKLINE(VAR4<=MA1,VAR4-3,MA1,4,1),COLORFFCC66;
STICKLINE(CROSS(9.9,买),VAR4+4,MA1-5,4,1),COLORYELLOW;
DRAWICON(CROSS(9.9,买),VAR4-18,11);
XXX:STICKLINE(VAR4>MA1 AND REF(VAR4,1)<15,VAR4+4,MA1-5,6,1),COLORMAGENTA;
DRAWICON(XXX>9,VAR4-18,7);