N:=10;
ZF:=5;
BDGD:=C=HHV(C,N);
GDSJ:=BARSLAST(BDGD);
底:LLV(L,N),COLORFF9933,LINETHICK1,CROSSDOT;
顶:HHV(H,N),COLOR0099CC,LINETHICK1,CROSSDOT;
前高:IF(GDSJ>0,REF(C,GDSJ),REF(C,GDSJ)),COLORFFFF00,POINTDOT,LINETHICK2;
MA5:MA(C,5),LINETHICK2,COLORFF00FF;
MA13:MA(C,13),LINETHICK2,COLOR00FF00;
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=SMA(C,120,1);
TP:=CROSS(C,REF(前高,1));
出击:=TP AND COUNT(TP,5)=1;
TPSJ:=BARSLAST(出击);
HC:=CROSS(REF(前高,TPSJ 1),L) OR CROSS(REF(前高,TPSJ),C);
回踩:=HC AND TPSJ>1;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
放量上涨:=CLOSE/REF(CLOSE,1)>=1.01 AND VOL/REF(VOL,1)>=1.5 AND VOL>MA(VOL,5) AND REF(VOL,1)/REF(MA(VOL,5),1)<=1.8;
箱体形成:=((HHV(C,3)/LLV(C,N)-1)*100<=ZF AND (HHV(C,N)/LLV(C,3)-1)*100<=ZF)*0.3;
接近箱顶:=(CLOSE/REF(HHV(CLOSE,N),2)<=1.02 AND HIGH/REF(HHV(CLOSE,N),2)>=0.98)*0.5;
P1:=BARSLAST(箱体形成);
P2:=BARSLAST(接近箱顶);
期待突破:=(放量上涨 AND 接近箱顶 AND P1<=3 AND P2<=1)*2;
关注:=(放量上涨 AND 接近箱顶)*1;
ZH520:=ABS(MA5-MA20)/MA20*100<=N;
ZH530:=ABS(MA5-MA30)/MA30*100<=N;
QSXS1:=MA5>REF(MA5,1);
QSXS2:=MA20>REF(MA20,1);
QSXS3:=MA30>REF(MA30,1);
DTPL:=MA20>MA30 AND MA30>MA120;
LYHT:=DTPL AND QSXS2 AND QSXS3 AND NOT(QSXS1) AND REF(QSXS1,1);
老鸭回头:=LYHT*50;
WR5:=100*(HHV(H,5)-C)/(HHV(H,5)-LLV(L,5));
WR6:=100*(HHV(H,6)-C)/(HHV(H,6)-LLV(L,6));
WR:=80-(WR5*3 WR6*2)/5;
坑:=IF(WR<0,WR,0);
LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)<=1;
GJHS:=C>MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C>REF(C,3));
LYKK:=GJHS AND (ZH520 OR ZH530) AND LYT;
买:=(LYKK AND NOT(REF(LYKK,1)))*50;
买1:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
卖1:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
优选:=(买 AND COUNT((MA13>MA20),5)=5)*100;
{以下设置主图显示方式}
{DRAWTEXT(老鸭回头,(MA13 MA20)/2, '○');
DRAWTEXT(WR<0,L*0.99, '#'),COLORYELLOW;
DRAWTEXT(WR<-10,L*0.99, '#'),COLORWHITE;
STICKLINE(买,H,L,1,0),COLOR00FF00,LINETHICK2;
STICKLINE(买,O,C,3,1),COLOR00FF00,LINETHICK2;}
DRAWTEXT(买>0,L*0.99, ''),COLORRED;
DRAWICON(优选>0,L*0.99,1);
DRAWICON(CROSS(82,VARC),HIGH,2);
DRAWTEXT(CROSS(84,VAR7),H*1.01,'顶'),COLORFFFF00;
DRAWTEXT(FILTER(买1=1,5),LOW-0.03,'▲ 强者杀入'),COLORYELLOW;
DRAWTEXT(FILTER(卖1=1,5),HIGH*1.025,'● 卖'),COLOR00FF00;
DRAWTEXT(出击,L*0.99,'△出击'),COLORFFFFFF;
DRAWTEXT(回踩,L*0.99,'H'),COLORA1C7F8;
DRAWTEXT(期待突破>0 ,L*0.99,'◇期待');
DRAWTEXT(关注,L*0.99,'◆'),COLORRED;
N:=20;
T:=10;
A:(C-LLV(L,10))/(HHV(H,25)-LLV(L,10)),COLORRED,;
操盘:MA(A,3),COLORGREEN;
底部:A<=0.025,COLORWHITE,NODRAW;
买底:REF(A<=0.025,1)AND A>REF(A,1),COLORRED,NODRAW;
跟进:CROSS(A,操盘)AND REF(COUNT(CROSS(A,操盘),3)=1,0)AND REF(A<0.3,1)OR CROSS(A,0.1),COLORYELLOW,NODRAW;
启动:CROSS(A,0.29)COLORLIMAGENTA,NODRAW;
阴线买:CROSS(0.1,操盘),COLORCYAN,NODRAW;
追涨:BETWEEN(操盘,0.8,0.38)AND CROSS(A,操盘),COLORYELLOW,NODRAW;
STICKLINE(底部=1,0,0.05,0.1,0),COLORWHITE;
STICKLINE(买底=1,0,0.05,0.1,0),COLORRED;
STICKLINE(跟进=1,操盘,操盘 0.05,0.1,0),COLORYELLOW;
STICKLINE(启动=1,0.3,0.35,0.1,0),COLORLIMAGENTA;
B:=CROSS(操盘,A)AND REF(COUNT(CROSS(操盘,A),3)=1,1)AND A>0.3;
DRAWICON(REF(A>0.8,1)AND CROSS(REF(A,1),A)OR B=1,操盘,2);
STICKLINE(阴线买,0.1,0.5,0,-1),COLORCYAN;
STICKLINE(CROSS(操盘,0.09),0.2,0,0,-1),COLORLIMAGENTA;
DRAWTEXT(启动=1,0.35,'启'),COLORLIMAGENTA;
STICKLINE(追涨,0.5,0.75,0,0),COLORYELLOW;
0.3,DOTLINE,COLORGRAY;
0.1,DOTLINE,COLORLICYAN;
0.2,COLORGREEN,DOTLINE;
顶:0.95,COLORBROWN;
高位:0.75,COLOR880088,DOTLINE;
分界:0.5,COLORGRAY,DOTLINE;
JHLL1:=REF(CLOSE,1);
JHLL2:SMA(MAX(CLOSE-JHLL1,0),12,1)/SMA(ABS(CLOSE-JHLL1),12,1)*100;
JHLL3:MA(JHLL2,4);
JHLL4:IF(CROSS(JHLL3,REF(JHLL3,2)) AND JHLL3<32,80,IF(CROSS(REF(JHLL3,2),JHLL3) AND JHLL3>62,20,50));
DRAWTEXT(JHLL4>60,JHLL4,'机会')COLORYELLOW;
DRAWTEXT(JHLL4=20,JHLL4,'减仓')COLORGREEN;
有话要说...