A:=zig(INDEXC,9);//大波
B:=zig(INDEXC,3);//小波
DH:=A>ref(A,1) and A>refx(A,1);//大波高点
DL:=A<ref(A,1) and A<refx(A,1);
XH:=B>ref(B,1) and B>refx(B,1);//小波低点
XL:=B<ref(B,1) and B<refx(B,1);
A1:=ref(c,barslast(dh));
B1:=ref(c,barslast(dl));
DRAWLINE(DH,H,DL,L,0),COLORMAGENTA;
DRAWLINE(DL,L,DH,H,0),COLORMAGENTA;
DRAWLINE(XH,H,XL,L,0),COLORGREEN,POINTDOT;;
DRAWLINE(XL,L,XH,H,0),COLORGREEN,POINTDOT;;
DRAWICON(DH,H*1.02,10);
DRAWICON(DL,L*0.98,11);
S:=STKLABEL;
DRAWTEXT(sysparam(2)=BARPOS,c,""+BLKNAME),COLORcccccc,ALIGN4;
-----------------------
大盘指数(副)
STICKLINE(INDEXC>=INDEXO,INDEXO,INDEXC,7,1),COLORRED;
STICKLINE(INDEXC>=INDEXO,INDEXH,INDEXC,0.6,1),COLORRED;
STICKLINE(INDEXC>=INDEXO,INDEXO,INDEXL,0.6,1),COLORRED;
STICKLINE(INDEXC<INDEXO,INDEXO,INDEXC,7,0),COLORCYAN;
STICKLINE(INDEXC<INDEXO,INDEXO,INDEXH,0.6,0),COLORCYAN;
STICKLINE(INDEXC<INDEXO,INDEXL,INDEXC,0.6,0),COLORCYAN;
A:=zig(INDEXC,9);//大波
B:=zig(INDEXC,3);//小波
DH:=A>ref(A,1) and A>refx(A,1);//大波高点
DL:=A<ref(A,1) and A<refx(A,1);
XH:=B>ref(B,1) and B>refx(B,1);//小波低点
XL:=B<ref(B,1) and B<refx(B,1);
DRAWLINE(DH,INDEXH,DL,INDEXL,0),COLORMAGENTA;
DRAWLINE(DL,INDEXL,DH,INDEXH,0),COLORMAGENTA;
DRAWLINE(XH,INDEXH,XL,INDEXL,0),COLORYELLOW;
DRAWLINE(XL,INDEXL,XH,INDEXH,0),COLORYELLOW;
DRAWICON(DH,INDEXH*1.02,10);
DRAWICON(DL,INDEXL*0.98,11);
如果觉得《【分析家】大盘个股对比(主)哪位改成分析家公式》对你有帮助,请点赞、收藏,并留下你的观点哦!