自用原创的5个通达信分时指标分享(分时强弱+分时量能+分时MACD+分时成交量)

1、通达信指标,分时图上使用:分时图上可以看出股票启动信号(蓝色信号),突破信号(红色信号),开盘竞价各种信息,量化评分,机构,散户资金的对比;
2、分时成交量,网络独一份,可以从分时图上可视化看到资金的现实情况;流入为红色柱体+黄色资金金额显示,流出为绿色柱体+绿色自己金额显示;分时成交量显示当下最高的量能位置,意味短期突破信号;
3、macd指标,有顶底背驰信号,结合缠论使用最优;
4、分时量能指标,异动攻击信号显示,暴涨量能信号提示,特别是暴涨量能大于15的最佳;同时显示大小单买卖的信号,红色为大单买入,绿色为大单卖;
5、分时强弱信号,红色+黄色点信号最佳异动信号。
最佳状态:分时图股价线有红色或蓝色信号+分时成交量有红色柱体/大资金流入+分时量能有攻击信号/红色或橙色网格线+分时强弱有红色信号/橙色网格线。
设置方法如下:

 
{分时主图源码如下}

M:=8;
获利比例:=WINNER(C)*100,NODRAW;
基点:=获利比例>50 AND 获利比例<59,NODRAW;
选:IF(REF(基点,1)=1,C>REF(H,1),IF(REF(获利比例,1)<=50,C>REF(REF(H,BARSLAST(基点)),1),0)) {使用方法+V:20160222}
AND BARSLAST(基点)<M AND REF(BARSLAST(基点),1)<M-1,NODRAW;
筹码参数:=TOTALCAPITAL*100/FINANCE(46) NODRAW;
筹码获利率:=WINNER(C)*100 NODRAW;
TTT:=DRAWSL(基点,H,0,IF(REFX(BARSNEXT(基点),1)=DRAWNULL,CURRBARSCOUNT,REFX(BARSNEXT(基点),1)+1),0)COLORBLUE,LINETHICK2; {使用方法+V:20160222}
A:=WINNER(C)*100;
B:=BETWEEN(A,50,59);
Q1:=BACKSET(BARSTATUS=2,BARSLAST(B)+1);
前期:=Q1>REF(Q1,1);
向右水平线:=REF(H,BARSLAST(前期))COLORBLUE,LINETHICK2;
E:=(HIGH+LOW+OPEN+2*CLOSE)/5;
分时底:LLV(L,380),COLORGREEN,POINTDOT,NODRAW;
最新:C,COLORWHITE,NODRAW;
IF(C>=REF(TTT,1),C,DRAWNULL),LINETHICK2,COLORCYAN;
IF(C>=REF(向右水平线,1),C,DRAWNULL),LINETHICK2,COLORRED;
IF(C<=REF(分时底,1),C,DRAWNULL),LINETHICK2,COLORGREEN;
量价:=(VOL/CLOSE)/3;
A2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0); {使用方法+V:20160222}
A3:=SUM((IF(((量价>0.20) AND (CLOSE< (REF(CLOSE,1)))),量价,0)),0); {使用方法+V:20160222}
A6:=A2+A3;
DD1:=1;
比:=A2/A3;
AA1:=STRCAT(STRCAT('买= ',CON2STR((100*A2)/A6,0)),'%');
AA2:=STRCAT(STRCAT('卖= ',CON2STR((100*A3)/A6,0)),'%');
AA3:=STRCAT(STRCAT('差= ',CON2STR((100*(A2-A3))/A6,0)),'%');
DRAWTEXT_FIX(DD1=1,0.8,0.87,0,AA1),COLORRED;
DRAWTEXT_FIX(DD1=1,0.8,0.92,0,AA2),COLORGREEN;
DRAWTEXT_FIX(DD1=1,0.8,0.99,0,AA3),COLOR00FFFF;
现价:=C,COLORWHITE,LINETHICK2;
均价11:=SUM(C*V,240)/SUM(V,240),COLORRED,LINETHICK2;
TT:=BARSCOUNT(C);
前高:=REF(HHV(H,TT),1);
突破:=CROSS(C,REF(HHV(H,TT),1)) AND C/均价11<1.09 AND TT>1 AND TT<240;
主力扫盘:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,TT),1));
已主力扫盘:=BARSLAST(主力扫盘)<13;
HJ_2:=DYNAINFO(4)>0 AND HHV(HIGH,2)/LLV(LOW,2)<1.25 AND REF(CLOSE,1)<LLV(LOW,3)+(HHV(HIGH,3)-LLV(LOW,3))*0.85; {使用方法+V:20160222}
HJ_9:=EMA(CLOSE,2);
HJ_10:=EMA(CLOSE,3);
HJ_11:=MAX(HJ_9,HJ_10);
X2:=CLOSE>HJ_11
AND HJ_2 AND (CLOSE>REF(HHV(HIGH,2),1) AND
(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.015) AND (V/CAPITAL<=0.2) AND
C/REF(C,1)<1.07;
NX:=MA(((SLOPE(C,20)*5)+C),10);
{中枢}
B1:=HOUR=09 AND MINUTE=45;
B20:=LLV(L,15);
B30:=BARSLAST(B1);
B4:=REF(B20,B30);
B5:=CONST(B4),COLORFF80FF,CIRCLEDOT,LINETHICK2;
C1:=HOUR=09 AND MINUTE=45;
C2:=HHV(H,15);
C3:=BARSLAST(C1);
C4:=REF(C2,C3);
C5:=CONST(C4),COLORFF80FF,CIRCLEDOT,LINETHICK2;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD10:=(DIF-DEA)*2;
AA0:=MACD10>00 AND DIF>0 AND DEA>0;
A100:=HOUR=10 AND MINUTE=0;
A20:=HHV(H,30);
A30:=BARSLAST(A100);
A40:=REF(A20,A30);
A50:=CONST(A40);
A80:=CLOSE>A50 AND REF(C<=A50,1) AND CLOSE>NX;
AB:=FILTER(A80,100);
A90:=DYNAINFO(3);
AC:=CLOSE<=A90*1.04 AND CLOSE>A90;
量比:=V/REF(MA(V,5),1);
XG:=AA0 AND AB AND AC AND A40>A90 AND 量比>=1;
HJ_4:=CLOSE;
HJ_5:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);
BAB1:=STICKLINE(HJ_5>0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0);
BAB2:=STICKLINE(HJ_5<0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0);
HJ_6:=CLOSE/DYNAINFO(3);
HJ_7:=FILTER(HJ_5>0.015 AND HJ_5>REF(HJ_5,1)*2 AND VOL>REF(VOL,1)*2 AND CLOSE>REF(CLOSE,1) OR HJ_5>0.025,240); {使用方法+V:20160222}
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*8/9,COLORLIRED,DOTLINE;
支撑:L1+P1*0.5/9,COLORGREEN,DOTLINE;
DRAWTEXT(FILTER(CROSS(C,支撑),240),L-0.01,'吸筹'),COLOR0000FF; {使用方法+V:20160222}
DRAWTEXT(FILTER(CROSS(阻力,C),240),H-0.01,'压'),COLOR0000FF; {使用方法+V:20160222}
WA1:=V*C/100;
WA2:=SUM((IF(((WA1/8>20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);
WA3:=SUM((IF(((WA1/8>20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0);
WA4:=SUM((IF(((WA1/8<20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);
WA5:=SUM((IF(((WA1/8<20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0);
机构买盘:=(WA2);
机构卖盘:=(WA3);
散户买盘:=(WA4);
散户卖盘:=(WA5);
BU:=BARSLAST(CLOSE=HHV(CLOSE,60));
SE:=BARSLAST(CLOSE=LLV(CLOSE,60));
KK1:=SE;
KK2:=BU;
LM1:=SE;
LM2:=BU;
OK:=KK1>KK2 AND LM1>LM2;
OK1:=KK1>KK2 AND LM1<LM2;
NOK:=KK2>KK1 AND LM2>LM1;
NOK1:=KK2>KK1 AND LM2<LM1;
DRAWICON(FILTER(CROSS(KK1,KK2),240),OPEN*1,5);
DRAWTEXT(FILTER(CROSS(KK1,KK2),240) ,OPEN*0.995,'抓'),COLORYELLOW;
TT1:=BARSCOUNT(C);
均价黄:=SUM(C*V,TT1)/SUM(V,TT1);
量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
价上岗量破5:=C>均价黄 AND V>MA(V,5);
量起爆:=V>=REF(V,1)*1;
价创新高:=C>=HHV(C,0);
量创新高:=V>=HHV(V,0);
对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}
每日一点:=量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅;
VV:=BARSSINCE(每日一点)+1;
起爆时间:=REF(TIME/10000,VV),NODRAW;
已爆分钟:=VV-1,NODRAW;
DRAWICON(每日一点,C,25);
DRAWTEXT(每日一点,L-0.01,'←分时起爆'),COLOR0000FF;
ACX:=FILTER(CROSS(KK1,KK2),240);
ACX1:=BARSSINCE(ACX)+1;
X1:=IF(MA(C,5)>MA(C,10),20,0);
X21:=IF(MA(C,20)>MA(C,60),10,0);
X3:=IF(KDJ.J>KDJ.K,10,0);
X4:=IF(MACD.DIF>MACD.DEA,10,0);
X5:=IF(MACD.MACD>0,10,0);
X6:=IF(V>MA(V,60),10,0);
X7:=IF(WINNER(C)>0.5,10,0);
X8:=IF(C/REF(C,1)>1.03,10,0);
XX:=X1+X21+X3+X4+X5+X6+X7+X8;
DRAWTEXT_FIX(V>O,0.90,0.99,0,STRCAT('量化评分:',STRCAT(CON2STR(XX,2),' '))),COLORYELLOW;
A11:=(VOL/CLOSE)/3;
A21:=SUM((IF(((A11>40) AND (CLOSE>(REF(CLOSE,1)))),A11,0)),0);
A31:=SUM((IF(((A11>40) AND (CLOSE<(REF(CLOSE,1)))),A11,0)),0);
A41:=SUM((IF(((A11<40) AND (CLOSE>(REF(CLOSE,1)))),A11,0)),0);
A51:=SUM((IF(((A11<40) AND (CLOSE<(REF(CLOSE,1)))),A11,0)),0);
A61:=((A21+A31)+A41)+A51;
W1:=V*C/100;
W22:=SUM((IF(((W1/8>20) AND (CLOSE>(REF(CLOSE,1)))),W1,0)),0);
W32:=SUM((IF(((W1/8>20) AND (CLOSE<(REF(CLOSE,1)))),W1,0)),0);
W42:=SUM((IF(((W1/8<20) AND (CLOSE>(REF(CLOSE,1)))),W1,0)),0);
W52:=SUM((IF(((W1/8<20) AND (CLOSE<(REF(CLOSE,1)))),W1,0)),0);
W6:=((A21+A31)+A41)+A51;
W7:=IF((ISLASTBAR),((100*W22)/W6),0);
W8:=IF((ISLASTBAR),((100*W32)/W6),0);
W9:=IF((ISLASTBAR),((100*W42)/W6),0);
W10:=IF((ISLASTBAR),((100*W52)/W6),0);
机构买盘1:=(W22);
机构卖盘1:=(W32);
散户买盘1:=(W42);
散户卖盘1:=(W52);
机买差:=机构买盘1-机构卖盘1;
散差:=散户买盘1-散户卖盘1;
DRAWTEXT_FIX(1,0,0.9,0,STRCAT(STRCAT('【机买】',CON2STR(机构买盘1,2)),' 万')),COLORLIMAGENTA;
DRAWTEXT_FIX(1,0,0.99,0,STRCAT(STRCAT('【机卖】',CON2STR(机构卖盘1,2)),' 万')),COLORGREEN;
DRAWTEXT_FIX(1,0.10,0.9,0,STRCAT(STRCAT('【散买】',CON2STR(散户买盘,2)),' 万')),COLORMAGENTA;
DRAWTEXT_FIX(1,0.10,0.99,0,STRCAT(STRCAT('【散卖】',CON2STR(散户卖盘,2)),' 万')),COLORCYAN;
HS:=100*DYNAINFO(8)/CAPITAL;
ZHWS:=STRCAT(VAR2STR(DYNAINFO(8)/10000,2),'万手');
JHS:=STRCAT('今换手:',STRCAT(VAR2STR(HS,2),'%'));
JHS1:=STRCAT(JHS,' ≈ ');
DRAWTEXT_FIX(1,0.20,0.99,0,STRCAT(JHS1,ZHWS))COLORYELLOW;
LTPDW:=IF((FINANCE(46))/1000000>1,'亿股','万股');
LTP:=IF((FINANCE(46))/1000000>1,CON2STR((FINANCE(46))/100000000,2),CON2STR((FINANCE(46))/10000,0));
LTP1:=STRCAT(STRCAT('自由流通盘:',LTP),LTPDW);
LTPWS:=STRCAT(VAR2STR(FINANCE(46)/1000000,2),'万手');
LTP2:=STRCAT(LTP1,' ≈ ');
DRAWTEXT_FIX(1,0.37,0.99,0,STRCAT(LTP2,LTPWS))COLORMAGENTA;
DRAWTEXT_FIX(1,0.37,0.92,0,STRCAT(STRCAT('自由流通市值:',CON2STR(FINANCE(46)*C/100000000,2)),'亿元'))COLORMAGENTA;
KP:=(DYNAINFO(4)-DYNAINFO(3))/DYNAINFO(3)*100;
DRAWTEXT_FIX(1,0.2,0.65,0,STRCAT('开盘:',STRCAT(VAR2STR(KP,2),'%')))COLORYELLOW;
DRAWTEXT_FIX(1,0.2,0.85,0,STRCAT('最高价:',CON2STR(DYNAINFO(5),2)))COLORYELLOW;
DRAWTEXT_FIX(1,0.2,0.90,0,STRCAT('最低价:',CON2STR(DYNAINFO(6),2)))COLORYELLOW;
今日竞价股数:=DYNAINFO(15)/DYNAINFO(4);
开盘换手Z:=DYNAINFO(15)/DYNAINFO(4)/FINANCE(46)*100;
DRAWTEXT_FIX(1,0.2,0.7,0,STRCAT(STRCAT('开盘换手Z:',CON2STR(开盘换手Z,2)),''))COLORYELLOW;
CJE:=DYNAINFO(8)*DYNAINFO(11);
DW:=IF(CJE/1000000>1,'亿','万');
ABT:=IF(CJE/1000000>1,CJE/1000000,CJE/100);
DRAWTEXT_FIX(1,0.2,0.75,0,STRCAT(STRCAT('成交额:',CON2STR(ABT,2)),DW))COLORYELLOW;
市盈率:=STRCAT('市盈率:',CON2STR(C/FINANCE(33),2));
DRAWTEXT_FIX(1,0.2,0.80,0,STRCAT(市盈率,'倍'))COLORYELLOW;
JJCJL:=DYNAINFO(15)/DYNAINFO(4)/100;
JJJEDW:=IF(DYNAINFO(15)>10000,'万元','元');
JJJE:=IF(DYNAINFO(15)>10000,CON2STR(DYNAINFO(15)/10000,1),CON2STR(DYNAINFO(15),1));
JJJE1:=STRCAT(JJJE,JJJEDW);
JJ:=STRCAT('竞价:',STRCAT(CON2STR(JJCJL,0),'手'));
JJ1:=STRCAT(JJ,' = ');
DRAWTEXT_FIX(1,0.2,0.55,0,STRCAT(JJ1,JJJE1))COLORMAGENTA;
SSJ:=BARSCOUNT(V);
今开量:DYNAINFO(15)/DYNAINFO(4)/100/10000,NODRAW;
昨大量:IF(SSJ>238,REF(HHV(V,239),SSJ-238),0)/10000,NODRAW;
BZ:=今开量/昨大量;
DRAWTEXT_FIX(SSJ>239 AND BZ>0.6,0.25,0.1,0,STRCAT(STRCAT('【昨爆今开比】',CON2STR(BZ,2)),'')),COLORRED;
DRAWTEXT_FIX(SSJ>239 AND BZ<0.6,0.25,0.1,0,STRCAT(STRCAT('【昨爆今开比】',CON2STR(BZ,2)),'')),COLORYELLOW;
DRAWTEXT_FIX(SSJ>239 AND BETWEEN(BZ,0.5,2),0.2,0.2,0,'【开盘量价达标,择机介入】'),COLORYELLOW;
DRAWTEXT_FIX(SSJ>239,0,0,0,'昨暴拉板量,一字除外,今比值0.60左右可考虑介入')COLORCYAN;
DRAWTEXT_FIX(SSJ>239,0,0.2,0,'比值不达标,须开盘后补量, 过大,出货嫌疑')COLORCYAN;
均价线:=DYNAINFO(11);
差值:=ABS(CLOSE-DYNAINFO(11));
偏离值:=差值/均价线*100;
DRAWTEXT_FIX(1,0.6,0.99,0,STRCAT(STRCAT('【乖离率小于3%】= ',CON2STR(偏离值,1)),'%')),COLORYELLOW;
竞价额:= DYNAINFO(15);
换手Z:= 竞价额/O/FINANCE(46)*100;
JJ3:=SUM(IF(BETWEEN(TIME,0930,0930),V,0),FROMOPEN);
DRAWTEXT(JJ3/(HHV(V,5),1)*100>=2 AND BETWEEN(TIME,0930,0930) AND 换手Z>=1,C,'爆'),COLORMAGENTA; {使用方法+V:20160222};


{分时成交量分时成交量源码如下}

{市值系统}
超大市值:=(CAPITAL/1000000)*C>=200;
大市值:=(CAPITAL/1000000)*C>=50 AND (CAPITAL/1000000)*C<200;
中市值:=(CAPITAL/1000000)*C>=20 AND (CAPITAL/1000000)*C<50;
小市值:=(CAPITAL/1000000)*C>=5 AND (CAPITAL/1000000)*C<20;
可转债:=(CAPITAL/1000000)*C<10;
成交金额:=(AMOUNT/100000000)>5;
小成交金额:=(AMOUNT/100000000)>2;

DRAWGBK(C>0, RGB(20,0,0),RGB(0,5,5),0,'10',0);

AMOW:=AMOUNT/10000.0,VOLSTICK;

STICKLINE(C>REF(C,1) AND AMO>10000000 ,0,AMOW,0.8,0),COLOR8000FF;
STICKLINE(C>REF(C,1) AND AMO>20000000 ,0,AMOW,1.5,0),COLOR0000FF;
STICKLINE(C<REF(C,1),0,AMOW,0.1,0),COLOR80FF80;
STICKLINE(C<REF(C,1) AND AMOW<REF(V,1)*0.50 AND AMO<200000,0,AMOW,0.1,0),COLOR80FF80;
STICKLINE(C=REF(C,1),0,AMOW,0.5,0),COLORWHITE;



DRAWNUMBER(AMO>18000000 AND C>REF(C,1) AND 超大市值,AMOW*1.05,AMO*0.0001),COLOR00FFFF;
DRAWNUMBER(AMO>18000000 AND C<REF(C,1) AND 超大市值,AMOW*1.0,AMO*0.0001),COLOR00FF00;
DRAWNUMBER(AMO>18000000 AND C=REF(C,1) AND 超大市值,AMOW*1.01,AMO*0.0001),COLOR0080FF;

DRAWNUMBER(AMO>10000000 AND C>REF(C,1) AND 大市值,AMOW*1.05,AMO*0.0001),COLOR00FFFF;
DRAWNUMBER(AMO>10000000 AND C<REF(C,1) AND 大市值,AMOW*1.0,AMO*0.0001),COLOR00FF00;
DRAWNUMBER(AMO>10000000 AND C=REF(C,1) AND 大市值,AMOW*1.01,AMO*0.0001),COLOR0080FF;

DRAWNUMBER(AMO>10000000 AND C>REF(C,1) AND 中市值,AMOW*1.05,AMO*0.0001),COLOR00FFFF;
DRAWNUMBER(AMO>10000000 AND C<REF(C,1) AND 中市值,AMOW*1.0,AMO*0.0001),COLOR00FF00;
DRAWNUMBER(AMO>10000000 AND C=REF(C,1) AND 中市值,AMOW*1.01,AMO*0.0001),COLOR0080FF;

DRAWNUMBER(AMO>6000000 AND C>REF(C,1) AND 小市值,AMOW*1.05,AMO*0.0001),COLOR00FFFF;
DRAWNUMBER(AMO>6000000 AND C<REF(C,1) AND 小市值,AMOW*1.0,AMO*0.0001),COLOR00FF00;
DRAWNUMBER(AMO>6000000 AND C=REF(C,1) AND 小市值,AMOW*1.01,AMO*0.0001),COLOR0080FF;

DRAWNUMBER(AMO>20000000 AND C>REF(C,1) AND 可转债,AMOW*1.05,AMO*0.0001),COLOR00FFFF;
DRAWNUMBER(AMO>20000000 AND C<REF(C,1) AND 可转债,AMOW*1.0,AMO*0.0001),COLOR00FF00;
DRAWNUMBER(AMO>20000000 AND C=REF(C,1) AND 可转债,AMOW*1.01,AMO*0.0001),COLOR0080FF;

高量线:HHV(AMOW,0),COLOR0000FF,DOTLINE;
成交量线:HHV(AMOW,60),COLOR0080FF,DOTLINE;

量价齐升:=高量线>REF(EMA(高量线,5),1) AND CLOSE>REF(EMA(CLOSE,7),1);
DRAWICON(FILTER(CROSS(量价齐升,0.5),3),(REF(高量线,5)+高量线)/2,1);
NOTEXT01:IF(高量线>REF(EMA(高量线,5),1) AND CLOSE>REF(EMA(CLOSE,7),1),高量线,DRAWNULL),COLORRED;




{分时强弱源码如下}

MA30:=EMA(CLOSE,30);
强弱:=EMA(CLOSE,900);

H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8;
支撑:=L1+P1*0.5/8;
现价:C,COLORC0C0C0,LINETHICK1;
STICKLINE(CROSS(支撑,现价),现价,现价-0.05,0.01,0),COLORYELLOW;

VAR0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR3:=SMA(VAR0,3,1);
VAR1:=SMA(VAR3,4,1)-10;
VAR4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR5:=SMA(VAR4,3,1);
VAR2:=SMA(VAR5,4,1)-90;
STICKLINE(CROSS(VAR1,VAR2),现价,现价-0.05,5,0),COLORYELLOW;

JLR:=IF(C>REF(C,1),AMOUNT,0);
JLC:=IF(C<REF(C,1),AMOUNT,0);
总额:=SUM(AMOUNT,0)/10000;
净流入:=(SUM(JLR,0)-SUM(JLC,0))/100000000;

IF(净流入<0 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))),现价,DRAWNULL),COLOR408000,LINETHICK1;
IF(净流入>0 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))),现价,DRAWNULL),COLORRED,LINETHICK2;

IF(C,HHV(C,0),DRAWNULL),COLOR00FFFF,POINTDOT;

成交额:=V*C/100,NODRAW;{万元}
A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
A4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((ISLASTBAR),((100*A2)/A6),0);
A8:=IF((ISLASTBAR),((100*A3)/A6),0);
A9:=IF((ISLASTBAR),((100*A4)/A6),0);
A10:=IF((ISLASTBAR),((100*A5)/A6),0);

强势:=((100*A2)/A6>50);
拉升:=((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18;
STICKLINE(强势 && 净流入>0 && MA30>强弱 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))) && NOT(C=REF(C,1)),C,C*1.008,1,0),COLORYELLOW;
STICKLINE(拉升 && 净流入>0 && MA30>强弱 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))) && NOT(C=REF(C,1)),C*1.004,C*1.008,1,0),COLORFF00FF;


STICKLINE((MA30>强弱) && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))) && NOT(C=REF(C,1)),MA30,强弱,1,-1),COLORC08080;
STICKLINE((MA30>强弱) && SAFESCORE>=70 && (强势 && 拉升) && NOT(INBLOCK(('重大风险'))) && NOT(C=REF(C,1)),MA30,强弱,1,-1),COLOR0080FF;
STICKLINE((MA30<强弱) && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))) && NOT(C=REF(C,1)),MA30,强弱,0.001,0),COLOR408000;





