中心+移动平均线+布林带
即将庆祝新年,而有些朋友不知道如何绘制中心财联社电报。 现在我们提供此博客的主要图表指标。 过年我们要好好学习。 本篇博客主图绘制的hub基本上就是之前62课提到的循环图中的hub,需要了解hub公式组件(chzhshch.dll),安装在飞狐FMLDLL文件夹下。 本博客主图公式目前仅适用于飞狐系列软件。
{Zhan final Zen 主图公式}
if DATAPERIOD=0 then minbi:=“fbase.var2#min1”;
if DATAPERIOD=1 then minbi:="fbase.var2#min5";
如果 DATAPERIOD=2 那么 minbi:="fbase.var2#min30";
如果 DATAPERIOD=3 那么 minbi:=" fbase.var2#min60";
如果 DATAPERIOD=4 那么 minbi:="fbase.var2#day";
如果 DATAPERIOD=5 那么 minbi:="fbase.var2# day";
如果 DATAPERIOD=6 那么 minbi:="fbase.var2#week";
如果 DATAPERIOD=7 那么 minbi:="fbase.var2#month";< /p>
如果 DATAPERIOD=8 那么 minbi:="fbase.var2#year";
如果 DATAPERIOD=9 那么 minbi:="fbase.var2#day";
< p> 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, LINETHIC K1;
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;
< p> //以框架的形式绘制中心stickline (zg "zd and zg " " ref (zg, 1), zg, zd, 2, 0), COLORMAGENTA, LINETHICK2;
stickline (zg" zd and zg "" refx (zg, 1), zg, zd, 2, 0), COLORMAGENTA, LINETHICK2;
drawline (zg" zd and zg "" ref ( zg, 1), zg, zg "zd and zg "" refx (zg, 1), zg, 0) , COLORMAGENTA, LINETHICK2;
drawline (zg" zd and zd "" ref (zd, 1), zd, zg" zd and zd "" refx (zd, 1), zd, 0), COLORMAGENTA , LINETHICK2;
if DATAPERIOD "=1 then
begin var2 :=var3;{处理1m的关系 inute in the segment}
end;
pre:=2; {设置小数位数}
if STKTYPE=0 then pre:=1;
if STKTYPE=11 then pre:=3;
a1 :=barslast(var2《》0);
a2: =ref(var2, a1);
<0,colormagenta,align2;drawnumber(var2= 1,h,a3,pre),pxup40,colormagenta,align1;
drawnumber(var2=-1,l,a3,pre),pxdn40,colorgreen ,align0;
//显示周期数
drawtext (var2= 1,h,‘T’ ),pxup70,coloryellow,align1;
drawnumber(var2= 1,h,aa1,0 ),pxup70,coloryellow,align2;
drawtext (var2=-1,l,‘T’ ),pxdn70,coloryellow,align1;
drawnumber(var2=-1,l,aa1,0 ),pxdn70,coloryellow,align2;
stickline(DATAPERIOD=6 and c/ref(c,1)》=1.097,o,c,6,1),colormagenta;
//显示最后没完成的点位
aa9:=hhv(h,a1);
aa11:=llv(l,a1);
drawnumber( islastbar and a2= 1,aa11,aa11,pre),pxdn99,colorffff00,align0;
drawnumber( islastbar and a2=-1, aa9, aa9,pre),pxup99,color3300ff,align0;
//显示最后没完成的力度
drawtext( islastbar and a2=-1, aa9,‘+’ ),pxup40,colormagenta,align2;
drawnumber( islastbar and a2=-1, aa9,a3,pre),pxup40,colormagenta,align1;
drawnumber( islastbar and a2=1, aa11,a3,pre),pxdn40,colorgreen ,align0;
//显示最后没完成的周期
drawtext( islastbar and a2=-1, aa9, ‘T’),pxup70,coloryellow,align1;
drawnumber(islastbar and a2=-1, aa9,aa1,0),pxup70,coloryellow,align2;
drawtext( islastbar and a2= 1, aa11, ‘T’),pxdn70,coloryellow,align1;
drawnumber(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;