黑马线 指标源码
大智慧追涨黑马指标公式源码编程思路破译
大智慧追涨黑马指标公式源码编程思路破译编程思路破译输出Y1:(收盘价的1日简单移动平均+收盘价的3日简单移动平均+收盘价的5日简单移动平均)/3的1日指数移动平均-(收盘价的2日简单移动平均+收盘价的4日简单移动平均+收盘价的6日简单移动平均)/3的2日指数移动平均和0的较大值*100的3日指数移动平均,STICK,COLOR000999输出Y2:当满足条件Y1<1日前的Y1时,在0和Y1位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLORFF0000G1赋值:(2*收盘价+最高价+最低价)/4G2赋值:34日内最低价的最低值G3赋值:34日内最高价的最高值G4赋值:(G1-G2)/(G3-G2)*100的8日指数移动平均G5赋值:G4的5日指数移动平均当满足条件G4-G5>0时,在G4和G5位置之间画柱状线,宽度为6,1不为0则画空心柱.,画红色当满足条件G4-G5<0时,在G4和G5位置之间画柱状线,宽度为6,1不为0则画空心柱.,COLORF0F000C1赋值:收盘价-1日前的收盘价C2赋值:如果C1>0,返回C1,否则返回0C3赋值:如果C1<0,返回-C1,否则返回0C4赋值:C2的7日指数移动平均C5赋值:C3的7日指数移动平均R7赋值:C4/(C4+C5)*100输出R2:收盘价-1日前的收盘价和0的较大值的2日[1日权重]移动平均/收盘价-1日前的收盘价的绝对值的2日[1日权重]移动平均*100,画绿色V55赋值:(收盘价-55日内最低价的最低值)/(55日内最高价的最高值-55日内最低价的最低值)*100输出K55:3*V55的5日[1日权重]移动平均-2*V55的5日[1日权重]移动平均,COLOR9999FFM赋值:K55的5日指数移动平均V1赋值:(M-1日前的M)/1日前的M*100V21赋值:(收盘价-21日内最低价的最低值)/(21日内最高价的最高值-21日内最低价的最低值)*100趋赋值:3*V21的6日[1日权重]移动平均-2*V21的5日[1日权重]移动平均的5日[1日权重]移动平均的2日简单移动平均W60赋值:(60日内最高价的最高值-收盘价)/(60日内最高价的最高值-60日内最低价的最低值)*100V21A赋值:(21日内最低价的最低值-(最高价+最低价)/2)/(21日内最高价的最高值-21日内最低价的最低值)*-100的2日指数移动平均输出K21A:5*V21A的5日[1日权重]移动平均-3*V21A的4日[1日权重]移动平均的3日[1日权重]移动平均-V21A的4日[1日权重]移动平均的3日[1日权重]移动平均的2日[1日权重]移动平均,画黄色V18赋值:(收盘价-18日内最低价的最低值)/(18日内最高价的最高值-18日内最低价的最低值)*100输出长:4*V18的20日[1日权重]移动平均-3*V18的20日[1日权重]移动平均的3.2日[1日权重]移动平均,COLORFF00FF当满足条件1日前的K55>91ANDCROSS(1日前的K55,K55)的7日过滤时,在90位置书写文字,画白色输出黑马1:如果V55上穿MANDM<W60,返回1,否则返回0当满足条件黑马1=1时,在20位置书写文字,COLORFF99FF输出追涨1:如果M上穿W60AND趋<80,返回1,否则返回0当满足条件追涨1=1时,在50位置书写文字,画黄色输出大黑马1:如果趋上穿0ANDM<40,返回1,否则返回0当满足条件大黑马1=1时,在55位置书写文字,COLORFF00FF输出底部80:如果V1<-10ANDV1>1日前的V1,返回80,否则返回100,画红色当满足条件底部80=80时,在77位置书写文字,画红色A1赋值:如果(收盘价的5日简单移动平均-收盘价)/收盘价>0.04AND(收盘价的10日简单移动平均-收盘价的5日简单移动平均)/收盘价的5日简单移动平均>0.04,返回90,否则返回100 输出机会90:如果A1上穿1日前的A1+1,返回90,否则返回100,COLORFF99FF当满足条件机会90=90时,在87位置书写文字,COLORFF99FF 输出升5:如果R7上穿1日前的R7-5ANDREF(R7,1)<17,返回5,否则返回0,画黄色当满足条件升5=5时,在14位置书写文字,画黄色输出K21:如果(7上穿K21AANDK55<20)OR(10上穿K21AANDK55>34.5),返回21,否则返回0,COLORFF88FF,STICK B1赋值:"CCI"(14)<-120B2赋值:(收盘价-收盘价的5日简单移动平均)/收盘价的1日简单移动平均*100<1B3赋值:(收盘价-收盘价的13日简单移动平均)/收盘价的13日简单移动平均*100<-10B4赋值:(收盘价-收盘价的34日简单移动平均)/收盘价的34日简单移动平均*100<-15B5赋值:如果B1ANDB2ANDB3ANDB4ANDR7<18,返回20,否则返回5输出低20:如果1日前的B5-1上穿B5,返回20,否则返回0,COLOR0000FF当满足条件低20=20时,在25位置书写文字,COLOR0000FF输出短1:如果7.3上穿R2,返回1,否则返回0输出进1:如果R2上穿1日前的R2-5ANDREF(R2,1)<20,返回1,否则返回0当满足条件短1=1时,在5位置书写文字,COLOR00FF00当满足条件进1=1时,在5位置书写文字,画白色当满足条件1日前的R7+4上穿R7ANDK21A>83ANDREF(R7,1)>83.5时,在95位置书写文字,COLOR00FF0020,COLORFF9999,POINTDOT50,画黄色,POINTDOT80,COLOR00FF00,POINTDOT程序源码Y1:EMA(MAX(EMA((MA(C,1)+MA(C,3)+MA(C,5))/3,1)-EMA((MA(C,2)+MA(C,4)+MA(C,6))/3,2),0)*100,3),STICK,COLOR0 00999;Y2:STICKLINE(Y1<REF(Y1,1),0,Y1,1,0),COLORFF0000;G1:=(2*C+H+L)/4;G2:=LLV(L,34);G3:=HHV(H,34);G4:=EMA((G1-G2)/(G3-G2)*100,8);G5:=EMA(G4,5);STICKLINE(G4-G5>0,G4,G5,6,1),COLORRED;STICKLINE(G4-G5<0,G4,G5,6,1),COLORF0F000;C1:=C-REF(C,1);C2:=IF(C1>0,C1,0);C3:=IF(C1<0,-C1,0);C4:=EMA(C2,7);C5:=EMA(C3,7);R7:=C4/(C4+C5)*100;{,COLORGRAY}R2:SMA(MAX(C-REF(C,1),0),2,1)/SMA(ABS(C-REF(C,1)),2,1)*100,COLORGREEN;V55:=(C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100;K55:3*SMA(V55,5,1)-2*SMA(V55,5,1),COLOR9999FF;M:=EMA(K55,5);V1:=(M-REF(M,1))/REF(M,1)*100;V21:=(C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100;趋:=MA(3*SMA(V21,6,1)-2*SMA(SMA(V21,5,1),5,1),2);W60:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;V21A:=EMA((LLV(L,21)-(H+L)/2)/(HHV(H,21)-LLV(L,21))*-100,2);K21A:5*SMA(V21A,5,1)-3*SMA(SMA(V21A,4,1),3,1)-SMA(SMA(SMA(V21A,4,1),3,1),2,1),COLORYELLOW;V18:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100;长:4*SMA(V18,20,1)-3*SMA(SMA(V18,20,1),3.2,1),COLORFF00FF;DRAWTEXT(FILTER(REF(K55,1)>91 AND CROSS(REF(K55,1),K55),7),90,'抛'),COLORWHITE;黑马1:IF(CROSS(V55,M) AND M<W60,1,0);DRAWTEXT(黑马1=1,20,'黑马'),COLORFF99FF;追涨1:IF(CROSS(M,W60) AND 趋<80,1,0);DRAWTEXT(追涨1=1,50,'追涨'),COLORYELLOW;大黑马1:IF(CROSS(趋,0) AND M<40,1,0);DRAWTEXT(大黑马1=1,55,'大黑马'),COLORFF00FF;底部80:IF(V1<-10 AND V1>REF(V1,1),80,100),COLORRED;DRAWTEXT(底部80=80,77,'底部'),COLORRED;A1:=IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,90,100);机会90:IF(CROSS(A1,REF(A1,1)+1),90,100),COLORFF99FF;DRAWTEXT(机会90=90,87,'机会'),COLORFF99FF;升5:IF(CROSS(R7,REF(R7,1)-5) AND REF(R7,1)<17,5,0),COLORYELLOW;DRAWTEXT(升5=5,14,'升'),COLORYELLOW;K21:IF((CROSS(7,K21A) AND K55<20) OR (CROSS(10,K21A) AND K55>34.5),21,0),COLORFF88FF, STICK;B1:="CCI"(14)<-120;B2:=(C-MA(C,5))/MA(C,1)*100<1;B3:=(C-MA(C,13))/MA(C,13)*100<-10;B4:=(C-MA(C,34))/MA(C,34)*100<-15;B5:=IF(B1 AND B2 AND B3 AND B4 AND R7<18,20,5);低20:IF(CROSS(REF(B5,1)-1,B5),20,0),COLOR0000FF;DRAWTEXT(低20=20,25,'低'),COLOR0000FF;短1:IF(CROSS(7.3,R2),1,0);进1:IF(CROSS(R2,REF(R2,1)-5) AND REF(R2,1)<20,1,0);DRAWTEXT(短1=1,5,'*'),COLOR00FF00;DRAWTEXT(进1=1,5,'*'),COLORWHITE;DRAWTEXT(CROSS(REF(R7,1)+4,R7) AND K21A>83 AND REF(R7,1)>83.5,95,'跌'),COLOR00FF00;20,COLORFF9999,POINTDOT;50,COLORYELLOW,POINTDOT;80,COLOR00FF00,POINTDOT;。
通达信黑马精准线主图指标通达信指标公式源码
通达信黑马精准线主图指标{黑马精准线参数顶底开关0 1 0 点位差0 1 0 指定点0 1000 0} DRAWGBK(O>0,RGB(33,47,58),RGB(0,0,0),0,'02',0);{标缺口}LL:=REF(L,1);HH:=REF(H,1);上跳:=L>HH;下跳:=H<LL; STICKLINE(L>REF(H,1),L,REF(H,1),3.1,-1),COLORRED; STICKLINE(REF(L,1)>H,REF(L,1),H,3.1,-1),COLORGREEN;{灰色}STICKLINE(O>=C,H,L,0,0),COLOR909090;STICKLINE(O>=C,C,O,3.1,0),COLOR606060;STICKLINE(O>=C,C,O,2.1,0),COLOR707070;STICKLINE(O>=C,C,O,1.2,0),COLOR808080;STICKLINE(O>=C,C,O,0.2,0),COLOR909090;STICKLINE(O<=C,H,L,0,0),COLOR666B6F;STICKLINE(C>O,C,O,3.1,1),COLOR666B6F;V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);{金黄色}STICKLINE(V2V,H,L,0,0),COLORYELLOW;STICKLINE(V2V,O,C,3.1,0),COLOR0033FF;STICKLINE(V2V,O,C,2.1,0),COLOR0077FF;STICKLINE(V2V,O,C,1.1,0),COLOR00BBFF;STICKLINE(V2V,O,C,0.1,0),COLOR00FFFF;{涨停粉}ZT:=C/REF(C,1)>1.097;ZT数:COUNT(ZT,BARSSINCE(ZT)),NODRAW;{涨停红色}ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF>9.5,C,O,3.1,0),COLOR0000CC;STICKLINE(ZDF>9.5,C,O,2.1,0),COLOR0000DD;STICKLINE(ZDF>9.5,C,O,1.2,0),COLOR0000EE;STICKLINE(ZDF>9.5,C,O,0.2,0),COLOR0000FF;STICKLINE(ZDF>9.5,H,L,0,0),COLOR0000FF;{跌停绿色}STICKLINE(ZDF<-9.9,O,C,3.1,0),COLOR66CC66;STICKLINE(ZDF<-9.9,O,C,2.1,0),COLOR77DD77;STICKLINE(ZDF<-9.9,O,C,1.2,0),COLOR88EE88;STICKLINE(ZDF<-9.9,O,C,0.2,0),COLOR99FF99;STICKLINE(ZDF<-9.5,H,L,0,0),COLOR99FF99;均价:=AMO/VOL/100;假阴真阳:=C<O AND C>=REF(MIN(C,O),1) AND 均价>REF(均价,1); {蓝}DT:=假阴真阳;STICKLINE(DT,H,L,0,0),COLORFFAA00;STICKLINE(DT,O,C,3,0),COLORFF3300;STICKLINE(DT,O,C,2,0),COLORFF7700;STICKLINE(DT,O,C,1,0),COLORFFAA00;STICKLINE(DT,O,C,0.1,0),COLORFFFF00;YX:=REF(O,BARSLAST(假阴真阳));假阴实顶:YX,COLORFF7700,NODRAW;STICKLINE(V,YX,YX,1,0),COLORFF7700;L0:=点位差/100;前极点精准线:IF(顶底开关=0,CONST(REF(L,指定点)),CONST(REF(H,指定点))),COLOR178448;DRAWICON(ABS(L-前极点精准线)<=L0,前极点精准线*0.99,38); DRAWICON(ABS(H-前极点精准线)<=L0,前极点精准线*1.01,39);{H极点精准线:CONST(REF(H,指定点)),COLOR7777FF;DRAWICON(ABS(H极点精准线-H)<=L0,H极点精准线*1.01,35); DRAWICON(ABS(H极点精准线-L)<=L0,H极点精准线*0.99,34);}{极点精准线:CONST(L),COLOR0077FF;DRAWICON(ABS(L-极点精准线)<=L0,极点精准线*0.99,1); DRAWICON(ABS(H-极点精准线)<=L0,极点精准线*1.01,2);同向极点精准数:COUNT(ABS(L-极点精准线)<=L0,60)-1,COLOR0077FF,NODRAW;异向极点精准数:COUNT(ABS(H-极点精准线)<=L0,60),COLOR0077FF,NODRAW;XG:=同向极点精准数>0 AND 异向极点精准数>0;}{DIFF:=10*(EMA(CLOSE,12)-EMA(CLOSE,26));DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);量缩价涨:=C<REF(O,1) AND V<REF(V,1) AND MACD>REF(MACD,1) AND C>REF(C,1) AND REF(C<O,1) AND C>O;阴KDAY:=BARSLAST(量缩价涨)+1;STICKLINE(V,REF(O,阴KDAY),REF(O,阴KDAY),3.5,0),COLORMAGENTA; DRAWICON(CROSS(C,REF(O,阴KDAY)),L,1);}DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK);。
【股票指标公式下载】-【通达信】黑马信号(选股买点、黑马线、发现黑马)
【通达信】黑马信号(选股买点、黑马线、发现黑马)-指标公式源码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)*100;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) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(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) ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(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;【通达信】黑马信号(选股买点、黑马线、发现黑马)-指标公式效果图(文档来源:若水财经社区)。
通达信中长线黑马指标公式源码
通达信中长线黑马指标选股思路,股价前期天量成交后,股价一路下行,经过一段谷底后,缩量突破前期成交量密积期的最高点,说明前期有主力界入,后缩理突破,说明主力控盘力强,现在有拉升的空间。
批标不在好坏,主要是选股的思路,有思路就有指标N:=0;M:=60;TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60, IF(PERIOD=5,240,1)))));MTIME:=MOD(FROMOPEN,TOTAL);CTIME:=IF(MTIME<0.5,TOTAL,MTIME);VVOL:=IF(CURRBARSCOUNT=1,V*TOTAL/CTIME,V);VAR1:=VVOL/CAPITAL*100; {换手率}VAR2:=HHV(VAR1,0); {上市以来的最大换手率}VAR3:=VAR1/VAR2*100; {当前换手率与最大换手率的比值}VAR4:=(H-L)/L*100; {当日涨幅}VAR5:=BARSLAST(VAR3>N); {换手率达80以上至今日的交易天数}VAR6:=REF(HIGH,VAR5);{80以上换手率的最高价}VAR7:=COUNT(CLOSE<VAR6,VAR5);平均成本:=IF(VAR5=0,CLOSE,SUM(CLOSE*VVOL,VAR5)/SUM(VVOL,VAR5)); 进出:=(CLOSE-平均成本)/平均成本*IF((CLOSE-平均成本)/平均成本<1,1000,10);主力入场:=DRAWICON(进出=0,LOW,1);买入:=STICKLINE(CROSS(CLOSE,VAR6) AND VAR3<M ANDVAR7>VAR5*9/10,0,70,1,1);{中线趋势}MDAY:=BARSLAST(VAR3>60 AND VAR3<=70);HIGHM:=REF(HIGH,MDAY);COUNTM:=COUNT(CLOSE<HIGHM,MDAY);MEDIUMCOST:=IF(MDAY=0,CLOSE,SUM(CLOSE*VVOL,MDAY)/SUM(VVOL,MD AY));拉升资金:=(CLOSE-MEDIUMCOST)/MEDIUMCOST*IF((CLOSE-MEDIUMCOST)/MEDIU MCOST<1,1000,10);{LS:=MA(拉升资金,5);}中线买入:=STICKLINE(CROSS(CLOSE,HIGHM) AND VAR3<50 AND COUNTM>MDAY*9/10,0,50,1,1);{短线}SDAY:=BARSLAST(VAR3>40 AND VAR3<=50);HIGHS:=REF(HIGH,SDAY);COUNTS:=COUNT(CLOSE<HIGHS,SDAY);SHORTCOST:=SUM(CLOSE,SDAY)/SDAY;散户进出:=MA((CLOSE-SHORTCOST)/SHORTCOST*IF((CLOSE-SHORTCOST)/SHORT COST<1,1000,10),10);短线买入:=STICKLINE(CROSS(CLOSE,HIGHS) AND VAR3<30 AND COUNTS>SDAY*9/10,0,50,1,1);一剑封喉:=(CROSS(CLOSE,VAR6) AND VAR3<M AND VAR7>VAR5*9/10 AND 拉升资金>散户进出)OR (CROSS(CLOSE,HIGHM) AND VAR3<50 AND COUNTM>MDAY*9/10 AND 拉升资金>散户进出) ;IF(一剑封喉,50,0);。
通达信指标公式源码 黑马信号(选股买点、黑马线、发现黑马)
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;。
黑马决策线 通达信指标公式源码
A1:=1;A2:=(5);A3:=(((2*CLOSE)+HIGH)+LOW)/4;A4:=LLV(LOW,34);A5:=HHV(HIGH,34);A6:=EMA((((A3-A4)/(A5-A4))*100),13);A7:=(EMA(((0.667*(REF(A6,1)))+(0.333*A6)),2))*A1;决策线:(EMA(A7,A2))*A1,COLORRED;A8:=(HHV(HIGH,9))-(LLV(LOW,9));A9:=(HHV(HIGH,9))-CLOSE;A10:=CLOSE-(LLV(LOW,9));A11:=((A9/A8)*100)-70;A12:=((CLOSE-(LLV(LOW,60)))/((HHV(HIGH,60))-(LLV(LOW,60))))*100;A13:=SMA(((A10/A8)*100),3,1);A14:=(SMA(A13,3,1))-(SMA(A11,9,1));A15:=IF((A14>100),(A14-100),0);A16:=(EMA((((A3-A4)/(A5-A4))*100),8))*A1;A17:=(EMA(A16,5))*A1;STICKLINE(((A16-A17)>0),A16,A17,3,1),COLORFFAA18;STICKLINE(((A16-A17)<0),A16,A17,3,0),COLORGREEN;A18:=(EMA(CLOSE,2))*A1;A19:=(EMA((((SLOPE(CLOSE,21))*20)+CLOSE),42))*A1;A20:=(HHV((MA(HIGH,13)),13))*A1;A21:=(LLV((MA(HIGH,13)),1))*A1;A22:=(EMA(CLOSE,4))*A1;A23:=((((A18>=A19) AND (A21=A20)) AND (A18>A22)) AND (CLOSE>A21)) AND ((REF(A21,1))<(REF(A20,1)));A24:=BARSLAST(A23)+1;A25:=(LLV(LOW,A24))*1.3;A26:=(LLV(LOW,20))*1.418;A27:=(((((A18>=A19) AND (A21=A20)) AND ((CLOSE/(REF(CLOSE,1)))>=1.07)) AND (A24<=30)) AND (CLOSE<=A25)) AND (CLOSE<=A26);A28:=A27 AND (FILTER(A27,A24));{A29:=(STRFIND(STKNAME,'ST',1)) > 0;}A30:=((((((A18>=A19) AND (A21=A20)) AND ((CLOSE/(REF(CLOSE,1)))>=1.035)) AND (A24<=30)) AND (CLOSE<=A25)) AND (CLOSE<=A26)) ;A31:=A30 AND (FILTER(A30,20));DRAWICON((A28 OR A31),决策线,1);DRAWTEXT((A28 OR A31),决策线,'←黑马'),COLORRED;{选股}{A18:=(EMA(CLOSE,2));A19:=(EMA((((SLOPE(CLOSE,21))*20)+CLOSE),42));A20:=(HHV((MA(HIGH,13)),13));A21:=(LLV((MA(HIGH,13)),1));A22:=(EMA(CLOSE,4));A23:=((((A18>=A19) AND (A21=A20)) AND (A18>A22)) AND (CLOSE>A21)) AND ((REF(A21,1))<(REF(A20,1)));A24:=BARSLAST(A23)+1;A25:=(LLV(LOW,A24))*1.3;A26:=(LLV(LOW,20))*1.418;A27:=(((((A18>=A19) AND (A21=A20)) AND ((CLOSE/(REF(CLOSE,1)))>=1.07)) AND (A24<=30)) AND (CLOSE<=A25)) AND (CLOSE<=A26);A28:=A27 AND (FILTER(A27,A24));A30:=((((((A18>=A19) AND (A21=A20)) AND ((CLOSE/(REF(CLOSE,1)))>=1.035)) AND (A24<=30)) AND (CLOSE<=A25)) AND (CLOSE<=A26)) ;A31:=A30 AND (FILTER(A30,20));A28 OR A31;};。
黑马全息指标(源码)
黑马全息指标(源码)上:=(SMA(HIGH,13,2) *1.5);下轨道:=(SMA(LOW,13,2) * 0.3),POINTDOT,COLORFFFF00;阻挡:=(SMA(HIGH,13,2) * 1.5);RSV:=(((CLOSE - LLV(LOW,7)) / (HHV(HIGH,7) - LLV(LOW,7))) * 100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=((3 * K) - (2 * D));RSV12:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);K12:=SMA(RSV12,3,1);D12:=SMA(K12,3,1);J12:=((3 * K12) - (2 * D12));RSV24:=(((CLOSE - LLV(LOW,24)) / (HHV(HIGH,24) - LLV(LOW,24))) * 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)))),C OLORFF00FF;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)))));黑马趋势:=MA(CLOSE,3);AA5:=MA(CLOSE,7);AA10:=MA(CLOSE,4),COLORFF0000;追击:FILTER(((((((CLOSE / OPEN) >1.04) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (CLOSE > 下轨道)) AND ((AA10 - REF(AA10,1)) > 0)) AND (CLOSE < 上)),3),LINETHICK0;STICKLINE(FILTER(((((((CLOSE / OPEN) > 1.04) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (CLOSE > 下轨道)) AND ((AA10 - REF(AA10,1)) > 0)) AND (CLOSE < 上)),3),8,0,3,0),COLORRED;DRAWTEXT(FILTER(((((((CLOSE / OPEN) > 1.04) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (CLOSE > 下轨道)) AND ((AA10 - REF(AA10,1)) > 0)) AND (CLOSE < 上)),3),8,'追击'),COLORD1E768;VARD:=((((OPEN + LOW) + HIGH) + CLOSE) / 3);支撑:=EMA(VARD,5);短期底部:=LLV(OPEN,30);机会难得: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)*8,LINETHICK0;STICKLINE(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),8,0,8,0),COLORYELLOW;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),8,'★机会难得'),COLORFFFFFF;历史大底:FILTER((((((LLV(LOW,0) AND (WINNER(CLOSE) < 0.08)) AND (LOW <= 短期底部)) AND (CLOSE > 短期底部)) AND (J < 80)) AND ((CLOSE / OPEN) > 1.08)),20)*12,LINETHICK1 ,COLORGREEN;STICKLINE(FILTER((((((LLV(LOW,0) AND (WINNER(CLOSE) < 0.08)) AND (LOW <= 短期底部)) AND (CLOSE > 短期底部)) AND (J < 80)) AND ((CLOSE / OPEN) > 1.08)),20),12,0,8,0),COLORGREEN;DRAWTEXT(FILTER((((((LLV(LOW,0) AND (WINNER(CLOSE) < 0.08)) AND (LOW <= 短期底部)) AND (CLOSE > 短期底部)) AND (J < 80)) AND ((CLOSE / OPEN) > 1.08)),20),LOW,'★★历史大底'), COLORGREEN;黑马登天: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)*15,LINETHICK0;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);均线:=MA(CLOSE,7);均线13:=MA(CLOSE,13);均线24:=MA(CLOSE,24);VA:=CROSS(MA(CLOSE,7),MA(CLOSE,24));跳马:FILTER(((((((((OPEN > 均线24) AND (均线13 < 均线24)) AND (LOW <= 均线24)) AND ((均线13 - REF(均线13,1)) > 0)) AND (CLOSE > OPEN)) AND ((均线24 - REF(均线24,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE >= 均线24)),15)*5,COLOR00FF00 ,LINETHICK0;DRAWTEXT(FILTER(((((((((OPEN > 均线24) AND (均线13 < 均线24)) AND (LOW <= 均线24)) AND ((均线13 - REF(均线13,1)) > 0)) AND (CLOSE > OPEN)) AND ((均线24 - REF(均线24,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE >= 均线24)),15),LOW,'★跳马'),COLOR00FF00;宝马望月:((((VA AND ((均线24 - REF(均线24,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE > OPEN)))*15,LINETHICK0;DRAWTEXT((((VA AND ((均线24 - REF(均线24,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE > OPEN)),LOW,'★宝马望月'),COLORFFFFFF;三线开花:((((((均线 - REF(均线,1)) > 0) AND CROSS(均线13,均线24)) AND (LOW <= 均线24)) AND (CLOSE >= 均线24)))*3,LINETHICK0;DRAWTEXT((((((均线 - REF(均线,1)) > 0) AND CROSS(均线13,均线24)) AND (LOW <= 均线24)) AND (CLOSE >= 均线24)),LOW,'三线开花'),COLORFFFFFF;{ 股票软件下载网_最新股票指标公式}快马加鞭: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)*8,LINETHICK0;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),'★快马加鞭'),COLORFF0000;黑马狂奔: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)*13,LINETHICK0,COLORFF00FF;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),'★黑马狂奔'),COLORFF00FF;。
黑马起爆点指标公式源码
黑马起爆点指标公式源码全文共四篇示例,供读者参考第一篇示例:黑马起爆点指标公式源码是一种用来预测股市或其他金融市场中股票价格变动的指标,它是一种重要的技术分析工具,能够帮助投资者更好地把握市场走势,提高投资的准确性和收益率。
在股市中,有很多指标可以用来预测股价的变动,如MA、MACD、BOLL等指标,但黑马起爆点指标是一种比较特殊的指标,其计算方式比较独特,需要特定的源码来实现计算。
黑马起爆点指标源码的主要计算公式如下:1. 计算黑马起爆点指标的第一步是计算“三重指数平滑异同移动平均线”(TRIX)。
TRIX的计算公式为:EMA1 = EMA(CLOSE, N);EMA2 = EMA(EMA1, N);EMA3 = EMA(EMA2, N);TRIX = (EMA3 - EMA3[1])/EMA3[1]*100;EMA代表指数移动平均线,CLOSE代表收盘价,N代表周期数(一般取5或10)。
2. 然后计算TRIX的移动平均线TRMA:TRMA = MA(TRIX, M);MA代表简单移动平均线,M代表移动平均周期数(一般取5或10)。
通过以上三个步骤的计算,就可以得到黑马起爆点指标的数值,根据其数值的变化,可以判断股票价格的走势。
黑马起爆点指标源码的实现是一种比较复杂的计算过程,需要熟练掌握编程语言和数学算法。
以下是一个用Python实现黑马起爆点指标的简单示例:```pythonimport pandas as pdimport numpy as npdef TRIX(data, n, m):ema1 = data['close'].ewm(span=n,min_periods=n).mean()ema2 = ema1.ewm(span=n, min_periods=n).mean()ema3 = ema2.ewm(span=n, min_periods=n).mean()trix = ((ema3 - ema3.shift(1))/ema3.shift(1))*100trma = trix.rolling(window=m).mean()hma = trma.ewm(span=m, min_periods=m).mean()return hmadata = pd.read_csv("stock_data.csv")hma = TRIX(data, 5, 5)print(hma)```以上代码使用Pandas库来处理股票数据,并实现了黑马起爆点指标的计算过程。
【股票指标公式下载】-【通达信】黑马摇篮(黑马线、大黑马、摇篮手)
【股票指标公式下载】-【通达信】⿊马摇篮(⿊马线、⼤⿊马、摇篮⼿)【通达信】⿊马摇篮(⿊马线、⼤⿊马、摇篮⼿)-指标公式源码VAR3:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5); VAR4:=(CLOSE-LLV(CLOSE,N1))/(HHV(CLOSE,N1)-LLV(CLOSE,N1))*100;VAR5:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR6:=EMA(VAR5,100);VAR7:=2*(VAR5-VAR6);VAR8:=POW(VAR7,3)*0.1+POW(VAR7,1);VAR9:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VARA:=EMA(VAR9*0.97,3);VARB:=(HIGH+LOW+CLOSE)/3;VARC:=(VARB-MA(VARB,14))/(0.015*AVEDEV(VARB,14));⿊马线1:= IF(VAR7>0.1,VAR8,0)*5;VARD:=LLV(HIGH,240);VARE:=100*(CLOSE-VARD)/VARD;VARF:=AMOUNT/VOL;VAR10:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,5);VAR11:=INDEXC;VAR12:=MA(VAR11,5);VAR13:=MA(VAR11,20);VAR14:=MA(VAR11,30);VAR15:=VAR14>VAR12*1.08 AND VAR13>VAR12*1.055;VAR16:=VAR12>VAR11*1.03 AND VAR13>VAR11*1.13;VAR17:=VAR16;VAR18:=IF(FILTER(VAR10<6,5)=1,1,0);VAR19:=VAR10<6 AND VAR17;VAR1A:=CROSS(⿊马线1,2);VAR1B:=CROSS(⿊马线1,4);VAR1C:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR1D:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;VAR1E:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR1F:=REF(CLOSE,1);VAR20:=SMA(MAX(CLOSE-VAR1F,0),5,1)/SMA(ABS(CLOSE-VAR1F),5,1)*100; VAR21:=(HIGH+LOW+CLOSE)/3; VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));VAR23:=(VAR1C>=-15.8 AND VAR1C<=-12.2 AND VAR1D<=-20.8 AND VAR1E<=-27.5 AND VAR20<=11.7 AND VAR22<=-145)*100;VAR24:=VAR4=0;VAR25:=VAR4=100;IF(VAR25>0,110,101),STICK,LINETHICK2,COLOR00FF00;101,STICK,LINETHICK2 ,COLOR000000;IF(VAR23>0,100,90),STICK,LINETHICK3,COLORRED;90,STICK,LINETHICK3,COLO R000000; {DRAWTEXT(VAR23>0,90,'发现⼤⿊马加把安全锁,全部亏损问它要'), , COLORMAGENTA;}IF(VAR24>0,-11,0),STICK,LINETHICK2, COLORRED;0,STICK,LINETHICK2, COLOR000000;⿊马线:⿊马线1,STICK ,COLOR008364,LINETHICK3;发现: (VAR18 AND VARE<-2.5 AND VAR3<5 ANDVAR4=0)*60,LINETHICK2 ,COLORYELLOW;⿊马: IF(FILTER(VAR19,1)=1,1,0)*80,STICK , LINETHICK2, COLORF0F000; ⼤⿊马: VAR19 AND VAR18*80,STICK ,LINETHICK2, COLORYELLOW;操盘⼿: VAR4,COLORF00FF0;庄拉: IF(FILTER((VAR1A OR VAR1B) AND VAR4<40 ANDVAR3<40,5)=1,35,0),LINETHICK2,COLORRED ;{DRAWTEXT(发现>0,25,'短线⿊马2.5%')COLORCC99FF;DRAWTEXT(⿊马>0,52,'⿊马发现10%'), COLORYELLOW;DRAWTEXT(⼤⿊马,70,'★⽇线专⽤⼤⿊马获利10%以上'),COLORRED;}0,LINETHICK1,COLOR000999;100, COLORFF9966;【通达信】⿊马摇篮(⿊马线、⼤⿊马、摇篮⼿)-指标公式效果图(⽂档来源:若⽔财经社区)。
【股票指标公式下载】-【通达信】金牌黑马(黑马线、反切线、机会来临、趋势线)
【通达信】金牌黑马(黑马线、反切线、机会来临、趋势线)-指标公式源码A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,2)-2*SMA((C-LLV(L ,55))/(HHV(H,55)-LLV(L,55))*100,5,2);黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF;反切线:100-EMA(A1,5),LINETHICK2,COLOR00FF00;A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;A3:=EMA(C,5);A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:(EMA(4*SMA(A4,6,1)-3*SMA(SMA(A4,5,1),5,1),2)),LINETHICK1,COLORYELLOW; A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),黑马线,'跑'),COLOR00FF00; DRAWTEXT(CROSS(趋势线,黑马线)AND 黑马线>20 AND 黑马线<A5,黑马线,'黑马');DRAWTEXT(CROSS(趋势线,0) AND 黑马线<40,5,'大黑马');底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED;机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),LINETHICK2,COLORE66878;大势已去:IF(CROSS(黑马线,A1) AND 黑马线>70 AND 趋势线>80,90,100),LINETHICK2,COLORE66878;50,LINETHICK3,COLORE66878,POINTDOT;70,COLORYELLOW,POINTDOT;【通达信】金牌黑马(黑马线、反切线、机会来临、趋势线)-指标公式效果图。
通达信超级黑马早发现指标源码
通达信超级黑马早发现指标源码VAR2N:=1;V1:=(MA(((100 * (CLOSE - LLV(CLOSE,34))) / (HHV(HIGH,34) - LLV(LOW,34))),5) - 20);V2:=(2 * ABS(V1));V3:=(100 - ((100 - (3 * SMA((((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100),20,1))) + (2 * SMA(SMA((((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100),20,1),15,1))));V4:=(100 - ((100 - (3 * SMA((((OPEN - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100),20,1))) + (2 * SMA(SMA((((OPEN - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100),20,1),15,1))));V5:=(((HIGH + LOW) + CLOSE) / 3);V6:=((V5 - MA(V5,10)) / (0.015 * AVEDEV(V5,10)));V7:=((V5 - MA(V5,30)) / (0.015 * AVEDEV(V5,30)));V8:=IF(((((V6 >= 150) AND (V6 < 200)) AND (V7 >= 150)) AND (V7 < 200)),10,0);V9:=(IF(((((V6 <= (0 - 150)) AND (V6 > (0 - 200))) AND (V7 <= (0 - 150))) AND (V7 > (0 - 200))),(0 - 10),V8) * VAR2N);VA:=(((CLOSE - MA(CLOSE,13)) / MA(CLOSE,13)) * 100);VB:=(100 - ABS(VA));VC:=((3 * SMA((((INDEXC - LLV(INDEXL,55)) / (HHV(INDEXH,55) - LLV(INDEXL,55))) * 100),20,1)) - (2 * SMA(SMA((((INDEXC - LLV(INDEXL,55)) / (HHV(INDEXH,55) - LLV(INDEXL,55))) * 100),20,1),15,1)));VD:=((3 * SMA((((INDEXO - LLV(INDEXL,55)) / (HHV(INDEXH,55) - LLV(INDEXL,55))) * 100),20,1)) - (2 * SMA(SMA((((INDEXO - LLV(INDEXL,55)) / (HHV(INDEXH,55) -LLV(INDEXL,55))) * 100),20,1),15,1)));VE:=(REF(LOW,1) * 0.9);VF:=(LOW * 0.9);V10:=(((VF * VOL) + (VE * (CAPITAL - VOL))) / CAPITAL);V11:=EMA(V10,30);V12:=(V11 - CLOSE);V13:=REF(CLOSE,1);V14:=((SMA(MAX((CLOSE - V13),0),7,1) / SMA(ABS((CLOSE - V13)),7,1)) * 100);V15:=((SMA(MAX((CLOSE - V13),0),13,1) / SMA(ABS((CLOSE - V13)),13,1)) * 100);V16:=BARSCOUNT(CLOSE);V17:=((SMA(MAX((CLOSE - REF(CLOSE,1)),0),6,1) / SMA(ABS((CLOSE - REF(CLOSE,1))),6,1)) * 100);V18:=(((((0 - 100) * (HHV(HIGH,60) - CLOSE)) / (HHV(HIGH,60) - LLV(LOW,60))) + 50) * 2);V19:=(((CLOSE - LLV(LOW,15)) / (HHV(HIGH,15) - LLV(LOW,15))) * 100);V1A:=((SMA(V19,4,1) - 50) * 2);V1B:=SMA(V1A,3,1);V1C:=(((INDEXC - LLV(INDEXL,14)) / (HHV(INDEXH,14) - LLV(INDEXL,14))) * 100);V1D:=SMA(V1C,4,1);V1E:=SMA(V1D,3,1);V1F:=(((HHV(HIGH,30) - CLOSE) / CLOSE) * 100);V20:=(IF((((((((((V17 <= 25) AND (V18 < (0 - 95))) AND (V1F > 20)) AND (V1B < (0 - 30))) AND (V1E < 30)) AND (V12 >= (0 - 0.25))) AND (V14 < 22)) AND (V15 < 28)) AND (V16 > 50)),80,0) * VAR2N);空方:(0 - (IF((V1 < 0),V2,0) * VAR2N)),LINESTICK;(0 - 40);C0:=(((HIGH + LOW) + CLOSE) / 3);A1:=HHV(C0,14);A2:=LLV(C0,14);A3:=(A1 - A2);A4:=(EMA(((C0 - A2) / A3),2) * 100);B1:=HHV(C0,30);B2:=LLV(C0,30);B3:=(B1 - B2);B4:=(EMA(((C0 - B2) / B3),2) * 100);C1:=HHV(C0,55);C2:=LLV(C0,55);C3:=(C1 - C2);C4:=(EMA(((C0 - C2) / C3),2) * 100);A10:=(A4 - 50);A20:=(B4 - 50);A30:=(C4 - 50);DRAWICON(CROSS(A1,0),0,4);RSV2:=(((CLOSE - LLV(LOW,30)) / (HHV(HIGH,30) - LLV(LOW,30))) * 100);K2:=SMA(RSV2,3,1);D2:=SMA(K2,3,1);J2:=((3 * K2) - (2 * D2));动力线:(EMA(J2,6) * VAR2N),COLOR00FFFF;VAR2W:=EMA(CLOSE,5);RSI1W:=((SMA(MAX((CLOSE - VAR2W),0),6,1) / SMA(ABS((CLOSE - VAR2W)),6,1)) * 100);RSI2W:=((SMA(MAX((CLOSE - VAR2W),0),3,1) / SMA(ABS((CLOSE - VAR2W)),3,1)) * 100);VAR1F:='KDJ.D'(18,5,6);虎:IF(((((((((动力线 < 15.5) AND (空方 < (0 - 30))) AND (VAR1F < 35)) AND (RSI1W < 10)) AND (RSI2W < 6.5)) AND (A10 < (0 - 47))) AND (A20 < (0 - 47))) AND (A30 < (0 - 48.5))),50,0);牛:(IF(((空方 < (0 - 38)) AND (虎 > 0)),70,0) * VAR2N);VAR2:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR21:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);VAR22:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));获利线:=(VAR2 AND VAR22);LC:=EMA((WINNER(CLOSE) * 100),3);VAR2Q:=EMA(CLOSE,3);神奇线:=((SMA(MAX((CLOSE - VAR2Q),0),6,1) / SMA(ABS((CLOSE - VAR2Q)),6,1)) * 100);买点一:=MA(神奇线,10);牛A:(IF((VAR22 AND (神奇线< 3)),(0 - 40),0) * VAR2N),LINETHICK2,COLOR3399FF;牛B:(IF((VAR22 AND (买点一< 9)),(0 - 38),0) * VAR2N),LINETHICK2,COLOR3399FF;剑:(FILTER(((神奇线< 6) AND 获利线),35) * 1),STICK,LINETHICK2,COLORFF0000;DRAWICON((剑 > 0),1,1);牛3:(IF((((LC < 1.5) AND (买点一< 21)) AND (神奇线< 5.5)),80,0) * VAR2N),LINETHICK2,COLOR3399FF;VAR1N:=1050431;VAR2N1:=IF((DATE<=VAR1N),1,0);稳赚:=(MA(CLOSE,80) - (MA(CLOSE,13) / 3));买点二:=MA(((CLOSE - 稳赚) / 稳赚),1);XA:=IF((CROSS(买点二,0) AND ((LOW / REF(HIGH,1)) < 1.012)),0.5,0);XB:=IF((((COUNT((买点二> REF(买点二,1)),3) = 3) AND (COUNT((买点二< 0),10) = 10)) AND (REF(买点二,3) = LLV(买点二,10))),0.5,0);VAR82:=IF((((((REF(买点二,2) = LLV(买点二,20)) AND (REF(买点二,2) < 0.071)) AND (REF(买点二,2) < REF(买点二,1))) AND NOT(((REF(LOW,1) > REF(HIGH,2)) AND (LOW > REF(HIGH,1))))) AND (CLOSE > REF(CLOSE,1))),0.5,0);VAR83:=(EMA(买点二,12) * 0.7);VAR84:=EMA(买点二,3);底部将成:(IF((LLV((VAR84 - VAR83),5) > 0),0,(0 - 40)) * VAR2N1),COLORFFCC66;。
分享带黑马线趋势模型源码
分享带黑马线趋势模型源码盘面略解:周末火热的股指期货,周一被当头一棒。
股指期货毫无疑问是大资金做空的工具,因为它是T 0,而股票是T 1。
理论上,机构大资金拉升大盘股时候开多单,股票也赚,股指期货也赚,出货时候,砸出大盘蓝筹,股指期货开空单,股票兑现了,股指期货又赚钱。
再没有比这个更好更锋利的收割韭菜工具了。
而且t 1套牢,t 0就可以收割。
快捷方便。
不多说。
祝大家好运。
周末分享了一个趋势策略模型源码,很多粉丝留言,希望加上黑马线,下面把带黑马线的源码分享出来。
(注意趋势模式不是隔日超短,不要说今天跌了,就意味着亏损,不是的。
他是波段持有的理念,卖出信号产生,才会知道这一单最终盈亏,也不意味着一单亏损,就是策略不可靠,牛市两线法理念是:小亏大赚,做错了早早止损,做对了有帆驶到尽,需要的只是耐心,高手波段里不断做T,收益会更客观)。
带黑马线源码如下:TJ360:=C=HHV(C,360);TS360:=BARSLAST(TJ360);HHC360:=REF(C,TS360);RHHC360:=REF(HHC360,1);TJ1360:=H>L AND C>RHHC360 ;CS1360:=BARSLASTCOUNT(TJ1360);CSS:=COUNT(CS1360=1,60);MR:=CS1360=1 AND CSS=1;STICKLINE(MR,O,C,3,0),COLORBLUE;DRAWTEXT(MR,L,'黑马线'),COLORYELLOW;HMXTS:=BARSLAST(MR);黑马线:CONST(REF(C,HMXTS)),COLORBLUE;M10:MA(C,10);M20:MA(C,20);M60:MA(C,60);TJ:=CROSS(M10,M20) AND M60>REF(M60,1);TS:=BARSLAST(TJ);FB:=C=ZTPRICE(REF(C,1),0.1);MB:=H=ZTPRICE(REF(C,1),0.1) AND C<H;STICKLINE(FB,C,O,2,0),COLORYELLOW;STICKLINE(MB,C,O,2,0),COLORMAGENTA;MRTJ:=TS>0 AND M10>M20 AND CAPITAL<20000000 AND BETWEEN(C,M10,1.1*M10) AND C/REF(C,1)>1.04 ;通达信指标营MR:=BARSLASTCOUNT(MRTJ)=1;TSMR:=BARSLAST(通达信指标营MR);C7:=HHV(C,TSMR 1);MCTJ:=TSMR>0 AND C/C7<0.93 ;通达信指标营MC:=BARSLASTCOUNT(MCTJ)=1 AND COUNT(MCTJ,TSMR)=1;DRAWICON(通达信指标营MR,L,1);DRAWICON(通达信指标营MC,H,2);今日追踪:422号选出潜龙20只:潜龙按照封板强度排序。
金钻黑马通达信指标公式源码
A1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+E MA((OPEN+HIGH+LOW+CLOSE)/4,9))/3;A2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+ EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/3;A3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIGH+LOW+CLOSE)/4,14)+ EMA((OPEN+HIGH+LOW+CLOSE)/4,28))/3;A4:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,9)+EMA((OPEN+HIGH+LOW+CLOSE)/4,18)+ EMA((OPEN+HIGH+LOW+CLOSE)/4,36))/3;A5:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22) +EMA((OPEN+HIGH+LOW+CLOSE)/4,44))/3;A6:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,13)+EMA((OPEN+HIGH+LOW+CLOSE)/4,26) +EMA((OPEN+HIGH+LOW+CLOSE)/4,52))/3;A7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34) +EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3;VAR1:=FORCAST(A1,6);VAR2:=FORCAST(A2,6);VAR3:=FORCAST(A3,6);VAR4:=FORCAST(A4,6);VAR5:=FORCAST(A5,6);VAR6:=FORCAST(A6,6);VAR7:=FORCAST(A7,6);IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),POINTDOT,COLORFF00FF;IF(VAR1<REF(VAR1,1),VAR1,DRAWNULL),POINTDOT,COLOR00FF00;IF(VAR2>REF(VAR2,1),VAR2,DRAWNULL),POINTDOT,COLORFF00FF;IF(VAR2<REF(VAR2,1),VAR2,DRAWNULL),POINTDOT,COLOR00FF00;IF(VAR3>REF(VAR3,1),VAR3,DRAWNULL),POINTDOT,COLORFF00FF;IF(VAR3<REF(VAR3,1),VAR3,DRAWNULL),POINTDOT,COLOR00FF00;IF(VAR4>REF(VAR4,1),VAR4,DRAWNULL),POINTDOT,COLORFF00FF;IF(VAR4<REF(VAR4,1),VAR4,DRAWNULL),POINTDOT,COLOR00FF00;IF(VAR5>REF(VAR5,1),VAR5,DRAWNULL),POINTDOT,COLORFF00FF;IF(VAR5<REF(VAR5,1),VAR5,DRAWNULL),POINTDOT,COLOR00FF00;IF(VAR6>REF(VAR6,1),VAR6,DRAWNULL),POINTDOT,COLORFF00FF;IF(VAR6<REF(VAR6,1),VAR6,DRAWNULL),POINTDOT,COLOR00FF00;IF(VAR7>REF(VAR7,1),VAR7,DRAWNULL),LINETHICK2,COLORFF00FF;IF(VAR7<REF(VAR7,1),VAR7,DRAWNULL),LINETHICK2,COLOR00FF00;TOWERC:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6); DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1));DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1));STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,DIRECTIONMAX,4,0),COLOR0000FF; STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,DIRECTIONMIN,4,0),COLOR00FF00;。
大智慧寻觅黑马指标公式源码编程思路破译和风险提示
大智慧寻觅黑马指标公式源码编程思路破译和风险提示程序源码MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE, 20);MA4:=MA(CLOSE,60);MA5:=MA(CLOSE,120);T:=(MA1+MA2+MA3+MA4+MA5)/5;R:=(ABS(MA1-T)+ABS(MA2-T)+ABS(MA3-T)+ABS(MA4-T)+ABS(MA5-T))/5;DDGZ:=T/R;CC:=COST(85);DD:=COST(15);JZD1:=(CC-DD)/(CC+DD);CC2:=COST(95);DD2:=COST(5);JZD2:=(CC2-DD2)/(CC2+DD2);TT:=DDGZ/(JZD1*JZD2);SQRT(TT);TT1:=HHV(MA(TT,3),60)=MA(TT,3);TT2:=BARSCOUNT(C)>=60;TT3:=TT<=REF(TT,1);选股条件等于:TT1 AND TT2 AND TT3;编程思路破译MA1赋值:收盘价的5日简单移动平均MA2赋值:收盘价的10日简单移动平均MA3赋值:收盘价的20日简单移动平均MA4赋值:收盘价的60日简单移动平均MA5赋值:收盘价的120日简单移动平均T赋值:(MA1+MA2+MA3+MA4+MA5)/5R赋值:(MA1-T的绝对值+MA2-T的绝对值+MA3-T的绝对值+MA4-T的绝对值+MA5-T的绝对值)/5DDGZ赋值:T/RCC赋值:获利盘为85%的成本分布DD赋值:获利盘为15%的成本分布JZD1赋值:(CC-DD)/(CC+DD)CC2赋值:获利盘为95%的成本分布DD2赋值:获利盘为5%的成本分布JZD2赋值:(CC2-DD2)/(CC2+DD2)TT赋值:DDGZ/(JZD1*JZD2)TT的开方TT1赋值:60日内TT的3日简单移动平均的最高值=TT的3日简单移动平均TT2赋值:收盘价的有效数据周期数>=60TT3赋值:TT<=1日前的TT输出选股条件等于:TT1 AND TT2 AND TT3风险提示该公式包含未来函数:COST。