{MACD指标源码如下}



SHORT:=12;
LONG:=26;
M:=9;



DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:EMA(DIFF,9);
DIF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
MACD:= 2*(DIFF-DEA),COLORSTICK;
JC:=DEA-DIFF;
零轴:0,COLORC0C0C0,LINETHICK1;

DRAWBAND(DIF,RGB(200,50,55),DEA,RGB(0,128,64));

{多空彩色带}
DIFFF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),COLORWHITE,DOTLINE,LINETHICK1;
DEAA:EMA(DIFF,9),COLORYELLOW,DOTLINE,LINETHICK1;

IF(DIFFF>=DEAA && DIFFF>=REF(DIFFF,1) AND DIFFF>0,DIFFF,DRAWNULL),COLORWHITE,LINETHICK2;
IF(DEAA>=REF(DEAA,1) && DEA>=REF(DEA,1) AND DIFFF>0 AND DEAA>0,DEAA,DRAWNULL),COLORYELLOW,LINETHICK2;

{成交量系统}
VOLUME:=VOL;
VOL30:=MA(VOLUME,30);
VOL150:=MA(VOLUME,150);

A:=MA(C,5);
B:=MA(C,10);
Q:=MA(C,20);
W:=MA(C,30);
P:=MA(C,60);
K:=MA(C,120);
Y:=MA(C,250);

