手机版 官方微博
官方微信
扫描关注:理想财富微信公众号
理想论坛App
扫描下载理想论坛App
RSS

自己用的精品【BS+止损线】主图

[通达信]
设置
12973 0 理想9632 Lv.2 发表于 · 2012-10-14 17:07 举报 显示全部楼层 复制 正序浏览 |
跳转到指定楼层
指标只是个辅助工具,要靠它能赚钱,那都成了富翁了。

指标源码:

{主图}
AA1:MA(C,5);
BB1:MA(C,15);
A:=CROSS(AA1,BB1);
STICKLINE(A,LLV(L,4),LLV(L,4),50,1),COLORBROWN;
DRAWTEXT(A,LLV(L,4),'止损线'),COLORBROWN;
VAR1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR2:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW*0.992),1);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH*1.008),2);
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW*0.979),'B'),COLORRED;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH*1.025),'S'),COLORGREEN;
年:MA(CLOSE,34),COLORA8A8A8,LINETHICK1;
STICKLINE(C>=年 AND C>=O,C,O,2.8,0),COLORRED;
STICKLINE(C>=年 AND C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=年 AND C<O,C,O,2.8,1),COLORRED;
STICKLINE(C>=年 AND C<O,O,H,0,0),COLORRED;
STICKLINE(C>=年 AND C<O,C,L,0,0),COLORRED;
STICKLINE(C<年 AND C>O,C,O,2.8,1),COLORFFFF00;
STICKLINE(C<年 AND C<=O,C,O,2.8,1),COLORFFFF00;
STICKLINE(C<年 AND C<=O,H,L,0,1),COLORFFFF00;
STICKLINE(C<年 AND C>O,C,H,0,1),COLORFFFF00;
STICKLINE(C<年 AND C>O,O,L,0,1),COLORFFFF00;






BS+止损线主图.JPG

财神705
Lv.4
发表于 2012-10-15 14:42 复制 查看全部楼层
AA1:MA(C,7),LINETHICK2;
BB1:MA(C,13),LINETHICK2;
A:=CROSS(AA1,BB1);
STICKLINE(A,LLV(L,4),LLV(L,4),50,1),COLORBROWN,LINETHICK2;
DRAWTEXT(A,LLV(L,4),'止损线'),COLORBROWN,LINETHICK2;
VAR1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR2:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW*0.992),1);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH*1.008),2);
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW*0.979),'B'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH*1.025),'S'),COLORGREEN,LINETHICK2;
年:MA(CLOSE,34),COLORA8A8A8,,LINETHICK2;
STICKLINE(C>=年 AND C>=O,C,O,2.8,0),COLORRED,LINETHICK2;
STICKLINE(C>=年 AND C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=年 AND C<O,C,O,2.8,1),COLORRED;
STICKLINE(C>=年 AND C<O,O,H,0,0),COLORRED;
STICKLINE(C>=年 AND C<O,C,L,0,0),COLORRED;
STICKLINE(C<年 AND C>O,C,O,2.8,1),COLORFFFF00;
STICKLINE(C<年 AND C<=O,C,O,2.8,1),COLORFFFF00;
STICKLINE(C<年 AND C<=O,H,L,0,1),COLORFFFF00;
STICKLINE(C<年 AND C>O,C,H,0,1),COLORFFFF00;
STICKLINE(C<年 AND C>O,O,L,0,1),COLORFFFF00;


AA:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)<REF(CLOSE,3) AND IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) OR (REF(CLOSE,2)<REF(CLOSE,4) AND REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7))));
BB:=CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,1)>REF(CLOSE,3) AND IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) OR (REF(CLOSE,2)>REF(CLOSE,4) AND REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));
DRAWICON(AA AND CLOSE>REF(OPEN,2),0.99*LOW,1);
DRAWICON(BB AND CLOSE<REF(CLOSE,2),HIGH*1.01,2);
DRAWTEXT(AA AND CLOSE>REF(OPEN,2),LOW*0.98,'三平底翻红'),COLORYELLOW;
DRAWTEXT_FIX(1,0.0,0.00,0,DYBLOCK),COLORFFFFFF;
DRAWTEXT_FIX(1,0.07,0.00,0,HYBLOCK),COLORFFFFFF;
DRAWTEXT_FIX(1,0,0.05,0,STRCAT('主营业务:',EXTERNSTR(0,2)));
DRAWTEXT_FIX(1,0,0.10,0,STRCAT('主题投资:',EXTERNSTR(0,1))),COLORFFFFFF;
油条
Lv.4
发表于 2012-10-14 23:21 复制 查看全部楼层
西电老师出手改的说明有搞头
王景楠
Lv.3
发表于 2012-10-14 21:13 复制 查看全部楼层
老师
您需要登录后才可以回帖 免费注册登录

本版积分规则

回顶部 到页底
快速回复 返回顶部 返回列表