【股票指标公式下载】-【通达信】黑马营双核(做空、做多、趋势线)
『通达信黑马系列绝密指标公式源码下载』-股票指标公式下载
『通达信黑马系列绝密指标公式源码下载』-股票指标公式下载
『通达信黑马系列绝密指标公式源码下载』-股票指标公式下载
底:0,COLORBLUE;
JZCSYL:=FINANCE(33)/ FINANCE(34)*100;
ZCBS:=IF(JZCSYL>50,8,IF(50>JZCSYL>=14,2.2+(JZCSYL-14)*0.16, 2.2+(JZCSYL-14)* 0.15));
LTP:=CAPITAL;
LTPBS:=IF(LTP<1000000,(1000000-LTP)/1000000,0);
股价估值: FINANCE(34)*(ZCBS+LTPBS)*4,COLORRED;
中线:股价估值/2,COLORFF00FF,POINTDOT;
现价:C,COLORWHITE;
上涨空间:(股价估值-C)/C,COLORWHITE,LINETHICK0;
警示线:股价估值*0.9,COLORYELLOW;
说明:1、只适应净资产收益率大于2%的股票。
2、如果某只股票出现下列不可原谅的因素,将不适合:
A,现金流小于A股市场平均值。
B,行业经营周期明显开始走向低迷或正处于低迷。
C,公司管理层或财务出现问题。
D,市场对某一类特定概念进行疯狂炒作(非理性)。
3、上涨空间,是指收盘价到估值价的空间倍数。
精准抄底大黑马通达信指标公式源码
信号出现时高点低点一目了然,好不好直接上图VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; VAR2:=SMA(VAR1,9,1)+100;VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1)+100;VAR6:=VAR5-VAR2;趋势:IF(VAR6>45,VAR6-45,0);0,COLOR00FFFF;20,POINTDOT,COLORFFAA66,LINETHICK1;80,POINTDOT,COLORFFAA66,LINETHICK1;100,COLORFFFF33;V1:=LLV(LOW,10);V2:=HHV(H,25);价位线:=EMA((C-V1)/(V2-V1)*4,4);DRAWTEXT(CROSS(价位线,0.3),20+4,'●买'),COLORRED;DRAWTEXT(CROSS(3.5,价位线),100-4,'●卖'),COLORGREEN;VAR2Q:=REF(LOW,1);VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100; VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);VAR5Q:=LLV(LOW,30);VAR6Q:=HHV(VAR4Q,30);VAR7Q:=IF(MA(CLOSE,58),1,0);VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;VAR9Q:=IF(VAR8Q>100,100,VAR8Q);STICKLINE(VAR9Q>-120,0,VAR9Q,6.1,0),COLOR0000AA;STICKLINE(VAR9Q>-120,0,VAR9Q,4.9,0),COLOR0000BB;STICKLINE(VAR9Q>-120,0,VAR9Q,3.8,0),COLOR0000CC;STICKLINE(VAR9Q>-120,0,VAR9Q,2.7,0),COLOR0000DD;STICKLINE(VAR9Q>-120,0,VAR9Q,1.6,0),COLOR0000EE;STICKLINE(VAR9Q>-120,0,VAR9Q,0.4,0),COLOR4444FF;STICKLINE(趋势,(REF(趋势,1)),趋势,3.2,0) ,COLOR0044FF;STICKLINE(趋势,(REF(趋势,1)),趋势,2.7,0) ,COLOR0066FF;STICKLINE(趋势,(REF(趋势,1)),趋势,2.1,0) ,COLOR0088FF;STICKLINE(趋势,(REF(趋势,1)),趋势,1.5,0) ,COLOR00AAFF;STICKLINE(趋势,(REF(趋势,1)),趋势,0.9,0) ,COLOR00CCFF;STICKLINE(趋势,(REF(趋势,1)),趋势,0.2,0) ,COLOR00FFFF;粉红持有:=REF(趋势>REF(趋势,1),1);STICKLINE(粉红持有,(REF(趋势,1)),趋势,3.2,0),COLOR770077; STICKLINE(粉红持有,(REF(趋势,1)),趋势,2.7,0),COLOR990099; STICKLINE(粉红持有,(REF(趋势,1)),趋势,2.1,0),COLORBB00BB; STICKLINE(粉红持有,(REF(趋势,1)),趋势,1.5,0),COLORDD00DD; STICKLINE(粉红持有,(REF(趋势,1)),趋势,0.9,0),COLORFF00FF; STICKLINE(粉红持有,(REF(趋势,1)),趋势,0.2,0),COLORFF66FF;绿色减仓:=趋势<REF(趋势,1);STICKLINE(绿色减仓,(REF(趋势,1)),趋势,3.2,0 ),COLOR003300; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,2.7,0 ),COLOR006600; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,2.1,0 ),COLOR009900; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,1.5,0 ),COLOR00CC00; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,0.9,0 ),COLOR00FF00; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,0.2,0 ),COLORCCFF66;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:=CEILING(SMA(AA5,13,8));AA6:=SMA(AA3,21,8);卖临界:STICKLINE(走势-AA6>85,103,100,15,1),COLOR0000FF,LINETHICK2; N:=21;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;E:=CROSS(83,RSI);STICKLINE( E,E,55,2.7,0),COLORFF6600;STICKLINE( E,E,55,2.1,0),COLORFF8800;STICKLINE( E,E,55,1.5,0),COLORFFAA00;STICKLINE( E,E,55,0.9,0),COLORFFCC00;STICKLINE( E,E,55,0.2,0),COLORFFFF00;DRAWTEXT(E,50,' 逃顶'),COLORFF9966;TYP:=(HIGH+LOW+CLOSE)/3;VAR11:=3;VAR21:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));股价准备启动:IF(CROSS(VAR21,VAR11),100,0),COLORRED,LINETHICK2;主力线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2* SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHIC K1,POINTDOT;超短线:(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(25),LINETHICK0,COLORLIRED;轴:0,COLORFFFFFF;。
通达信寻找黑马起爆点的好指标
通达信寻找黑马起爆点的好指标以下是通达信寻找黑马起爆点的好指标(无源码的请下载附件导入)此指标用于通达信{寻找黑马起爆点的好指标用法:白色粘合,黄色高粘,粉色穿5,绿色穿10,亮色选优,红色选优} { 参数设置 N 1,30,10; S 1,4,1}MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA90:=MA(CLOSE,90);MA120:=MA(CLOSE,120);MA250:=MA(CLOSE,250);DG:=MAX(MAX(MA5,MA10),MAX(MA20,MA30));ZG:=MAX(MAX(DG,MA60),MAX(MA90,MA120));DD:=MIN(MIN(MA5,MA10),MIN(MA20,MA30));ZD:=MIN(MIN(DD,MA60),MIN(MA90,MA120));粘合:(ZG/ZD-1)*100<N,COLORFFFFFF,;高粘:(ZG/ZD-1)*100<N AND ZD>MA250,COLOR00FFFF,;穿5:(粘合 AND CROSS(C,MA5))*0.5,COLORFF00FF;穿10:(粘合 AND CROSS(C,MA10))*1,COLOR00FF00;穿20:(粘合 AND CROSS(C,MA20))*2,COLORAAAAAA;穿30:(粘合 AND CROSS(C,MA30))*3,COLORFF8000;FLSZ:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);DXTP:=((穿5/0.5)+穿10+(穿20/2)+(穿30/3))>=2;优选:FLSZ AND DXTP AND MA30>REF(MA30,1),COLORFFBB99;选优:FLSZ AND DXTP AND MA30>REF(MA30,1) AND 高粘,COLORRED;{以下设置副图显示方式}STICKLINE(粘合,-0.2,0,4,0),COLOR00FF00;STICKLINE(高粘,0.2,0,4,0),COLORFF00FF;DRAWTEXT(优选,3,'优●选'),COLOR00FFFF;DRAWICON(选优,0.3,1);DRAWTEXT(FILTER(粘合,10),-0.2,' 粘合'),COLOR00FF00;DRAWTEXT(FILTER(高粘,10),0.2,' 高粘'),COLORFF00FF;Y:=DATE;DRAWTEXT(Y=1081220,2,'白色粘合,黄色高粘,粉色穿5,绿色穿10,亮色选优,红色选优'),COLOREEAA66;通达信:罕见的黑马起爆点公式VAR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;VAR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;VAR3:=SMA(VAR2,2,1);天:100+(-ABS(VAR1)),COLORRED;下:SMA(VAR3,2,1);无:ABS(VAR1),COLORGREEN;敌:50,COLORFFAA00,LINETHICK3;A:80;B:20;{本文来源:分析家公式网 }买:STICKLINE(CROSS(下,无),3,20,2,0),COLORRED,LINETHICK1;STICKLINE(CROSS(下,无),20,25,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS(下,无),30,' '),COLORFFFFCC;卖:STICKLINE(CROSS(下,天),70,90,2,0),COLORRED,LINETHICK1;STICKLINE(CROSS(下,天),90,99,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS(下,天),70,' '),COLORFFFFCC;选股2:IF(CROSS(下,20),1,0);DRAWICON((CROSS(下,20) ),20,1);DRAWICON((CROSS(下,20) ),-20,25);通达信黑马利器【资金起爆点】(副图、源码、贴图、无未来),对于捕捉黑马股票的起爆点有很好的预示作用。
【股票指标公式下载】-【通达信】抓黑马(网均线、高低线、大阴线)
【通达信】抓黑马〔网均线、高低线、大阴线〕-指标公式源码网1:EXPMA(CLOSE,5),COLORWHITE;网2:EXPMA(CLOSE,12),POINTDOT;网3:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;IF(网3<REF(网3,1),网3,DRAWNULL),COLOR00FF00,LINETHICK3;IF(网3<REF(网1,1),网1,DRAWNULL),COLORWHITE,LINETHICK1;IF(网1<REF(网3,1),网1,DRAWNULL),COLORGREEN,LINETHICK1;阻力:REFDATE(REF(HHV(H,22),1),DATE),COLORGRAY;底:REFDATE(REF(LLV(L,22),1),DATE),COLORGRAY;网A:=EMA(EMA(EMA(EMA(C,1),2),2),2);DRAWTEXT(CROSS(网A,REF(网A,1)),L,'买'),COLORFF00FF;STICKLINE(CURRBARSCOUNT=1,阻力,阻力,10000,-1),COLORWHITE; STICKLINE(CURRBARSCOUNT=1,底,底,10000,-1),COLORWHITE;{3日高低线}三日最低:=EMA((REF(L,4)+REF(L,3)+REF(L,2))/3,3);三日最高:=EMA((REF(H,4)+REF(H,3)+REF(L,2))/3,3),COLORWHITE;底线:=IF(C>三日最低,三日最低,DRAWNULL),COLOR8000FF;高线:=IF(C<三日最高,三日最低,DRAWNULL),COLORWHITE;STICKLINE(CURRBARSCOUNT=1,三日最高,三日最高,100,-1),COLORRED; STICKLINE(CURRBARSCOUNT=1,三日最低,三日最低,100,-1),COLORWHITE;{大阴线:大跌超2.3}C2:=REF(C,1);BG:=IF((C2-C)*100/C2>=2.3,1,0) OR IF((O-C)*100/O>=5,1,0){ ORIF((H-L)*100/REF(C,1)>5,1,0)};{第二个条件开盘价过高掉下来}BG2:=IF((H-L)*100/C2>=3.58,1,0);BB1:=L<REF(L,1);{卖点信号}SELL1:=BG AND BB1 ;{大阳线:升幅超2.64}BR:=IF((C-C2)*100/C2>=2.59,1,0) OR IF((C-O)*100/O>=4.5,1,0) ORIF((C-L)*100/L>5,1,0);{第二个条件开盘价太低升上来}STICKLINE(BR,O,C,3,0),COLORRED;{以下条件记住最近一次卖出点}DAY1:=BARSLAST(SELL1);JIA1:=REF(O,DAY1);JIA2:=REF(O,1);BB4:=C>JIA2;BB2:=H>JIA1;{买入信号}BUY1:=BR AND BB2 AND BB4;{记住最后一次买点}DAY2:=BARSLAST(BUY1);{买卖谁先}S1:=DAY1<DAY2;B1:=DAY2<DAY1;{画出卖出信号}{DRAWTEXT(S1,H*1.05,'S'),COLORGREEN;}STICKLINE(S1,O,C,3,0),COLORGREEN;{画出买入信号}{DRAWTEXT(B1,L-0.2,'B'),COLORRED;}STICKLINE(B1,H,L,0.3,0),COLORRED;STICKLINE(B1,O,C,3,1),LINETHICK2,COLORRED;{其它补充1:买点}AA2:=AMOUNT/VOL;BB3:=L<AA2*0.9;CC2:=(C-REF(C,1))/REF(C,1)*100>1.2;DD2:=L<MA(C,6)*0.921;DD1:=L<MA(C,5)*0.921;EE2:=VOL<MA(V,5)*1.5;FF2:=BB3 AND CC2 AND DD2 AND EE2;老鼠仓:=BB3 AND CC2 AND DD1 AND EE2,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠仓,L*0.97,'老鼠仓'),COLOR0099FF; {DRAWTEXT(FF2,L*0.99,'买点'),COLOR00FFFF;}STICKLINE(FF2,H,L,0.3,0),COLOR00FFFF;{STICKLINE(FF2,O,C,3,1),LINETHICK2,COLOR00FFFF;}{检查买点是否成立}B4:=BARSLAST(FF2);{底点日期}E4:=B4<5;{5日内的线}F4:=E4 AND C>REF(C,1);STICKLINE(F4,H,L,0.3,0),COLOR00FFFF;{其它补充2:卖点}A2:=(C-REF(C,1))/REF(C,1)*100<1.02;A3:=H>MA(C,5)*1.12;AA:= A2 AND A3;DRAWTEXT(AA,H*1.05,'卖点'),COLORFF0000;STICKLINE(AA,H,L,0.3,0),COLORFF0000;{STICKLINE(AA,H,L,3,0),COLORFF0000;};{补充阳光买点}VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1) ;VAR2:=8;CC:=CROSS(VAR1,VAR2);CCC:=CROSS(VAR1,VAR2) AND H>REF(H,1) AND C>REF(C,1) ;DRAWICON(CCC,L*0.99,1);STICKLINE(CC,H,L,0.3,0),COLORRED;STICKLINE(CC,O,C,3,1),LINETHICK2,COLORRED;CF1:=BARSLAST(CC);{买点日期}CF2:=CF1<3;{5日内的线}CF3:=CF2 AND C>REF(C,1);STICKLINE(CF3,O,C,3,0),COLOR00FFFF;CD:=CROSS(VAR2,VAR1);STICKLINE(CD,H,L,0.3,0),COLORYELLOW;STICKLINE(CD,O,C,3,1),LINETHICK2,COLORYELLOW;DRAWTEXT(CD,H*1.01,'准备'),COLORYELLOW;DRAWTEXT(CC,L*0.98,'买'),COLORFF00FF;{输出粉红色的买字};{牛窝}VAR1A:=LLV(LOW,21);VAR2A:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1A) / (VAR2A - VAR1A)) * 100),5);AK:=EMA((((CLOSE - VAR1A) / (VAR2A - VAR1A)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.95),'○牛窝'),COLORYELLOW;{大胆博、加仓、小心变盘、逃顶}VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF;DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;VAR6:=REF(C,1);VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;DRAWTEXT(CROSS(82,VAR7),H*1.02,'逃顶'),COLORYELLOW;{主力进场}VAR9:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);VAR10:=SMA(VAR9,3,1);VAR11:=SMA(VAR10,3,1);VAR12:=SMA(VAR11,3,1);主力出现:DRAWICON(CROSS(VAR11,VAR12) AND (VAR11<40),L*0.98,1);{黑马}A1A:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L, 55))/(HHV(H,55)-LLV(L,55))*1,5,1),COLOR330066;A5A:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1;DRAWTEXT(CROSS(A1A,EMA(A1A,5))AND EMA(A1A,5)<A5A,L*0.98,'黑马'),COLORYELLOW;{主力成本及短期支撑}A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A, 11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A, 18)+REF(A,20))/210;S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=2*(S2-S6);主力成本:=EMA(X,13),LINETHICK1,COLORLIGRAY;短期支撑:=LLV(HIGH,30),LINETHICK2,COLORFFCC00;Z1:=MA(C,13);ZX:=REF(Z1,13/2+1);DRAWICON(CROSS(C,ZX),L*0.99,1);DRAWICON(CROSS(ZX,C),H*1.01,2);【通达信】抓黑马〔网均线、高低线、大阴线〕-指标公式效果图(文档来源:假设水财经社区)。
通达信指标公式源码 黑马信号(选股买点、黑马线、发现黑马)
VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3);VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*1 00;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)* 100;VARA:=BARSCOUNT(CLOSE);VARB:=VAR8<20 AND VAR9<23 AND VARA>35;VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);VARE:=EMA(VARD,5);VARF:=TROUGHBARS(3,6,1)<4 AND CROSS(VARD,VARE);VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));VAR21:=CROSS(VAR1E,LOW);选股买点: VAR10, COLORYELLOW;组合买: (VAR11+VAR13+VAR15+VAR17), COLORRED;组合卖: (VAR12+VAR14+VAR16+VAR18), COLORGREEN;黑码线: IF(MONTH<2008 AND VAR1B>0.1,VAR1C,0)*1, COLOR6699CC;黑码信号介入点: 选股买点AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5<2 AND VAR6=0, COLORFFFF99;DRAWTEXT(VAR13,0.6,'●'), COLORRED;DRAWICON(组合买,组合买,1);DRAWICON(组合卖,组合卖,9);DRAWTEXT(黑码信号介入点>0,4.5,'●我的黑码介入点'), COLORRED;DRAWICON(选股买点>0,4.2,1);DRAWTEXT(选股买点AND VARF AND VARC,2.8,' 30%下单莫错过!'), COLORMAGENTA; DRAWTEXT(VAR18,3,'空仓'), COLORGREEN;DRAWTEXT(VAR20<-110 AND 选股买点>0,2,'选股买点'), COLORYELLOW; DRAWTEXT(VAR17,1.3,'发现黑码'), COLORFF6600;DRAWTEXT(选股买点AND VAR20<-100 AND VARF AND VARC>0,4.1,'★组合5分钟线选股思路获利5%以上'), COLORRED;。
通达信黑马启动必抓1号三个幅图指标公式
通达信黑马启动必抓1号三个幅图指标公式以下是通达信黑马启动必抓1号三个幅图指标公式(无源码的请下载附件导入)新黑马必抓VARX:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARX1:=SMA(VARX,3,1);VARX2:=SMA(VARX1,3,1);VARX3:=REF(LOW,1);VARX4:=SMA(ABS(LOW-VARX3),3,1)/SMA(MAX(LOW-VARX3,0),3,1)*100;VARX5:=EMA(IF(CLOSE*1.2,VARX4*10,VARX4/10),3);VARX6:=LLV(LOW,30);VARX7:=HHV(VARX5,30);VARX8:=IF(LLV(LOW,58),1,0);A9:= DATETODAY(DATE);DS:=IF(A9<9966,1,DRAWNULL);CMSHORT:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/( SUM(AMOUNT,8)/(AMOUNT/VOL/100)/100));CMMID:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SU M(AMOUNT,13)/(AMOUNT/VOL/100)/100));CMLONG:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(S UM(AMOUNT,20)/(AMOUNT/VOL/100)/100));DIF:=EMA(EMA(CL OSE,18)-EMA(CLOSE,34),11);XSR:=1150501;XS:=IF(DATE<XSR,1,DRAWNULL);MACD:=EMA(EMA(DIF,11),11),COLOR58FF58;DEF:=2*(DIF-MACD),COLORFFFF00,LINETHICK0;MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM) ,6),6));MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12));MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MT M),26),26));VARR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;VARR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;VARR3:=(2*CLOSE+HIGH+LOW)/4;VARR4:=LLV(LOW,26);VARR5:=HHV(HIGH,34);VARR6:=EMA((VARR3-VARR4)/(VARR5-VARR4)*100,16);VARR7:=SMA((SMA(VARR2,3,1)+3),3,1),LINETHICK3;VARR8:=EMA(VARR6,7);VARR9:=SMA(VARR1,3,1);VARR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VARR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VARR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VARR13:=(VARR10+VARR11+VARR12)/3;VARR14:=IF(VARR13<=-20,10,0);VARR15:=HHV(VARR14,10);VARR24:=LLV(LOW,36);VARR25:=HHV(HIGH,30);VARR26:=EMA((CLOSE-VARR24)/(VARR25-VARR24)*4,4)*25;VARB27:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)/2+22)*1;VARB28:=(((CLOSE -(((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) / (((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) * 100);VARB29:=IF(A9<15366,1,DRAWNULL);AA05:=MA(C,5);AA30:=MA(C,30);MA05:=MA(C,5);MA10:=MA(C,13);MA30:=MA(C,34);BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1)*XS;加速度5:=EMA((速度5-REF(速度5,1)),3)*VARB29;五日乖离率:=(C-AA05)/AA05*VARB29*100*DS;三拾日乖离率:=(C-MA30)/MA30*100*VARB29;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;买入:=FILTER(MR,10)*XS;STICKLINE(买入,(LOW)*(0.99000001),0,6,0)*XS*VARB29,COLORRED;VAR1:=EMA(HHV(HIGH,500),21);VAR2:=EMA(HHV(HIGH,250),21);VAR3:=EMA(HHV(HIGH,90),21);VAR4:=EMA(LLV(LOW,500),21);VAR5:=EMA(LLV(LOW,250),21);VAR6:=EMA(LLV(LOW,90),21);VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.55 8+VAR2*0.558+VAR3*0.558)/6,21);VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55 +VAR2*0.55+VAR3*0.65)/6,21);VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+V AR2*0.68+VAR3*0.68)/6,21);VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);VARB:=REF(LOW,1);VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);VARE:=LLV(LOW,30);VARF:=HHV(VARD,30);VAR10:=IF(MA(CLOSE,58),1,0);DRAWTEXT(A9>15298,LOW,'(CLOSE-LC)*VID;LONG := SUM(RC,0)2)))*100);RC := (CLOSE-LC)*VID;LONG := SUM(RC,0);DIFF := SMA(LONG,10,1);DEA := SMA(LONG,20,1);LON : DIFF-DEA;(CLOSE-LC)*VID;LONG := SUM(RC,0)');新黑马启动A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);金线王:=EMA(A2,200)*1.118;金线王2:=EMA(A2,200)*1.118;条件:=(C-REF(C,1))/REF(C,1)*100>8;金K线:=CROSS(C,金线王) AND 条件;RRF:=金K线,STICK;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR000088;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000AA;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000CC;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLORLIMAGENTA; STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR770077; STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR990099; STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORBB00BB; STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD; STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORFF00FF; STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD; STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR003300; STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR005500; STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR007700; STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR009900; STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR00CC00; STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR666666; STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR777777; STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR888888; STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR999999; STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLORDDDDDD; STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLORFFFFFF; {STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLOR000044; STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLOR000033; STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLOR000055; STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLOR000077; STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLOR000099; STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLORLIMAGENTA;} DRAWTEXT(RRF,8.5,'黑'),COLORYELLOW; DRAWTEXT(RRF,6,'马'),COLORYELLOW; DRAWTEXT(RRF,3.5,'启'),COLORRED;DRAWTEXT(RRF,1,'动'),COLORRED;{DRAWTEXT(RRF,-1.5,'标'),COLORYELLOW;};黑马1号AHC1:=CLOSE*VOL;AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA( AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108) +EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);通道:=1.0668*AHC22,COLOR9F5F9F,LINETHICK3;起爆:=CROSS(C,通道) AND REF(C,1)*1.05-C<0.008 AND C>O*0.5;RRF:=起爆,STICK;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR000088;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000AA;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000CC;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLORLIMAGENTA;STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR770077;STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR990099;STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORBB00BB;STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD;STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORFF00FF;STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD;STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR003300;STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR005500;STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR007700;STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR009900;STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR00CC00;STICKLINE(RRF,0,3,3,0),COLOR008888;STICKLINE(RRF,0,3,3,0),COLOR00AAAA;STICKLINE(RRF,0,3,3,0),COLOR00CCCC;STICKLINE(RRF,0,3,3,0),COLOR00FFFF;DRAWTEXT(RRF,10.5,'黑'),COLORYELLOW;DRAWTEXT(RRF,7.5,'马'),COLORYELLOW;DRAWTEXT(RRF,4.5,'一'),COLORRED;DRAWTEXT(RRF,1.5,'号'),COLORRED;•上一篇:我说这个公式是做波段的神器,波霸说有我的波神气吗下一篇:通达信饿狼传说源码附图。
[通达信]“翻倍黑马”+选股公式
[通达信]“翻倍⿊马”+选股公式[通达信] "翻倍⿊马"+选股公式公式原码如下:MA5:MA(C,5),COLORYELLOW,LINETHICK0;MA24:MA(C,24),COLORYELLOW,LINETHICK0;均量5:MA(VOL,5),COLORYELLOW,LINETHICK0;均量60:MA(VOL,60),COLORYELLOW,LINETHICK0;DIFF:=EMA(CLOSE,10)-EMA(CLOSE,20);DEA:=EMA(DIFF,7);MACD:=2*(DIFF-DEA);启动点:IF(CROSS(MA5,MA24) AND 均量5>均量60 AND MACD>0 AND DIFF>DEA,8,0);通达信可⽤的选股公式MA5:=MA(C,5);MA24:=MA(C,24);均量5:=MA(VOL,5);均量60:=MA(VOL,60);DIFF:=EMA(CLOSE,10)-EMA(CLOSE,20);DEA:=EMA(DIFF,7);MACD:=2*(DIFF-DEA);启动点:IF(CROSS(MA5,MA24) AND 均量5>均量60 AND MACD>0 AND DIFF>DEA,8,0);[通达信] 超级⿊马+选股(副图)A00:=SUM(IF((CLOSE> REF(CLOSE,1.000)),VOL,IF((CLOSE<REF(CLOSE,1.000)),(0-VOL),0)),0);A01:=SUMBARS(VOL,CAPITAL);A02:=IF((CLOSE>LLV(CLOSE,A01)),1.000,(0-1.000))*IF((A00 >LLV(A00,A01)),1.000,(0-1.000));A03:=(COUNT((IF((A02=(0-1.000)),1.000,0)=1.000),8.000)>2.000);A04:=((CLOSE-DMA((((3.000 * HIGH + LOW)+OPEN)+2.000 * CLOSE)/7.000,VOL/SUM(AMOUNT,13.000)/AMOUNT/VOL/100.000/100.000))/DMA((((3.000*HIGH+LOW)+OPEN)+2.000*CLOSE)/7.000,VOL/SUM(AMOUNT,13.000)/ AMOUNT/VOL/100.000/100.000)*100.000<(0-18.000));A05:=((CLOSE-MIN(REF(CLOSE,5.000)*0.865,REF(CLOSE,21.000)*0.772))/CLOSE<0.009);A06:=((A03 AND A04) AND A05);A07:=(((((OPEN < EMA(CLOSE,5.000)) AND (CLOSE=HIGH)) AND (CLOSE/OPEN>=1.05)) AND (VOL/CAPITAL>=0.019)) AND (VOL/CAPITAL<=0.200));A08:=(A07 AND (COUNT(A07,5.000)=1.000));A09:=((((((((((((MA(CLOSE, 3.000)>REF(MA(CLOSE,3.000),1.000)) AND (MA(CLOSE, 5.000)>REF(MA(CLOSE,5.000),1.000))) AND (MA(CLOSE,10.000)>REF(MA(CLOSE,10.000),1.000))) AND(VOL/240.000>REF(VOL,30.000)*1.200/240.000*1.500)) AND (CLOSE>LOW*1.059)) AND (CLOSE>REF(MA(CLOSE,3.000),1.000))) AND REF(CLOSE,1.000)) AND (MA(CLOSE,5.000)>REF(MA(CLOSE,5.000),1.000))) AND (MA(CLOSE,10.000)>REF(MA(CLOSE,10.000),1.000))) AND (MA(CLOSE,20.000)>REF(MA(CLOSE,20.000),1.000))) AND (MA(VOL,5.000)>REF(MA(VOL,5.000),1.000))) AND ((MA(CLOSE,5.000)-MA (CLOSE,10.000))<= 0.579));A0A:=FILTER(A09,5.000);⽜股:((A06 OR A07) AND A0A),COLORYELLOW,LINESTICK;DRAWTEXT(⽜股,1.4,'▲←超级⿊马'),COLORRED;选股A00:=SUM(IF((CLOSE> REF(CLOSE,1.000)),VOL,IF((CLOSE<REF(CLOSE,1.000)),(0-VOL),0)),0);A01:=SUMBARS(VOL,CAPITAL);A01:=SUMBARS(VOL,CAPITAL);A02:=IF((CLOSE>LLV(CLOSE,A01)),1.000,(0-1.000))*IF((A00 >LLV(A00,A01)),1.000,(0-1.000));A03:=(COUNT((IF((A02=(0-1.000)),1.000,0)=1.000),8.000)>2.000);A04:=((CLOSE-DMA((((3.000 * HIGH + LOW)+OPEN)+2.000 * CLOSE)/7.000,VOL/SUM(AMOUNT,13.000)/AMOUNT/VOL/100.000/100.000))/DMA((((3.000*HIGH+LOW)+OPEN)+2.000*CLOSE)/7.000,VOL/SUM(AMOUNT,13.000)/ AMOUNT/VOL/100.000/100.000)*100.000<(0-18.000));A05:=((CLOSE-MIN(REF(CLOSE,5.000)*0.865,REF(CLOSE,21.000)*0.772))/CLOSE<0.009);A06:=((A03 AND A04) AND A05);A07:=(((((OPEN < EMA(CLOSE,5.000)) AND (CLOSE=HIGH)) AND (CLOSE/OPEN>=1.05)) AND (VOL/CAPITAL>=0.019)) AND (VOL/CAPITAL<=0.200));A08:=(A07 AND (COUNT(A07,5.000)=1.000));A09:=((((((((((((MA(CLOSE, 3.000)>REF(MA(CLOSE,3.000),1.000)) AND (MA(CLOSE, 5.000)>REF(MA(CLOSE,5.000),1.000))) AND (MA(CLOSE,10.000)>REF(MA(CLOSE,10.000),1.000))) AND(VOL/240.000>REF(VOL,30.000)*1.200/240.000*1.500)) AND (CLOSE>LOW*1.059)) AND (CLOSE>REF(MA(CLOSE,3.000),1.000))) AND REF(CLOSE,1.000)) AND (MA(CLOSE,5.000)>REF(MA(CLOSE,5.000),1.000))) AND (MA(CLOSE,10.000)>REF(MA(CLOSE,10.000),1.000))) AND (MA(CLOSE,20.000)>REF(MA(CLOSE,20.000),1.000))) AND (MA(VOL,5.000)>REF(MA(VOL,5.000),1.000))) AND ((MA(CLOSE,5.000)-MA (CLOSE,10.000))<= 0.579));A0A:=FILTER(A09,5.000);超级⿊马:((A06 OR A07) AND A0A);===========================================[通达信] 波段指标(源码副图选股)波段指标源码买:=IF("KDJ.J"<0,10,0);条件:=CROSS(9.9,买);VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=LLV(LOW,5);VAR3:=HHV(HIGH,5);VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);MA1:=MA(VAR4,2);AA:STICKLINE(VAR4>MA1,VAR4,MA1,6,1),COLORRED;BBB:STICKLINE(VAR4>MA1 AND REF(VAR4,1)<30,VAR4,MA1,6,1),COLORRED;STICKLINE(VAR4<=MA1,VAR4,MA1,6,1),COLORFFCC66;DRAWICON(CROSS(9.9,买),VAR4-12,4);STICKLINE(CROSS(9.9,买),VAR4+5,MA1-4,6,1),COLORYELLOW;XXX:STICKLINE(VAR4>MA1 AND REF(VAR4,1)<30,VAR4+5,MA1-4,6,1),COLORYELLOW;关注:(VAR4>MA1 AND REF(VAR4,1)<30)*20;==================================[通达信] ⼗战七胜主图+选股(源码副图)MAA5:MA(C,5),COLORFF00FF,LINETHICK2;MAA10:=MA(C,10);MAA30:MA(C,30),COLORRED;KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;选股公式:A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买进:(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))),COLORRED;DRAWTEXT(买进,0.5,'↖买进'),COLORYELLOW;========================================[通达信] 最⽜特⾊主图(源码 )2011年最⽜特⾊主图指标公式均5:MA(CLOSE,5), COLOR0000FF;均10:MA(CLOSE,10) ,COLORFF5555,LINETHICK2;均30: MA(CLOSE,30) , COLORGREEN;均60: MA(CLOSE, 60) ,COLORRED ,POINTDOT,LINETHICK4;均120: MA(CLOSE, 120),COLORFF1100 ,LINETHICK3 ;均250: MA(CLOSE, 250),COLORFF9999 ,LINETHICK3 ;魔⿁通道上:均30 + 2*STD(CLOSE,60) ,COLORYELLOW ,POINTDOT ,LINETHICK3 ;魔⿁通道下:均30 - 2*STD(CLOSE,60) ,COLORYELLOW, POINTDOT, LINETHICK3;DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,LOW*0.98,1);DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) ,HIGH*1.02,2);DRAWTEXT(REF(CLOSE,2)/REF(OPEN,2)<0.95 ANDREF(C,2)<REF(C,3) AND REF(OPEN,1)<REF(CLOSE,2) ANDREF(CLOSE,1)>REF(CLOSE,2) ANDREF(CLOSE,1)>(REF(CLOSE,2)+REF(OPEN,2))/2 ANDCLOSE>REF(CLOSE,1) ANDLLV(LOW,13)=REF(LOW,1),LOW*0.96,'曙光'), COLORYELLOW;DRAWTEXT(REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1) < REF(CLOSE,2) ANDABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),LOW*0.96 ,'早晨' ) ,COLORYELLOW;DRAWICON(REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1) < REF(CLOSE,2) ANDABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),C,1);==================================[通达信] 精准顶底买卖V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主⼒撤: IF(V4<=0,V4,0),colorblue;主⼒进: IF(V4>=0,V4,0),colorff00ff;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);VB:=(V9-VA)/2;⼤盘资⾦进场:IF(VB>=0,VB,0),Colorred;⼤盘资⾦撤⾛:IF(VB<=0,VB,0),colorgreen;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);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现⾦: STICKLINE(趋势线<=13,0,20,2,0),colorcc9900;aa:=(趋势线<=13) and filter((趋势线<=13),15);drawtext (aa,30,'准备现⾦'),colorcc9900;买⼊股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),color0099ff;bb:= (趋势线<=13 AND V12>13) and filter((趋势线<=13 AND V12>13),10) ;bb:= (趋势线<=13 AND V12>13) and filter((趋势线<=13 AND V12>13),10) ;drawtext (bb,60,'买⼊股票'),color0099ff;卖临界: STICKLINE(趋势线>90 and 趋势线>ref(趋势线,1),100,95,15,1),COLORFFFF00;见顶清仓:filter(趋势线>90 and 趋势线<ref(趋势线,1) and 主⼒进<ref(主⼒进,1),8); DRAWTEXT( 见顶清仓,90,'逃顶'),coloryellow;cc:=(趋势线>=90 AND V12) and filter((趋势线>=90 AND V12),10);stickline(⼤盘资⾦进场 and 趋势线<13,0,30,2,0),colorred;stickline(⼤盘资⾦撤⾛ and 趋势线>90,0,30,2,0),colorgreen;stickline(主⼒进 and 趋势线<13,0,40,2,0),colorff00ff;stickline(主⼒撤 and 趋势线>90,0,40,2,0),colorblue;要说明的是,本指标不仅分时可⽤,各个周期都可以⽤.当然,指标不是万能的.炒股的经验才是决胜股市的关键.代码只⽤前⼏⾏更好V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主⼒撤: IF(V4<=0,V4,0),colorblue;主⼒进: IF(V4>=0,V4,0),colorff00ff;==============================通达信MACD底背离选股公式条件选股公式:macd背离的公式选股器DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);FILTER(B1>0,5)条件选股公式:macd,RSi,kdj底背离KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);买1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);买2:=CROSS("RSI.RSI1"(6,2,2),20) OR CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));买3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);买0:=买1+买2+买3;买:IF(买0>1,买0,0);通达信百发百中{百发百中 K:100,120,105}VARA:=CLOSE/MA(CLOSE,48)*100<71*K/100;VARB:=CLOSE/MA(CLOSE,50)*100<70*K/100;VARC:=HIGH/LOW>1.078/K*100;VARD:=VARC AND COUNT(VARC,4)>2;VAR1:=CLOSE;VAR2:=MA(VAR1,6);VAR3:=MA(VAR1,24);VAR4:=MA(VAR1,32);VAR5:=MA(VAR1,62);VAR6:=MA(VAR1,105);百:=VAR5/VAR6*100;发:=VAR4/VAR2*100;中:=VAR3/VAR2*100;财:=VAR2/VAR1*100;⼊:=CLOSE/COST(8)*100;((发>110/K*100 AND ⼊<80*K/100) OR (VARD AND (VARA OR VARB)))AND (HIGH>LOW) AND (REF(HIGH,1)>REF(LOW,1)) AND(REF(HIGH,2)>REF(LOW,2)) AND (REF(HIGH,3)>REF(LOW,3)) AND(REF(HIGH,2)>REF(LOW,2)) AND (REF(HIGH,3)>REF(LOW,3)) AND(REF(HIGH,4)>REF(LOW,4)) AND (REF(HIGH,5)>REF(LOW,5));1)KDJ和RSI在20以下钝化⼀段时间;2)MACD绿线逐渐缩短,且DIF上穿DAE⽽DEA也向上运⾏;3)⽇线向SAR靠拢并交叉;4)ROC 在超卖区上穿MROC并且MROC上⾏;5)BOLL开⼝放⼤;6)5⽇线⾛平并上穿10⽇线且10⽇线⾛平并向上。
通达信交易决策公式新黑马必抓副图 重要牛股指标
公式源码:VARX:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARX1:=SMA(VARX,3,1);VARX2:=SMA(VARX1,3,1);VARX3:=REF(LOW,1);VARX4:=SMA(ABS(LOW-VARX3),3,1)/SMA(MAX(LOW-VARX3,0),3,1)*100; VARX5:=EMA(IF(CLOSE*1.2,VARX4*10,VARX4/10),3);VARX6:=LLV(LOW,30);VARX7:=HHV(VARX5,30);VARX8:=IF(LLV(LOW,58),1,0);A9:= DATETODAY(DATE);DS:=IF(A9<9966,1,DRAWNULL);CMSHORT:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,8)/(AMOUNT/VOL/100)/100));CMMID:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13) /(AMOUNT/VOL/100)/100));CMLONG:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,2 0)/(AMOUNT/VOL/100)/100));DIF:=EMA(EMA(CLOSE,18)-EMA(CLOSE,34), 11);XSR:=1150501;XS:=IF(DATE<XSR,1,DRAWNULL);MACD:=EMA(EMA(DIF,11),11),COLOR58FF58;DEF:=2*(DIF-MACD),COLORFFFF00,LINETHICK0;MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); VARR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100; VARR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100; VARR3:=(2*CLOSE+HIGH+LOW)/4;VARR4:=LLV(LOW,26);VARR5:=HHV(HIGH,34);VARR6:=EMA((VARR3-VARR4)/(VARR5-VARR4)*100,16);VARR7:=SMA((SMA(VARR2,3,1)+3),3,1),LINETHICK3;VARR8:=EMA(VARR6,7);VARR9:=SMA(VARR1,3,1);VARR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VARR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VARR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VARR13:=(VARR10+VARR11+VARR12)/3;VARR14:=IF(VARR13<=-20,10,0);VARR15:=HHV(VARR14,10);VARR24:=LLV(LOW,36);VARR25:=HHV(HIGH,30);VARR26:=EMA((CLOSE-VARR24)/(VARR25-VARR24)*4,4)*25;VARB27:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)/2+22)*1 ;VARB28:=(((CLOSE -(((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) / (((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) * 100);VARB29:=IF(A9<15366,1,DRAWNULL);AA05:=MA(C,5);AA30:=MA(C,30);MA05:=MA(C,5);MA10:=MA(C,13);MA30:=MA(C,34);BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1)*XS; 加速度5:=EMA((速度5-REF(速度5,1)),3)*VARB29;五日乖离率:=(C-AA05)/AA05*VARB29*100*DS;三拾日乖离率:=(C-MA30)/MA30*100*VARB29;。
【股票指标公式下载】-【通达信】神秘乾坤(多头操盘、空头操盘、多空趋势线)
【通达信】神秘乾坤(多头操盘、空头操盘、多空趋势线)-指标公式源码TR:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)) ;ATR:=MA(TR,5);多头操盘:HHV(H-2*ATR,10);空头操盘:=LLV(L+2*ATR,10);多空趋势线:EMA(C,60),COLORFF9900;MA1:MA(CLOSE,M1),COLOR0000FF;A:=BARSCOUNT(CLOSE);AH:=HHV(HIGH,200);AL:=LLV(LOW,200);B0:=(AH-AL)/40;B1:=HIGH+B0;B2:=LOW-B0;DRAWTEXT((A+0)/34=FLOOR((A+0)/34),B2-2.2*B0*1.1,'←窗,变盘'),COLORRED;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; DRAWICON(CROSS(RSI,11) ,L*0.99,3);VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 ANDEMA(CLOSE,12)/LOW>1.15,5),LOW,'买'),COLORFF00FF;VARA:=((AMOUNT)/(VOL))/(100);VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);VARC:=((SUM(AMOUNT,7))/(VARA))/(100);VARD:=DMA(VARB,(VOL)/(VARC));VARE:=((CLOSE-VARD)/(VARD))*(100);VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100); VARJ:=MA(VARE,20)+STD(VARE,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);AA:=SMA(VARF,3,1);SS:=(REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>79);V7:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1 );STICKLINE(V7>=1,O,C,1,0),COLORYELLOW;LC1:=REF(CLOSE,1);RSI1:=((SMA(MAX((CLOSE - LC1),0),3,1) / SMA(ABS((CLOSE - LC1)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);AA1:=(HHV(HIGH,20) - (2 * ATR));BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));SSS:=CROSS(MIN(MA(CLOSE,13),AA1),CLOSE);BBB:=BARSLAST(BB);SSSB:=BARSLAST(SSS);B11:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));B1B:=BARSLAST(B11);B21:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));B2B:=BARSLAST(B21);B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));VAR2S:=(2*CLOSE+HIGH+LOW)/4;VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←吸'),COLORRED;MA20:=MA(C,20);MA90:=MA(C,90);F0:=BARSLAST(CROSS(MA(C,5),MA(C,90)));F1:=F0 AND BARSLAST(CROSS(MA(C,20),MA(C,90)));F2:=F1 AND CROSS(MA(C,5),MA(C,20)) AND MA(C,20)>MA(C,90); DRAWICON(F2,L-0.10,1);DRAWTEXT(F2,L-0.40,'←黑马'),COLORFF00FF;M:=OPEN;M1:=MA(C,1);M2:=REF(M1,1);M3:=REF(M2,1);保护价:(M2+M3+M)/3,COLORWHITE,LINETHICK0;STICKLINE(L<EMA(EMA(L,8),6)*0.799,B2,B2-0.8*B0,3,0),COLORYELLOW;波动回调提示图:=MA(CLOSE,10000);DRAWICON(CROSS(FF,MA15),(LOW -0.49),9);VAR1:=1;VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);LL:=REF(CLOSE,2);MM:=((SMA(MAX((CLOSE - LL),0),6,1) / SMA(ABS((CLOSE - LL)),6,1)) * 100); DB:=IF(((MM < REF(MM,1)) AND (MM > 79)),MM,0);DRAWTEXT(CROSS(Y,X),(LOW * 0.985),'▲'),LINETHICK2,COLORRED; DRAWTEXT(CROSS(X,Y),(HIGH * 1.02),'◆'),LINETHICK2,COLOR00FF00; DRAWTEXT(DB,(HIGH * 1.02),'●'),LINETHICK2,COLOR00FF00;VAR11:=LLV(LOW,21);VAR21:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);DD:=EMA(((0.667 * REF(AK1,1)) + (0.333 * AK1)),2);VAR31:=LLV(LOW,55);VAR4:=HHV(HIGH,34);VAR5:=EMA((((CLOSE - VAR3) / (VAR4 - VAR3)) * 100),3);VAR6:=((AK + VAR5) / 2);VAR7:=EMA(((0.667 * REF(VAR5,1)) + (0.333 * AK1)),2);VAR8:=EMA(VAR6,5);BBA:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * VAR8)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BBA) AND (BBA < 30));CD:=(BBA * 0.6);DRAWTEXT((CD = 0.6),(LOW * 0.99),'□'),LINETHICK2,COLOR33CC99; DRAWTEXT((AB = 1),(LOW * 0.99),'□'),LINETHICK2,COLORWHITE;C1:=(CLOSE+LOW+HIGH)/3;C2:=EMA(C1,6);C3:=EMA(C2,5);C4:=CROSS(C2,C3);DRAWTEXT(C4,LOW/1.01,'★'),,COLORRED;C5:=CROSS(C3,C2);DRAWTEXT(C5,HIGH*1.03,'★'),,COLORBLUE;IF(MA1>REF(MA1,1),MA1,DRAWNULL),COLORRED,LINETHICK2;IF(MA1<REF(MA1,1),MA1,DRAWNULL),COLORGREEN,LINETHICK2;JG:=CROSS(MA1,MA2);VOLUME:=VOL,VOLSTICK;MAVOL1:=MA(VOLUME,5);MAVOL2:=MA(VOLUME,10);NL:=CROSS(MAVOL1,MAVOL2);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2,COLORSTICK;NA:=CROSS(DIF,DEA);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;KD:=CROSS(K,D) AND CROSS(J,D);定乾坤:DRAWTEXT((JG AND NL AND NA) OR (JG AND NL AND KD) OR(JG AND NA AND KD) OR (NL AND NA AND KD),L*0.93,'←定乾坤'),COLORYELLOW; X1:=LLV(J,2)=LLV(J,8);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X1 AND J<20,LOW*0.98,'←进'),COLORLIMAGENTA;JH9:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100; DRAWTEXT(CROSS(84,JH9),H*1.02,'★S'),COLORGREEN;空:=EMA(C,5);均衡:=EMA(空,5),COLORWHITE;中轨:=HHV(MA(H,13),13),COLORRED,LINETHICK2;VAR55:=FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11); DRAWTEXT(VAR55,L*0.98,'←追'),COLORYELLOW;【通达信】神秘乾坤(多头操盘、空头操盘、多空趋势线)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】黑马主图(下轨道、支撑位、压力位、黑马趋势)
【通达信】黑马主图(下轨道、支撑位、压力位、黑马趋势)-指标公式源码上:=(SMA(HIGH,21,2) * 1.05);DRAWTEXT(FILTER(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上)) AND (CLOSE < 上)),5),(HIGH + 0.05),'-减仓'),COLORFFFFFF;下轨道:(SMA(LOW,21,2) * 0.969),POINTDOT,COLOR00FFFF;BMA:=MA(CLOSE,118);阻挡:=(SMA(HIGH,21,2) * 1.05);RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=((3 * K) - (2 * D));RSV12:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100); K12:=SMA(RSV12,3,1);D12:=SMA(K12,3,1);J12:=((3 * K12) - (2 * D12));RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); K24:=SMA(RSV24,3,1);D24:=SMA(K24,3,1);J24:=((3 * K24) - (2 * D24));支撑位:=IF(CROSS(J,J24),LOW,REF(LOW,BARSLAST(CROSS(J,J24))));压力位:IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),COLOR00FF00 ;{U2L:=IF((CLOSE >= MA(CLOSE,20)),80,50);L2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);RH1:=IF(((J < U2L) AND (REF(J,1) >=U2L)),HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),BARSLAST(((J < U2L) AND REF(J,1)))));RH4:=IF((HIGH > RH1),LOW,REF(LOW,BARSLAST((HIGH > RH1))));RH42:=IF((HIGH > RH1),J,REF(J,BARSLAST((HIGH > RH1))));RH5:=IF((((HIGH > RH4) AND (J < RH42)) AND (J <J24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH4) AND (J < RH42)) AND (J < J24)))));RL1:=IF(((J > L2L) AND (REF(J,1) <= L2L)),LLV(REF(LOW,1),(BARSLAST(((J <= L2L) AND (REF(J,1) > L2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((J <= L2L) AND (REF(J,1) > L2L))) - 1)),BARSLAST(((J > L2L) AND REF(J,1))))); RL4:=IF((LOW < RL1),HIGH,REF(HIGH,BARSLAST((LOW < RL1))));RL42:=IF((LOW < RL1),J,REF(J,BARSLAST((LOW < RL1))));RL5:=IF((((LOW < RL4) AND (J > RL42)) AND (J >J24)),LOW,REF(LOW,BARSLAST((((LOW < RL4) AND (J > RL42)) AND (J >J24)))));}CB:=((AMOUNT / VOL) / 100);CD:=((CB > HIGH) OR (CB < LOW));黑马趋势:=MA(CLOSE,3);MAP:=MA(CLOSE,8);AA5:=MA(CLOSE,21);AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COLOR0000FF;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);DRAWTEXT(FILTER(((((((CLOSE / OPEN) > 1.04) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (CLOSE > 下轨道)) AND ((AA10 - REF(AA10,1)) > 0)) AND (CLOSE < 上)),3),(LOW - 0.07),'追击'),COLORD1E768;{STICKLINE((((AA12 <= AA10) AND (BB12 >= 1)) AND (BB10 >=1)),AA10,AA12,4,0),COLOR0000FF;STICKLINE((((AA12 >= AA10) AND (BB10 <= 1)) AND (BB10 <=1)),AA10,AA12,4,0),COLOR00FF00;}VARD:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);支撑:=EMA(VARD,5);短期底部:=LLV(OPEN,30);{DRAWTEXT(((((((CROSS(黑马趋势,短期底部) AND ((RL5 - REF(RL5,1)) > 0)) AND ((黑马趋势 - REF(黑马趋势,1)) > 0)) AND (黑马趋势 > 1)) AND (LOW <= 支撑位)) AND (CLOSE > 支撑位)) AND (HIGH < 压力位)),(LOW - 0.15),'←黑马发现'),COLOR00FFFF;DRAWTEXT((((((((CROSS(黑马趋势,RL5) AND ((黑马趋势 - REF(黑马趋势,1)) > 0)) AND (HIGH < 压力位)) AND (LOW <= 短期底部)) AND (CLOSE > 支撑位)) AND (CD < 1)) AND (CLOSE > OPEN)) AND (CLOSE > RL5)),LOW,'←短买'),COLOR00FF00;DRAWTEXT(FILTER((((((((LOW <= 短期底部) AND ((CLOSE - REF(CLOSE,1)) > CLOSE)) AND ((MA(CLOSE,10) - REF(MA(CLOSE,10),1)) > 0)) AND (WINNER(CLOSE) < 0.05)) AND (短期底部 = RL5)) AND (LOW <= RL5)) AND (HIGH < 压力位)),3),LOW,'★机会难得'),COLORFFFFFF;历史大底:DRAWTEXT(FILTER((((((LLV(LOW,0) AND (WINNER(CLOSE) < 0.08)) AND (LOW <= 短期底部)) AND (CLOSE > 短期底部)) AND (J < 80)) AND ((CLOSE / OPEN) > 1.08)),20),(LOW - 0.45),'★★历史大底');DRAWTEXT(FILTER(((((((((LOW <= 短期底部) AND (CLOSE > 压力位)) AND ((AA5 - REF(AA5,1)) > 0)) AND (J < 80)) AND (CLOSE > 支撑位)) AND ((黑马趋势- REF(黑马趋势,1)) > 0)) AND (WINNER(CLOSE) < 0.1)) AND (CLOSE > OPEN)),5),(LOW - 0.15),'★黑马登天'),COLORCDEEC5; }X1:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X2:=EMA(X1,10);X3:=REF(X2,1);X4:=((REF(HIGH,1) + REF(LOW,1)) / 2);X5:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X6:=REF(CLOSE,1);X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100); X8:=CROSS(79,X7);X9:=FILTER(X8,4);MAP1:=MA(CLOSE,60);均线30:=MA(CLOSE,30);均线89:=MA(CLOSE,89);均线:=MA(CLOSE,16);均线34:=MA(CLOSE,34);均线55:=MA(CLOSE,55);VAR1:=EMA(CLOSE,8);VAR2:=EMA(VAR1,20);VAR3:=CROSS(VAR1,VAR2);VAR4:=(VAR1 < MA(CLOSE,60));VAR5:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);VAR6:=SMA(VAR5,5,1);VAR7:=SMA(VAR6,8,1);VAR8:=(CROSS(VAR6,VAR7) AND (VAR7 < 16));VAR9:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR8); VARA:=IF((CLOSE > 1000),VAR8,VAR9);黑马起步:=(VAR3 AND VAR4);逃遁:=VARA;均线20:=MA(CLOSE,20);均线120:=MA(CLOSE,120);牛熊线:=MA(CLOSE,250);VA:=CROSS(MA(CLOSE,19),MA(CLOSE,120));VB:=(MA(CLOSE,20) > MA(CLOSE,120));VC:=CROSS(MA(CLOSE,120),MA(CLOSE,89));VD:=(MA(CLOSE,20) < MA(CLOSE,120));VE:=CROSS(MA(CLOSE,20),MA(CLOSE,250));VF:=(MA(CLOSE,20) > MA(CLOSE,250));VG:=CROSS(MA(CLOSE,250),MA(CLOSE,20));{DRAWTEXT(FILTER(((((((((OPEN > 均线120) AND (均线20 < 均线120)) AND (LOW <= 均线120)) AND ((均线20 - REF(均线20,1)) > 0)) AND (CLOSE > OPEN)) AND ((均线120 - REF(均线120,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE >= 均线120)),15),LOW,'★120跳马'),COLOR0089E0;DRAWTEXT((((VA AND ((均线120 - REF(均线120,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE > OPEN)),LOW,'★宝马望月'),COLORFFFFFF;}DRAWTEXT((((((均线 - REF(均线,1)) > 0) AND CROSS(均线20,均线120)) AND (LOW <= 均线120)) AND (CLOSE >= 均线120)),LOW,'三线开花'),COLORFFFFFF; 短期底部2:LLV(HIGH,30),LINETHICK2,COLOR0000FF;上轨:(SMA(HIGH,21,2) * 1.092),POINTDOT,COLORFFFFFF;中轨道:(SMA(HIGH,21,2) * 1.017),POINTDOT,COLORFFFFFF;DRAWTEXT(FILTER(((((LOW < 下轨道) AND (CLOSE > MA(CLOSE,15))) AND (CLOSE > 短期底部2)) AND (HIGH < 压力位)),10),LOW,'★短线5%'),COLOR9DC522;DRAWTEXT(((((((HIGH >= 均线120) AND (CLOSE < REF(CLOSE,1))) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上)) AND (CLOSE < 上)) AND (CLOSE < 均线120)),(HIGH + 0.05),'减仓'),COLOR00FF00;DRAWTEXT(FILTER(((HIGH > 阻挡) AND (CLOSE < 阻挡)),5),(HIGH + 0.15),'←逃命');DRAWTEXT(((VE > VG) AND (HIGH < 阻挡)),(LOW - 0.65),'★黑马短线'),COLOR00FFFF;DRAWTEXT(FILTER(((((((((((OPEN < X2) AND (CLOSE > X2)) AND ((支撑 - REF(支撑,1)) > 0)) AND ((支撑 - REF(支撑,1)) > 0)) AND (CLOSE < 阻挡)) AND ((均线 - REF(均线,1)) > 0)) AND (CLOSE >= 均线)) AND (HIGH < 阻挡)) AND ((AA10 - REF(AA10,1)) > 0)) AND ((阻挡 - REF(阻挡,2)) > 0)),11),(LOW - 0.11),'★快马加鞭'),COLOR0000FF;DRAWTEXT(FILTER(((((((OPEN < X2) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE > X2)) AND ((X2 - REF(X2,1)) > 0)) AND (HIGH < 阻挡)) AND ((CLOSE -REF(CLOSE,1)) > 0.35)),4),(LOW - 0.05),'★黑马狂奔'),COLORD18073; DRAWTEXT((((((((CROSS(支撑,均线) AND (HIGH < 中轨道)) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= X2)) AND (CLOSE >= X2)) AND CROSS(支撑,X2)),LOW,'★黑马起步'),COLOR00FFFF; DRAWTEXT(CROSS(X4,X5),HIGH,'●减仓'),COLOR00B4FF;DRAWTEXT(X9,(HIGH * 1.03),'出货'),COLOR9000F5;DRAWTEXT((((黑马起步 > 0) AND (LOW <= X2)) AND ((均线 - REF(均线,1)) > 0)),(LOW - 0.11),'★黑马起步'),COLOR00FF00;DRAWTEXT((逃遁 > 0),(HIGH * 1.14),'●逃命'),COLOR0000FF;RDV:=SMA(LOW,8,1);DRAWTEXT(((((CROSS(K,D) AND (CLOSE >= OPEN)) AND ((X2 - REF(X2,1)) > 0)) AND ((RDV - REF(RDV,1)) > 0)) AND (K <= 33)),(LOW - 0.08),'★黑马初现'),COLOR8500DE;DRAWTEXT(FILTER((((((((LOW <= 短期底部) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < 牛熊线)) AND (HIGH < 阻挡)) AND ((X2 - REF(X2,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH >= X3)),5),(LOW - 0.03),'←黑马筑底'),COLOR85B256;RCK:=(SMA(LOW,21,2) * 0.95);趋势线:=SMA(LOW,5,1);大胆买入:DRAWTEXT(((CROSS(趋势线,RCK) AND (LOW <= X2)) AND ((X2 -REF(X2,1)) > 0)),LOW,'←★大胆买入'),COLORE50000;B1:=(((HIGH + LOW) + CLOSE) / 3);B6:=HHV(B1,(4 * 15));B7:=LLV(B1,(4 * 15));B8:=(B6 - B7);飞龙顶底线:=(MA(((B1 - B7) / B8),2) * 80);DRAWTEXT(FILTER(((((((飞龙顶底线 <= 1) AND (WINNER(CLOSE) < 0.02)) AND (HIGH < 趋势线)) AND (CLOSE > OPEN)) AND (LOW <= 短期底部)) AND (CLOSE > 短期底部)),8),(LOW - 0.02),'←黑马寻底'),COLORE7DD1F;DRAWTEXT(FILTER((((((((LOW <= 短期底部) AND (WINNER(CLOSE) < 0.015)) AND ((OPEN / CLOSE) > 0.99)) AND ((J - REF(J,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH < 支撑位)) AND (CLOSE > 短期底部)),25),(LOW - 0.09),'←开始建仓'),COLOR00FFFF;DRAWTEXT(FILTER((((((((LOW <= 均线30) AND ((AA10 - REF(AA10,1)) > 0)) AND ((均线 - REF(均线20,1)) > 0)) AND ((趋势线 - REF(趋势线,1)) > 0)) AND (CLOSE >= 均线30)) AND (WINNER(CLOSE) < 0.15)) AND ((CLOSE / OPEN) > 1.01)),3),LOW,'★天马奔月'),COLOR76B0FC;DRAWTEXT((((((OPEN <= 均线) AND ((均线30 - REF(均线30,1)) > 0)) AND (CLOSE > 均线89)) AND (BB10 > 1)) AND ((CLOSE / OPEN) > 1.04)),LOW,'★天马过桥'),COLORCC99FF;【通达信】黑马主图(下轨道、支撑位、压力位、黑马趋势)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】抓黑马顶底(主力、散户、黑马线、趋势线)
【通达信】抓黑马顶底(主力、散户、黑马线、趋势线)-指标公式源码A0:=HHV(H,9)-LLV(L,9);A1:=HHV(H,9)-C;A2:=C-LLV(L,9);A3:= A1/A0*100-70;A4:=(C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100;A5:=(2*C+H+L)/4;A6:=SMA(A2/A0*100,3,1);A7:=LLV(L,34);A8:=SMA(A6,3,1)-SMA(A3,9,1);A9:=IF(A8>100,A8-100,0);AA:=HHV(H,34);AB:=A9*2;AC:=EMA((A5-A7) / (AA-A7)*100,13);AD:= EMA(0.667*REF(AC,1)+0.333*AC,2);AE:=SMA(A4,20,1);AF:=SMA(AB,2,1)-AB;B0:=EMA(0.667*REF(AC,1)+0.333*AC,2)-AC;B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70;B2:=SMA(B1,9,1)+100;B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;B4:=SMA(B3,3,1);B5:=SMA(B4,3,1)+100;B6:=B5-B2;B7:=IF(B6>60,B6-60,0);STICKLINE(REF(B7,1)<B7,B7,REF(B7,1),5,0),COLORRED;STICKLINE(REF(B7,1)>B7,B7,REF(B7,1),5,0),COLORFFFF00;主力:EMA((CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2),LINETHICK2,COLORRED; 散户:EMA((CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7),LINETHICK2,COLORWHITE ;DRAWTEXT(CROSS(主力,散户) AND 主力<-10,-20,'升'),COLORYELLOW;DRAWICON(CROSS(主力,散户) AND 主力<-10 AND 散户>REF(散户,1)OR CROSS(主力,散户) AND 散户<-35 ,-15,1);加速探底:IF((MA(C,5)-C)/C>0.04 AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,40,0.85),COLORYELLOW;机会来临1:REF(IF(REF(C,1)/C>0.04 AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,40,0),1),COLOR9999FF;A11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV( L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);黑马线:=EMA(A11,5);A21:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;A31:=EMA(C,5);A41:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:=(MA(3*SMA(A41,6,1)-2*SMA(SMA(A41,5,1),5,1),2));A51:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A21<0,7),黑马线,'跑'),COLOR00FF00;DRAWTEXT(CROSS(A11,黑马线)AND 黑马线<A51,黑马线,'黑马'),COLORYELLOW; DRAWTEXT(CROSS(黑马线,A51)AND 趋势线<80,黑马线,'追涨'),COLOR688EC1; DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马'),COLORFFFF00;底部:=(A21<-10 AND A21>REF(A21,1))*25;DRAWICON(底部 AND A31>REF(A31,1),25,1);机会来临2:REF(IF((MA(C,5)-C)/C>0.04 AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,65,0),1),COLORF00FF0;【通达信】抓黑马顶底(主力、散户、黑马线、趋势线)-指标公式效果图(文档来源:若水财经社区)。
通达信波段小黑马指标公式
通达信波段小黑马指标公式{使用说明:当蓝柱变成白柱,同时紫色线向上,出现宝塔就可以关注买进持有,当股价到高位白柱变蓝柱,并且紫色线向下调头,即可止盈。
}本文指标含有选股公式如下:波段小黑马之大黑马选股指标公式波段小黑马之小黑马选股指标公式N:=10;VA6:=(2*CLOSE+HIGH+LOW)/4;VA8:=LLV(LOW,34);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);生命线:EMA(VARD,N), COLORFF00FF,LINETHICK2;VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=((VAR2)/(VAR1))*(100)-70;VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF((VAR9>100),VAR9-100,0);VAR11:=HHV(HIGH,34);B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);B2:=EMA(B1,5);STICKLINE(B1-B2>0,B1,B2,4,0),COLORFFFFFF;STICKLINE(B1-B2<0,B1,B2,4,0),COLORFFFF52;SS1:=(LOW+HIGH+CLOSE*2)/4;SS2:= MA(SS1,4);SS3:=HHV(SS2,10);SS4:=MA(SS3,3);SS5:=1.25*SS4-0.25*SS3;XKKJ:=IF(SS5>SS3,SS3,SS5);FF1:=LLV(SS2,10);FF2:=MA(FF1,3);FF3:=1.25*FF2-0.25*FF1;DKKJ:=IF(FF3<FF1,FF1,FF3);MA13:=MA(C,13);ZDHM:=CROSS(C,DKKJ) AND CROSS(C,MA13) AND CROSS(C,XKKJ);ZHM:=CROSS(C,MA13) AND CROSS(C,XKKJ);大黑马:IF(ZDHM OR ZHM,50,0),COLORYELLOW,POINTDOT;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF( A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*R EF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);小黑马:IF(CROSS(D1,K1),45,0),COLORFFCC66,POINTDOT;STICKLINE(大黑马>0,0,大黑马*1.1,1,0),COLORWHITE;STICKLINE(大黑马>0 AND 大黑马<52,30,大黑马,1,0),COLORRED;STICKLINE(大黑马>0,0,大黑马*0.8,4,0),COLORRED;STICKLINE(大黑马>0,0,大黑马*0.4,8,0),COLORRED;STICKLINE(大黑马>0,0,大黑马*0.2,10,0),COLORYELLOW;STICKLINE(大黑马>0,0,大黑马*0.1,10,0),COLORFFCC66;STICKLINE(小黑马>0,0,小黑马*1.1,1,0),COLORWHITE;STICKLINE(小黑马>0 AND 小黑马<52,30,小黑马,1,0),COLORFFCC66;STICKLINE(小黑马>0,0,小黑马*0.8,4,0),COLORFFCC66;STICKLINE(小黑马>0,0,小黑马*0.4,8,0),COLORFFCC66;STICKLINE(小黑马>0,0,小黑马*0.2,10,0),COLORFF00FF;。
通达信中长线黑马指标公式源码
通达信中长线黑马指标公式源码通达信中的长线黑马指标是一种用于寻找潜在上涨股票的指标,通过分析股票的长期趋势和波动情况来筛选出有潜力的个股。
下面是该指标的公式源码:```参数:N:长线天数M:短线天数变量:HIGH1:前N天最高价LOW1:前N天最低价HIGH2:前M天最高价LOW2:前M天最低价计算:HIGH1:=HHV(HIGH,N);LOW1:=LLV(LOW,N);HIGH2:=HHV(HIGH,M);LOW2:=LLV(LOW,M);IFHIGH=LOWTHENLONGDAY:=0ELSELONGDAY:=FLOOR(((CLOSE-LOW2)/(HIGH2-LOW2)-1)*100)*(N-M)/N;IFHIGH1=LOW1THENSHORTDAY:=0ELSESHORTDAY:=FLOOR(((CLOSE-LOW1)/(HIGH1-LOW1)-1)*100)*M/N;LONGHANDLE:=IF(LONGDAY>0,LONGDAY,0);SHORTHANDLE:=IF(SHORTDAY>0,SHORTDAY,0);LONGMA:MA(LONGHANDLE,N);SHORTMA:MA(SHORTHANDLE,M);SIGNAL:=IF(LONGMA>SHORTMA,1,IF(LONGMA<SHORTMA,-1,0));DRAWLINE(LONGHANDLE,'LONGHANDLE',RED);DRAWLINE(SHORTHANDLE,'SHORTHANDLE',BLUE);```这段代码首先定义了两个参数:N为长线天数,M为短线天数。
接着定义了四个变量:HIGH1、LOW1、HIGH2和LOW2,分别表示前N天最高价、前N天最低价、前M天最高价和前M天最低价。
然后,通过调用HHV函数和LLV函数分别计算了最高价和最低价的历史最高值和最低值。
【股票指标公式】-【通达信】黑马通道(副图)
【通达信】黑马通道(副图)-指标公式源码短线止损线:=EMA(CLOSE,17);A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A, 11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A, 18)+REF(A,20))/210;中线止损线:=EMA(X,13);上涨天数:=BARSLAST(短线止损线<中线止损线);下跌天数:=BARSLAST(短线止损线>中线止损线);KKA:=EMA(C,5);KKB:=EMA(KKA,8);KKC:=EMA(KKB,13);长线止损线:=EMA(KKC,50);AAA:=(3*C+L+O+H)/6;C2:=EMA(AAA,6);C3:=EMA(AAA,5);SHORT:=12;LONG:=26;MID:=9;DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,MID);MACD:=(DIF-DEA)*2;N:=9;M1:=3;M2:=3;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1);D:=SMA(K,M2,1);J:=3*K-2*D;KAAA:=J<D AND DIF>DEA;KDDD:=C/中线止损线<1.2;KCCC:=上涨天数<20;KBBB:=IF(REF(J,3)>REF(D,3) AND KAAA AND KDDD AND KCCC,30,0);N1:=5;N4:=34;CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));饱和度:=IF(SAT>1,1,SAT)*100;持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*S MA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 支撑:=LLV(持股,3);中期线:=MA(持股,12);VAR1:=1;VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);短期线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30;中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));KDD:=REF(中期,1)<1 AND 中期>1;AA:=C/REF(C,1)>1.09;KMMM:=REF(中期,1)<1 AND 中期>1;KDDDD:=饱和度>=97 AND CQ>90 AND 中期线<50;KEEEE:=C/O>1.015;KFFFF:=BARSLAST(CROSS(短期线,中期线))<10;KAAX:=KDDDD AND KEEEE AND KFFFF;KAAY:=IF(REF(KAAX,1) OR REF(KAAX,2),0,1);KAAB:=KAAX AND KAAY;W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));KL:=饱和度>=97 AND CQ>90;KK:=W4 AND COUNT(W4,5)=1;KKKK:=KL OR KK;KKAA:=IF(AA,0,1);KKBB:=IF(C/中线止损线>1.15,1,0);KMA:=KKKK AND KKAA;KMB:=REF(KKKK,1) AND KKAA AND REF(AA,1);KMC:=KMA OR KMB;KYA:=CROSS(C2,C3);KYB:=上涨天数<30;KYD:=EXIST(KAAB,20);KYC:=KYA AND KYB AND KYD;KAAA1:=EXIST(KDD,3);KBBB1:=C/REF(C,1)>1+0.01*9;KAAA2:=支撑>中期线 AND 持股=支撑;KBBB2:=CROSS(C2,C3);KCCC2:=EXIST(C/REF(C,1)>1+0.01*9,10);KDDD2:=BARSLAST(中期线>短期线)<10;KAAA3:=REF(C,1)<REF(中线止损线,1) AND C>中线止损线; KBBB3:=C/REF(C,1)>1.09;KCCC3:=中线止损线/长线止损线<1.1;KA1:=KAAA1 AND KBBB1;KA2:=KAAA2 AND KBBB2 AND KCCC2;KA3:=KAAA3 AND KBBB3 AND KCCC3;抄底先锋:IF(KMMM AND 下跌天数>下跌 AND 中线止损线/C>1+0.01*离线,70,0),COLORYELLOW,LINETHICK2;抄底先锋A:=KMMM AND 下跌天数>下跌 AND 中线止损线/C>1+0.01*离线;行情线:=EMA(A,1);黑马启动:IF(CROSS(行情线,中线止损线) AND C/REF(C,1)>1+0.01*涨幅 AND 中线止损线<长线止损线,70,0),COLORRED,LINETHICK2;黑马启动A:=CROSS(行情线,中线止损线) AND C/REF(C,1)>1+0.01*涨幅 AND 中线止损线<长线止损线;AAAA:=C/REF(C,1)>1+0.01*涨幅1;资金3:=支撑>中期线 AND 持股=支撑 AND REF(支撑,2)<REF(持股,2);资金4:=J<D AND DIF>DEA AND REF(J,1)>REF(D,1),COLORYELLOW;资金5:=EXIST(AAAA,10);资金6:=BARSLAST(短期线<中期线)<力道;短线快枪:IF(资金3 AND 资金4 AND 资金5 AND 资金6 AND KCCC3 AND 上涨天数<20 AND C>中线止损线,70,0),COLORMAGENTA,LINETHICK2;短线快枪A:=资金3 AND 资金4 AND 资金5 AND 资金6 AND KCCC3 AND 上涨天数<20 AND C>中线止损线;{}DRAWTEXT(抄底先锋A,80,'抄底'),COLORRED;DRAWTEXT(抄底先锋A,60,'先锋'),COLORRED;DRAWTEXT(抄底先锋A,40,'软件'),COLORWHITE;DRAWTEXT(抄底先锋A,20,'初选'),COLORWHITE;DRAWTEXT(黑马启动A,80,'黑马'),COLORYELLOW;DRAWTEXT(黑马启动A,60,'启动'),COLORYELLOW;DRAWTEXT(黑马启动A,40,'软件'),COLORWHITE;DRAWTEXT(黑马启动A,20,'初选'),COLORWHITE;DRAWTEXT(短线快枪A,80,'短线'),COLORYELLOW;DRAWTEXT(短线快枪A,60,'快枪'),COLORYELLOW;DRAWTEXT(短线快枪A,40,'软件'),COLORWHITE;DRAWTEXT(短线快枪A,20,'初选'),COLORWHITE;STICKLINE(KMMM,0,20,2,0),COLORWHITE;STICKLINE(KMC,80,100,2,0),COLORGREEN;STICKLINE(KMC AND 上涨天数>30,80,100,2,0),COLORRED;短线反弹:KMMM,STICK,COLORWHITE;短线风险:KMC,STICK,COLORGREEN;【通达信】黑马通道(副图)-指标公式效果图(文档来源:好股票网)。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】黑马营双核(做空、做多、趋势线)-指标公式源码V1:=(C*2+H+L)/4*10;V2:=EMA(V1,11)-EMA(V1,30);V3:=EMA(V2,5);V4:=2*(V2-V3)*4;做空:= IF(V4<=0,V4,0),COLORGREEN;做多:= IF(V4>=0,V4,0);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,4)*0.99;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),70,100,5,0),COLORCC9900;AA:=PBX.PBX1(3)<PBX.PBX2(5) AND PBX.PBX2(5)<PBX.PBX3(7) ANDPBX.PBX3(7)<PBX.PBX4(9);DRAWTEXT (AA,65,'空'),COLORCC9900;抄底: STICKLINE((DMI.PDI(14,6)<5 ANDDMI.ADX(14,6)>70),0,50,4,0),COLORYELLOW;DRAWTEXT (抄底,55,'抄底'),COLORYELLOW;EEE:=(((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);头部: 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)),70,100,4,0),COLORGRAY;DRAWTEXT(头部>0,62,'头部'),COLORLIGRAY;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) ANDPBX.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),0,25,5,0),COLORWHITE;DRAWTEXT (FF,35,'持'),COLORWHITE;当日成本:=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) ANDMA(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) ORREF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),6) ORREF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),4) ORREF((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)) ANDFILTER((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) ORREF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),4) ORREF((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),65,100,4,0),COLORGREEN;DRAWTEXT (清仓,60,'反弹清仓'),COLORGREEN;杀入: 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) ANDDMI.MDI>DMI.PDI),0,50,4,0),COLORGREEN;DRAWTEXT (杀入,55,'杀入'),COLORGREEN;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;BIAS1:=(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100;BIAS2:=(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100;BIAS3:=(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100;DRAWTEXT ((BIAS1<BIAS2 AND BIAS2<BIAS3 AND BIAS1>2 AND RSI1>60 AND RSI2>50 AND RSI3>50 AND RSI1>RSI2 AND RSI2>RSI3 AND CYS>3 AND CYR>1),35,'持'),COLORRED;DRAWTEXT ((BIAS1>2 AND RSI1>60 AND RSI2>50 AND RSI3>50 AND RSI1>RSI2 AND RSI2>RSI3 AND REF(RSI1,1)<REF(RSI2,1) AND REF(RSI2,1)<REF(RSI3,1) AND CYR>1 AND CLOSE/REF(CLOSE,1)>1.03),35,'持'),COLORYELLOW;AA10:=MA(C,9);BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;STICKLINE(BB10>=1 AND AA10>=REF(AA10,1), 0,10,5,0),COLORRED;VA1:=LLV(LOW,34);VA2:=HHV(HIGH,30);VA3:=REF(CLOSE,1);VA4:=EMA((CLOSE-VA1)/(VA2-VA1),3)*100;主力:=SMA(MAX(CLOSE-VA3,0),7,1)/SMA(ABS(CLOSE-VA3),7,1)*100,COLORRED; 散户:=VA4;VAR5:=(VA4-LLV(VA4,21))/(HHV(VA4,21)-LLV(VA4,21))*100;VY:=SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,5,1);L2:=SMA(0.618*REF(VY,1)+0.382*VY,3,1), COLORFF9900;L3:=MA(L2,5);超买超卖:MA(L2,5),LINETHICK3;IF(L2>L3,L3,DRAWNULL),COLORRED,LINETHICK3;IF(L2<=L3,L3,DRAWNULL),COLORGREEN,LINETHICK3;【通达信】黑马营双核(做空、做多、趋势线)-指标公式效果图(文档来源:若水财经社区)。