间隔两个峰和两个谷的峰谷间的交易日计数和标注
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

画线源码已给出,说明见图,伸出你的援助之手吧www:=8;z:zig(4,www),coloryellow;a:=FLATZIG(4,www);d:=barpos=1 or a=0 or a=1 or ISLASTBAR;s1:=sum(d,0);e:=s1[datacount]-s1;m:=mod(e,5)=0 and d;n:=mod(e,5)=1 and d;nk:=mod(e,5)=2 and d;nl:=mod(e,5)=3 and d;np:=mod(e,5)=4 and d;POLYLINE(m,z),linedot,colorff9933;POLYLINE(nk,z),linedot,colorff9933;POLYLINE(n,z),LINEDOT,COLORMAGENTA;POLYLINE(nl,z),LINEDOT,COLORMAGENTA;POLYLINE(np,z),LINEDOT,COLORMAGENTA;

解答:

 

 
www:=8;
z:zig(4,www),coloryellow;
a:=FLATZIG(4,www);
d:=barpos=1 or a=0 or a=1 or ISLASTBAR;
s1:=sum(d,0);
e:=s1[datacount]-s1;
m:=mod(e,5)=0 and d;
n:=mod(e,5)=1 and d;
nk:=mod(e,5)=2 and d;
nl:=mod(e,5)=3 and d;
np:=mod(e,5)=4 and d;
POLYLINE(m,z),linedot,colorff9933;
POLYLINE(nk,z),linedot,colorff9933;
POLYLINE(n,z),LINEDOT,COLORMAGENTA;
POLYLINE(nl,z),LINEDOT,COLORMAGENTA;
POLYLINE(np,z),LINEDOT,COLORMAGENTA;
 
DRAWNUMBER(m&&z<ref(z,1),z,ref(BARSLAST(m),1)+1,0),colorff9933,pxdn10;
DRAWNUMBER(m&&z>ref(z,1),z,ref(BARSLAST(m),1)+1,0),colorff9933,pxup30;
DRAWNUMBER(n&&z<ref(z,1),z,ref(BARSLAST(n),1)+1,0),colorff9933,pxdn10;
DRAWNUMBER(n&&z>ref(z,1),z,ref(BARSLAST(n),1)+1,0),colorff9933,pxup30;
DRAWNUMBER(nk&&z<ref(z,1),z,ref(BARSLAST(nk),1)+1,0),COLORMAGENTA,pxdn10;
DRAWNUMBER(nk&&z>ref(z,1),z,ref(BARSLAST(nk),1)+1,0),COLORMAGENTA,pxup30;
DRAWNUMBER(nl&&z<ref(z,1),z,ref(BARSLAST(nl),1)+1,0),COLORcccccc,pxdn10;
DRAWNUMBER(nl&&z>ref(z,1),z,ref(BARSLAST(nl),1)+1,0),COLORcccccc,pxup30;
DRAWNUMBER(np&&z<ref(z,1),z,ref(BARSLAST(np),1)+1,0),COLORcccccc,pxdn10;
DRAWNUMBER(np&&z>ref(z,1),z,ref(BARSLAST(np),1)+1,0),COLORcccccc,pxup30;
 

选股票看什么指标最好 >股票指标网