VAR1:=DAY!=REF(DAY,1);
VAR2:=BArslAST(VAR1)+1;
均价:=SUM(AMO,VAR2)/SUM(vol,VAR2)/100,COLORBLUE;
现价:=C,COLORRED,LINETHICK4;
盘整:=IF(HOUR>9 AND RANGE(HHV(C,60)/LLV(C,60),1,1.02),C,DRAWNULL),COLORWHITE,LINETHICK3;
V1:=Ema(V,1);
HH:=C>REF(C,1) AND V1<REF(V1,1) AND C/均价>(1+0.03);
LL:=C<REF(C,1) AND V1>REF(V1,1) AND C/均价<(1-0.03);
DRAWICON(FILTER(HH,240),C,39);
DRAWICON(FILTER(LL,240),C,38);
SS:=crOSS(SUM(C<=REF(C,1),BARSLAST(HH))=1,0.5);
BB:=CROSS(SUM(C>=REF(C,1),BARSLAST(LL))=1,0.5);
BB2:=CROSS(SUM(BB,0),0.5) ;
SS2:=CROSS(SUM(SS,0),0.5) ;
CB2:CONST(SUM(IF(BB2,REF(C,1),DRAWNULL),0)),COLORWHITE,LINETHICK2;
CS2:CONST(SUM(IF(SS2,REF(C,1),DRAWNULL),0)),COLORCYAN,LINETHICK2;
BB3:=IF(CROSS(SUM(CROSS(BB AND C/CB2<0.95,0.5),0),0.5) AND SUM(BB,0)>1,1,0);
SS3:=IF(CROSS(SUM(CROSS(SS AND C/CS2>1.05,0.5),0),0.5) AND SUM(SS,0)>1,1,0);
CB3:CONST(SUM(IF(BB3,REF(C,1),DRAWNULL),0)),COLORWHITE;
CS3:CONST(SUM(IF(SS3,REF(C,1),DRAWNULL),0)),COLORCYAN;
DRAWTEXT(BB2,REF(C,1)*0.99,'低吸1'),COLORWHITE;
DRAWTEXT(SS2,REF(C,1)*1.01,'高抛1'),COLORCYAN;
DRAWTEXT(BB3,REF(C,1)*0.99,'低吸2'),COLORWHITE;
DRAWTEXT(SS3,REF(C,1)*1.01,'高抛2'),COLORCYAN;
DRAWICON(BB2 OR BB3,REF(C,1)*0.99,1);
DRAWICON(SS2 OR SS3,REF(C,1)*1.01,2);
MA30:=ema(CLOSE,30);
强弱:=EMA(CLOSE,900);
H1:=MAX(DYnaINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00DD00;
支撑:L1+P1*0.5/8,COLOR00DD00;
DRAWTEXT(LONGCROSS(支撑,现价,2),现价*1.001,'★B'),COLORBLUE;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORWHITE;{抛};