当前位置:→ 公式网 > 股票池 > 正文  公式解密、改选股等业务 联系点击查看详情...

以下是通达信黑马营双核版主副图源码,选股公式(无源码的请下载附件导入)

黑马营双核版主图用法:
五面八面彩旗是股价89天突破的标志,枪A,股票小幅回调到龙头线的标志,枪B是指股票深度回调到慢牛线的标志,黑是指股价强势突破前高的标志。蓝色K线,是加速K线,就是加速上涨的标志,黄色K线,是启爆喷发K线,是指股票突破前期压力或者阻力大幅上涨的标志。

双动力用法:
1、上部蓝色横杠代表空仓区域,灰色柱代表头部区域,绿色柱代表反弹清仓。
2、下部白色横杠代表中长线买入或持仓区域,消失时卖出中线股票;蓝色横杠为中长线空仓区域,不宜中长线持股。红色趋势线与红色横杠代表短线买入或持仓区域,红色趋势线与红色横杠同时出现时可短线买入股票或持有,当某一项消失时看主图情况卖出股票。
3、黄色柱代表抄底区域,洋红色代表绝地反击。

V1:=(C*2+H+L)/4*10;
VV2:=EMA(V1,13)-EMA(V1,34);
VV3:=EMA(VV2,5);
V4:=2*(VV2-VV3)*100;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);VB1:=(V9-VA)/2;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3);

当日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);
疯牛线:EXPMEMA(当日成本,3),COLORWHITE,LINETHICK1;
龙头线:EXPMEMA(当日成本,8),COLOR00FFFF,LINETHICK1;
慢牛线:EXPMEMA(当日成本,25),COLORMAGENTA,LINETHICK1;
生命线:EXPMEMA(当日成本,79),COLORGREEN,LINETHICK2;
牛熊线:EXPMEMA(当日成本,248),COLORGRAY,LINETHICK2;
V2:=EMA(当日成本,13)-EMA(当日成本,34);
V3:=EMA(V2,5);
CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
CYC34:=0.01*EXPMA(AMOUNT,34)/EXPMA(VOL,34);
CYS13:=(CLOSE-CYC13)/CYC13*100;
CYS34:=(CLOSE-CYC34)/CYC34*100;
CYC5:=0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5);
CYS5:=(CLOSE-CYC5)/CYC5*100;
DIVE:=0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5);
CYR5:=(DIVE/REF(DIVE,1)-1)*100;
DRAWTEXT((CROSS(EXPMEMA(当日成本,25),L) AND MA(C,5)>MA(C,30) AND HHV(CYS13,15)>10 AND HHV(CYS34,18)>18 AND EXPMEMA(当日成本,8)>EXPMEMA(当日成本,25)),LOW*0.975,'枪B'),COLORYELLOW;
VAR1:=(UPNDAY(慢牛线,4) AND EXPMEMA(当日成本,3)>EXPMEMA(当日成本,5) AND EXPMEMA(当日成本,5)>EXPMEMA(当日成本,7) AND MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7));
VAR2:=(REF(VAR1,2)<0.5 AND REF(VAR1,3)<0.5 AND MA(C,5)>REF(MA(C,5),1) AND CROSS(VAR1,0.5) AND FILTER(CROSS(VAR1,0.5),7)) OR ((REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),3) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),5) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),6) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),4) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),2)) AND NOT(REF(MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7),1)) AND (MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)) AND FILTER((REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),3) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),5) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),6) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),4) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),2)) AND NOT(REF(MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7),1)) AND (MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),7) AND 疯牛线>REF(疯牛线,1)) AND MA(VOL,3)>MA(VOL,10) AND V2>=V3;
DIVE1:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
CYR:=(DIVE1/REF(DIVE1,1)-1)*100;
MACYR:=MA(CYR,5);
DRAWTEXT((REF(CLOSE/REF(CLOSE,1),3)>1.099 OR REF(CLOSE/REF(CLOSE,1),6)>1.099 OR REF(CLOSE/REF(CLOSE,1),4)>1.099 OR REF(CLOSE/REF(CLOSE,1),5)>1.099 OR REF(CLOSE/REF(CLOSE,1),2)>1.099) AND CROSS(龙头线,LOW) AND UPNDAY(慢牛线,3),LOW*0.97,'枪A'),COLORMAGENTA;
DPRPY:=(INDEXC-LLV(INDEXC,240 ))/(HHV(INDEXC,240 )-LLV(INDEXC,240 ))*100;
RPY:=(C-LLV(C,240 ))/(HHV(C,240 )-LLV(C,240 ))*100;