{计算绿柱面积和红柱面积}
绿柱S:IF(DIF<DEA,SUM(MACD,BARSLAST(CROSS(DEA,DIF)))*(-1),DRAWNULL),NODRAW;
红柱S:IF(DIF>DEA,SUM(MACD,BARSLAST(CROSS(DIF,DEA))),DRAWNULL),NODRAW;
DRAWNUMBER(CURRBARSCOUNT<=120 AND CROSS(DEA,DIF),DEA*0.85,REF(红柱S,2)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT<=120 AND CROSS(DIF,DEA),DEA*1.2,REF(绿柱S,2)),COLORGREEN;

STICKLINE(MACD>0 AND PERIOD>=0 AND MACD>=REF(MACD,1),0,MACD,0.1,1),COLOR0000FF;
STICKLINE(MACD>0 AND PERIOD>=0 AND MACD<REF(MACD,1),0,MACD,0.1,1),COLOR800080;
STICKLINE(MACD<0 AND PERIOD>=0 AND MACD>=REF(MACD,1),0,MACD,0.1,1),COLOR808000;
STICKLINE(MACD<0 AND PERIOD>=0 AND MACD<REF(MACD,1),0,MACD,0.1,1),COLOR00FF00;

STICKLINE(MACD>REF(MACD,1) AND MACD>0 && A>=B && B>=Q && Q>=W,MACD,REF(MACD,1),0.5,0),COLORFFFFFF;
STICKLINE(MACD>REF(MACD,1) AND MACD>0 && A>=B && B>=Q && Q>=W && EVERY(DIF>DEA,15),MACD,REF(MACD,1),0.5,0),COLORFFFF00;
STICKLINE(MACD>REF(MACD,1) AND MACD>0 && REF(MACD,1)<0 && A>=B && B>=Q && Q>=W,MACD,REF(MACD,1),2,0),COLOR00FFFF;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),0.2,0),COLOR8C008C;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),0.1,0),COLORFF00FF;

