beyond202104 发表于 2023-8-28 16:41:42

涨跌停主图,涨跌停K线标识并标识炸板和撬板(通达信主图 源码)


{涨跌停主图}{非常好用和准确的涨跌停K线标识公式,公式可以自动区分老涨停(10%)和新涨停(20%),还可以标识炸板和撬板}{K线图着重显示涨跌停}BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));XA_1:=IF(DATE<=1200823,1,0);旧涨停:=(C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H) AND XA_1=1;旧跌停:=(C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1;涨停:=C>=ZTPRICE(REF(C,1),BK) AND C=H;跌停:=C<=DTPRICE(REF(C,1),BK) AND C=L;曾涨停:=(H>=ZTPRICE(REF(C,1),BK) AND C<H) OR (H>=ZTPRICE(REF(CLOSE,1),0.1) AND C<H AND XA_1=1);曾跌停:=(L<=DTPRICE(REF(C,1),BK) AND C>L) OR (L<=DTPRICE(REF(CLOSE,1),0.1) AND C>L AND XA_1=1);STICKLINE(旧涨停 AND PERIOD=5,O,C,4,0),COLORYELLOW;STICKLINE(旧跌停 AND PERIOD=5,O,C,4,0),COLORGREEN;STICKLINE(涨停 AND PERIOD=5,C,O,4,0),COLORYELLOW;STICKLINE(跌停 AND PERIOD=5,C,O,4,0),COLORGREEN;STICKLINE(曾涨停 AND PERIOD=5,H,L,0.1,0),COLORYELLOW;{涨停后回落}STICKLINE(曾跌停 AND PERIOD=5,L,H,0.1,0),COLORGREEN;{跌停后回升}DRAWTEXT(旧涨停 AND PERIOD=5,L-0.1,'涨停'),COLORYELLOW;DRAWTEXT(旧跌停 AND PERIOD=5,H+0.2,'跌停'),COLORGREEN;DRAWTEXT(涨停 AND PERIOD=5,L-0.1,'涨停'),COLORYELLOW;DRAWTEXT(跌停 AND PERIOD=5,H+0.2,'跌停'),COLORGREEN;DRAWTEXT(曾涨停 AND PERIOD=5,H+0.2,'炸板'),COLORGREEN;

DRAWTEXT(曾跌停 AND PERIOD=5,L-0.1,'撬板'),COLORYELLOW;




双夜识 发表于 2023-9-24 18:57:50

看帖回帖是美德!:lol

123459857 发表于 2023-10-3 11:42:08

爱分享,爱生活

塞翁364 发表于 2024-1-20 08:33:44

太棒了吧,真的很好

风吹吹蛋蛋疼风w 发表于 2024-2-8 00:32:58

没看完~~~~~~ 先顶,好同志

一鱼两面掖 发表于 2024-3-28 09:00:19

找了很久的东西!

完整的草纱 发表于 2024-3-29 08:34:46

学习了,谢谢分享、、、
页: [1]
查看完整版本: 涨跌停主图,涨跌停K线标识并标识炸板和撬板(通达信主图 源码)