CBW:=100*(COST(99.5)-COST(0.5))/COST(99.5);
ASR10:=(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100;
ASR20:=(WINNER(C*1.2)-WINNER(C*0.8))/WINNER(HHV(H,0))*100;
ASR30:=(WINNER(C*1.3)-WINNER(C*0.7))/WINNER(HHV(H,0))*100;
DRAWTEXT((CLOSE/REF(CLOSE,1)>1.03 AND VOL/CAPITAL*100>2.5 AND 疯牛线>龙头线 AND 疯牛线>慢牛线 AND C>疯牛线 AND (WINNER(C-C*0.01/100)-WINNER(C-C*20/100))*100>50 AND CYR>1) OR (CYS>11 AND CYS<30 AND CYR>1 AND CLOSE/REF(CLOSE,1)>1.03),LOW,'黑'),COLORWHITE;

STICKLINE(REF(COUNT(C<MA(REF(HHV((C+L+O+H)/4,40),1),3),5)=5,1) AND C>MA(REF(HHV((C+L+O+H)/4,40),1),3) AND C>O,C,O,1.3,0),COLORYELLOW;
TYX2:=MA(REF(HHV((C+L+O+H)/4,10),1),3);
STICKLINE(REF(COUNT(C<TYX2,5)=5,1) AND C>TYX2 AND C>O,C,O,1.3,0),COLORBLUE;
D1:=C=HHV(C,89);
D2:=BARSLAST(D1);
D3:=IF(D2>0,REF(C,D2),REF(C,D2));
D4:=CROSS(C,REF(D3,1));
红旗:=D4 AND COUNT(D4,5)=1;
DRAWTEXT(红旗=1,LOW*0.95,'五面八面彩旗'),COLORRED;

XX:=EMA(CLOSE,30)-EMA(CLOSE,17);
AA:=EMA(XX,5);
YY:=EMA(XX,13);
短:=TROUGHBARS(3,10,1)<1 AND CROSS(XX,AA);
枪:=TROUGHBARS(3,5,1)<1 AND XX<YY;
短1:=IF(枪>0,0.4,0),STICK,COLORF0F000,LINETHICK4;
短2:=CROSS(XX,AA) AND TROUGHBARS(3,7,1)<1;
狙击:=短 OR 短1 OR 短2,COLORWHITE,LINETHICK2;
DRAWTEXT(狙击,LOW*0.95,'套'),COLORWHITE;
下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
RRRSV:=SMA(下档线,3,1);
KKK:=SMA(RRRSV,3,1);
DDDDD:=((3 * RRRSV) - (2 * KKK));
JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);
RSV24:=SMA(JJ12,3,1);
K24:=SMA(RSV24,3,1);
D24:=((3 * RSV24) - (2 * K24));
压力:IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),POINTDOT,COLORGRAY,LINETHICK4;


双动力副图公式
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,11)-EMA(V1,30);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*4;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);VB1:=(V9-VA)/2;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,13);
超买超卖:趋势线,COLORMAGENTA,NODRAW;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*88;

