通达信10%和20%同K线区分主图源码 新规新K线,相互不干扰

[复制链接]
查看54 | 回复0 | 2022-7-24 02:50:33 | 显示全部楼层 |阅读模式

通达信10%和20%同K线区分主图源码 新规新K线,相互不干扰

源码:

{-----------------涨跌K线}
买线:=EMA(C,4);
卖线:=EMA(SLOPE(C,21)*10+C,34);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(买线>=卖线,LOW,HIGH,0,0),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(买线<卖线,LOW,HIGH,0,0),COLORCYAN;
STICKLINE(买线<卖线,CLOSE,OPEN,3,1),COLORCYAN;
STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,0),COLORCYAN;
{BU:=CROSS(买线,卖线);DRAWICON(BU,L-0.003,13);}
ZTB:=IF(INBLOCK('科创板'),1.2,IF(INBLOCK('创业板') AND DATE>1200823,1.2 ,IF(INBLOCK('ST板块'),1.05,1.1)));
DTB:=IF(INBLOCK('科创板'),0.8,IF(INBLOCK('创业板') AND DATE>1200823,0.8 ,IF(INBLOCK('ST板块'),0.95,0.9)));
STICKLINE(REF(C,1)*ZTB-C<0.0049,O,C,2.88,0),COLORRED;{涨停板}
STICKLINE(C>REF(C,1)*1.101,C,REF(C,1)*1.1,2.88,0),COLOR000088{区分10%和20%涨停};
STICKLINE(C-REF(C,1)*DTB<0.0051,O,C,2.88,0),COLORGREEN;{跌停板}
DRAWTEXT(L-REF(C,1)*DTB<0.0051 AND C>L AND PERIOD=5,L-0.05,' 撬板'),COLORCC00CC;{曾跌停撬开}
DRAWTEXT(REF(C,1)*ZTB-H<0.0049 AND H>C AND PERIOD=5,H-0.02,' 炸板'),COLOR00CC00;{曾涨停炸开}
DRAWTEXT(REF(C,1)*ZTB-C<0.0049 AND L-REF(C,1)*DTB<0.0051 AND PERIOD=5,L-0.05,'天堂板'),COLORCC00CC;{从跌停到涨停}
DRAWTEXT(REF(C,1)*ZTB-H<0.0049 AND C-REF(C,1)*DTB<0.0051 AND PERIOD=5,H-0.02,'地狱板'),COLOR00CC00;{从涨停到跌停}  

202008_26_215252pq9nzemwfujwzqez-20200827112447.png

202008_26_215252pq9nzemwfujwzqez-20200827112447.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则