MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
强弱:EMA(COST(85),10),COLORRED,DOTLINE;
分界:EMA(COST(99),10),COLORGREEN,DOTLINE;
S1:=LOW>(REF(HIGH,1)+0.001);
S2:=BARSLAST(S1);
S3:=COUNT(L>REF(H,S2+1),S2+1)=S2+1;
S4:=CROSS(BACKSET(S3>0 AND ISLASTBAR,S2+1),0.5);
S5:=BARSLAST(S4);
上:=IF(CURRBARSCOUNT<=CONST(S5+1),CONST(LLV(L,S5+1)),DRAWNULL),COLORGRAY;
下:=IF(CURRBARSCOUNT<=CONST(S5+1),REF(H,S5+1),DRAWNULL),COLORGRAY;
MV10:=MA(V,10);
AVG_V:=(V-MV10)/MV10*100;
量差:=AVG_V-REF(AVG_V,1);
假阴:=C>REF(C,1) AND C<O;
高开:=(O-REF(C,1))/REF(C,1)*100;
倍量:=V>REF(V,1)*1.69 AND V>REF(HHV(V,20),1);
振幅:=(H-L)/REF(C,1)*100;
ZF:=(C-REF(C,1))/REF(C,1)*100;
涨停:=C/REF(C,1)>1.06 ;
三元:=EVERY(涨停,3) OR EVERY(涨停,2);
XG1:=REF(三元,1) AND 倍量;
XG2:=三元 AND 倍量;
XG0610:=三元 AND 量差>REF(HHV(量差,20),1);
XG2265:=REF(EVERY(涨停,2),1) AND 振幅>15 AND ZF>0.5 AND 倍量;
XG600352:=高开>=6 AND 假阴 AND REF(EVERY(涨停,2),1) AND 倍量;
XG3:=XG2 OR XG1 OR XG0610 OR XG2265 OR XG600352;
XGOK:=FILTER(XG3,2);
T:=BARSLAST(XGOK),COLORYELLOW,NODRAW;
Z1:=BARSLAST(CROSS(C,REF(C,T)));
PZ:=Z1>0 AND COUNT(MAX(C,O)>REF(C,T),Z1)=Z1 AND Z1<20 AND C/REF(C,1)>1.085;
PZ1:=FILTER(PZ>0,10);
PZ2:=FILTER(T>1 AND COUNT(MAX(C,O)>REF(C,T),T)=T AND T<20 AND C/REF(C,1)>1.085,10);
P3:=PZ1 OR PZ2;
总量:=AMOUNT,VOLSTICK;
量比:=V/REF(MA(V,5),1),COLORBROWN;
几倍:=1.9;
倍量量王:=总量>=REF(总量,1)*几倍 AND (IF(C<O,C>REF(C,1),1));
天量:=总量=HHV(总量,120),COLORRED;
量王0:=天量 && 倍量量王 && 量比>2 && (BARSCOUNT(C)+1)>120;
量王1:DRAWLINE(量王0,H,REF(量王0,1),REF(H,1),1),COLOR0066BB,NODRAW;
量王2:DRAWLINE(量王0,L,REF(量王0,1),REF(L,1),1),COLORGREEN,NODRAW;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
主力线:=EMA((CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5;
散户线:=EMA((CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5;
加仓:P3>0,COLORYELLOW,NODRAW;
做多:CROSS(MA(CLOSE,1),分界) AND 分界/REF(分界,1)>1.001,COLORRED,NODRAW;
STICKLINE(量王0,C,O,0.1,0),COLORGREEN;
DRAWBAND(强弱,RGB(80,00,20),分界,RGB(60,60,18));
STICKLINE(CURRBARSCOUNT<=CONST(S5+1),上,下,5,0),COLORGRAY;
DRAWKLINE(H,O,L,C);
DRAWICON(加仓,L*0.99,23);
DRAWICON(做多,L*0.99,42);