STICKLINE(MACD<REF(MACD,1) AND MACD>0,MACD,REF(MACD,1),0.2,0),COLOR408000;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,MACD,REF(MACD,1),0.1,0),COLOR40FF00;

STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),0.2,0),COLOR008000;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),0.1,0),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT<=120 AND CROSS(DIFF,DEA) AND DIF>0,DIFF-0.01,'▲'),COLORRED;
DRAWTEXT(CURRBARSCOUNT<=120 AND CROSS(DEA,DIFF) AND DIF>0,DIFF+0.01,'▼'),COLORGREEN;

STICKLINE(MACD>=0,MACD,0,0.0000001,0),COLOR0000FF;
STICKLINE(MACD<0,MACD,0,0.0000001,0),COLOR408000;


{ 顶底背驰系统}
SC:=CROSS(DEA,DIF);
SC1:=BARSLAST(SC);
SC2:=BARSLAST(REF(SC,1));
GJ:=MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30);
{10、20、60日均线多头排列}
XG:=SC AND GJ AND REF(DIF,SC1)<REF(DIF,SC2) AND EVERY(DEA>0,SC2) AND REF(L,SC1);
DRAWTEXT(XG,DIF*1.2,'顶背驰'),COLOR00FFFF;
JC4:=CROSS(DIF,DEA);
JC1:=BARSLAST(JC4);
JC2:=BARSLAST(REF(JC4,1));
GJ2:=MA(C,10);
XG3:=JC4 AND GJ2 AND REF(DIF,JC1)>REF(DIF,JC2) AND EVERY(DEA<0,JC2) AND REF(L,JC1);
DRAWTEXT(XG3,DEA*0.6,'底背驰'),COLORGREEN;

