VAR1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),24,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),24,1)*100;
VAR3:=VAR1<VAR2;
STICKLINE(VAR3,OPEN,HIGH,0,0),COLORGREEN;
STICKLINE(VAR3,CLOSE,LOW,0,0),COLORGREEN;
STICKLINE(VAR3,OPEN,CLOSE,3,1),COLORGREEN;
VAR4:=CLOSE>0;{股票指标网}
STICKLINE(VAR4,OPEN,HIGH,0,0),COLORGREEN;
STICKLINE(VAR4,CLOSE,LOW,0,0),COLORGREEN;
STICKLINE(VAR4,OPEN,CLOSE,3,1),COLORGREEN;
VAR5:=IF(EXIST(VAR3,4),DRAWNULL,VAR1>VAR2);
STICKLINE(VAR5,OPEN,HIGH,0,0),COLORRED;
STICKLINE(VAR5,CLOSE,LOW,0,0),COLORRED;
STICKLINE(VAR5,OPEN,CLOSE,3,0),COLORRED;
VAR6:=VAR1>85 AND NOT(CLOSE>REF(CLOSE,1)*1.09 AND OPEN=CLOSE);
STICKLINE(VAR6,OPEN,HIGH,0,0),COLORYELLOW;
STICKLINE(VAR6,CLOSE,LOW,0,0),COLORYELLOW;
STICKLINE(VAR6,OPEN,CLOSE,3,0),COLORYELLOW;
VAR7:=VAR1<30 AND NOT(CLOSE<REF(CLOSE,1)*0.91);
STICKLINE(VAR7,OPEN,HIGH,0,0),COLORBLUE;
STICKLINE(VAR7,CLOSE,LOW,0,0),COLORBLUE;
STICKLINE(VAR7,OPEN,CLOSE,3,1),COLORBLUE;
VAR8:=RANGE(BARSLASTCOUNT(VAR1>VAR2),0,6);
VAR9:=VAR8 AND REF(VAR7,1);
VAR10:=VAR9 OR (VAR8 AND REF(VAR9,1)) OR (VAR8 AND REF(VAR9,2));
STICKLINE(VAR10,OPEN,HIGH,0,0),COLORLIGRAY;
STICKLINE(VAR10,CLOSE,LOW,0,0),COLORLIGRAY;
STICKLINE(VAR10,OPEN,CLOSE,3,1),COLORLIGRAY;
DRAWICON(CROSS(VAR5,0.5),LOW*0.98,1);
DRAWICON(CROSS(VAR5,0.5),LOW*0.96,7);
DRAWICON(CROSS(VAR3,0.5) AND REF(VAR5,1),HIGH*1.02,2);
DRAWICON(CROSS(VAR3,0.5) AND REF(VAR5,1),HIGH*1.04,8);