实时价格:=C,COLORWHITE,LINETHICK2;
均价线:=SUM(C*V,240)/SUM(V,240),COLORRED,LINETHICK2;
VAR1:=BARSCOUNT(C);
VAR2:=REF(HHV(H,VAR1),1);
突破:=CROSS(C,REF(HHV(H,VAR1),1)) AND C/均价线< 1.09 AND VAR1>1 AND VAR1< 240;
机构买:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,VAR1),1));
VAR3:=MA(((SLOPE(C,20)*5)+C),10);
VAR4:=HOUR=09 AND MINUTE=45;
VAR5:=HHV(H,15);
VAR6:=BARSLAST(VAR4);
VAR7:=REF(VAR5,VAR6);
VAR8:=CONST(VAR7),COLORFF80FF,CIRCLEDOT,LINETHICK2;
VAR9:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR10:=EMA(VAR9,9);
VAR11:=(VAR9-VAR10)*2;
VAR12:=VAR11>00 AND VAR9>0 AND VAR10>0;
VAR13:=HOUR=10 AND MINUTE=0;
VAR14:=HHV(H,30);
VAR15:=BARSLAST(VAR13);
VAR16:=REF(VAR14,VAR15);
VAR17:=CONST(VAR16);
VAR18:=CLOSE>VAR17 AND REF(C<=VAR17,1) AND CLOSE>VAR3;
VAR19:=FILTER(VAR18,100);
VAR20:=DYNAINFO(3);
VAR21:=CLOSE<=VAR20*1.04 AND CLOSE>VAR20;
量化指标:=V/REF(MA(V,5),1);
VAR22:=VAR12 AND VAR19 AND VAR21 AND VAR16>VAR20 AND 量化指标>=1;
X_1:=MAX(DYNAINFO(3),DYNAINFO(5));
X_2:=MIN(DYNAINFO(3),DYNAINFO(6));
X_3:=X_1-X_2;
压力位:=X_2+X_3*8/9,COLORLIRED,DOTLINE;
主力线:=X_2+X_3*0.5/9,COLORGREEN,DOTLINE;
DRAWTEXT(FILTER(CROSS(C,主力线),240),L-0.01,'低吸'),COLORYELLOW;
DRAWTEXT(FILTER(CROSS(C,压力位),240),H-0.01,'压力'),COLOR0000FF;
X_4:=V*C/100;
X_5:=SUM((IF(((X_4/8>20) AND (CLOSE>(REF(CLOSE,1)))),X_4,0)),0);
X_6:=SUM((IF(((X_4/8>20) AND (CLOSE< (REF(CLOSE,1)))),X_4,0)),0);
X_7:=SUM((IF(((X_4/8< 20) AND (CLOSE>(REF(CLOSE,1)))),X_4,0)),0);
X_8:=SUM((IF(((X_4/8< 20) AND (CLOSE< (REF(CLOSE,1)))),X_4,0)),0);
X_9:=BARSLAST(CLOSE=HHV(CLOSE,60));
X_10:=BARSLAST(CLOSE=LLV(CLOSE,60));
X_11:=X_10>X_9 AND X_10>X_9;
X_12:=X_10>X_9 AND X_10< X_9;
X_13:=X_9>X_10 AND X_9>X_10;
X_14:=X_9>X_10 AND X_9< X_10;
DRAWICON(FILTER(CROSS(X_10,X_9),240),OPEN*1,1);
DRAWTEXT(FILTER(CROSS(X_10,X_9),240) ,OPEN*1,' ←抓涨'),COLORRED;
Y_1:=BARSCOUNT(C);
Y_2:=SUM(C*V,Y_1)/SUM(V,Y_1);
Y_3:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
Y_4:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
量价突破:=C>Y_2 AND V>MA(V,5);
量突破:=V>=REF(V,1)*1;
价突破:=C>=HHV(C,0);
Y_5:=V>=HHV(V,0);
Y_6:=(C/DYNAINFO(3)-1)*100<=4.50;
Y_7:=Y_3 AND Y_4 AND 量价突破 AND 量突破 AND 价突破 AND Y_5 AND Y_6;
Y_8:=BARSSINCE(Y_7)+1;
首爆价:=REF(C,Y_8-1),NODRAW;
DRAWICON(Y_7,C,9);
Y_9:=FILTER(CROSS(X_10,X_9),240);
Y_10:=BARSSINCE(Y_9)+1;
Y_11:=CROSS(C,REF(HHV(H,VAR1),1)) AND HHVBARS(VOL,VAR1)=0 AND C/均价线< 1.09 AND VAR1>1 AND VAR1< 240 AND BARSLAST(机构买)>=20 AND Y_6;
DRAWICON(Y_11,C,23);
Y_12:=C/REF(C,3)>1.04 ;
DRAWTEXT(Y_12,C*0.995,' ←突破'),COLORYELLOW;