空仓: STICKLINE(PBX.PBX1(3)<PBX.PBX2(5) AND PBX.PBX2(5)<PBX.PBX3(7)
AND PBX.PBX3(7)<PBX.PBX4(9),95,100,5,0),COLORCC9900;
AA:=PBX.PBX1(3)<PBX.PBX2(5) AND PBX.PBX2(5)<PBX.PBX3(7) AND PBX.PBX3(7)<PBX.PBX4(9);
头部: STICKLINE((DMI.ADX>70 AND DMI.MDI<5 AND 趋势线>=85) OR (DMI.ADX>68 AND DMI.MDI<6) OR (DMI.PDI>40 AND CROSS(DMI.ADXR,DMI.PDI)) OR (EVERY(趋势线>=90,10) AND CROSS(90,趋势线)) OR (DMI.PDI>50 AND 趋势线>=78 AND CROSS(DMI.ADXR,DMI.PDI)),90,100,2.5,0),COLORGRAY;
当日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);
疯牛线:=MA(当日成本,3);
VAR1:=(EXPMEMA(当日成本,3)>EXPMEMA(当日成本,5) AND EXPMEMA(当日成本,5)>EXPMEMA(当日成本,7) AND MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7));
VAR2:=(REF(VAR1,2)<0.5 AND REF(VAR1,3)<0.5 AND MA(C,5)>REF(MA(C,5),1) AND CROSS(VAR1,0.5) AND FILTER(CROSS(VAR1,0.5),7)) OR ((REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),3) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),5) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),6) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),4) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),2)) AND NOT(REF(MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7),1)) AND (MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)) AND FILTER((REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),3) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),5) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),6) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),4) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),2)) AND NOT(REF(MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7),1)) AND (MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),7) AND 疯牛线>REF(疯牛线,1)) AND MA(VOL,3)>MA(VOL,10) AND V2>=V3;
清仓: STICKLINE((REF(DMI.ADX,1)>REF(DMI.ADXR,1) AND REF(DMI.ADXR,1)>58 AND DMI.PDI>DMI.MDI AND 趋势线>60 AND CROSS(DMI.ADXR,DMI.ADX) AND 趋势线<90) OR (EVERY(REF(趋势线,1)>90,10) AND 趋势线<90),90,100,2.5,0),COLORGREEN;

EE:=(((SUM(VOL,5)/5<VOL AND CROSS(MACD.MACD,0) OR CROSS(MACD.MACD,1) OR CROSS(MACD.MACD,2)) AND DMI.PDI>DMI.MDI AND CR>CR.MA2),10);
FF:=PBX.PBX1(3)>PBX.PBX2(5) AND PBX.PBX2(5)>PBX.PBX3(7) AND PBX.PBX3(7)>PBX.PBX4(9);
持有:STICKLINE( PBX.PBX1(3)>PBX.PBX2(5) AND PBX.PBX2(5)>PBX.PBX3(7) AND PBX.PBX3(7)>PBX.PBX4(9),5,10,5,0),COLORWHITE;
VARC:=HHV(HIGH,9)-LLV(LOW,9);
VARD:=HHV(HIGH,9)-CLOSE;
VARE:=CLOSE-LLV(LOW,9);
VARF:=VARD/VARC*100-70;
VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR11:=(2*CLOSE+HIGH+LOW)/4;
VAR12:=SMA(VARE/VARC*100,3,1);
VAR13:=LLV(LOW,34);
VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);
VAR15:=IF(VAR14>100,VAR14-100,0);
VAR16:=HHV(HIGH,34);
VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);
VAR18:=EMA(VAR17,5);
STICKLINE(VAR17>0 AND VAR17-VAR18>=0,0,5,5,0),COLORRED;
抄底: STICKLINE((DMI.PDI(14,6)<5 AND DMI.ADX(14,6)>70),0,10,2.5,0),COLOR00FFFF;
绝地: STICKLINE((REF(DMI.ADXR,1)<REF(DMI.ADX,1) AND REF(DMI.ADX,1)>80 AND DMI.PDI<10 AND CROSS(DMI.ADXR,DMI.ADX) AND DMI.MDI>DMI.PDI),0,15,2.5,0),COLORMAGENTA;