{空中加油}
粘合:=DIFF/DEA<1.1 AND DIFF/DEA>1.05 AND C>MA(C,120) AND W>=REF(W,1) AND P>=REF(P,1) AND K>=REF(K,1) AND A>B AND B>Q AND Q>W;
取反:=COUNT(DIFF>=DEA,8)>=7 AND COUNT(DIFF<REF(DIFF,1),3)>=1 AND COUNT(DIFF<DEA,5)<1;

KZJY_A:=DIF-DEA<=LLV(DIF-DEA,5);
KZJY_B:=DIF-DEA<REF(DIF-DEA,1) && REF(DIF-DEA,1)<REF(DIF-DEA,2);
DRAWICON(CURRBARSCOUNT<=120 AND DIFF>DEA AND DIFF>0 AND DIFF>0 && REF(DIFF,1)<REF(DIFF,2) AND VOL30>VOL150 AND PERIOD=5 AND DIFF-DEA<0.7 && DIFF>REF(DIFF,1) && COUNT(DIFF>DEA,8)>=8,DIFF+0.01,28);

A1:=DIFF>-1 AND DEA>-1 AND DIFF<1 AND DEA<1;
AA:=REF(COUNT(A1,50),3)=50 OR REF(COUNT(A1,50),2)=50 OR REF(COUNT(A1,50),1)=50;
BB:=ABS(DIFF/DEA)<0.01;
STICKLINE(CURRBARSCOUNT<=120 AND AA AND BB,MACD,0,1,0),COLOR408000;

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(C,1),ZDF);
DT:=DTPRICE(REF(C,1),ZDF);

