九毛八公式指标
画线源码已给出,说明见图,伸出你的援助之手吧 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;