软件名称:[B]涨跌停K线变色源码[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:3.00 KB
官方主页:Home Page
更新时间:2020-09-17 00:12:18
软件简介:
//涨跌停K线变色
涨幅20:=IF((CODE>=300000 AND CODE<400000 AND DATE>20200823) OR CODE>688000 ,1,0);
BARPOS:=BARSCOUNT(CLOSE);
涨停价:=IF(BARPOS>5 OR 涨幅20,IF(涨幅20,INTPART((1.2*REF(C,1)+0.005)*100)/100,INTPART((1.1*REF(C,1)+0.005) *100)/100),10000),NODRAW;
跌停价:=IF(BARPOS>5 OR 涨幅20,IF(涨幅20,INTPART((0.8*REF(C,1)+0.005)*100)/100,INTPART((0.9*REF(C,1)+0.005) *100)/100),10000),NODRAW;
ZT:=(C-涨停价)=0;
DT:=(C-跌停价)=0;
CZT:=(H-涨停价)=0;
CDT:=(L-跌停价)=0;
IF(ZT AND C=H) RETURN "涨停";
IF(DT AND C=L) RETURN "跌停";
IF(CZT AND C<H AND O<=C) RETURN "曾涨停";
IF(CZT AND C<H AND O>=C) RETURN "曾跌停";
IF(CDT AND C>L AND O<=C) RETURN "曾涨停";
IF(CDT AND C>L AND O>=C) RETURN "曾跌停";
提示:这公式,不合格,没能正常显示涨跌停变色
//涨跌停K线变色
涨幅20:=IF((CODE>=300000 AND CODE<400000 AND DATE>20200823) OR CODE>688000 ,1,0);
BARPOS:=BARSCOUNT(CLOSE);
涨停价:=IF(BARPOS>5 OR 涨幅20,IF(涨幅20,INTPART((1.2*REF(C,1)+0.005)*100)/100,INTPART((1.1*REF(C,1)+0.005) *100)/100),10000),NODRAW;
跌停价:=IF(BARPOS>5 OR 涨幅20,IF(涨幅20,INTPART((0.8*REF(C,1)+0.005)*100)/100,INTPART((0.9*REF(C,1)+0.005) *100)/100),10000),NODRAW;
ZT:=(C-涨停价)=0;
DT:=(C-跌停价)=0;
CZT:=(H-涨停价)=0;
CDT:=(L-跌停价)=0;
IF(ZT AND C=H) RETURN "涨停";
IF(DT AND C=L) RETURN "跌停";
IF(CZT AND C<H AND O<=C) RETURN "曾涨停";
IF(CZT AND C<H AND O>=C) RETURN "曾跌停";
IF(CDT AND C>L AND O<=C) RETURN "曾涨停";
IF(CDT AND C>L AND O>=C) RETURN "曾跌停";
[url=http://www.70822.com/soft/sort013/sort036/down-150716.html]涨跌停K线变色源码[/url]