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_33)/10;
FJ_35:=FJ_34<0.4 AND LLV(FJ_34,5)<3*LLV(FJ_34,100) OR FJ_34<0.2;
FJ_36:=CLOSE/REF(CLOSE,1)>1.03 AND CLOSE/REF(CLOSE,1)<1.11 AND CLOSE/FJ_2<1.13;
FJ_37:=FJ_12
FJ_39:=FJ_12>1.35*REF(FJ_12,1) AND FJ_12<7*REF(FJ_12,1) AND FJ_12>1.5 AND FJ_12>FJ_13 AND REF(FJ_38,1);
FJ_40:=FJ_23 AND FJ_39 AND FJ_36 AND FJ_27 AND FJ_35;
FJ_41:=0.6*(FJ_2>FJ_3 OR FJ_2>REF(FJ_2,1) OR FJ_11>FJ_2 AND FJ_26>(-0.02));
FJ_42:=0.5*(COUNT(CLOSE/REF(CLOSE,1)>1.06,60)>=6 OR COUNT(FJ_16,60)>=2 OR COUNT(FJ_16 OR FJ_19,30)>=1 OR COUNT(FJ_26>0.1,120)>20);
FJ_43:=0.2*(FJ_12>MAX(FJ_15,FJ_13) OR FJ_13>FJ_15 OR FJ_16) OR FJ_16 OR FJ_19 AND (FJ_12>MIN(FJ_15,FJ_13) AND CLOSE>FJ_2 OR FJ_26>0) OR FJ_13>=REF(FJ_13,1) AND CLOSE>REF(CLOSE,1);
FJ_44:=0.5*(FJ_43 OR FJ_41 AND FJ_42);
FJ_45:=FJ_16 OR FJ_19 AND FJ_44 AND FJ_26>0 AND FJ_6<0.23 AND FJ_10<0.25 AND FJ_7;
FJ_46:=BARSLAST(FJ_45);
活跃区间1:=FJ_44 AND EVERY(FJ_44,FJ_46+1);
FJ_47:=COUNT(FJ_45,0);
FJ_48:=FJ_45 AND 活跃区间1 AND COUNT(FJ_45,0)=1;
FJ_49:=FJ_45 AND 活跃区间1 AND REF(活跃区间1!=1,1) AND COUNT(FJ_45,0)>1;
FJ_50:=FJ_45 AND 活跃区间1 AND REF(FJ_44=0,1) AND COUNT(FJ_45,0)<=1;
启动1:=IF(COUNT(FJ_45,0)>1,FJ_49,FJ_48 OR (FJ_50 AND FJ_7));
FJ_51:=BARSLAST(FJ_49);
FJ_52:=REF(FJ_11,FJ_51);
FJ_53:=REF(OPEN,FJ_51);
FJ_54:=REF(LOW,FJ_51);
FJ_56:=FJ_52*0.95;
FJ_57:=IF(FJ_53
{关注区间:=0.6*(活跃区间1 AND (CLOSE>=FJ_57 OR CLOSE>FJ_2) AND FJ_51<=6 AND FJ_51>0);}
XG:=(启动1{ OR 关注区间>0});
STICKLINE(XG,0,3,1,0),COLORMAGENTA;
DRAWTEXT(XG,2.5,'活跃股'),COLORMAGENTA;