通达信K线涨停高亮主图指标 犀牛K深色 源码附图
L1:=10;
L2:=20;
L3:=30;
L4:=60;
L5:=120;
L6:=250;
ZDJS:=IF(CODELIKE('880005'), 1, 0);
M5:IF(ZDJS=0,MA(C,L1),DRAWNULL);
M10:IF(ZDJS=0,MA(C,L2),DRAWNULL);
M20:IF(ZDJS=0,MA(C,L3),DRAWNULL);
M60:IF(ZDJS=0,MA(C,L4),DRAWNULL);
M120:IF(ZDJS=0,MA(C,L5),DRAWNULL);
M250:IF(ZDJS=0,MA(C,L6),DRAWNULL);
{判断涨跌幅限制,涨跌停价格}
CYB:=IF(FINANCE(3)=3, 1, 0);
ZDF:=IF(FINANCE(3)=3 OR FINANCE(3)=4, 0.2,
IF(FINANCE(3)=2, 0.3,
IF(NAMEINCLUDE('ST'), 0.05,
0.1)
)
);
ZT:=ZTPRICE(REF(CLOSE,1), ZDF);
DT:=DTPRICE(REF(CLOSE,1), ZDF);
ZT1:=ZTPRICE(REF(CLOSE,1), 0.1)+0.01;
ZT2:=ZTPRICE(REF(CLOSE,1), 0.2)+0.01;
DT1:=DTPRICE(REF(CLOSE,1), 0.1);
DT2:=DTPRICE(REF(CLOSE,1), 0.2);
{下一行是板块调用,也可以改为扩展数据调用,例如 EXTERNSTR(0,1) }
DRAWTEXT_FIX(1,0,0, 0,
STRCAT(
HYBLOCK,
STRCAT(
' + ',
STRCAT(
GNBLOCK,
STRCAT(' + ', DYBLOCK)
)
)
)
),COLORWHITE;
{DRAWTEXT_FIX(1,0,0,0, STRCAT(HYBLOCK,STRCAT(' + ', STRCAT(GNBLOCK,STRCAT('+ ', EXTERNSTR(0,1)))))),COLORWHITE;}
N1:DRAWSL(ZDJS=1,3500,0,1000,1), COLORWHITE;
N2:DRAWSL(ZDJS=1,750,0,1000,1), COLORWHITE;
N:CONST(C), COLORWHITE, POINTDOT;
W1:=3;
W0:=0;
NOCYB:=CYB=0 AND ZDJS=0;
STICKLINE((NOCYB AND C<H AND H=ZT AND C>DT AND C<O), O, C, W1, 0), COLORFF4D88;
STICKLINE((NOCYB AND C<H AND H=ZT AND C>O), O, C, W1, 0), COLORFF4DFF;
GGR:=1200824;
STICKLINE(DATE=GGR AND (CYB=1 OR CODELIKE('8808')), CONST(LLV(L,120)), CONST(HHV(H,120)), W0, 0),COLOR5C979C;
STICKLINE((CYB=1 AND DATE<GGR AND C<ZT AND H=ZT AND C>DT AND C<O), O, C, W1, 0), COLORFF4DFF;
STICKLINE((CYB=1 AND DATE<GGR AND C<ZT AND H=ZT AND C>O), O, C, W1, 0), COLORFF4DFF;
STICKLINE((CYB=1 AND DATE>=GGR AND C<ZT AND H=ZT2 AND C>DT AND C<O), O, C, W1, 0), COLORFF4DFF;
STICKLINE((C>ZT1 AND C<ZT2 AND C>O AND ZDJS=0), O, C, W1, 0), COLOR00AAFF;
STICKLINE((C<H AND C>ZT2 AND C>O AND ZDJS=0), O, C, W1, 0), COLOR0066CC;
STICKLINE((C<=DT1 AND C<O AND ZDJS=0), O, C, W1, 0), COLORGREEN;
STICKLINE((NOCYB AND C+0.01>=ZT AND C=H), O, C, W1, 0),COLORYELLOW;
STICKLINE((NOCYB AND C<=DT AND C=L), O, C, W1, 0),COLORGREEN;
STICKLINE((NOCYB AND L<=DT AND C<ZT AND C>L), L, C, 0, 0),COLORGREEN;{曾跌停阳线}
STICKLINE((CYB=1 AND DATE>=GGR AND C+0.01>=ZT2 AND C=H), O, C, W1, 0), COLORYELLOW;
STICKLINE((CYB=1 AND DATE<GGR AND C+0.01>=ZT AND C=H), O, C, W1, 0), COLORYELLOW;
STICKLINE((CYB=1 AND DATE<GGR AND C<=DT AND C=L), O, C, W1, 0), COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
L1赋值:10
L2赋值:20
L3赋值:30
L4赋值:60
L5赋值:120
L6赋值:250
ZDJS赋值:IF(CODELIKE('880005'), 1, 0)
输出M5:IF(ZDJS=0,C的L1日简单移动平均,DRAWNULL)
输出M10:IF(ZDJS=0,C的L2日简单移动平均,DRAWNULL)
输出M20:IF(ZDJS=0,C的L3日简单移动平均,DRAWNULL)
输出M60:IF(ZDJS=0,C的L4日简单移动平均,DRAWNULL)
输出M120:IF(ZDJS=0,C的L5日简单移动平均,DRAWNULL)
输出M250:IF(ZDJS=0,C的L6日简单移动平均,DRAWNULL)
{判断涨跌幅限制,涨跌停价格}
CYB赋值:IF(FINANCE(3)=3, 1, 0)
ZDF赋值:IF(FINANCE(3)=3 OR FINANCE(3)=4, 0.2,
IF(FINANCE(3)=2, 0.3,
IF(NAMEINCLUDE('ST'), 0.05,
0.1)
)
)
ZT赋值:ZTPRICE(1日前的收盘价, ZDF)
DT赋值:DTPRICE(1日前的收盘价, ZDF)
ZT1:=ZTPRICE(1日前的收盘价, 0.1)+0.01
ZT2:=ZTPRICE(1日前的收盘价, 0.2)+0.01
DT1:=DTPRICE(1日前的收盘价, 0.1)
DT2:=DTPRICE(1日前的收盘价, 0.2)
{下一行是板块调用,也可以改为扩展数据调用,例如 EXTERNSTR(0,1) }
DRAWTEXT_FIX(1,0,0, 0,
STRCAT(
HYBLOCK,
STRCAT(
' + ',
STRCAT(
GNBLOCK,
STRCAT(' + ', DYBLOCK)
)
)
)
),画白色
{DRAWTEXT_FIX(1,0,0,0, STRCAT(HYBLOCK,STRCAT(' + ', STRCAT(GNBLOCK,STRCAT('+ ', EXTERNSTR(0,1)))))),画白色
输出}
N1:DRAWSL(ZDJS=1,3500,0,1000,1), 画白色
输出N2:DRAWSL(ZDJS=1,750,0,1000,1), 画白色
输出N:CONST(C), 画白色, POINTDOT
W1赋值:3
W0赋值:0
NOCYB:=CYB=0 AND ZDJS=0
STICKLINE((NOCYB AND CDT AND C
STICKLINE((NOCYB AND CO), O, C, W1, 0), COLORFF4DFF
GGR赋值:1200824
STICKLINE(DATE=GGR AND (CYB=1 OR CODELIKE('8808')), CONST(120日内L最低值), CONST(120日内H最高值), W0, 0),COLOR5C979C
STICKLINE((CYB=1 AND DATEDT AND C
STICKLINE((CYB=1 AND DATEO), O, C, W1, 0), COLORFF4DFF
STICKLINE((CYB=1 AND DATE>=GGR AND CDT AND C
STICKLINE((C>ZT1 AND CO AND ZDJS=0), O, C, W1, 0), COLOR00AAFF
STICKLINE((CZT2 AND C>O AND ZDJS=0), O, C, W1, 0), COLOR0066CC
STICKLINE((C<=DT1 AND C
STICKLINE((NOCYB AND C+0.01>=ZT AND C=H), O, C, W1, 0),画黄色
STICKLINE((NOCYB AND C<=DT AND C=L), O, C, W1, 0),COLORGREEN
STICKLINE((NOCYB AND L<=DT AND CL), L, C, 0, 0),COLORGREEN
{曾跌停阳线}
STICKLINE((CYB=1 AND DATE>=GGR AND C+0.01>=ZT2 AND C=H), O, C, W1, 0), 画黄色
STICKLINE((CYB=1 AND DATE=ZT AND C=H), O, C, W1, 0), 画黄色
STICKLINE((CYB=1 AND DATE