适应创业板在主图上显示涨停板跌停板的公式
2020/8/25 22:09:27
{因创业板的变化,股票的涨停板跌停板的幅度值发生了变化,在主图上显示涨停板跌停板的幅度值、涨停板值,跌停板值,并进行涨停板跌停板智能着色标注。以及根据收盘价的明天涨停板值,明天跌停板值显示,以适应创业板的变化。}
涨幅限制: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;
看 股吧公式 www.ka nguba.com
[源码翻译]通达信公式动态翻译显示
输出涨幅限制:如果模糊匹配品种名称ORNAMELIKE('*ST'),返回1.05,否则返回如果模糊匹配品种代码ORCODELIKE('300'),返回1.2,否则返回1.1,NODRAW
输出跌幅限制:如果模糊匹配品种名称ORNAMELIKE('*ST'),返回0.95,否则返回如果模糊匹配品种代码ORCODELIKE('300'),返回0.80,否则返回0.90,NODRAW
相对位置上画矩形
今天涨停价赋值:1日前的收盘价*涨幅限制
今天跌停价赋值:1日前的收盘价*跌幅限制
当满足条件收盘价>=今天涨停价ANDC=最高价时,在开盘价和收盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.,画洋红色
当满足条件收盘价<=(今天跌停价+0.01)ANDC=最低价时,在开盘价和收盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.,画蓝色
当满足条件到最后交易的周期=1时,在横轴0.02纵轴0.02位置书写文字,画红色
当满足条件到最后交易的周期=1时,在横轴0.15纵轴0.02位置书写文字,画黄色
当满足条件到最后交易的周期=1时,在横轴0.1纵轴0.02位置书写数字,画红色
当满足条件到最后交易的周期=1时,在横轴0.02纵轴0.12位置书写文字,画绿色
当满足条件到最后交易的周期=1时,在横轴0.15纵轴0.12位置书写文字,画黄色
当满足条件到最后交易的周期=1时,在横轴0.1纵轴0.12位置书写数字,画绿色
当满足条件到最后交易的周期=1时,在横轴0.02纵轴0.22位置书写文字,画红色
当满足条件到最后交易的周期=1时,在横轴0.15纵轴0.22位置书写文字,画黄色
当满足条件到最后交易的周期=1时,在横轴0.1纵轴0.22位置书写数字,画红色
当满足条件到最后交易的周期=1时,在横轴0.02纵轴0.32位置书写文字,画绿色
当满足条件到最后交易的周期=1时,在横轴0.15纵轴0.32位置书写文字,画黄色
当满足条件到最后交易的周期=1时,在横轴0.1纵轴0.32位置书写数字,画绿色
明天涨停价赋值:收盘价*涨幅限制
明天跌停价赋值:收盘价*跌幅限制
当满足条件到最后交易的周期=1时,在横轴0.02纵轴0.42位置书写文字,画洋红色
当满足条件到最后交易的周期=1时,在横轴0.15纵轴0.42位置书写文字,画黄色
当满足条件到最后交易的周期=1时,在横轴0.1纵轴0.42位置书写数字,画洋红色
当满足条件到最后交易的周期=1时,在横轴0.02纵轴0.52位置书写文字,画青色
当满足条件到最后交易的周期=1时,在横轴0.15纵轴0.52位置书写文字,画黄色
当满足条件到最后交易的周期=1时,在横轴0.1纵轴0.52位置书写数字,画青色
其它股票公式列表