下影线:=(MIN(C,O)-L)/L*100;
实体:=(MAX(C,O)-MIN(C,O))/MIN(C,O)*100;
LLL:=REF(实体,4);
上影线:=(H-MAX(C,O))/MAX(C,O)*100;
LL:=REF(上影线,4);
XFG:=LL<LLL;
ZFG:=上影线<实体;
AA:=EMA(CLOSE,9)-EMA(CLOSE,2*9+2),NODRAW;
MAXV:=CONST(HHV(VOL,96));
MAXD:=CONST(MAX(ABS(HHV(AA,96)),ABS(LLV(AA,96))));
BS:=MAXV/MAXD;
CC:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN*0.8/BS,DRAWNULL);
S:=STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,CC,0,-1,-1),COLOR00C0C0;
VOLUME:=VOL*0.8/BS;
R:=VOL/((H-L)*2-ABS(O-C));
买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,VOLUME,R*(C-L)*0.8/BS);
D:=STICKLINE(VOLUME,0,VOLUME,2.2,0),COLORLIGREEN;
DD:=STICKLINE(买,0,买,2.2,0),COLORRED;
换手:=VOL/CAPITAL*100,COLORWHITE;
换手活跃:=(换手>=3 AND 换手<11);
主力控盘线:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,15)+MA(CLOSE,20)+MA(CLOSE,25)+MA(CLOSE,30))/6,;
DDD:=REF (C,3)< REF (O,3) AND REF (C,3)>REF(O,4);
DDS:=REF (C,2)< REF (O,2) AND REF (C,2)>REF(O,4);
DDK:=REF (C,1)< REF (O,1) AND REF (C,1)>REF(O,4);
连续四天缩量柱:=REF(V,3)<REF(V,4) AND REF(V,2)<REF(V,3) AND REF(V,1)<REF(V,2);
放量上涨:=(((REF(VOL,4)/REF(VOL,5))>=1.5) AND ((CLOSE/REF(CLOSE,1))>=1.02));
放量上涨Y:=(((REF(VOL,4)/REF(VOL,5))<=2.5) AND ((CLOSE/REF(CLOSE,1))>=1.02));
LS:=H>REF(H,3);
XGD:连续四天缩量柱 AND DDD AND DDS AND DDK AND 放量上涨 AND 放量上涨Y AND XFG AND 换手活跃 AND LS AND ZFG,COLORYELLOW,LINETHICK2;