NOTEXT趋势线1:EMA(V11,13),COLORWHITE,LINETHICK3;
NOTEXT1:IF(趋势线>MA(趋势线,2),趋势线,DRAWNULL),COLORRED,LINETHICK3;
NOTEXT2:IF(趋势线<MA(趋势线,2),趋势线,DRAWNULL),COLORGREEN,LINETHICK3;

上涨:INDEXADV,COLORRED,NODRAW;
下跌:INDEXDEC,COLOR008000,NODRAW;

流入:(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMO/V/10000,COLORWHITE,NODRAW;
市值:FINANCE(40)/100000000,COLORYELLOW,NODRAW;
新高:CONST(HHVBARS(C,25)),COLORFF37FF,NODRAW;


黑马营双核版选股公式:
ST股:=NOT(NAMELIKE('ST') OR NAMELIKE('*ST'));{如若前缀为“ST”或“*ST”则返回0}
停牌:=DYNAINFO(17)!=0;{量比不为0}
市值:=FINANCE(40)/100000000<60;
Z,:=10;
涨幅:=((C-REF(C,1))/REF(C,1)*100)<=Z,;

当日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);
疯牛线:=EXPMEMA(当日成本,3);
龙头线:=EXPMEMA(当日成本,8);
慢牛线:=EXPMEMA(当日成本,25);
生命线:=EXPMEMA(当日成本,79);
牛熊线:=EXPMEMA(当日成本,248);
DIVE1:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
CYR:=(DIVE1/REF(DIVE1,1)-1)*100;
黑马出击:=(CLOSE/REF(CLOSE,1)>1.03 AND VOL/CAPITAL*100>2.5 AND 疯牛线>龙头线 AND 疯牛线>慢牛线 AND C>疯牛线 AND (WINNER(C-C*0.01/100)-WINNER(C-C*20/100))*100>50 AND CYR>1) OR (CYS>11 AND CYS<30 AND CYR>1 AND CLOSE/REF(CLOSE,1)>1.03);

CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
CYC34:=0.01*EXPMA(AMOUNT,34)/EXPMA(VOL,34);
CYS13:=(CLOSE-CYC13)/CYC13*100;
CYS34:=(CLOSE-CYC34)/CYC34*100;
CYC5:=0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5);
CYS5:=(CLOSE-CYC5)/CYC5*100;
开枪A:=(REF(CLOSE/REF(CLOSE,1),3)>1.099 OR REF(CLOSE/REF(CLOSE,1),6)>1.099 OR REF(CLOSE/REF(CLOSE,1),4)>1.099 OR REF(CLOSE/REF(CLOSE,1),5)>1.099 OR REF(CLOSE/REF(CLOSE,1),2)>1.099) AND CROSS(龙头线,LOW) AND UPNDAY(慢牛线,3);
开枪B:=(CROSS(EXPMEMA(当日成本,25),L) AND MA(C,5)>MA(C,30) AND HHV(CYS13,15)>10 AND HHV(CYS34,18)>18 AND EXPMEMA(当日成本,8)>EXPMEMA(当日成本,25));
开枪:=开枪A OR 开枪B;

XX:=EMA(CLOSE,30)-EMA(CLOSE,17);
AA:=EMA(XX,5);
YY:=EMA(XX,13);
短:=TROUGHBARS(3,10,1)<1 AND CROSS(XX,AA);
枪:=TROUGHBARS(3,5,1)<1 AND XX<YY;
短1:=IF(枪>0,0.4,0);
短2:=CROSS(XX,AA) AND TROUGHBARS(3,7,1)<1;
狙击:=短 OR 短1 OR 短2;

出击:EXIST((开枪 OR 狙击),2) AND ST股 AND 停牌;
 

通达信双核版主副图源码,选股公式

 



关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © 铭网科技,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识