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21),6),6);
HJ_23:=LLV(HJ_22,2)=LLV(HJ_22,7) AND COUNT(HJ_22<0,2) AND CROSS(HJ_22,MA(HJ_22,2));
HJ_24:=FILTER(HJ_23=1,5) AND CLOSE>HJ_15 AND HJ_2;
HJ_25:=IF(HHV(ABS(HHV(CLOSE,6)/LLV(CLOSE,6)-1),6)>10/100,3,6);
HJ_26:=IF(MINUTE=5,HJ_25*48,IF(MINUTE=15,HJ_25*16,IF(MINUTE=30,HJ_25*8,IF(MINUTE=60,HJ_25*4,HJ_25))));
HJ_27:=IF(VOL=0,MA(CLOSE,HJ_26),SUM(AMOUNT,HJ_26)/SUM(VOL,HJ_26)/100);
HJ_28:=MA(CLOSE,5)>REF(MA(CLOSE,5),1) AND REF(CLOSE>OPEN OR CLOSE<OPEN,69) AND HIGH/CLOSE<1.02 AND REF(CLOSE>OPEN OR CLOSE<OPEN,158);
HJ_29:=REF(MA(CLOSE,5)<REF(MA(CLOSE,5),1),1) AND REF(CLOSE>OPEN OR CLOSE<OPEN,164) AND REF(CLOSE>OPEN OR CLOSE<OPEN,14);
HJ_30:=CLOSE>OPEN AND REF(CLOSE>OPEN,1) AND REF(CLOSE<OPEN,2) AND REF(OPEN/CLOSE>1.02,2) AND REF(OPEN/CLOSE<1.08,46);
HJ_31:=IF(CROSS(CLOSE,REF(HJ_27,1)),REF(HJ_27,1),0);
HJ_32:=HHV(HJ_31>0,BARSLAST(IF(CROSS(REF(HJ_27,1),CLOSE),REF(HJ_27,1),0)>0)+1);
HJ_33:=HJ_32>REF(HJ_32,1) AND CROSS(EMA(CLOSE,3),EMA(CLOSE,21));
HJ_34:=HJ_28 AND HJ_29 AND HJ_30 AND HJ_33 AND HJ_2;
狙击预警:HJ_10 AND NOT((REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)>0.07),COLORRED,LINETHICK2;
HJ_35:=EXIST(REF(HJ_10,1),2) AND (CLOSE>OPEN OR OPEN=CLOSE) OR HJ_24 OR HJ_34 AND (NOT((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<(-0.05)) AND NOT((OPEN-REF(CLOSE,1))/REF(CLOSE,1)<(-0.03)) OR (CLOSE/OPEN=1 AND HIGH>CLOSE AND LOW<CLOSE));
STICKLINE(IF(HJ_35,1.5,0),0,0.4,3,0),COLOR0014FF;
STICKLINE(IF(HJ_35,1.5,0),0.4,0.65,2,0),COLORBLUE;
STICKLINE(IF(HJ_35,1.5,0),0.65,0.8,1,0),COLORYELLOW;
HJ_36:=HHV(HIGH,60);
HJ_37:=CROSS(HIGH,REF(HJ_36,1)) AND VOL<REF(VOL,1) AND CLOSE>OPEN;
HJ_38:=20;
HJ_39:=FILTER(CLOSE>=HHV(HIGH,HJ_38) AND CLOSE>OPEN AND BARSCOUNT(CLOSE)>4 AND NOT(REF(CLOSE,1)>REF(CLOSE,2)*1.03),10);
狙击突破:FILTER(HJ_37 OR HJ_39 AND HJ_2,10),COLORLIMAGENTA,LINETHICK2;
{-----------------------------------} |