通达信drawicon的用法(通达信公式drawicon)
1、通达信如何在k线上画图标,知道用公式写公式,只会选股,不知如何将图标画出来?
用draicon函数,就行了,下面是用法,用选股的那个变量名如xg用来替换con即可。
draicon(con,l,1);
2、通达信这句公式DRAWICON(CURRBARSCOUNT=60,MA(CLOSE,60),13)...
A:=CURRBARSCOUNT;A1:=0.0007; DRAWTEXT(A=92,A11.008,' ←1');DRAWICON(A=92,A1,1); DRAWTEXT(A=84,A11.008,' ←2');DRAWICON(A=84,A1,2); DRAWTEXT(A=76,A11.008,' ←3');DRAWICON(A=76,A1,3); DRAWTEXT(A=68,A11.008,' ←4');DRAWICON(A=68,A1,4); DRAWTEXT(A=60,A11.008,' ←5');DRAWICON(A=60,A1,5); DRAWTEXT(A=92,A10.99,' ←6');DRAWICON(A=92,A10.98,6); DRAWTEXT(A=84,A10.99,' ←7');DRAWICON(A=84,A10.98,7); DRAWTEXT(A=76,A10.99,' ←8');DRAWICON(A=76,A10.98,8); DRAWTEXT(A=68,A10.99,' ←9');DRAWICON(A=68,A10.98,9); DRAWTEXT(A=60,A10.99,' ←10');DRAWICON(A=60,A10.98,10); DRAWTEXT(A=92,A10.97,' ←11');DRAWICON(A=92,A10.96,11); DRAWTEXT(A=84,A10.97,' ←12');DRAWICON(A=84,A10.96,12); DRAWTEXT(A=76,A10.97,' ←13');DRAWICON(A=76,A10.96,13); DRAWTEXT(A=68,A10.97,' ←14');DRAWICON(A=68,A10.96,14); DRAWTEXT(A=60,A10.97,' ←15');DRAWICON(A=60,A10.96,15); DRAWTEXT(A=92,A10.95,' ←16');DRAWICON(A=92,A10.94,16); DRAWTEXT(A=84,A10.95,' ←17');DRAWICON(A=84,A10.94,17); DRAWTEXT(A=76,A10.95,' ←18');DRAWICON(A=76,A10.94,18); DRAWTEXT(A=68,A10.95,' ←19');DRAWICON(A=68,A10.94,19); DRAWTEXT(A=60,A10.95,' ←20');DRAWICON(A=60,A10.94,20); DRAWTEXT(A=92,A10.93,' ←21');DRAWICON(A=92,A10.92,21); DRAWTEXT(A=84,A10.93,' ←22');DRAWICON(A=84,A10.92,22); DRAWTEXT(A=76,A10.93,' ←23');DRAWICON(A=76,A10.92,23); DRAWTEXT(A=68,A10.93,' ←24');DRAWICON(A=68,A10.92,24); DRAWTEXT(A=60,A10.93,' ←25');DRAWICON(A=60,A10.92,25); A:=CURRBARSCOUNT;A1:=0.0007; DRAWTEXT(A=92,A11.008,' ←26');DRAWICON(A=92,A1,26); DRAWTEXT(A=84,A11.008,' ←27');DRAWICON(A=84,A1,27); DRAWTEXT(A=76,A11.008,' ←28');DRAWICON(A=76,A1,28); DRAWTEXT(A=68,A11.008,' ←29');DRAWICON(A=68,A1,29); DRAWTEXT(A=60,A11.008,' ←30');DRAWICON(A=60,A1,30); DRAWTEXT(A=92,A10.99,' ←31');DRAWICON(A=92,A10.98,31); DRAWTEXT(A=84,A10.99,' ←32');DRAWICON(A=84,A10.98,32); DRAWTEXT(A=76,A10.99,' ←33');DRAWICON(A=76,A10.98,33); DRAWTEXT(A=68,A10.99,' ←34');DRAWICON(A=68,A10.98,34); DRAWTEXT(A=60,A10.99,' ←35');DRAWICON(A=60,A10.98,35); DRAWTEXT(A=92,A10.97,' ←36');DRAWICON(A=92,A10.96,36); DRAWTEXT(A=84,A10.97,' ←37');DRAWICON(A=84,A10.96,37); DRAWTEXT(A=76,A10.97,' ←38');DRAWICON(A=76,A10.96,38); DRAWTEXT(A=68,A10.97,' ←39');DRAWICON(A=68,A10.96,39); DRAWTEXT(A=60,A10.97,' ←40');DRAWICON(A=60,A10.96,40); DRAWTEXT(A=92,A10.95,' ←41');DRAWICON(A=92,A10.94,41); DRAWTEXT(A=84,A10.95,' ←42');DRAWICON(A=84,A10.94,-6); DRAWTEXT(A=76,A10.95,' ←43');DRAWICON(A=76,A10.94,-11); DRAWTEXT(A=68,A10.95,' ←44');DRAWICON(A=68,A10.94,-23); DRAWTEXT(A=60,A10.95,' ←45');DRAWICON(A=60,A10.94,-24); DRAWTEXT(A=92,A10.93,' ←46');DRAWICON(A=92,A10.92,-28); DRAWTEXT(A=84,A10.93,' ←47');DRAWICON(A=84,A10.92,-33); DRAWTEXT(A=76,A10.93,' ←48');DRAWICON(A=76,A10.92,-34); DRAWTEXT(A=68,A10.93,' ←49');DRAWICON(A=68,A10.92,-41); {或者不用公式就这样}
3、通达信 DRAWICON 位置问题 2个均线金死叉 显示红绿箭头 DRAWICON中的位置 应该怎么...
{写h1.03 的话 看一分钟图就变形了 红绿箭头一般写在什么位置比较好}
用 c0.99 试试
4、通达信关于PERIOD与DRAWICON的问题
DRAWICON(条件 AND PERIOD=3,H2,1); {限制只在30分钟图上符合条件时显示图标}
5、通达信公式修改只显示第一个符号?
可以通过编写值显示第一次上穿的,后面的上穿符号全部不显示,但你要说明这个第一次的满足条件,从哪开始算出现第一次,从上市之日起算出现第一次是吗,之后的就都不显示了是吗,可以这样编写,效果如下图
主图是你正常的指标
副图是修改后的结果
例如688029上市后一共出现3次信号,只显示第一次的之后就再也不显示了
000001历史上出现过很多次信号,但修改后只显示第一次
6、如何编一个通达信选股公式,把主图上用draicon画了图标的股票选出来
draicon是划线函数,满足一个条件后才会出信号。这个条件就是你需要的,已经在主图公式里面了,提取出来就可以了
7、通达信6、15查找固定形状图标方法。
1、绘图函数DRAWICON(COND,PRICE,TYPE)。
函数定义当COND条件满足时,在PRICE位置画TYPE号图标(TYPE为1--49)。
用法举例DRAWICON(CLOSE>OPEN,LOW,1) 表示当收阳时在最低价位置画1号图标。
2、该函数所使用的图标代码对应如下图