分时突破擒牛 通达信分时主图
潜伏量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;
潜伏量A:=SUM(IF(C>REF(C,1),潜伏量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;
潜伏量B:=-SUM(IF(C< REF(C,1),潜伏量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;
潜伏流量:=潜伏量A+潜伏量B,COLORSTICK;
潜伏比:=潜伏流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;
游资潜伏:=IF(潜伏比>=0,(潜伏比+50),100-ABS((潜伏比-50)));
游资流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;
游资流出:=-SUM(IF(C< REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;
游资出入:=游资流入+游资流出,COLORSTICK;
游资比:=游资出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;
游资流比:=IF(游资比>=0,(游资比+100)/2,100-ABS((游资比-100)/2));
DRAWTEXT_FIX(1,0.180,0.88,0,STRCAT(STRCAT('【游资流比】',CON2STR(游资流比,2)),'%买')),COLORYELLOW;
DRAWTEXT_FIX(1,0.000,0.88,0,STRCAT(STRCAT('【游资潜伏】',CON2STR(游资潜伏,2)),' %买')),COLORYELLOW;
一举成名:HHV(H,480),DOTLINE,COLORC0C0C0;
STICKLINE(FILTER(CROSS(C,REF(一举成名,1)),10) AND C>REF(一举成名,1),C*0.99,C,8,0),COLORMAGENTA;
DRAWTEXT(FILTER(CROSS(C,REF(一举成名,1)),10) AND C>REF(一举成名,1),C*0.99,'突破'),COLORYELLOW;
RQ:=DATETODAY(DATE)-DATETODAY(REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT))+1;
JY:=BARSLAST((RQ-REF(RQ,1))!=WEEKDAY-REF(WEEKDAY,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0)+1;
分时抓牛1:=REF(C,JY);
分时抓牛2:=REF(分时抓牛1,JY);
分时抓牛3:=REF(分时抓牛2,JY);
分时抓牛4:=REF(分时抓牛3,JY);
分时抓牛5:=REF(分时抓牛4,JY);
分时抓牛6:=REF(分时抓牛5,JY);
分时抓牛7:=REF(分时抓牛6,JY);
分时抓牛8:=REF(分时抓牛7,JY);
分时抓牛9:=REF(分时抓牛8,JY);
CK:=REFDATE((C+分时抓牛1+分时抓牛2+分时抓牛3+分时抓牛4+分时抓牛5+分时抓牛6+分时抓牛7+分时抓牛8+分时抓牛9)/10,DATE),COLORAC59FF,CIRCLEDOT;
DRAWTEXT(ISLASTBAR,CK,' 参考线'),COLOR0000FF;
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))+DYNAINFO(3);
DEA:=EMA(DIF,9);
分时抓牛CD1:=10*(DIF-DEA);
分时抓牛CD2:=EMA(分时抓牛CD1,2);
STICKLINE(分时抓牛CD1>=分时抓牛CD2 AND 分时抓牛CD1>=0,DYNAINFO(3),分时抓牛CD1+DYNAINFO(3),0,0),COLOR0000B4;
STICKLINE(分时抓牛CD1< 分时抓牛CD2 AND 分时抓牛CD1>0,DYNAINFO(3),分时抓牛CD1+DYNAINFO(3),0,0),COLOR00B400;
STICKLINE(分时抓牛CD1>=分时抓牛CD2 AND 分时抓牛CD1< 0,DYNAINFO(3),分时抓牛CD1+DYNAINFO(3),0,0),COLOR5151A2;
STICKLINE(分时抓牛CD1< 分时抓牛CD2 AND 分时抓牛CD1< 0,DYNAINFO(3),分时抓牛CD1+DYNAINFO(3),0,0),COLOR88743A;
XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));
主力:=EXPMA(CLOSE/XX,20);
大户:=EXPMA(CLOSE/XX,60);
散户:=EXPMA(CLOSE/XX,120);
底:=1;
1.02,NODRAW;
高:=1.03;
DRAWTEXT(CROSS(主力,1.02),C*0.999,'-拉升'),COLORCYAN;
DRAWICON(CROSS(主力,1.04),C,24);
DRAWTEXT(CROSS(主力,1.04),C*0.999,'-冲涨停'),COLORLIMAGENTA;
A1:=(VOL/CLOSE)/3;
A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A3:=SUM((IF(((A1>40) AND (CLOSE< (REF(CLOSE,1)))),A1,0)),0);
A4:=SUM((IF(((A1< 40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A5:=SUM((IF(((A1< 40) AND (CLOSE< (REF(CLOSE,1)))),A1,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((BARSTATUS=2),((100*A2)/A6),0);
A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));
A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));
A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));
机构买盘:=(A2),LINETHICK2;
机构卖盘:=(A3),LINETHICK2;
散户买盘:=(A4);
散户卖盘:=(A5);
DRAWTEXT_FIX(1,0.0,1-0.05,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),'万')),COLORYELLOW;
DRAWTEXT_FIX(1,0.18,1-0.05,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),'万')),COLOR00FF00;
DRAWTEXT_FIX(1,0.36,1-0.05,0,STRCAT(STRCAT('【散户买盘】',CON2STR(散户买盘,2)),'万')),COLORYELLOW;
DRAWTEXT_FIX(1,0.54,1-0.05,0,STRCAT(STRCAT('【散户卖盘】',CON2STR(散户卖盘,2)),'万')),COLOR00FF00;
量价:=(VOL/CLOSE)/3;
B2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);
B3:=SUM((IF(((量价>0.20) AND (CLOSE< (REF(CLOSE,1)))),量价,0)),0);
B6:=B2+B3;
DD1:=1;
比:=B2/B3;
BBB1:=STRCAT(STRCAT('买= ',CON2STR((100*B2)/B6,0)),'%'),COLORYELLOW;
BBB2:=STRCAT(STRCAT('卖= ',CON2STR((100*B3)/B6,0)),'%');
BBB3:=STRCAT(STRCAT('差= ',CON2STR((100*(B2-B3))/B6,0)),'%');
DRAWTEXT_FIX(DD1=1,0,0.70,0,BBB1),COLORRED;
DRAWTEXT_FIX(DD1=1,0,0.75,0,BBB2),COLORGREEN;
DRAWTEXT_FIX(DD1=1,0,0.80,0,BBB3),COLOR00FFFF;
主营收入同比:=FINANCE(44);
净利润同比:=FINANCE(43);
所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('',HYBLOCK),STRCAT('',DYBLOCK)),STRCAT(' [概念]-',GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.05,0,所属板块),COLORMAGENTA;
市盈:=DYNAINFO(39);
市净:=CONST(DYNAINFO(7) / FINANCE(34));
净利:=CONST(FINANCE(30)/FINANCE(20));
DRAWTEXT_FIX(1,0.72,0.71,0,'市盈:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.79,0.71,0,CON2STR(市盈,2)),COLORRED;
DRAWTEXT_FIX(1,0.72,0.77,0,'市净:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.79,0.77,0,CON2STR(市净,2)),COLORWHITE;
DRAWTEXT_FIX(1,0.72,0.83,0,'净利:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.79,0.83,0,CON2STR(净利,2)),COLORWHITE;
DRAWTEXT_FIX(1,0.72,0.89,0,'主营同比:'),COLORWHITE;
DRAWTEXT_FIX(1,0.79,0.89,0,STRCAT(VAR2STR(主营收入同比,0),' %')),COLORYELLOW;
DRAWTEXT_FIX(1,0.72,0.95,0,'净利同比:'),COLORWHITE;
DRAWTEXT_FIX(1,0.79,0.95,0,STRCAT(VAR2STR(净利润同比,0),' %')),COLORYELLOW;
换手:=VOL/CAPITAL*100;
五换:=MA(换手,5);
DRAWTEXT_FIX(1,0.87,0.71,0,'今换:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.91,0.71,0,STRCAT('',CON2STR(换手,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.87,0.77,0,'五换:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.91,0.77,0,STRCAT('',CON2STR(五换,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.87,0.83,0,'量比:'),COLORWHITE;
DRAWTEXT_FIX(1,0.91,0.83,0,STRCAT('',CON2STR(DYNAINFO(17),2))),COLORRED;
DRAWTEXT_FIX(1,0.87,0.89,0,'内盘:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.91,0.89,0,STRCAT('',CON2STR(DYNAINFO(22),0))),COLORGREEN;
DRAWTEXT_FIX(1,0.87,0.95,0,'外盘:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.91,0.95,0,STRCAT('',CON2STR(DYNAINFO(23),0))),COLORRED;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
潜伏量赋值:((HSL*0.50+1日前的HSL*0.33)+(2日前的HSL*0.17))*FROM开盘价的C日累和/FROM开盘价
潜伏量A:=SUM(IF(C>1日前的C,潜伏量*V,0),FROM开盘价),COLOR0000FF,LINETHICK0
潜伏量B:=-SUM(IF(C< 1日前的C,潜伏量*V,0),FROM开盘价),COLOR00FF00,LINETHICK0
潜伏流量赋值:潜伏量A+潜伏量B,COLORSTICK
潜伏比赋值:潜伏流量/FROM开盘价的V日累和*100,画红色,LINETHICK1
游资潜伏赋值:IF(潜伏比>=0,(潜伏比+50),100-(潜伏比-50的绝对值))
游资流入赋值:SUM(IF(C>1日前的C,V,0),FROM开盘价),STICK,画红色
游资流出赋值:-SUM(IF(C< 1日前的C,V,0),FROM开盘价),STICK,COLOR00FF00
游资出入赋值:游资流入+游资流出,COLORSTICK
游资比赋值:游资出入/FROM开盘价的V日累和*100,COLOR00FFFF,LINETHICK1
游资流比赋值:IF(游资比>=0,(游资比+100)/2,100-(游资比-100的绝对值/2))
DRAWTEXT_FIX(1,0.180,0.88,0,STRCAT(STRCAT('【游资流比】',CON2STR(游资流比,2)),'%买')),画黄色
DRAWTEXT_FIX(1,0.000,0.88,0,STRCAT(STRCAT('【游资潜伏】',CON2STR(游资潜伏,2)),' %买')),画黄色
输出一举成名:480日内H最高值,DOTLINE,COLORC0C0C0
STICKLINE(FILTER(CROSS(C,1日前的一举成名),10) AND C>1日前的一举成名,C*0.99,C,8,0),画洋红色
DRAWTEXT(FILTER(CROSS(C,1日前的一举成名),10) AND C>1日前的一举成名,C*0.99,'突破'),画黄色
RQ赋值:DATETODAY(DATE)-DATETODAY(TOTALBARSCOUNT- 到最后交易的周期日前的DATE)+1
JY赋值:上次(RQ-1日前的RQ距今天数!=WEEKDAY-1日前的WEEKDAY OR TOTALBARSCOUNT- 到最后交易的周期=0)+1
分时抓牛1赋值:JY日前的C
分时抓牛2赋值:JY日前的分时抓牛1
分时抓牛3赋值:JY日前的分时抓牛2
分时抓牛4赋值:JY日前的分时抓牛3
分时抓牛5赋值:JY日前的分时抓牛4
分时抓牛6赋值:JY日前的分时抓牛5
分时抓牛7赋值:JY日前的分时抓牛6
分时抓牛8赋值:JY日前的分时抓牛7
分时抓牛9赋值:JY日前的分时抓牛8
CK赋值:REFDATE((C+分时抓牛1+分时抓牛2+分时抓牛3+分时抓牛4+分时抓牛5+分时抓牛6+分时抓牛7+分时抓牛8+分时抓牛9)/10,DATE),COLORAC59FF,CIRCLEDOT
当满足条件ISLASTBAR时,在CK和' 参考线'位置书写文字
DIF赋值:(收盘价的12日指数移动平均-收盘价的26日指数移动平均)+DYNAINFO(3)
DEA赋值:DIF的9日指数移动平均
分时抓牛CD1赋值:10*(DIF-DEA)
分时抓牛CD2赋值:分时抓牛CD1的2日指数移动平均
STICKLINE(分时抓牛CD1>=分时抓牛CD2 AND 分时抓牛CD1>=0,DYNAINFO(3),分时抓牛CD1+DYNAINFO(3),0,0),COLOR0000B4
STICKLINE(分时抓牛CD1< 分时抓牛CD2 AND 分时抓牛CD1>0,DYNAINFO(3),分时抓牛CD1+DYNAINFO(3),0,0),COLOR00B400
STICKLINE(分时抓牛CD1>=分时抓牛CD2 AND 分时抓牛CD1< 0,DYNAINFO(3),分时抓牛CD1+DYNAINFO(3),0,0),COLOR5151A2
STICKLINE(分时抓牛CD1< 分时抓牛CD2 AND 分时抓牛CD1< 0,DYNAINFO(3),分时抓牛CD1+DYNAINFO(3),0,0),COLOR88743A
XX赋值:SUM(成交额,收盘价的有效数据周期数)/SUM(V*100,收盘价的有效数据周期数)
主力赋值:收盘价/XX的20日指数移动平均
大户赋值:收盘价/XX的60日指数移动平均
散户赋值:收盘价/XX的120日指数移动平均
底赋值:1
1.02,NODRAW
高赋值:1.03
DRAWTEXT(主力上穿1.02,C*0.999,'-拉升'),画青色
DRAWICON(主力上穿1.04,C,24)
DRAWTEXT(主力上穿1.04,C*0.999,'-冲涨停'),COLORLIMAGENTA
A1赋值:(成交量/收盘价)/3
A2赋值:SUM((IF(((A1>40) AND (收盘价>(1日前的收盘价))),A1,0)),0)
A3赋值:SUM((IF(((A1>40) AND (收盘价< (1日前的收盘价))),A1,0)),0)
A4赋值:SUM((IF(((A1< 40) AND (收盘价>(1日前的收盘价))),A1,0)),0)
A5赋值:SUM((IF(((A1< 40) AND (收盘价< (1日前的收盘价))),A1,0)),0)
A6赋值:((A2+A3)+A4)+A5
A7赋值:IF((BARSTATUS=2),((100*A2)/A6),0)
A8赋值:((IF((BARSTATUS=2),((100*A3)/A6),0)))
A9赋值:((IF((BARSTATUS=2),((100*A4)/A6),0)))
A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)))
机构买盘赋值:(A2),LINETHICK2
机构卖盘赋值:(A3),LINETHICK2
散户买盘:=(A4)
散户卖盘:=(A5)
DRAWTEXT_FIX(1,0.0,1-0.05,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),'万')),画黄色
DRAWTEXT_FIX(1,0.18,1-0.05,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),'万')),COLOR00FF00
DRAWTEXT_FIX(1,0.36,1-0.05,0,STRCAT(STRCAT('【散户买盘】',CON2STR(散户买盘,2)),'万')),画黄色
DRAWTEXT_FIX(1,0.54,1-0.05,0,STRCAT(STRCAT('【散户卖盘】',CON2STR(散户卖盘,2)),'万')),COLOR00FF00
量价赋值:(成交量/收盘价)/3
B2赋值:SUM((IF(((量价>0.20) AND (收盘价>(1日前的收盘价))),量价,0)),0)
B3赋值:SUM((IF(((量价>0.20) AND (收盘价< (1日前的收盘价))),量价,0)),0)
B6赋值:B2+B3
DD1赋值:1
比赋值:B2/B3
BBB1赋值:STRCAT(STRCAT('买= ',CON2STR((100*B2)/B6,0)),'%'),画黄色
BBB2赋值:STRCAT(STRCAT('卖= ',CON2STR((100*B3)/B6,0)),'%')
BBB3赋值:STRCAT(STRCAT('差= ',CON2STR((100*(B2-B3))/B6,0)),'%')
当满足条件DD1=1时,在横轴0纵轴0.70位置书写文字
当满足条件DD1=1时,在横轴0纵轴0.75位置书写文字
当满足条件DD1=1时,在横轴0纵轴0.80位置书写文字
主营收入同比赋值:FINANCE(44)
净利润同比赋值:FINANCE(43)
所属板块赋值:STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('',HYBLOCK),STRCAT('',DYBLOCK)),STRCAT(' [概念]-',GNBLOCK)))
当满足条件ISLASTBAR时,在横轴0.005纵轴0.05位置书写文字
市盈赋值:DYNAINFO(39)
市净赋值:CONST(现价 / FINANCE(34))
净利赋值:CONST(FINANCE(30)/FINANCE(20))
当满足条件1时,在横轴0.72纵轴0.71位置书写文字
DRAWTEXT_FIX(1,0.79,0.71,0,CON2STR(市盈,2)),画红色
当满足条件1时,在横轴0.72纵轴0.77位置书写文字
DRAWTEXT_FIX(1,0.79,0.77,0,CON2STR(市净,2)),画白色
当满足条件1时,在横轴0.72纵轴0.83位置书写文字
DRAWTEXT_FIX(1,0.79,0.83,0,CON2STR(净利,2)),画白色
当满足条件1时,在横轴0.72纵轴0.89位置书写文字
DRAWTEXT_FIX(1,0.79,0.89,0,STRCAT(VAR2STR(主营收入同比,0),' %')),画黄色
当满足条件1时,在横轴0.72纵轴0.95位置书写文字
DRAWTEXT_FIX(1,0.79,0.95,0,STRCAT(VAR2STR(净利润同比,0),' %')),画黄色
换手赋值:成交量/当前流通股本*100
五换赋值:换手的5日简单移动平均
当满足条件1时,在横轴0.87纵轴0.71位置书写文字
DRAWTEXT_FIX(1,0.91,0.71,0,STRCAT('',CON2STR(换手,2))),画白色
当满足条件1时,在横轴0.87纵轴0.77位置书写文字
DRAWTEXT_FIX(1,0.91,0.77,0,STRCAT('',CON2STR(五换,2))),画白色
当满足条件1时,在横轴0.87纵轴0.83位置书写文字
DRAWTEXT_FIX(1,0.91,0.83,0,STRCAT('',CON2STR(DYNAINFO(17),2))),画红色
当满足条件1时,在横轴0.87纵轴0.89位置书写文字
DRAWTEXT_FIX(1,0.91,0.89,0,STRCAT('',CON2STR(DYNAINFO(22),0))),画绿色
当满足条件1时,在横轴0.87纵轴0.95位置书写文字
DRAWTEXT_FIX(1,0.91,0.95,0,STRCAT('',CON2STR(DYNAINFO(23),0))),画红色