原文地址:中枢+均线+布林线指标作者:缠终禅中枢+均线+布林线 要过年了,有些缠友还不会画中枢,现在提供一个本博飞狐的主图指标,大家在过年期间好好学习吧.本博主图所画中枢,基本上是缠讲62课之前所说的周期图中的中枢,需要悟多中枢公式组件(chzhshch.dll),安装到飞狐文件夹fmldll下,本博主图公式目前仅适用于飞狐系列软件. {缠终禅主图公式} if dataperiod=0 then minbi:="fbase.var2#min1"; if dataperiod=1 then minbi:="fbase.var2#min5"; if dataperiod=2 then minbi:="fbase.var2#min30"; if dataperiod=3 then minbi:="fbase.var2#min60"; if dataperiod=4 then minbi:="fbase.var2#day"; if dataperiod=5 then minbi:="fbase.var2#day"; if dataperiod=6 then minbi:="fbase.var2#week"; if dataperiod=7 then minbi:="fbase.var2#month"; if dataperiod=8 then minbi:="fbase.var2#year"; if dataperiod=9 then minbi:="fbase.var2#day"; if dataperiod=10 then minbi:="fbase.var2#min60"; var1:="chzhshch@kxian"; var2:="chzhshch@bi";{处理笔关系} var3:="chzhshch@tongji"(minbi);{同级别分解} zg:="chzhshch@zg"(var3);一定要先调用zg zd:="chzhshch@zd"(var3); pre:=2; 设置小数点位数 if stktype=0 then pre:=1; if stktype=11 then pre:=3; drawline(var2=1,h,var2=-1,l,0),colorwhite,linedash,linethick1; drawline(var2=-1,l,var2=1,h,0),colorwhite,linedash,linethick1; drawline(var3=1,h,var3=-1,l,0),coloryellow,linedash,linethick1; drawline(var3=-1,l,var3=1,h,0),coloryellow,linedash,linethick1; 以框的形式画中枢 stickline(zgzd and zgref(zg,1),zg,zd,2,0),colormagenta ,linethick2; stickline(zgzd and zgrefx(zg,1),zg,zd,2,0),colormagenta ,linethick2; drawline(zgzd and zgref(zg,1),zg,zgzd and zgrefx(zg,1),zg,0),colormagenta ,linethick2; drawline(zgzd and zdref(zd,1),zd,zgzd and zdrefx(zd,1),zd,0),colormagenta ,linethick2; if dataperiod=1 then begin var2:=var3;{处理段1分钟的关系} end; pre:=2; {设置小数点位数} if stktype=0 then pre:=1; if stktype=11 then pre:=3; a1:=barslast(var20); a2:=ref(var2,a1); aa1:=ref(a1+1,1); aa2:=ref(a2,1); a3:=if (aa20,l-ref(h,aa1),h-ref(l,aa1)),linethick0;{计算点位差} 显示点位 drawn mber(var2= 1,h,h,pre),px p99,color3300ff,align0; drawn mber(var2=-1,l,l,pre),pxdn99,colorffff00,align0; 显示力度 drawtext (var2= 1,h, + ),px p40,colormagenta,align2; drawn mber(var2= 1,h,a3,pre),px p40,colormagenta,align1; drawn mber(var2=-1,l,a3,pre),pxdn40,colorgreen ,align0; 显示周期数 drawtext (var2= 1,h, t ),px p70,coloryellow,align1; drawn mber(var2= 1,h,aa1,0 ),px p70,coloryellow,align2; drawtext (var2=-1,l, t ),pxdn70,coloryellow,align1; drawn mber(var2=-1,l,aa1,0 ),pxdn70,coloryellow,align2; stickline(dataperiod=6 and cref(c,1)=1.097,o,c,6,1),colormagenta; 显示最后没完成的点位 aa9:=hhv(h,a1); aa11:=llv(l,a1); drawn mber( islastbar and a2= 1,aa11,aa11,pre),pxdn99,colorffff00,align0; drawn mber( islastbar and a2=-1, aa9, aa9,pre),px p99,color3300ff,align0; 显示最后没完成的力度 drawtext( islastbar and a2=-1, aa9, + ),px p40,colormagenta,align2; drawn mber( islastbar and a2=-1, aa9,a3,pre),px p40,colormagenta,align1; drawn mber( islastbar and a2=1, aa11,a3,pre),pxdn40,colorgreen ,align0; 显示最后没完成的周期 drawtext( islastbar and a2=-1, aa9, t ),px p70,coloryellow,align1; drawn mber(islastbar and a2=-1, aa9,aa1,0),px p70,coloryellow,align2; drawtext( islastbar and a2= 1, aa11, t ),pxdn70,coloryellow,align1; drawn mber(islastbar and a2= 1, aa11,aa1,0),pxdn70,coloryellow,align2; 涟:ema(close,5),coloryellow,linethick1; 漪:ema(close,10),colorgreen,linethick1; 波:ema(close,30),colorwhite,linethick2; 浪:ema(close,89),colorred,linedot,linethick1; 涛:ema(close,144),colormagenta,linedashdot,linethick1; 潮:ma(close,288),colorcyan,linedashdot,linethick1; 啸:ma(close,720),colorwhite,linedashdot,linethick1; 峰:波+3.5*stdp(close,30),coloryellow,linethick2; 谷:波-3.5*stdp(close,30),colorgreen,linethick2;