1楼:匿名用户
填充背景色用
画出带状线.
用法:drawband(val1,color1,val2,color2),当val1>val2时,在val1和val2之间填充color1;当val1**才用gbk
通达信函数 drawicon 带的参数太少!
2楼:郑州珂父
**量:if(currbarscount=1 and period=5,vol*240/fromopen,vol),volstick;
mavol1:ma(**量,m1);
mavol2:ma(**量,m2);
bb:=cross(mavol1,mavol2);
cc:=cross(mavol2,mavol1);
stickline(bb,0,vol,1,0),coloryellow;
stickline(cc,0,vol,1.5,0),col***reen;
地量:=v<=llv(v,n);
drawicon(地量,ma(vol,60),25);
drawicon((ma(v,4)*4+v)/5>=ma(v,60) and ma(v,5)一个标点错了,已经帮你改好。
**公式专家团为你解答,希望能帮到你,祝投资顺利。
通达信 stickline函数问题
3楼:褴褛宝宝
你可以这样stickline(close>open,close,open,-1,1)
财富量化**商品真诚为你解答
4楼:匿名用户
经多个版本软件测试没有发现你说的情况。
这个公式普通通达信安装后,怎么不出现bs点,能帮我解决问题吗,非常感谢
5楼:般若若愚
drawgbk(c>0, rgb(0,10,10),rgb(88,0,0),0,'11',0);
drawnumber(islastbar ,c,c),colormagenta;
n8:=strcat(con2str(year,0),' 年 ');
y8:=strcat(con2str(month,0),' 月 ');
r8:=strcat(con2str(day,0),' 日 ');
买线:=ema(c,2);
卖线:=ema(slope(c,21)*20+c,42);
bu:=cross(买线,卖线);
sel:=cross(卖线,买线);
stickline(买线》=卖线,low,high,0.0,1),colorlired;
stickline(买线》=卖线,close,open,3,1),colorlired;
ma6:ma(close,6),colorffffff;
ma18:ma(close,18),coloryellow;
ma89:ma(close,89),colormagenta;
ma(c,18),colorwhite,li***hick2;
if(ma18>ref(ma18,1),ma18,drawnull),colorred,li***hick2;
if(ma18jc:=(ref(c,3)+ref(c,5)+ref(c,7)+ref(c,8)+ref(c,13)+ref(c,21))/6;
参考价:=**a(jc,5,1),colorcyan;
价:=if(c>=参考价,参考价,参考价*0.98 ), circledot,color0000ff;
stickline(买线《卖线,low,high,0.0,1),colorcyan;
stickline(买线《卖线,close,open,3,1),colorcyan;
sj8:=strcat(strcat(n8,y8), r8);
drawicon((zig(3,5)>ref(zig(3,5),1)) and (ref(zig(3,5),1)<=ref(zig(3,5),2))
and (ref(zig(3,5),2)<=ref(zig(3,5),3)),low*0.99,7);
drawicon((zig(3,5)=ref(zig(3,5),2))
and (ref(zig(3,5),2)>=ref(zig(3,5),3)),high*1.03,8);
drawtext(cross(83,rsi),h*1.04,' 逃顶')coloryellow;
今日保护价:(ref(c,2)+ref(c,1)+o)/3 ,colorcc3299,nodraw;
顶点:if(currbarscount<=60, const(if(islastbar=1,hhv(h, barslast(currbarscount=60)),1)),drawnull),colorred,dotline;
低点:if(currbarscount<=60, const(if(islastbar=1,llv(l, barslast(currbarscount=60)),1)),drawnull),colormagenta,dotline;
stickline(cci>=200 and h>=顶点,o,c,3,0),colorblue;
stickline(cci<=100 and l<=低点,o,c,3,0),coloryellow;
drawtext_fix(c>0,0.5,0,0,sj8),color00ffff;
drawtext(islastbar,顶点,'顶点'),colorred;
drawtext(islastbar,低点,'低点'),colormagenta;;
超b:=l2_amo(0,2)/10000.0;
大b:=l2_amo(1,2)/10000.0;
中b:=l2_amo(2,2)/10000.0;
小b:=l2_amo(3,2)/10000.0;
超s:=l2_amo(0,3)/10000.0;
大s:=l2_amo(1,3)/10000.0;
中s:=l2_amo(2,3)/10000.0;
小s:=l2_amo(3,3)/10000.0;
testskip(not(超b or 大b or 中b or 小b or 超s or 大s or 中s or 小s)!=0);
大宗进:=(超b)+(大b),nodraw;
大宗出:=(超s)+(大s),nodraw;
非大宗进:=(中b)+(小b),nodraw;
非大宗出:=(中s)+(小s),nodraw;
dazhiv:=const(max(abs(大宗进),max(abs(大宗出),max(abs(非大宗进),abs(非大宗出))))),nodraw;
drawrectrel(0,const(950-(abs(大宗进)*250/dazhiv))-20,30,950,if(const(大宗进》0),rgb(255,0,0),rgb(23,125,255)));
drawrectrel(32,const(950-(abs(大宗出)*250/dazhiv))-20,62,950,if(const(大宗出》0),rgb(23,125,255),rgb(255,0,0)));
drawrectrel(92,const(950-(abs(非大宗进)*250/dazhiv))-20,122,950,if(const(非大宗进》0),rgb(255,0,0),rgb(23,125,255)));
drawrectrel(124,const(950-(abs(非大宗出)*250/dazhiv))-20,154,950,if(const(非大宗出》0),rgb(23,125,255),rgb(255,0,0)));
drawtext_fix(currbarscount=1,0.015,1,0,'主力进出'),colormagenta;
drawtext_fix(currbarscount=1,0.107,1,0,'**进出'),colorcyan;
通达信函数ma和ema有什么区别?
6楼:图南小鱼
ma是移动平均,ma(close,5)的算法是把最近5天的**价加起来再除以5.
ema是指数移动平**,有的软件简称为expma,是一种加权的移动平**指标。与简单移动平**相比,指数移动平**为近期的**赋予较大的权重,同时又综合考虑了**上市以来的所有交易**。以12日ema为例,其计算方法如下:
w=2÷(12+1)=0.1538
ema(12)=(**价-昨日的ema)×0.1538+昨日的ema参考
7楼:匿名用户
ma 是简单平均,ma5=5日**价的平均值
ema 是指数平均,全称是expma,算法相对复杂,里面加入了时间周期作为权重
如何在通达信公式显示所属行业和板块
8楼:小雨手机用户
板块基本有:
地域,行业,概念,风格。
要线有显示文字函数,这样才可以有板块名称。
以下是行业板块的显示:drawtext_fix(1,0.67,0,0,hyblock),coloryellow;显示位置你自己调整就可以了。
9楼:匿名用户
在主图指标的源码里面,将所属板块和行业的**编写进去即可。**如下:
drawtext_fix(islastbar,0.3,0,0,hyblock),coloryellow;
drawtext_fix(islastbar,0.4,0,0,dyblock),coloryellow;
drawtext_fix(islastbar,0.5,0,0,gnblock),coloryellow;
参考资料:http://tieba.baidu.***/p/2896773735
10楼:晚醒也不晚
drawtext_fix(1,0.00,0,0,'行业:
')color0080ff;
drawtext_fix(1,0.03,0,0,hyblock)color0080ff;
drawtext_fix(1,0.00,0.04,0,'地区:')color00ffff;
drawtext_fix(1,0.03,0.04,0,dyblock)color00ffff;
将以上指标贴进即可。
通达信drawtext_fix条件满足,却不显示文字?
11楼:匿名用户
a1:=vol;
a2:drawtext(cross(0.9,1/vol*1000>0.01 and "kdj.j"<0),20,'成交量纯')colorblue;