次日涨停:=IF(FROMOPEN=60, ZTPRICE(C, ZDF),0);
跌停:=IF(FROMOPEN=60, DTPRICE(C, ZDF),0);

年涨停:=COUNT(C+0.01>=ZT,20);
破板:=COUNT(H=ZT && C<H,20);
摸跌停:=COUNT(L<=DT,20);

DRAWTEXT_FIX(1,0,0.0,0, STRCAT('【涨跌停】:60日内涨停数: ', STRCAT(CON2STR(年涨停,0), STRCAT(' 【破板】:',STRCAT(CON2STR(破板,0),STRCAT(' 【触及跌停】:',CON2STR(摸跌停,0))))))), COLOR0080FF;



{分时量能源码如下}


DRAWGBK(C>0, RGB(20,0,0),RGB(0,5,5),0,'10',0);

分时均线:=SUM(V*C,0)/SUM(V,0);

量价:=(VOL/CLOSE)/3,NODRAW;
统计主动大买量:=SUM(IF(量价>100 AND CLOSE>REF(CLOSE,1),量价,0),0);
统计主动大卖量:=SUM(IF(量价>100 AND CLOSE< REF(CLOSE,1),量价,0),0);
小买:=SUM(IF(量价<100 AND CLOSE>REF(CLOSE,1),量价,0),0);
小卖:=SUM(IF(量价<100 AND CLOSE< REF(CLOSE,1),量价,0),0);
净流入:=统计主动大买量+统计主动大卖量+小买+小卖,COLORFF00FF;
主动大买量比:=(统计主动大买量/净流入)*100;
主动大卖量比:=(统计主动大卖量/净流入)*100;
暴涨能量:= 主动大买量比-主动大卖量比;
SSA:=IF(C>REF(C,1),AMOUNT,0);
SSB:=IF(C< REF(C,1),AMOUNT,0);
攻击资金:=SUM(SSA,0)-SUM(SSB,0),COLORFFFFFF;
总额:=SUM(AMOUNT,0);
流入占比:=(攻击资金)/总额*100;
暴涨能量→:主动大买量比-主动大卖量比,COLORYELLOW,NODRAW;

