自动画出明天涨停的k线 和显示涨跌幅限制,涨跌停价咯,
有一定参考价值。
{明天涨停k线 源码} 涨幅限制: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;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.22,0.0, '今天涨停价:'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.15,0.22,0,'元'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.1,0.22,0,今天涨停价),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.32,0.0, '今天跌停价:'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.15,0.32,0,'元'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.1,0.32,0,今天跌停价),COLORGREEN;
明天涨停价:=C*涨幅限制;
明天跌停价:=C*跌幅限制;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.42,0.0, '明天涨停价:'),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.15,0.42,0,'元'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.1,0.42,0,明天涨停价),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.52,0.0, '明天跌停价:'),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.15,0.52,0,'元'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.1,0.52,0,明天跌停价),COLORCYAN;
{排除ST}
去ST:=DYNAINFO(4) AND EXIST(ABS(C/REF(C,1)-1)>0.055,100);
{去掉今日停牌}
JB:=DYNAINFO(8)>0;
ZF:=100*(CLOSE/REF(CLOSE,1)-1);
AAA:=IF(EXIST(ZF>5.5 OR ZF<-5.5,120),1.1,1.05);
ZT:=IF(CURRBARSCOUNT=1 AND PERIOD=5,REF(CLOSE,1)*AAA,REF(CLOSE,1)*AAA);
涨停价:=IF(CURRBARSCOUNT<10+1,REFDATE(ZT,DATE),DRAWNULL);
CA3:=REF(C,1);DRAWTEXT_FIX(1,0.980,20,1,'★分析家公式网'),COLORYELLOW;
DF:=IF((CA3-C)*100/CA3>=(10-0.01*100/CA3),1,0);
AD:=IF(EXIST(DF>5.5 OR DF<-5.5,120),0.5,0.90);
ZTD:=IF(CURRBARSCOUNT=1 AND PERIOD=5,REF(CLOSE,1)*AD,REF(CLOSE,1)*AD);
跌停价:=IF(CURRBARSCOUNT<10+1 ,REFDATE(ZTD,DATE),DRAWNULL);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);{分析家公式网 WWW.fxjgsw.com 整理}
STICKLINE(ISLASTBAR,今天涨停价,今天涨停价*涨幅限制,9.5,0),COLORMAGENTA;
STICKLINE(ISLASTBAR,今天涨停价,今天涨停价*涨幅限制,4,0),COLORBLACK;
STICKLINE(CURRBARSCOUNT=3,CONST(C),CONST(今天涨停价*涨幅限制),13,0),COLORBLACK;
STICKLINE(CURRBARSCOUNT=1 AND 去ST AND JB,今天涨停价,H,3,-1),COLOR00C0C0;
STICKLINE(CURRBARSCOUNT=1 AND 去ST AND JB AND C/REF(C,1)<0.96,L,今天涨停价,3,-1),COLOR00C0C0;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!