SJ:=1;
H1:EMA(C,12)*SJ;
H2:EMA(H1,50)*SJ;
VAR1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;
VAR2:=SMA(VAR1,5,1);{股票指标网70822}
VAR3:=SMA(VAR2,8,1);
VAR4:=CROSS(VAR2,VAR3) AND VAR3< 20;
VAR5:=C>LLV(C,60)*1.13 AND VAR4;
VAR6:=IF(C>200,VAR4,VAR5);
STICKLINE(H1>H2,H1,H2,0,1),COLORRED;
STICKLINE(H1< H2,H1,H2,0,1),COLORGREEN;
XCLOSE:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3);
IF((H1>=CLOSE),H1,DRAWNULL),LINETHICK1,COLORGREEN;
IF((H1<CLOSE),H1,DRAWNULL),LINETHICK1,COLORRED;
XCLOSE2:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3);
IF((H2>=XCLOSE2),H2,DRAWNULL),LINETHICK2,COLORBLUE;
IF((H2<XCLOSE2),H2,DRAWNULL),LINETHICK2,COLORMAGENTA;