MAX04:=MAX( MAX(REF(V,1),V) , MAX(REF(V,3),REF(V,2)));
MIN04:=MIN( MIN(REF(V,1),V) , MIN(REF(V,3),REF(V,2)));
T:=IF(C>REF(C,1),1,-1);

实量:=SUM(VOL,FROMOPEN);
虚拟量:=实量/240*FROMOPEN;
SZB:=实量/10000;
XZB:=虚拟量/10000;

大单买:SUM(IF(CLOSE>=REF(CLOSE,1) AND VOL*C/100/8>=25,VOL,0),FROMOPEN),COLOR0000FF,LINETHICK5;
大单卖:SUM(IF(CLOSE<REF(CLOSE,1) AND VOL*C/100/8>=25,VOL,0),FROMOPEN),COLOR00FF00,DOTLINE,LINETHICK1;
小单买:SUM(IF(CLOSE>=REF(CLOSE,1) AND VOL*C/100/8<25,VOL,0),FROMOPEN),COLOR0080FF,DOTLINE,LINETHICK1;
小单卖:SUM(IF(CLOSE<REF(CLOSE,1) AND VOL*C/100/8<25,VOL,0),FROMOPEN),COLOR808040,DOTLINE,LINETHICK1;

IF(暴涨能量>=0 && (净流入>0 && 大单买>大单卖 && 大单买>小单买 && 大单买>小单卖 && ((大单买+小单买)>(大单卖+小单卖) && 大单买>大单卖)) && C>=分时均线 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))),大单买,DRAWNULL),COLORFF00FF,LINETHICK3;

总:=((大单买+大单卖)+小单买)+小单卖;

成交额:=V*C/100,NODRAW;{万元}
A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
A4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((ISLASTBAR),((100*A2)/A6),0);
A8:=IF((ISLASTBAR),((100*A3)/A6),0);
A9:=IF((ISLASTBAR),((100*A4)/A6),0);
A10:=IF((ISLASTBAR),((100*A5)/A6),0);

强势:=((100*A2)/A6>50);
拉升:=((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18;
STICKLINE(净流入>0 && 大单买>大单卖 && 强势 && 暴涨能量>1 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))),大单买,大单买*1.08,1,0),COLORYELLOW;
STICKLINE(净流入>0 && 大单买>大单卖 && 拉升 && 暴涨能量>1 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))),大单买*1.04,大单买*1.08,1,0),COLORRED;

IF(暴涨能量>=10 && 暴涨能量<20 && (净流入 && 大单买>大单卖 && 大单买>小单买 && 大单买>小单卖 && ((大单买+小单买)>(大单卖+小单卖) && 大单买>大单卖)) && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))),大单买,DRAWNULL),COLOR0080FF,LINETHICK3;
IF(暴涨能量>=20 && (净流入 && 大单买>大单卖 && 大单买>小单买 && 大单买>小单卖 && ((大单买+小单买)>(大单卖+小单卖) && 大单买>大单卖)) && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))),大单买,DRAWNULL),COLORFF00FF,LINETHICK4;

统计主动买量:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);
统计主动卖量:=SUM((IF(((量价>0.20) AND (CLOSE< (REF(CLOSE,1)))),量价,0)),0);
涨停量:=((统计主动买量)/统计主动卖量)*10;
CN:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
涨停量▇:=(统计主动买量/统计主动卖量)*40;

M12:=36;
N1:=13;
N:=100;
M:=5;
SHORT:=21;
LONG:=44;
MID:=11;
N2:=11;
NN:=2400;
HD:=HHV(V,NN);
LD:=LLV(V,NN);
最高:=CONST(HD),NODRAW;
最低:=CONST(LD),NODRAW;
HLMAX:=最高;
HLMIN:=最低;
HLMN1:=(HLMAX+HLMIN)/2;
HLMN2:=HLMAX-HLMIN;
HLMN3:=(100-0)/2*1.3;
HLMN4:=(100-0)/1*1.3;
中间价轴:=(50-HLMN3)*HLMN2/HLMN4+HLMN1;
轴差:=最高-最低;
拉升量:=IF(C>REF(C,1),VOL,0);
打压量:=IF(C<REF(C,1),VOL,0);
昨拉升最高值:=CONST(FINDHIGH(拉升量,FROMOPEN,240,1));
昨打压最高值:=CONST(FINDHIGH(打压量,FROMOPEN,240,1));
今拉升最高值:=CONST(REF(HHV(拉升量,FROMOPEN),0));
今打压最高值:=CONST(REF(HHV(打压量,FROMOPEN),0));
攻击力度:=今拉升最高值/昨拉升最高值;
量能均线:=SUM(V,FROMOPEN)/FROMOPEN;

