明天涨停k线自动画出,日线显示涨跌幅kkk指标,源码分享

[复制链接]
查看43 | 回复0 | 2022-6-27 17:33:07 | 显示全部楼层 |阅读模式
自动画出明天涨停的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.70822.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);
 

20211101313393299.png

20211101313393299.png
 

20211101313999841.png

20211101313999841.png
 

20211101314538027.png

20211101314538027.png

20211101302253585.rar

3.61 KB, 下载次数: 0

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

20211101302253585.rar

回复

使用道具 举报

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

本版积分规则