强弱:=EMA(COST(85),10);
分界:=EMA(COST(99),10);
DRAWBAND(强弱,RGB(80,00,20),分界,RGB(60,60,18));
UPSD:=强弱>REF(强弱,1) AND 分界>REF(分界,1);
TJRED:=IF(UPSD,分界,强弱);
DRAWBAND(TJRED,RGB(180,00,20),强弱,RGB(60,60,18));
DRAWKLINE(H,O,L,C);
VAR31:=HHV(HHV(LOW,7),240);
宝剑出鞘:EMA(EMA(VAR31,7)+0.5*STD(VAR31,7),8),COLORYELLOW,LINETHICK2;
S1:=LOW>(REF(HIGH,1)+0.001);
S2:=BARSLAST(S1);
S3:=COUNT(L>REF(H,S2+1),S2+1)=S2+1;
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;
量比:=V/REF(MA(V,5),1);
几倍:=1.9;
倍量量王:= 总量 >=REF(总量,1)*几倍 AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW;
天量:=总量=HHV(总量,120), COLORRED;
量王:=天量&&倍量量王&&量比>2&&(BARSCOUNT(C)+1)>120,COLORGREEN,LINETHICK1;
STICKLINE(量王,C,O,0.1,0),COLORGREEN;
DRAWLINE(量王,H,REF(量王,1),REF(H,1),1),COLOR0066BB,LINETHICK1;
量王支撑:DRAWLINE(量王,L,REF(量王,1),REF(L,1),1),COLORGREEN;
DRAWTEXT(ISLASTBAR,量王支撑,' 量王支撑线'),COLOR00F0F0;
{量王后划线--量王的第2天是高量。大概率是短顶。除非今天返包,真正突破要突破这一根线}
大额:=总量>REF(总量,1);
量王后:=REF(量王,1) AND 大额,COLORFF66CC,NODRAW;
量王后高:DRAWLINE(量王后,H,REF(量王后,1),REF(H,1),1),COLORMAGENTA,DOTLINE;{紫色-量王后最高价划线};
DRAWTEXT(ISLASTBAR,量王后高,' 量王后高'),COLOR00F0F0;
STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORYELLOW;
ZF9%:=C/REF(C,1)>1.09;
首次:=DYNAINFO(4)>0 AND BARSLASTCOUNT(ZF9%)=1;
A111:=C>REF(C,4);
NT9:=BARSLASTCOUNT(A111);
AS1:=NT9=9;
AS2:=BARSLAST(AS1>0);
AS3:=REF(H,AS2);
H11:IF(BARSLAST(AS1)>0 AND BARSLAST(AS1)<260,REF(H,BARSLAST(AS1)),DRAWNULL),COLORCDCDB4;{白水平线--破九划线}
{AS4:=AS2>4 AND C/REF(C,1)>1.09 AND C>AS3} {AND MIN(L,REF(L,1))<AS3};
AS4:=AS2>4 AND C/REF(C,1)>1.09 AND C>AS3 AND 首次;
AS5:=FILTER(AS4,13);
DRAWTEXT(FILTER(AS4>0,3),L*0.98,'9'),COLORGREEN;
X_1:=150;
X_2:=3;
X_3:=REF(HHV(HIGH,X_1),X_2);
X_4:=REF(LLV(LOW,X_1),X_2);
X_5:=X_3-(X_3-X_4)*0.618;
X_6:=REFDATE(X_5,DATE);
横盘天数:=BARSLASTCOUNT(CLOSE<X_6),COLORGREEN;
X_7:=CROSS(CLOSE,X_6);
X_8:=横盘天数>100;
X_9:=REF(X_8,1);
X_10:=X_9 AND X_7;
X111:=BARSLAST(X_10>0);
X121:REF(H,X111)COLOR0066BB,LINETHICK3;
X13:=CROSS(C,X121) AND C/REF(C,1)>1.07 AND X111>2;
X14:=C>X121 AND REF(L,1)<X121 AND C/REF(C,1)>1.07 AND X111>2;
X15:=X13 OR X14;
X16:=FILTER(X15,3);
X17:=C>X121 AND C/REF(C,1)>1.09;
X18:=FILTER(X17,20);
DRAWICON(X_10,L*0.95,26);DRAWICON(X17,H*0.92,33);
涨幅:=(C-REF(C,1))/REF(C,1)*100;
梯量:=EVERY(C>O,3) AND EVERY(C>REF(C,1),2) AND EVERY(V>REF(V,1),2) AND SUM(涨幅,3)<15;
DRAWTEXT(FILTER(梯量,2),H,'T3'),COLOR888888;
BK:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(FILTER(梯量,2)))+1),LINETHICK1,COLORD355BA;
T3:REF(H,BK),LINETHICK2,COLORFF55FF;
{9}
N:=CURRBARSCOUNT;
S:=C>REF(C,4);
TJ9:=N>=1 AND COUNT(S,9)=9 AND REF(S,9)=0;
DRAWNUMBER(TJ9,H*1.001,9),COLORYELLOW;
TJ9DAY:=BARSLAST(TJ9);
BK9:=BARSLAST(CURRBARSCOUNT=CONST(TJ9DAY+1));
J9:REF(H,BK9),COLORYELLOW,LINETHICK2;
LT:=LLVBARS(L,60);
LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);
HT:=FINDHIGHBARS(H,LT+1,60,1);
牛线:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORFF80FF,LINETHICK2;
牛线1:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORYELLOW,LINETHICK4,POINTDOT;
TT0:=BARSLAST(CURRBARSCOUNT=CONST(HT)+1);
DRAWTEXT(TT0=0,REF(H,TT0)*1.003,VARCAT(VARCAT('锅盖等突破 : ',VAR2STR(REF(H,TT0),2)),'元'))COLORWHITE;
DRAWTEXT(LTT=0,L*0.9997,'←锅底进'),COLORYELLOW;
MA250:EMA(C,250),COLORBLUE,LINETHICK2;
MA2501:EMA(C,250),COLORWHITE,POINTDOT;