VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=3*VAR2-2*VAR3;
VAR5:=VAR2>VAR3 AND VAR4>VAR3 AND VAR4>VAR2;
VAR6:=CAPITAL*C/1000000;VAR7:=(C-REF(C,1))/REF(C,1)*100;
VAR8:=NOT(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S') OR DYNAINFO(4)=0 OR INBLOCK('创业板') OR INBLOCK('科创板')) OR BARSCOUNT(C)>1;
VAR9:=VAR6>0 AND VAR6<80;
VAR10:=VAR7>9.8 AND VAR7<10.99 AND C=H;
VAR11:=C>2 AND C<22;VAR12:=COUNT(VAR10,2)=1;
VAR13:=VAR5 AND VAR8 AND VAR9 AND VAR10 AND VAR11 AND VAR12;
VAR14:=(C/REF(C,1)-1)*100;VAR15:=(O/REF(C,1)-1)*100;
VAR16:=DYNAINFO(15)/O/100;
VAR17:=(EMA(O,20)-REF(EMA(O,20),1))/REF(EMA(O,20),1)*100;
VAR18:=REF(L,BARSLAST(crOSS(VAR17,0)));
VAR19:=(O-VAR18)/VAR18*100;
VAR20:=CODELIKE('60') OR CODELIKE('00');
VAR21:=(C/REF(C,1)-1)*100>9.8 AND H=C;LB1:=EVERY(VAR21,4)<3;
VAR22:=LB1 AND VAR19<=20 AND REF(VAR14>9.80,1) AND VAR15>=2 AND VAR15<=7.5 AND VAR20;MA10:MA(C,10)DOTLINE,COLORLIMAGENTA;
STICKLINE(VAR13,C,O,2,0),COLORYELLOW;STICKLINE(VAR13,C,O,1,0),COLORYELLOW;
DRAWTEXT(VAR13,L*0.99,'←活跃'),COLORYELLOW;DRAWICON(VAR13,L*0.999,11);
STICKLINE(VAR22,C,O,2,0),COLORYELLOW;STICKLINE(VAR22,C,O,1,0),COLORYELLOW;
DRAWTEXT(VAR22,L*0.99,'←起飞'),COLORYELLOW;DRAWICON(VAR22,L*0.999,9);
主力活跃:VAR16/REF(V,1)*100,COLORRED,NODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V>0,0.85,0.9001,0,'主力活跃值:'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND V>0,0.92,0.9001,0,主力活跃),COLORYELLOW;