涨幅限制,源码分享(通达信公式 主图 源码 测试图)不加密

[复制链接]
查看131 | 回复0 | 2022-6-27 18:16:43 | 显示全部楼层 |阅读模式
 
24日开始,创业板股票涨停跌停涨幅限制变化,股票的涨停板跌停板的幅度值发生了变化,
在主图上显示涨停板跌停板的   幅度值、涨停板值,跌停板值,
并进行涨停板跌停板智能着色标注。
以及根据收盘价的明天涨停板值,明天跌停板值显示,以适应创业板的变化。
 
{涨幅限制选择}
涨幅限制:IF(NAMELIKE('ST') OR NAMELIKE('*ST'),1.05,
IF(CODELIKE('688') OR CODELIKE('300'),1.2,1.1)),NODRAW;
跌幅限制:IF(NAMELIKE('ST') OR NAMELIKE('*ST'),0.95,
IF(CODELIKE('688') OR CODELIKE('300'),0.80,0.90)),NODRAW;
DRAWRECTREL(0,0,180,600,RGB(30,15,005));
今天涨停价:=REF(C,1)*涨幅限制;
今天跌停价:=REF(C,1)*跌幅限制;
STICKLINE(C>=今天涨停价 AND C=H,O,C,2,0),COLORMAGENTA;
STICKLINE(C<=(今天跌停价+0.01) AND C=L,O,C,2,0),COLORBLUE;
 
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.02,0.0, '涨幅限制:'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.15,0.02,0,' %'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.1,0.02,0,涨幅限制),COLORRED;
 
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.12,0.0, '跌幅限制:'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.15,0.12,0,'%'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.1,0.12,0,跌幅限制),COLORGREEN;
 
.......
附件里有 源码和不加密的公式,请下载导入公式
 
 

2020824228628442.png

2020824228628442.png
 

20208242284596918.jpg

20208242284596918.jpg
 

20208242285193116.jpg

20208242285193116.jpg
 

20208242285913180.jpg

20208242285913180.jpg
 

2020824229531549.jpg

2020824229531549.jpg
 

20208242275244614.rar

3.09 KB, 下载次数: 0

售价: 4 金钱  [记录]  [购买]

20208242275244614.rar

回复

使用道具 举报

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

本版积分规则