主图
中线:=EMA(C,29);
慢线:=EMA(C,54);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(H/REF(C,1)>=1.095 AND C<>H,H,L,4,1),COLORYELLOW;
{非ST涨跌停}
TJ:=(FINANCE(3)=4 OR (DATE>1200822 && FINANCE(3)=3));
ZTJ:=IF(TJ,ZTPRICE(REF(CLOSE,1),0.2),ZTPRICE(REF(CLOSE,1),0.1));
DTJ:=IF(TJ,DTPRICE(REF(CLOSE,1),0.2),DTPRICE(REF(CLOSE,1),0.1));
ZT:=(CLOSE>=ZTJ AND C=H); { 以涨停收盘 }
DT:=(CLOSE<=DTJ AND C=L); {以停停收盘 }
{四色图}
STICKLINE(C=H AND C=O,C,O,3,0 ),COLORRED;
STICKLINE(C>中线 AND C>O,H,C,0,0 ),COLORRED;
STICKLINE(C>中线 AND C>O,L,O,0,0 ),COLORRED;
STICKLINE(C>中线 AND C>O,O,C,3,1),COLORRED;
STICKLINE(C>中线 AND C<=O AND DT=0,H,L,0,0 ),COLORRED;
STICKLINE(C>中线 AND C<=O,O,C,3,0),COLORRED;
STICKLINE(C>中线 AND 中线>REF(中线,1) AND C>O,H,C,0,0),COLORRED;
STICKLINE(C>中线 AND 中线>REF(中线,1) AND C>O,O,L,0,0),COLORRED;
STICKLINE(C>中线 AND 中线>REF(中线,1) AND C>O,O,C,3,1),COLORRED;
STICKLINE(C>中线 AND 中线>REF(中线,1) AND C<=O AND DT=0,H,L,0,0),COLORRED;
STICKLINE(C>中线 AND 中线>REF(中线,1) AND C<=O,O,C,3,0),COLORRED;
STICKLINE(中线>慢线 AND C>中线 AND C>O,H,C,0,0),COLORRED;
STICKLINE(中线>慢线 AND C>中线 AND C>O,O,L,0,0),COLORRED;
STICKLINE(中线>慢线 AND C>中线 AND C>O,O,C,3,1),COLORRED;
STICKLINE(中线>慢线 AND C>中线 AND C<=O,H,L,0,0),COLORRED;
STICKLINE(中线>慢线 AND C>中线 AND C<=O,O,C,3,0),COLORRED;
STICKLINE(中线>慢线 AND C<中线 AND C>O,H,C,0,0),COLORDCDCDC;
STICKLINE(中线>慢线 AND C<中线 AND C>O,O,L,0,0),COLORDCDCDC;
STICKLINE(中线>慢线 AND C<中线 AND C>O,O,C,3,1),COLORDCDCDC;
STICKLINE(中线>慢线 AND C<中线 AND C<=O,H,L,0,0),COLORDCDCDC;
STICKLINE(中线>慢线 AND C<中线 AND C<=O,O,C,3,0),COLORDCDCDC;
STICKLINE(C<慢线 AND C>O,H,C,0,0),COLOR2E8B57;
STICKLINE(C<慢线 AND C>O,O,L,0,0),COLOR2E8B57;
STICKLINE(C<慢线 AND C>O,O,C,3,1),COLOR2E8B57;
STICKLINE(C<慢线 AND C<=O,H,L,0,0),COLOR2E8B57;
STICKLINE(C<慢线 AND C<=O,O,C,3,0),COLOR2E8B57;
STICKLINE(C>中线 AND 中线<慢线 AND C>O,H,C,0,0),COLORLIRED;
STICKLINE(C>中线 AND 中线<慢线 AND C>O,O,L,0,0),COLORLIRED;
STICKLINE(C>中线 AND 中线<慢线 AND C>O,O,C,3,1),COLORLIRED;
STICKLINE(C>中线 AND 中线<慢线 AND C<=O,H,L,0,0),COLORLIRED;
STICKLINE(C>中线 AND 中线<慢线 AND C<=O,O,C,3,0),COLORLIRED;
{非ST涨跌停绘图}
STICKLINE(ZT,O,C,4,0),COLORYELLOW;
STICKLINE(DT,O,C,4,0),COLORGREEN;
STICKLINE(DT,H,L,4,0),COLORGREEN;
STICKLINE(MAX(C,O)/MIN(C,O)>=1.05,(O+C)/2,(O+C)/2,-1,0),COLORBLUE;
STICKLINE((DT AND O=L) OR (ZT AND C=L) ,(O+C)/2,(O+C)/2,4,0),COLORBLUE;
{反抽点}
DRAWICON(IF(HHV(SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4),5)>4 AND CROSS(2,SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4)) AND C>=O,1,0),L*0.995,25);
反抽点选股:=IF(HHV(SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4),5)>4 AND CROSS(2,SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4)) AND C>=O,1,0);
一钻反抽副图
中线:=EMA(C,29);长线:=EMA(C,55);
TJ:=(C>中线 AND 中线>REF(中线,1)) OR (C>中线);
一钻反抽:(IF(HHV(SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4),5)>4 AND CROSS(2,SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4)) AND C>=O,1,0) AND TJ)*C;
信号过滤:=HHV(SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4),5)>4 AND CROSS(2,SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4)) AND C>=O;
A:=BARSCOUNT(C);
TL:=一钻反抽;
一钻跟随价:VALUEWHEN(TL,C);
TS:=BARSLASTCOUNT(一钻跟随价=REF(一钻跟随价,1));
选股:(L<REF(L,REF(TS,1)+1) AND C>REF(C,REF(TS,1)+1) AND TL=0 AND REF(TS,1)>=10 AND COUNT(信号过滤,TS)=0 )*一钻跟随价;
双控反弹副图
X_1:=(3*CLOSE+OPEN+LOW+HIGH)/6;
X_2:=(20*X_1+19*REF(X_1,1)+18*REF(X_1,2)+17*REF(X_1,3)+16*REF(X_1,4)+15*REF(X_1,5)+14*REF(X_1,6)+13*REF(X_1,7)+12*REF(X_1,8)+11*REF(X_1,9)+10*REF(X_1,10)+9*REF(X_1,11)+8*REF(X_1,12)+7*REF(X_1,13)+6*REF(X_1,14)+5*REF(X_1,15)+4*REF(X_1,16)+3*REF(X_1,17)+2*REF(X_1,18)+REF(X_1,20))/210;
X_3:=MA(X_2,5);
X_4:=(X_2-X_3)/CLOSE*100;
X_5:=X_4>REF(X_4,1) AND REF(X_4,1)<REF(X_4,2) AND REF(X_4,2)<REF(X_4,3) AND X_4<0.01;
X_6:=X_4>0.01 AND REF(X_4<0.01,1);
X_7:=BARSLAST(X_6>0);
X_8:=COUNT(X_5>0,X_7);
小概率:1,COLORGRAY,LINETHICK2;
中等概率:3,COLORLIBLUE,LINETHICK2;
较高概率:4,COLORYELLOW,LINETHICK2;
极高概率:5,COLORRED,LINETHICK2;
DRAWTEXT(ISLASTBAR,1,2),COLORGRAY;
DRAWTEXT(ISLASTBAR,2.8,3),COLORLIBLUE;
DRAWTEXT(ISLASTBAR,3.8,4),COLORYELLOW;
DRAWTEXT(ISLASTBAR,4.8,5),COLORRED;
X_9:=REF(LOW,1);
X_10:=SMA(ABS(LOW-X_9),3,1)/SMA(MAX(LOW-X_9,0),3,1)*100;
X_11:=EMA(X_10*10,3);
X_12:=LLV(LOW,13);
X_13:=HHV(X_11,13);
X_14:=EMA(IF(LOW<=X_12,(X_11+X_13*2)/2,0),3)/618;
X_15:=IF(IF(X_14>500 AND X_8>0,500,X_14)/10*X_8>10,IF(X_14>500 AND X_8>0,500,X_14)/10*X_8*5/100,IF(X_14>500 AND X_8>0,500,X_14)/10*X_8);
STICKLINE(X_15>(-120),0,X_15,3,1),COLORGRAY;
X_16:=X_15>=4 AND X_15<=5 AND X_15>X_8 AND X_8>=2;
STICKLINE(X_16,0,X_15,2.7,0),COLORYELLOW;
X_17:=X_15>=5 AND X_15>X_8 AND X_8>=1;
STICKLINE(X_17,0,X_15,2.7,0),COLORRED;
STICKLINE(X_8>=7,0,X_8*0.8,3,1),COLORGRAY;
STICKLINE(X_8>=7,0,X_8*0.8,2.7,0),COLORRED;
X_18:=X_15<=3 AND X_15>=0.5 AND X_8>=1 AND X_8<3 AND CLOSE>OPEN AND OPEN/LOW-1>=0.01 OR (X_15>=4 AND X_8<3 AND X_15<=5);
STICKLINE(X_18,0,X_15,2.7,0),COLORGRAY;
X_19:=X_15<=4 AND X_15>=3 AND X_15>X_8 AND X_8>=2;
STICKLINE(X_19,0,X_15,2.7,0),COLORLIBLUE;
反弹动能:COUNT(X_5>0,X_7),COLORWHITE,LINETHICK2;
反抽乾坤副图
ST:=NAMELIKE('S') OR NAMELIKE('*');
流通股:=CAPITAL/1000000;
{ AND NOT(ST) AND 流通股<3}
QQ:=EMA(C,12)-EMA(C,26);
Q:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
Q1:=SMA(Q,3,1);
Q2:=SMA(Q1,2,1);
Q3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
Q4:=SMA(Q3,3,1);
Q5:=SMA(Q4,3,1);
Q6:=3*Q1-2*Q5;
反抽乾坤:=REF(Q1<REF(Q1,1) AND Q2<REF(Q2,1) AND Q4<REF(Q4,1) AND Q5<REF(Q5,1) AND Q6<REF(Q6,1),1) AND
Q1>REF(Q1,1) AND Q2>REF(Q2,1) AND Q4>REF(Q4,1) AND Q5>REF(Q5,1) AND Q6>REF(Q6,1) AND
LLV(L,10)=L AND QQ>REF(QQ,1);
STICKLINE(反抽乾坤,60,90,1,0),COLORRED;
STICKLINE(反抽乾坤,30,60,2,0),COLORYELLOW;
STICKLINE(反抽乾坤,10,30,3,0),COLORGREEN;
DRAWTEXT(反抽乾坤,80,'★反抽乾坤'),COLORYELLOW;
一钻反抽跟随选股
中线:=EMA(C,29);长线:=EMA(C,55);
TJ:=(C>中线 AND 中线>REF(中线,1)) OR (C>中线);
一钻反抽:=(IF(HHV(SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4),5)>4 AND CROSS(2,SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4)) AND C>=O,1,0) AND TJ)*C;
信号过滤:=HHV(SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4),5)>4 AND CROSS(2,SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4)) AND C>=O;
A:=BARSCOUNT(C);
TL:=一钻反抽;
一钻跟随价:=VALUEWHEN(TL,C);
TS:=BARSLASTCOUNT(一钻跟随价=REF(一钻跟随价,1));
选股:(L<REF(L,REF(TS,1)+1) AND C>REF(C,REF(TS,1)+1) AND TL=0 AND REF(TS,1)>=10 AND COUNT(信号过滤,TS)=0 )*一钻跟随价;
双控反弹选股
反弹概率:=2;
X_1:=(3*CLOSE+OPEN+LOW+HIGH)/6;
X_2:=(20*X_1+19*REF(X_1,1)+18*REF(X_1,2)+17*REF(X_1,3)+16*REF(X_1,4)+15*REF(X_1,5)+14*REF(X_1,6)+13*REF(X_1,7)+12*REF(X_1,8)+11*REF(X_1,9)+10*REF(X_1,10)+9*REF(X_1,11)+8*REF(X_1,12)+7*REF(X_1,13)+6*REF(X_1,14)+5*REF(X_1,15)+4*REF(X_1,16)+3*REF(X_1,17)+2*REF(X_1,18)+REF(X_1,20))/210;
X_3:=MA(X_2,5);
X_4:=(X_2-X_3)/CLOSE*100;
X_5:=X_4>REF(X_4,1) AND REF(X_4,1)<REF(X_4,2) AND REF(X_4,2)<REF(X_4,3) AND X_4<0.?;
X_6:=X_4>0.01 AND REF(X_4<0.01,1);
X_7:=BARSLAST(X_6>0);
X_8:=COUNT(X_5>0,X_7);
X_9:=REF(LOW,1);
X_10:=SMA(ABS(LOW-X_9),3,1)/SMA(MAX(LOW-X_9,0),3,1)*100;
X_11:=EMA(X_10*10,3);
X_12:=LLV(LOW,13);
X_13:=HHV(X_11,13);
X_14:=EMA(IF(LOW<=X_12,(X_11+X_13*2)/2,0),3)/618;
X_15:=IF(IF(X_14>500 AND X_8>0,500,X_14)/10*X_8>10,IF(X_14>500 AND X_8>0,500,X_14)/10*X_8*5/100,IF(X_14>500 AND X_8>0,500,X_14)/10*X_8);
X_16:=X_15>=4 AND X_15<=5 AND X_15>X_8 AND X_8>=2;
GXSHS:=X_16;
HSXG:=IF(反弹概率=3,GXSHS,0);
X_17:=X_15>=5 AND X_15>X_8 AND X_8>=1;
GXSHSS:=X_17 OR X_8>=7 ;
HSSXG:=IF(反弹概率=4,GXSHSS,0);
X_18:=X_15<=3 AND X_15>=0.5 AND X_8>=1 AND X_8<3 AND CLOSE>OPEN AND OPEN/LOW-1>=0.01 OR (X_15>=4 AND X_8<3 AND X_15<=5);
GXSHHS:=X_18;
HHSXG:=IF(反弹概率=1,GXSHHS,0);
X_19:=X_15<=4 AND X_15>=3 AND X_15>X_8 AND X_8>=2;
GXSLS:=X_19;
LSXG:=IF(反弹概率=2,GXSLS,0);
XG:HSXG OR HSSXG OR HHSXG OR LSXG;