量:=VOL;
五日量:=MA(量,5);
TT:=BARSCOUNT(C);{取得有效收盘价}
均价黄:=SUM(C*V,TT)/SUM(V,TT);{分时均线的取值}
量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
价两步:=C>=REF(C,1) AND REF(C,1)>REF(C,2);
价上岗量破5:=C>均价黄 AND V>MA(V,5);
量起爆:=V>=REF(V,1)*1.1;
价创新高:=C>=HHV(C,0);
量创新高:=V>=HHV(V,0);
对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}
每日一点:=量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅;

{计算收益、已爆分钟}
VV:=BARSSINCE(每日一点)+1;
首次起爆价:=REF(C,VV-1),NODRAW;

流通盘:=CAPITAL*100/100000000,NODRAW;
起爆时间:=REF(TIME/10000,VV),NODRAW;
已爆分钟:=VV-1,NODRAW;

TA:=BARSLAST(TIME=100000);
TC:=REF(HHV(C,0),TA+1);
TV:=REF(HHV(V,0),TA+1);
ZF:=TC/DYNAINFO(3)<1.05;
XG1:=CROSS(C,TC) AND V>TV AND ZF,COLORWHITE;
TA1:=BARSLAST(TIME=110000);
CC1:=REF(HHV(C,0),TA1+1);
VV1:=REF(HHV(V,0),TA1+1);
ZF1:=CC1/DYNAINFO(3)<1.05;
XG2:=CROSS(C,CC1) AND V>VV1 AND ZF1,COLORYELLOW;
突破:=XG1 OR XG2,COLORRED;
VT:=BARSSINCE(突破)+1;
首次突破价:=REF(C,VT-1),NODRAW;


DD1:=1;
AAA1:=STRCAT(STRCAT('大单买:',CON2STR((100*大单买)/总,0)),'%');
AAA2:=STRCAT(STRCAT('大单卖:',CON2STR((100*大单卖)/总,0)),'%');
AAA3:=STRCAT(STRCAT('小单买:',CON2STR((100*小单买)/总,0)),'%');
AAA4:=STRCAT(STRCAT('小单卖:',CON2STR((100*小单卖)/总,0)),'%');
DRAWTEXT_FIX(DD1=1,0,0.20,0,AAA1),COLOR000000;
DRAWTEXT_FIX(DD1=1,0,0.40,0,AAA2),COLOR000000;
DRAWTEXT_FIX(DD1=1,0.08,0.20,0,AAA3),COLOR000000;
DRAWTEXT_FIX(DD1=1,0.08,0.40,0,AAA4),COLOR000000;

STICKLINE((净流入>0 && 大单买>大单卖 && 大单买>小单买 && 大单买>小单卖 && ((大单买+小单买)>(大单卖+小单卖) && 大单买>大单卖)) && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))) && NOT(C=REF(C,1)),大单买,大单卖,1,-1),COLORC08080;
STICKLINE((净流入>0 && 大单买>大单卖 && 大单买>小单买 && 大单买>小单卖 && ((大单买+小单买)>(大单卖+小单卖) && 大单买>大单卖)) && 暴涨能量>0 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))) && NOT(C=REF(C,1)),大单买,大单卖,1,-1),COLOR0000FF;

STICKLINE(每日一点,最低+轴差*0.4,0,2,0),COLOR00FFFF;
DRAWTEXT(每日一点,最低+轴差*0.4,'∠起爆点●●买入'),COLOR00FFFF;

DRAWICON(突破=1,大单买,17);
DRAWTEXT(突破=1,大单买,'●突破●'),COLOR00FFFF;

STICKLINE(FILTER(CROSS(拉升量,昨拉升最高值),30) AND AMO>12000000 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))) && NOT(C=REF(C,1)),大单买,0,2,0),COLOR00FFFF;
DRAWTEXT(FILTER(CROSS(拉升量,昨拉升最高值),30) AND AMO>12000000 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))) && NOT(C=REF(C,1)),大单买,'★攻击★'),COLOR00FFFF;

STICKLINE(FILTER(CROSS(拉升量,今打压最高值),30) AND AMO>12000000 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))) && NOT(C=REF(C,1)),大单买,0,2,0),COLOR00FFFF;
DRAWTEXT(FILTER(CROSS(拉升量,今打压最高值),30) AND AMO>12000000 && SAFESCORE>=70 && NOT(INBLOCK(('重大风险'))) && NOT(C=REF(C,1)),大单买,'★攻击★'),COLOR00FFFF;

DRAWTEXT_FIX(1,0.45,0.5,0,STRCAT(STRCAT('暴涨能量→ ',CON2STR(暴涨能量→,2)),' ')),COLOR00FFFF;

{所属自定义概念}
DRAWTEXT_FIX(1,0,0.0,0,STRCAT(HYBLOCK, STRCAT('【', STRCAT(DYBLOCK,STRCAT('】', GNBLOCK))))),COLOR0080FF;




来函数检测结果如下
该公式包含未来函数:BACKSET
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
该公式包含未来函数:DHIGH
该公式包含未来函数:BARSNEXT
该公式包含未来函数:REFX

解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

指标安装下载帮助  |   联系我们  |  股朋指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股朋指标网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:股朋指标网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图