通达信的DRAWICON49个图标公式
在图形上绘制小图标. 用法:DRAWICON(COND,PRICE,TYPE),当COND条件满足时,在PRICE位置画TYPE号图标。 例如:DRAWICON(CLOSE>OPEN,LOW,1)表示当收阳时在最低价位置画1号图标。DRAWICON1-20都画什么图形?{1——25的图标公式}
A:=CURRBARSCOUNT;A1:=0.0007;
DRAWTEXT(A=92,A1*1.008,' ←1');DRAWICON(A=92,A1,1);
DRAWTEXT(A=84,A1*1.008,' ←2');DRAWICON(A=84,A1,2);
DRAWTEXT(A=76,A1*1.008,' ←3');DRAWICON(A=76,A1,3);
DRAWTEXT(A=68,A1*1.008,' ←4');DRAWICON(A=68,A1,4);
DRAWTEXT(A=60,A1*1.008,' ←5');DRAWICON(A=60,A1,5);
DRAWTEXT(A=92,A1*0.99,' ←6');DRAWICON(A=92,A1*0.98,6);
DRAWTEXT(A=84,A1*0.99,' ←7');DRAWICON(A=84,A1*0.98,7);
DRAWTEXT(A=76,A1*0.99,' ←8');DRAWICON(A=76,A1*0.98,8);
DRAWTEXT(A=68,A1*0.99,' ←9');DRAWICON(A=68,A1*0.98,9);
DRAWTEXT(A=60,A1*0.99,' ←10');DRAWICON(A=60,A1*0.98,10);
DRAWTEXT(A=92,A1*0.97,' ←11');DRAWICON(A=92,A1*0.96,11);
DRAWTEXT(A=84,A1*0.97,' ←12');DRAWICON(A=84,A1*0.96,12);
DRAWTEXT(A=76,A1*0.97,' ←13');DRAWICON(A=76,A1*0.96,13);
DRAWTEXT(A=68,A1*0.97,' ←14');DRAWICON(A=68,A1*0.96,14);
DRAWTEXT(A=60,A1*0.97,' ←15');DRAWICON(A=60,A1*0.96,15);
DRAWTEXT(A=92,A1*0.95,' ←16');DRAWICON(A=92,A1*0.94,16);
DRAWTEXT(A=84,A1*0.95,' ←17');DRAWICON(A=84,A1*0.94,17);
DRAWTEXT(A=76,A1*0.95,' ←18');DRAWICON(A=76,A1*0.94,18);
DRAWTEXT(A=68,A1*0.95,' ←19');DRAWICON(A=68,A1*0.94,19);
DRAWTEXT(A=60,A1*0.95,' ←20');DRAWICON(A=60,A1*0.94,20);
DRAWTEXT(A=92,A1*0.93,' ←21');DRAWICON(A=92,A1*0.92,21);
DRAWTEXT(A=84,A1*0.93,' ←22');DRAWICON(A=84,A1*0.92,22);
DRAWTEXT(A=76,A1*0.93,' ←23');DRAWICON(A=76,A1*0.92,23);
DRAWTEXT(A=68,A1*0.93,' ←24');DRAWICON(A=68,A1*0.92,24);
DRAWTEXT(A=60,A1*0.93,' ←25');DRAWICON(A=60,A1*0.92,25);
{26——49图标公式}
A:=CURRBARSCOUNT;A1:=0.0007;
DRAWTEXT(A=92,A1*1.008,' ←26');DRAWICON(A=92,A1,26);
DRAWTEXT(A=84,A1*1.008,' ←27');DRAWICON(A=84,A1,27);
DRAWTEXT(A=76,A1*1.008,' ←28');DRAWICON(A=76,A1,28);
DRAWTEXT(A=68,A1*1.008,' ←29');DRAWICON(A=68,A1,29);
DRAWTEXT(A=60,A1*1.008,' ←30');DRAWICON(A=60,A1,30);
DRAWTEXT(A=92,A1*0.99,' ←31');DRAWICON(A=92,A1*0.98,31);
DRAWTEXT(A=84,A1*0.99,' ←32');DRAWICON(A=84,A1*0.98,32);
DRAWTEXT(A=76,A1*0.99,' ←33');DRAWICON(A=76,A1*0.98,33);
DRAWTEXT(A=68,A1*0.99,' ←34');DRAWICON(A=68,A1*0.98,34);
DRAWTEXT(A=60,A1*0.99,' ←35');DRAWICON(A=60,A1*0.98,35);
DRAWTEXT(A=92,A1*0.97,' ←36');DRAWICON(A=92,A1*0.96,36);
DRAWTEXT(A=84,A1*0.97,' ←37');DRAWICON(A=84,A1*0.96,37);
DRAWTEXT(A=76,A1*0.97,' ←38');DRAWICON(A=76,A1*0.96,38);
DRAWTEXT(A=68,A1*0.97,' ←39');DRAWICON(A=68,A1*0.96,39);
DRAWTEXT(A=60,A1*0.97,' ←40');DRAWICON(A=60,A1*0.96,40);
DRAWTEXT(A=92,A1*0.95,' ←41');DRAWICON(A=92,A1*0.94,41);
DRAWTEXT(A=84,A1*0.95,' ←42');DRAWICON(A=84,A1*0.94,-6);
DRAWTEXT(A=76,A1*0.95,' ←43');DRAWICON(A=76,A1*0.94,-11);
DRAWTEXT(A=68,A1*0.95,' ←44');DRAWICON(A=68,A1*0.94,-23);
DRAWTEXT(A=60,A1*0.95,' ←45');DRAWICON(A=60,A1*0.94,-24);
DRAWTEXT(A=92,A1*0.93,' ←46');DRAWICON(A=92,A1*0.92,-28);
DRAWTEXT(A=84,A1*0.93,' ←47');DRAWICON(A=84,A1*0.92,-33);
DRAWTEXT(A=76,A1*0.93,' ←48');DRAWICON(A=76,A1*0.92,-34);
DRAWTEXT(A=68,A1*0.93,' ←49');DRAWICON(A=68,A1*0.92,-41);
本帖最后由 Hyd6477 于 2015-4-11 08:37 编辑
本帖最后由 呢格 于 2014-3-27 17:41 编辑 这个资料很好 对于初学指标函数的是个很好的资料 用作幅图内显示以示提醒 谢谢分享 我这里 便于查看、、、、、 {1——25的图标公式} A:=CURRBARSCOUNT; A1:=0.0007; DRAWTEXT(A=126,A1*1.008,' ←1');DRAWICON(A=126,A1,1); DRAWTEXT(A=120,A1*1.008,' ←2');DRAWICON(A=120,A1,2); DRAWTEXT(A=114,A1*1.008,' ←3');DRAWICON(A=114,A1,3); DRAWTEXT(A=108,A1*1.008,' ←4');DRAWICON(A=108,A1,4); DRAWTEXT(A=102,A1*1.008,' ←5');DRAWICON(A=102,A1,5); DRAWTEXT(A=126,A1*0.99,' ←6');DRAWICON(A=126,A1*0.98,6); DRAWTEXT(A=120,A1*0.99,' ←7');DRAWICON(A=120,A1*0.98,7); DRAWTEXT(A=114,A1*0.99,' ←8');DRAWICON(A=114,A1*0.98,8); DRAWTEXT(A=108,A1*0.99,' ←9');DRAWICON(A=108,A1*0.98,9); DRAWTEXT(A=102,A1*0.99,' ←10');DRAWICON(A=102,A1*0.98,10); DRAWTEXT(A=126,A1*0.97,' ←11');DRAWICON(A=126,A1*0.96,11); DRAWTEXT(A=120,A1*0.97,' ←12');DRAWICON(A=120,A1*0.96,12); DRAWTEXT(A=114,A1*0.97,' ←13');DRAWICON(A=114,A1*0.96,13); DRAWTEXT(A=108,A1*0.97,' ←14');DRAWICON(A=108,A1*0.96,14); DRAWTEXT(A=102,A1*0.97,' ←15');DRAWICON(A=102,A1*0.96,15); DRAWTEXT(A=126,A1*0.95,' ←16');DRAWICON(A=126,A1*0.94,16); DRAWTEXT(A=120,A1*0.95,' ←17');DRAWICON(A=120,A1*0.94,17); DRAWTEXT(A=114,A1*0.95,' ←18');DRAWICON(A=114,A1*0.94,18); DRAWTEXT(A=108,A1*0.95,' ←19');DRAWICON(A=108,A1*0.94,19); DRAWTEXT(A=102,A1*0.95,' ←20');DRAWICON(A=102,A1*0.94,20); DRAWTEXT(A=126,A1*0.93,' ←21');DRAWICON(A=126,A1*0.92,21); DRAWTEXT(A=120,A1*0.93,' ←22');DRAWICON(A=120,A1*0.92,22); DRAWTEXT(A=114,A1*0.93,' ←23');DRAWICON(A=114,A1*0.92,23); DRAWTEXT(A=108,A1*0.93,' ←24');DRAWICON(A=108,A1*0.92,24); DRAWTEXT(A=102,A1*0.93,' ←25');DRAWICON(A=102,A1*0.92,25); DRAWTEXT(A=92,A1*1.008,' ←26');DRAWICON(A=92,A1,26); DRAWTEXT(A=84,A1*1.008,' ←27');DRAWICON(A=84,A1,27); DRAWTEXT(A=76,A1*1.008,' ←28');DRAWICON(A=76,A1,28); DRAWTEXT(A=68,A1*1.008,' ←29');DRAWICON(A=68,A1,29); DRAWTEXT(A=60,A1*1.008,' ←30');DRAWICON(A=60,A1,30); DRAWTEXT(A=92,A1*0.99,' ←31');DRAWICON(A=92,A1*0.98,31); DRAWTEXT(A=84,A1*0.99,' ←32');DRAWICON(A=84,A1*0.98,32); DRAWTEXT(A=76,A1*0.99,' ←33');DRAWICON(A=76,A1*0.98,33); DRAWTEXT(A=68,A1*0.99,' ←34');DRAWICON(A=68,A1*0.98,34); DRAWTEXT(A=60,A1*0.99,' ←35');DRAWICON(A=60,A1*0.98,35); DRAWTEXT(A=92,A1*0.97,' ←36');DRAWICON(A=92,A1*0.96,36); DRAWTEXT(A=84,A1*0.97,' ←37');DRAWICON(A=84,A1*0.96,37); DRAWTEXT(A=76,A1*0.97,' ←38');DRAWICON(A=76,A1*0.96,38); DRAWTEXT(A=68,A1*0.97,' ←39');DRAWICON(A=68,A1*0.96,39); DRAWTEXT(A=60,A1*0.97,' ←40');DRAWICON(A=60,A1*0.96,40); DRAWTEXT(A=92,A1*0.95,' ←41');DRAWICON(A=92,A1*0.94,41); DRAWTEXT(A=84,A1*0.95,' ←42');DRAWICON(A=84,A1*0.94,-6); DRAWTEXT(A=76,A1*0.95,' ←43');DRAWICON(A=76,A1*0.94,-11); DRAWTEXT(A=68,A1*0.95,' ←44');DRAWICON(A=68,A1*0.94,-23); DRAWTEXT(A=60,A1*0.95,' ←45');DRAWICON(A=60,A1*0.94,-24); DRAWTEXT(A=92,A1*0.93,' ←46');DRAWICON(A=92,A1*0.92,-28); DRAWTEXT(A=84,A1*0.93,' ←47');DRAWICON(A=84,A1*0.92,-33); DRAWTEXT(A=76,A1*0.93,' ←48');DRAWICON(A=76,A1*0.92,-34); DRAWTEXT(A=68,A1*0.93,' ←49');DRAWICON(A=68,A1*0.92,-41); 本帖最后由 呢格 于 2014-3-27 17:41 编辑
这个资料很好 对于初学指标函数的是个很好的资料 用作幅图内显示以示提醒 谢谢分享 我整理了一下可以放在一个幅图框里 这样便于查看、、、、、 {1——25的图标公式}
A:=CURRBARSCOUNT;
A1:=0.0007;
DRAWTEXT(A=126,A1*1.008,' ←1');DRAWICON(A=126,A1,1);
DRAWTEXT(A=120,A1*1.008,' ←2');DRAWICON(A=120,A1,2);
DRAWTEXT(A=114,A1*1.008,' ←3');DRAWICON(A=114,A1,3);
DRAWTEXT(A=108,A1*1.008,' ←4');DRAWICON(A=108,A1,4);
DRAWTEXT(A=102,A1*1.008,' ←5');DRAWICON(A=102,A1,5);
DRAWTEXT(A=126,A1*0.99,' ←6');DRAWICON(A=126,A1*0.98,6);
DRAWTEXT(A=120,A1*0.99,' ←7');DRAWICON(A=120,A1*0.98,7);
DRAWTEXT(A=114,A1*0.99,' ←8');DRAWICON(A=114,A1*0.98,8);
DRAWTEXT(A=108,A1*0.99,' ←9');DRAWICON(A=108,A1*0.98,9);
DRAWTEXT(A=102,A1*0.99,' ←10');DRAWICON(A=102,A1*0.98,10);
DRAWTEXT(A=126,A1*0.97,' ←11');DRAWICON(A=126,A1*0.96,11);
DRAWTEXT(A=120,A1*0.97,' ←12');DRAWICON(A=120,A1*0.96,12);
DRAWTEXT(A=114,A1*0.97,' ←13');DRAWICON(A=114,A1*0.96,13);
DRAWTEXT(A=108,A1*0.97,' ←14');DRAWICON(A=108,A1*0.96,14);
DRAWTEXT(A=102,A1*0.97,' ←15');DRAWICON(A=102,A1*0.96,15);
DRAWTEXT(A=126,A1*0.95,' ←16');DRAWICON(A=126,A1*0.94,16);
DRAWTEXT(A=120,A1*0.95,' ←17');DRAWICON(A=120,A1*0.94,17);
DRAWTEXT(A=114,A1*0.95,' ←18');DRAWICON(A=114,A1*0.94,18);
DRAWTEXT(A=108,A1*0.95,' ←19');DRAWICON(A=108,A1*0.94,19);
DRAWTEXT(A=102,A1*0.95,' ←20');DRAWICON(A=102,A1*0.94,20);
DRAWTEXT(A=126,A1*0.93,' ←21');DRAWICON(A=126,A1*0.92,21);
DRAWTEXT(A=120,A1*0.93,' ←22');DRAWICON(A=120,A1*0.92,22);
DRAWTEXT(A=114,A1*0.93,' ←23');DRAWICON(A=114,A1*0.92,23);
DRAWTEXT(A=108,A1*0.93,' ←24');DRAWICON(A=108,A1*0.92,24);
DRAWTEXT(A=102,A1*0.93,' ←25');DRAWICON(A=102,A1*0.92,25);
DRAWTEXT(A=92,A1*1.008,' ←26');DRAWICON(A=92,A1,26);
DRAWTEXT(A=84,A1*1.008,' ←27');DRAWICON(A=84,A1,27);
DRAWTEXT(A=76,A1*1.008,' ←28');DRAWICON(A=76,A1,28);
DRAWTEXT(A=68,A1*1.008,' ←29');DRAWICON(A=68,A1,29);
DRAWTEXT(A=60,A1*1.008,' ←30');DRAWICON(A=60,A1,30);
DRAWTEXT(A=92,A1*0.99,' ←31');DRAWICON(A=92,A1*0.98,31);
DRAWTEXT(A=84,A1*0.99,' ←32');DRAWICON(A=84,A1*0.98,32);
DRAWTEXT(A=76,A1*0.99,' ←33');DRAWICON(A=76,A1*0.98,33);
DRAWTEXT(A=68,A1*0.99,' ←34');DRAWICON(A=68,A1*0.98,34);
DRAWTEXT(A=60,A1*0.99,' ←35');DRAWICON(A=60,A1*0.98,35);
DRAWTEXT(A=92,A1*0.97,' ←36');DRAWICON(A=92,A1*0.96,36);
DRAWTEXT(A=84,A1*0.97,' ←37');DRAWICON(A=84,A1*0.96,37);
DRAWTEXT(A=76,A1*0.97,' ←38');DRAWICON(A=76,A1*0.96,38);
DRAWTEXT(A=68,A1*0.97,' ←39');DRAWICON(A=68,A1*0.96,39);
DRAWTEXT(A=60,A1*0.97,' ←40');DRAWICON(A=60,A1*0.96,40);
DRAWTEXT(A=92,A1*0.95,' ←41');DRAWICON(A=92,A1*0.94,41);
DRAWTEXT(A=84,A1*0.95,' ←42');DRAWICON(A=84,A1*0.94,-6);
DRAWTEXT(A=76,A1*0.95,' ←43');DRAWICON(A=76,A1*0.94,-11);
DRAWTEXT(A=68,A1*0.95,' ←44');DRAWICON(A=68,A1*0.94,-23);
DRAWTEXT(A=60,A1*0.95,' ←45');DRAWICON(A=60,A1*0.94,-24);
DRAWTEXT(A=92,A1*0.93,' ←46');DRAWICON(A=92,A1*0.92,-28);
DRAWTEXT(A=84,A1*0.93,' ←47');DRAWICON(A=84,A1*0.92,-33);
DRAWTEXT(A=76,A1*0.93,' ←48');DRAWICON(A=76,A1*0.92,-34);
DRAWTEXT(A=68,A1*0.93,' ←49');DRAWICON(A=68,A1*0.92,-41);
{黑马精准线 参数顶底开关 0 1 0点位差0 1 0指定点 01000 0} DRAWGBK(O>0,RGB(33,47,58),RGB(0,0,0),0,'02',0); {标缺口} LL:=REF(L,1);HH:=REF(H,1);上跳:=L>HH;下跳:=H<LL; STICKLINE(L>REF(H,1),L,REF(H,1),3.1,-1),COLORRED; STICKLINE(REF(L,1)>H,REF(L,1),H,3.1,-1),COLORGREEN; {灰色} STICKLINE(O>=C,H,L,0,0),COLOR909090; STICKLINE(O>=C,C,O,3.1,0),COLOR606060; STICKLINE(O>=C,C,O,2.1,0),COLOR707070; STICKLINE(O>=C,C,O,1.2,0),COLOR808080; STICKLINE(O>=C,C,O,0.2,0),COLOR909090; STICKLINE(O<=C,H,L,0,0),COLOR666B6F; STICKLINE(C>O,C,O,3.1,1),COLOR666B6F; V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1); {金黄色} STICKLINE(V2V,H,L,0,0),COLORYELLOW; STICKLINE(V2V,O,C,3.1,0),COLOR0033FF; STICKLINE(V2V,O,C,2.1,0),COLOR0077FF; STICKLINE(V2V,O,C,1.1,0),COLOR00BBFF; STICKLINE(V2V,O,C,0.1,0),COLOR00FFFF; {涨停粉} ZT:=C/REF(C,1)>1.097; ZT数:COUNT(ZT,BARSSINCE(ZT)),NODRAW; {涨停红色} ZDF:=(C-REF(C,1))/REF(C,1)*100; STICKLINE(ZDF>9.5,C,O,3.1,0),COLOR0000CC; STICKLINE(ZDF>9.5,C,O,2.1,0),COLOR0000DD; STICKLINE(ZDF>9.5,C,O,1.2,0),COLOR0000EE; STICKLINE(ZDF>9.5,C,O,0.2,0),COLOR0000FF; STICKLINE(ZDF>9.5,H,L,0,0),COLOR0000FF; {跌停绿色} STICKLINE(ZDF<-9.9,O,C,3.1,0),COLOR66CC66; STICKLINE(ZDF<-9.9,O,C,2.1,0),COLOR77DD77; STICKLINE(ZDF<-9.9,O,C,1.2,0),COLOR88EE88; STICKLINE(ZDF<-9.9,O,C,0.2,0),COLOR99FF99; STICKLINE(ZDF<-9.5,H,L,0,0),COLOR99FF99;均价:=AMO/VOL/100; 假阴真阳:=C<O AND C>=REF(MIN(C,O),1) AND 均价>REF(均价,1); {蓝} DT:=假阴真阳; STICKLINE(DT,H,L,0,0),COLORFFAA00; STICKLINE(DT,O,C,3,0),COLORFF3300; STICKLINE(DT,O,C,2,0),COLORFF7700; STICKLINE(DT,O,C,1,0),COLORFFAA00; STICKLINE(DT,O,C,0.1,0),COLORFFFF00;YX:=REF(O,BARSLAST(假阴真阳)); 假阴实顶:YX,COLORFF7700,NODRAW; STICKLINE(V,YX,YX,1,0),COLORFF7700;L0:=点位差/100; 前极点精准线:IF(顶底开关=0,CONST(REF(L,指定点)),CONST(REF(H,指定点))),COLOR178448; DRAWICON(ABS(L-前极点精准线)<=L0,前极点精准线*0.99,38); DRAWICON(ABS(H-前极点精准线)<=L0,前极点精准线*1.01,39); {H极点精准线:CONST(REF(H,指定点)),COLOR7777FF; DRAWICON(ABS(H极点精准线-H)<=L0,H极点精准线*1.01,35); DRAWICON(ABS(H极点精准线-L)<=L0,H极点精准线*0.99,34);} {极点精准线:CONST(L),COLOR0077FF; DRAWICON(ABS(L-极点精准线)<=L0,极点精准线*0.99,1); DRAWICON(ABS(H-极点精准线)<=L0,极点精准线*1.01,2); 同向极点精准数:COUNT(ABS(L-极点精准线)<=L0,60)-1,COLOR0077FF,NODRAW; 异向极点精准数:COUNT(ABS(H-极点精准线)<=L0,60),COLOR0077FF,NODRAW; XG:=同向极点精准数>0 AND 异向极点精准数>0;} {DIFF:=10*(EMA(CLOSE,12)-EMA(CLOSE,26)); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); 量缩价涨:=C<REF(O,1) AND V<REF(V,1) AND MACD>REF(MACD,1) AND C>REF(C,1) AND REF(C<O,1) AND C>O; 阴KDAY:=BARSLAST(量缩价涨)+1; STICKLINE(V,REF(O,阴KDAY),REF(O,阴KDAY),3.5,0),COLORMAGENTA; DRAWICON(CROSS(C,REF(O,阴KDAY)),L,1);}DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK); 言语三宝:谦虚、亲切、赞许!
入世三宝:乐观、合群、互助!
兴趣三宝:读书、音乐、旅游!
看家三宝:轻松、幽默、体贴!
饮食三宝:营养、均衡、节制!
祛病三宝:静心、动体、养气!
智慧三宝:广闻、觉悟、活用!
学问三宝:倾听、记忆、思辩!
交友三宝:喜欢、投缘、关爱!
吉祥三宝:慈悲、善良、宽容!
幸福三宝:吃香、睡实、如愿! 为什么,我后面的20个图标显示的还是前面20个的重复呢 爬上股票市场狠好 言语三宝:谦虚、亲切、赞许! 谢谢分享,学习了 谢谢分享 学习了! 这个不错,有点用 成功总有成功的原因,失败总有失败的理由。
转载请注明出自股海明灯论坛 http://www.178448.cn/,本贴地址:http://www.178448.cn/thread-323222-1-1.html 首要任务就是先赚点分 谢谢楼主了哦
转载请注明出自股海明灯论坛 http://www.178448.com/,本贴地址:http://www.178448.com/thread-312852-1-1.html 谢谢提供万分感谢 很好实惠编程变多了谢谢 但是现在使用的通达信27号以上都重复,不出现这么多信号,不知为什么 谢谢分享,也认真考虑。