当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:涨跌停变色2个公式分享源码
软件名称:[B]涨跌停变色2个公式分享源码[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2020-08-27 00:14:10
软件简介:
公式1
{涨跌停显示}
BK:=IF(INBLOCK('创业板'),0.2,IF(INBLOCK('科创板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));
BF:=IF(DATE<=1200823,1,0);
STICKLINE((C=ZTPRICE(REF(C,1),BK) AND C=H),C,O,1.5,0),COLORYELLOW;
STICKLINE((C=DTPRICE(REF(C,1),BK) AND C=L),C,O,-1,0),COLORGREEN;
STICKLINE((C>=ZTPRICE(REF(C,1),0.1) AND C=H) AND BF=1,C,O,1.5,0),COLORYELLOW;
STICKLINE((C<=DTPRICE(REF(C,1),0.1) AND C=L) AND BF=1,C,O,-1,0),COLORGREEN;
STICKLINE((H>=ZTPRICE(REF(C,1),BK) AND C<H) OR (H>=ZTPRICE(REF(CLOSE,1),0.1) AND C<H AND BF=1),H,MAX(C,O),0.1,0),COLORMAGENTA;
STICKLINE((L<=DTPRICE(REF(C,1),BK) AND C>L) OR (L<=DTPRICE(REF(CLOSE,1),0.1) AND C>L AND BF=1),L,MIN(C,O),0.1,0),COLORGREEN;
公式2
涨板:=IFF(NAMEINCLUDE('*')||NAMEINCLUDE('*S')||NAMEINCLUDE('ST'),
C>=ZTPRICE(REF(C,1),0.05) AND C=H AND H>0,
IFF((DATE>=1200824 AND FINANCE(3)=3)||FINANCE(3)=4,
C>=ZTPRICE(REF(C,1),0.20) AND C=H AND H>0,
C>=ZTPRICE(REF(C,1),0.10) AND C=H AND H>0));
跌板:=IFF(NAMEINCLUDE('*')||NAMEINCLUDE('*S')||NAMEINCLUDE('ST'),
C<=DTPRICE(REF(C,1),0.05) AND C=L AND L>0,
IFF((DATE>=1200824 AND FINANCE(3)=3)||FINANCE(3)=4,
C<=DTPRICE(REF(C,1),0.20) AND C=L AND L>0,
C<=DTPRICE(REF(C,1),0.10) AND C=L AND L>0));
DRAWKLINE(H,O,L,C);
STICKLINE(涨板,O,C,3.0,0),COLOR0099FF;
STICKLINE(涨板,O,C,2.0,0),COLOR33BBFF;
STICKLINE(涨板,O,C,0.5,0),COLOR55DDFF;
STICKLINE(涨板,O,C,0.0,0),COLOR99FFFF;
STICKLINE(跌板,O,C,3.0,0),COLOR00AA00;
STICKLINE(跌板,O,C,2.0,0),COLOR00CC00;
STICKLINE(跌板,O,C,0.5,0),COLOR00EE00;
STICKLINE(跌板,O,C,0.0,0),COLOR00FF00;
[url=http://www.70822.com/soft/sort013/sort05/down-150228.html]涨跌停变色2个公式分享源码[/url]