通达信大龙出海战法主副图 源码无加密 附图
{大龙出海战法主图源码如下}
AAA1:=STRCAT('沪深总上涨数:',CON2STR(DYNAINFO(60),0));
AAA2:=STRCAT('沪深总下跌数:',CON2STR(DYNAINFO(61),0));
AAA3:=STRCAT('沪深总成交金额:',CON2STR(DYNAINFO(62)/100000000,0));
DRAWTEXT_FIX(ISLASTBAR,0.01,0.305,0,AAA1),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.346,0,AAA2),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.387,0,AAA3),COLORYELLOW;
DRAWTEXT_FIX(1,0.00,0,0,'所属地区:'),COLORWHITE;
DRAWTEXT_FIX(1,0.04,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.11,0,0,'所属行业:'),COLORWHITE;
DRAWTEXT_FIX(1,0.15,0,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.25,0,0,'概念题材:'),COLORWHITE;
DRAWTEXT_FIX(1,0.29,0,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.05,0,'风格板块:'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.04,0.05,0,FGBLOCK),COLORLIMAGENTA;
{DRAWTEXT_FIX(ISLASTBAR,0,0.16,0,STRCAT(DYBLOCK,GNBLOCK)),COLORLIRED;}
DRAWTEXT_FIX(ISLASTBAR,0,0.17,0,EXTERNSTR(0,3)),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0,0.36,0,EXTERNSTR(0,6)),COLORLIBLUE;
DRAWTEXT_FIX(ISLASTBAR,0,0.33,0,EXTERNSTR(0,12)),COLORLIGREEN;{老王}
DRAWTEXT_FIX(ISLASTBAR,0,0.23,0,EXTERNSTR(0,1)),COLORYELLOW;{融胜};
{板块排名}
TAX:=HORCALC(HYBLOCK,105,1,DRAWNULL);
TAA:=STRCAT(HYBLOCK,' 排名 :');
DRAWTEXT_FIX(ISLASTBAR,0.70,0.005,0,STRCAT(TAA,CON2STR(TAX,0)));
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,3,1),COLORWHITE;
STICKLINE(涨停,OPEN,CLOSE,2,0),COLOR0066FF;
C3:=REF(C,1);
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,3,0),COLOR00FF00;
STICKLINE(跌停,OPEN,CLOSE,2,0),COLOR008000;
ZT:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),C=ZTPRICE(REF(C,1),0.05),
IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),C=ZTPRICE(REF(C,1),0.2),
C=ZTPRICE(REF(C,1),0.1)));
昨天涨停:=REF(ZT,1);
今天阴:=C<O;
今天倍量:=V>REF(V,1)*2;
海现:昨天涨停 AND 今天阴 AND 今天倍量;
XGJJ:BARSLAST(海现),NODRAW;
DRAWICON(CROSS(H,REF(H,XGJJ)),L*0.98,9);
DRAWLINE(ZT=1,MIN(C,O),REF(ZT=1,1),REF(MIN(C,O),1),1),COLORFF00FF;
DTL:REF(H,BARSLAST(CROSS(COUNT(海现,20),0.5))),DOTLINE,COLORFFFF00;
{大龙出海战法副图源码如下}
ZT:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),C=ZTPRICE(REF(C,1),0.05),
IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),C=ZTPRICE(REF(C,1),0.2),
C=ZTPRICE(REF(C,1),0.1)));
昨天涨停:=REF(ZT,1);
今天阴:=C<O;
今天倍量:=V>REF(V,1)*2;
海现:昨天涨停 AND 今天阴 AND 今天倍量;
XGJJ:BARSLAST(海现),NODRAW;
大龙出海:CROSS(H,REF(H,XGJJ));
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{大龙出海战法主图源码如下}AAA1:=STRCAT('沪深总上涨数:',CON2STR(DYNAINFO(60),0))
AAA2:=STRCAT('沪深总下跌数:',CON2STR(DYNAINFO(61),0))
AAA3:=STRCAT('沪深总成交金额:',CON2STR(DYNAINFO(62)/100000000,0))
当满足条件ISLASTBAR时,在横轴0.01纵轴0.305位置书写文字
当满足条件ISLASTBAR时,在横轴0.01纵轴0.346位置书写文字
当满足条件ISLASTBAR时,在横轴0.01纵轴0.387位置书写文字
当满足条件1时,在横轴0.00纵轴0位置书写文字
当满足条件1时,在横轴0.04纵轴0位置书写文字
当满足条件1时,在横轴0.11纵轴0位置书写文字
当满足条件1时,在横轴0.15纵轴0位置书写文字
当满足条件1时,在横轴0.25纵轴0位置书写文字
当满足条件1时,在横轴0.29纵轴0位置书写文字
当满足条件1时,在横轴0纵轴0.05位置书写文字
当满足条件ISLASTBAR时,在横轴0.04纵轴0.05位置书写文字
{DRAWTEXT_FIX(ISLASTBAR,0,0.16,0,STRCAT(DYBLOCK,GNBLOCK)),COLORLIRED
}DRAWTEXT_FIX(ISLASTBAR,0,0.17,0,EXTERNSTR(0,3)),画白色
DRAWTEXT_FIX(ISLASTBAR,0,0.36,0,EXTERNSTR(0,6)),COLORLIBLUE
DRAWTEXT_FIX(ISLASTBAR,0,0.33,0,EXTERNSTR(0,12)),COLORLIGREEN
{老王}DRAWTEXT_FIX(ISLASTBAR,0,0.23,0,EXTERNSTR(0,1)),画黄色
{融胜}
{板块排名}TAX赋值:HORCALC(HYBLOCK,105,1,DRAWNULL)
TAA赋值:STRCAT(HYBLOCK,' 排名 :')
DRAWTEXT_FIX(ISLASTBAR,0.70,0.005,0,STRCAT(TAA,CON2STR(TAX,0)))
涨停赋值:IF(1日前的C*1.1-C<0.01 ,1,0)
当满足条件涨停时,在开盘价和收盘价之间画柱状线
当满足条件涨停时,在开盘价和收盘价之间画柱状线
C3赋值:1日前的C
跌停赋值:IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0)
当满足条件跌停时,在开盘价和收盘价之间画柱状线
当满足条件跌停时,在开盘价和收盘价之间画柱状线
ZT赋值:IF(NAMELIKE('ST') OR NAMELIKE('*ST'),C=ZTPRICE(1日前的C,0.05),IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),C=ZTPRICE(1日前的C,0.2),C=ZTPRICE(1日前的C,0.1)))
昨天涨停赋值:1日前的ZT
今天阴赋值:C今天倍量赋值:V>1日前的V*2
输出海现:昨天涨停 AND 今天阴 AND 今天倍量
输出XGJJ:上次海现距今天数,NODRAW
DRAWICON(CROSS(H,XGJJ日前的H),L*0.98,9)
DRAWLINE(ZT=1,C和O的较小值,1日前的ZT=1,REF(C和O的较小值,1),1),COLORFF00FF
输出DTL:REF(H,上次CROSS(统计20日满足海现的天数,0.5距今天数)),DOTLINE,COLORFFFF00
{大龙出海战法副图源码如下}ZT赋值:IF(NAMELIKE('ST') OR NAMELIKE('*ST'),C=ZTPRICE(1日前的C,0.05),IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),C=ZTPRICE(1日前的C,0.2),C=ZTPRICE(1日前的C,0.1)))
昨天涨停赋值:1日前的ZT
今天阴赋值:C今天倍量赋值:V>1日前的V*2
输出海现:昨天涨停 AND 今天阴 AND 今天倍量
输出XGJJ:上次海现距今天数,NODRAW
输出大龙出海:CROSS(H,XGJJ日前的H)