VAR2:=1;
VAR3:=1;
VAR4:=MA((2*CLOSE+HIGH+LOW)/4,5);
VAR5:=VAR4*1.02;
VAR6:=VAR4*0.98;
VAR7:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
VAR8:=DMA(CLOSE,VAR7);
VAR9:=1.07*VAR8;
VAR10:=0.93*VAR8;
VAR11:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1000;
VAR12:=(VAR9-REF(VAR9,5))/REF(VAR9,5)*1000;
VAR13:=MA(CLOSE,9);
VAR14:=VAR5>VAR9;
VAR15:=COUNT(VAR12>=REF(VAR12,1),2)>=2;
VAR16:=MA(VOL,10)>=MA(VOL,55);
VAR17:=COUNT(CLOSE>OPEN,7)>=4;
VAR18:=VAR14 AND VAR15 AND VAR16 AND VAR17;
VAR19:=LLV(LOW,10);
VAR20:=HHV(HIGH,25);
VAR21:=EMA((CLOSE-VAR19)/(VAR20-VAR19)*4,4);
VAR22:=(LOW+HIGH+CLOSE*2)/4;
VAR23:=EMA(VAR22,14);
VAR24:=(VAR6-VAR13)/VAR13*100;
VAR25:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
VAR26:=REF((VAR6-VAR25)/VAR25*100,1);
VAR27:=REF(VAR18,1) OR REF(VAR18,2);
VAR28:=REF(COUNT(VOL>MA(VOL,5) OR VOL>MA(VOL,20) OR VOL>MA(VOL,135) AND CLOSE>OPEN,10),1)>=6;
VAR29:=REF(VAR5>REF(VAR5,1) AND VAR9>REF(VAR9,1) AND VAR5>VAR9 AND COUNT(CLOSE>OPEN,7)>=4,1);
VAR30:=VAR5>VAR9 AND VAR9>=REF(VAR9,1);
VAR31:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1) AND MA(CLOSE,55)>=REF(MA(CLOSE,55),1);
VAR32:=LOW
VAR36:=VAR27 AND VAR30 AND VAR28 AND VAR31 AND VAR32 AND VAR29 AND VAR33 AND VAR34 AND VAR35;
VAR37:=IF(REF(EXIST(REF(VAR36,1) AND HIGH>ZTPRICE(REF(LOW,1),0.04),4),1),0,1);
VAR38:=IF(NAMELIKE(55) OR NAMELIKE(56) OR NAMELIKE(10),0,1);
VAR39:=IF(CODELIKE(57),0,1);
阶段卖出:3.2,COLORCYAN;
顶部清仓:3.5,COLORGREEN;
强弱分界:1.85,DOTLINE,COLORYELLOW;
重点关注:0.5,COLORRED;
底部介入:0.2,COLORGREEN;
乖离1:VAR24,NODRAW,COLORYELLOW;
乖离2:VAR26,NODRAW,COLORYELLOW;
STICKLINE(VAR21>REF(VAR21,1),VAR21,REF(VAR21,1),3,1),COLORRED;
STICKLINE(VAR21<=REF(VAR21,1),VAR21,REF(VAR21,1),3,1),COLORGREEN;
DRAWICON(FILTER(CROSS(VAR21,重点关注),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(顶部清仓,VAR21),20),VAR21+0.02,2);
DRAWICON(FILTER(CROSS(VAR21,底部介入),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(阶段卖出,VAR21),20),VAR21+0.02,2);
DRAWNUMBER(ISLASTBAR,2.5,VAR21),COLORGREEN;
DRAWICON(FILTER(CROSS(VAR21,重点关注),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(0.5,VAR21),20),0.6,2);
STICKLINE(VAR21>REF(VAR21,1),VAR21,REF(VAR21,1),3,1),COLORRED;
STICKLINE(VAR21<=REF(VAR21,1),VAR21,REF(VAR21,1),3,1),COLORGREEN;
DRAWICON(FILTER(CROSS(VAR21,重点关注),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(顶部清仓,VAR21),20),VAR21+0.02,2);
DRAWICON(FILTER(CROSS(VAR21,底部介入),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(阶段卖出,VAR21),20),VAR21+0.02,2);
DRAWNUMBER(ISLASTBAR,2.5,VAR21),COLORGREEN;
DRAWICON(FILTER(CROSS(VAR21,重点关注),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(0.5,VAR21),20),0.6,2);
VAR40:=VAR36 AND VAR37 AND VAR3;
超短:IF(VAR40,2.5,0),STICK,COLORMAGENTA,LINETHICK4;
VAR41:=EXIST(VAR40,5) AND EXIST(CROSS(MA(CLOSE,9),VAR6),2) AND (CLOSE>REF(CLOSE,1) AND CLOSE>OPEN) AND CLOSE>VAR6 AND LOW
持股:FILTER(VAR41,2),NODRAW,COLORYELLOW;
DRAWICON(持股,1,23);