VAR1:=(CLOSE-REF(CLOSE,3))/REF(CLOSE,3)*100;
VAR2:=(CLOSE-REF(CLOSE,4))/REF(CLOSE,4)*100;
VAR3:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5)*100;
VAR4:=(CLOSE-REF(CLOSE,6))/REF(CLOSE,6)*100;
VAR5:=(CLOSE-REF(CLOSE,7))/REF(CLOSE,7)*100;
VAR6:=(CLOSE-REF(CLOSE,8))/REF(CLOSE,8)*100;
VAR7:=(CLOSE-REF(CLOSE,9))/REF(CLOSE,9)*100;
VAR8:=(CLOSE-REF(CLOSE,10))/REF(CLOSE,10)*100;
VAR9:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100+(CLOSE-REF(CLOSE,2))/REF(CLOSE,2)*100+VAR1+VAR2+VAR3;
VAR10:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100+(CLOSE-REF(CLOSE,2))/REF(CLOSE,2)*100+VAR1+VAR2+VAR3+VAR4+VAR5+VAR6+VAR7+VAR8;
VAR11:=(VAR9*30-REF(SUM(VAR9,3),1))/10;
VAR12:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR13:=SUM(VAR12,3)*30-MA(SUM(VAR12,3),45);
VAR14:=VAR12*30-REF(SUM(VAR12,3),1);
VAR15:=MA(ZJL.折价率#WEEK,PERIOD)+2*STD(ZJL.折价率#WEEK,PERIOD);
VAR16:=MA(ZJL.折价率#WEEK,5*PERIOD)+2*STD(ZJL.折价率#WEEK,5*PERIOD);
VAR17:=MA(ZJL.折价率#WEEK,6*PERIOD)+2*STD(ZJL.折价率#WEEK,6*PERIOD);
VAR18:=MA(ZJL.折价率#WEEK,7*PERIOD)+2*STD(ZJL.折价率#WEEK,7*PERIOD);
VAR19:=MA(VAR15-REF(VAR15,2*PERIOD),PERIOD)+2*STD(VAR15-REF(VAR15,3*PERIOD),PERIOD);
VAR20:=REF(HHV(VAR16,5),11);
VAR21:=IF(REF(HHV(VAR16,5),1)<REF(MAX(REF(HHV(VAR16,5),6),VAR20),BARSLAST(crOSS(VAR16,MAX(REF(HHV(VAR16,5),6),VAR20)))),REF(MAX(REF(HHV(VAR16,5),6),VAR20),BARSLAST(CROSS(VAR16,MAX(REF(HHV(VAR16,5),6),VAR20)))),REF(HHV(VAR16,5),1));
VAR22:=REF(HHV(VAR19,5),11);
VAR23:=VAR16>VAR21 AND VAR17>VAR21;
VAR24:=CROSS(((VAR10*30-REF(SUM(VAR10,3),1))/10+VAR11+(SUM(VAR9,3)*30-MA(SUM(VAR9,3),45))/10+VAR13+VAR14)/5,100);
VAR25:=CROSS(VAR19,MAX(REF(HHV(VAR19,5),6),VAR22));
VAR26:=MAX(REF(HHV(VAR19,5),6),VAR22);
VAR28:=IF(REF(HHV(VAR19,5),1)<REF(VAR26,BARSLAST(VAR25)),REF(MAX(REF(HHV(VAR19,5),6),VAR22),BARSLAST(VAR25)),REF(HHV(VAR19,5),1));
VAR29:=VAR24 AND VAR19>VAR28 AND VAR23 AND VAR18>VAR21 AND BARSLAST(VAR12>9)<30 AND vol/CAPITAL*100>5;
STICKLINE(VAR29,80,100,2,0),COLORRED;