通达信大金叉捉妖主图指标 天鹅股份 陕西金叶翻倍行情 主抓市场强势妖股股 源码 附图
Z1:=STRCAT('【',STRCAT(CODE,STKNAME));Z2:=STRCAT(' 行业:',HYBLOCK);
Z3:=STRCAT(' 地域:',DYBLOCK);
Z4:=STRCAT(STRCAT(' 概念:',GNBLOCK),'】');
Z5:=STRCAT(Z1,Z2);Z6:=STRCAT(Z3,Z4);Z7:=STRCAT(Z5,Z6);
DRAWTEXT_FIX(1,0.35,0.030,0,Z7),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.75,0.080,1.0,STRCAT('5日总换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,5),2))),COLOREEEE00;
DRAWTEXT_FIX(ISLASTBAR,0.75,0.130,1.0,STRCAT('10日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,10),2))),COLOREEEE00;
DRAWTEXT_FIX(1.0,0.80,0.080,0,'流通市值:'),COLORGREEN;
DRAWNUMBER_FIX(1.0,0.84,0.080,0, FINANCE(40)/100000000),COLORGREEN;
AAA:=(MA(CLOSE,13)+MA(CLOSE,17))/2;
CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2;
BBB:=AAA+2.1*CCC;
DDD:=AAA+0.72*CCC;
ZZZ:=IF(CCC>1.88 ,MA(DDD,3),DDD);
钱袋子:ZZZ*1.04,COLORYELLOW, LINETHICK2;
金手指向下:MA(LOW,20)*1.13, COLORRED, LINETHICK2;
DRAWICON(CROSS( 钱袋子, 金手指向下),钱袋子*1.002,9);
DRAWICON(CROSS( 金手指向下, 钱袋子),金手指向下*1.002,12);
TM:=1200823;
涨停:IF(DATE<TM,ZTPRICE(REF(C,1),IF(CODELIKE('688'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),ZTPRICE(REF(C,1),IF(CODELIKE('688') OR CODELIKE('300'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORRED;
跌停:IF(DATE<TM,DTPRICE(REF(C,1),IF(CODELIKE('688'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),DTPRICE(REF(C,1),IF(CODELIKE('688') OR CODELIKE('300'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORGREEN;
明涨停:IF(DATE<TM,C*IF(CODELIKE('688'),1.2,IF(NAMEINCLUDE('S'),1.05,1.1)),C*(IF(CODELIKE('688') OR CODELIKE('300'),1.2,IF(NAMEINCLUDE('S'),1.05,1.1)))),NODRAW,COLORLIMAGENTA;
明跌停:IF(DATE<TM,C*IF(CODELIKE('688'),0.8,IF(NAMEINCLUDE('S'),0.45,0.9)),C*(IF(CODELIKE('688') OR CODELIKE('300'),0.8,IF(NAMEINCLUDE('S'),0.45,0.9)))),NODRAW,COLORFFFF00;
ZT:=C>=涨停 AND PERIOD=5 AND H=C;
ZT1:=H>=涨停 AND PERIOD=5 AND H>C;
DT:=C<=跌停 AND PERIOD=5 AND L=C;
DT1:=L<=跌停 AND PERIOD=5 AND L<C;
STICKLINE(ZT,C,(O+C)/2,3,0),COLOR000099;
STICKLINE(ZT,C,(O+C)/2,2.2,0),COLOR0000CC;
STICKLINE(ZT,C,(O+C)/2,1.5,0),COLOR0000FF;
STICKLINE(ZT,C,(O+C)/2,0.5,0),COLORCC66FF;
STICKLINE(ZT,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(ZT,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(ZT,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(ZT,O,(O+C)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(DT,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(DT,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT,O,(O+C)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT,C,(O+C)/2,3,0),COLOR009900;
STICKLINE(DT,C,(O+C)/2,2.2,0),COLOR00BB00;
STICKLINE(DT,C,(O+C)/2,1.5,0),COLOR00DD00;
STICKLINE(DT,C,(O+C)/2,0.5,0),COLOR00FF00;
STICKLINE(ZT1,C,(O+C)/2,3,0),COLORFF00FF;
STICKLINE(ZT1,C,(O+C)/2,2.2,0),COLORFF00FF;
STICKLINE(ZT1,C,(O+C)/2,1.5,0),COLOR0000FF;
STICKLINE(ZT1,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(ZT1,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(ZT1,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT1,O,(O+C)/2,3,0),COLOR888888;
STICKLINE(DT1,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(DT1,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT1,C,(O+C)/2,3,0),COLOR009900;
STICKLINE(DT1,C,(O+C)/2,2.2,0),COLOR00BB00;
STICKLINE(DT1,C,(O+C)/2,1.5,0),COLOR00DD00;
STICKLINE(DT1,C,(O+C)/2,0.5,0),COLOR00FF00;
DRAWTEXT(ZT AND DT1 AND PERIOD=5,L-0.03,'地天板'),COLORCC00CC;{从跌停到涨停}
DRAWTEXT(DT AND ZT1 AND PERIOD=5,H+0.03,'天地板'),COLOR00CC00;{从涨停到跌停};
DRAWTEXT(DT1,L-0.09,'撬板'),COLORCC00CC;{从涨停到跌停};
DRAWTEXT(ZT1,H+0.03,'炸板'),COLOR00CC00;{从涨停到跌停};
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
Z1赋值:STRCAT('【',STRCAT(CODE,STKNAME))
Z2赋值:STRCAT(' 行业:',HYBLOCK)
Z3赋值:STRCAT(' 地域:',DYBLOCK)
Z4赋值:STRCAT(STRCAT(' 概念:',GNBLOCK),'】')
Z5赋值:STRCAT(Z1,Z2)
Z6赋值:STRCAT(Z3,Z4)
Z7赋值:STRCAT(Z5,Z6)
当满足条件1时,在横轴0.35纵轴0.030位置书写文字
输出DRAWTEXT_FIX(ISLASTBAR,0.75,0.080,1.0,STRCAT('5日总换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,5),2))),COLOREEEE00
输出DRAWTEXT_FIX(ISLASTBAR,0.75,0.130,1.0,STRCAT('10日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,10),2))),COLOREEEE00
当满足条件1.0时,在横轴0.80纵轴0.080位置书写文字
DRAWNUMBER_FIX(1.0,0.84,0.080,0, FINANCE(40)/100000000),画绿色
AAA赋值:(收盘价的13日简单移动平均+收盘价的17日简单移动平均)/2
CCC赋值:(收盘价的13估算标准差+收盘价的17估算标准差)/2
BBB赋值:AAA+2.1*CCC
DDD赋值:AAA+0.72*CCC
ZZZ赋值:IF(CCC>1.88 ,DDD的3日简单移动平均,DDD)
输出钱袋子:ZZZ*1.04,画黄色, 线宽为2
输出金手指向下:最低价的20日简单移动平均*1.13, 画红色, 线宽为2
DRAWICON( 钱袋子上穿 金手指向下,钱袋子*1.002,9)
DRAWICON( 金手指向下上穿 钱袋子,金手指向下*1.002,12)
TM赋值:1200823
输出涨停:IF(DATE
输出跌停:IF(DATE
明输出涨停:IF(DATE
明输出跌停:IF(DATE
ZT赋值:C>=涨停 AND PERIOD=5 AND H=C
ZT1:=H>=涨停 AND PERIOD=5 AND H>C
DT赋值:C<=跌停 AND PERIOD=5 AND L=C
DT1:=L<=跌停 AND PERIOD=5 AND L
STICKLINE(ZT,C,(O+C)/2,3,0),COLOR000099
STICKLINE(ZT,C,(O+C)/2,2.2,0),COLOR0000CC
STICKLINE(ZT,C,(O+C)/2,1.5,0),COLOR0000FF
STICKLINE(ZT,C,(O+C)/2,0.5,0),COLORCC66FF
STICKLINE(ZT,O,(O+C)/2,3,0),COLOR999999
STICKLINE(ZT,O,(O+C)/2,2.2,0),COLORBBBBBB
STICKLINE(ZT,O,(O+C)/2,1.5,0),COLORDDDDDD
STICKLINE(ZT,O,(O+C)/2,0.5,0),COLORFFFFFF
STICKLINE(DT,O,(O+C)/2,3,0),COLOR999999
STICKLINE(DT,O,(O+C)/2,2.2,0),COLORBBBBBB
STICKLINE(DT,O,(O+C)/2,1.5,0),COLORDDDDDD
STICKLINE(DT,O,(O+C)/2,0.5,0),COLORFFFFFF
STICKLINE(DT,C,(O+C)/2,3,0),COLOR009900
STICKLINE(DT,C,(O+C)/2,2.2,0),COLOR00BB00
STICKLINE(DT,C,(O+C)/2,1.5,0),COLOR00DD00
STICKLINE(DT,C,(O+C)/2,0.5,0),COLOR00FF00
STICKLINE(ZT1,C,(O+C)/2,3,0),COLORFF00FF
STICKLINE(ZT1,C,(O+C)/2,2.2,0),COLORFF00FF
STICKLINE(ZT1,C,(O+C)/2,1.5,0),COLOR0000FF
STICKLINE(ZT1,O,(O+C)/2,3,0),COLOR999999
STICKLINE(ZT1,O,(O+C)/2,2.2,0),COLORBBBBBB
STICKLINE(ZT1,O,(O+C)/2,1.5,0),COLORDDDDDD
STICKLINE(DT1,O,(O+C)/2,3,0),COLOR888888
STICKLINE(DT1,O,(O+C)/2,2.2,0),COLORBBBBBB
STICKLINE(DT1,O,(O+C)/2,1.5,0),COLORDDDDDD
STICKLINE(DT1,C,(O+C)/2,3,0),COLOR009900
STICKLINE(DT1,C,(O+C)/2,2.2,0),COLOR00BB00
STICKLINE(DT1,C,(O+C)/2,1.5,0),COLOR00DD00
STICKLINE(DT1,C,(O+C)/2,0.5,0),COLOR00FF00
当满足条件ZT AND DT1 AND PERIOD=5时,在L-0.03和'地天板'位置书写文字
当满足条件DT AND ZT1 AND PERIOD=5时,在H+0.03和'天地板'位置书写文字
{从涨停到跌停}
当满足条件DT1时,在L-0.09和'撬板'位置书写文字
{从涨停到跌停}
当满足条件ZT1时,在H+0.03和'炸板'位置书写文字
{从涨停到跌停}