伏击妖股 通达信指标公式源码
通达信主图副图选股妖股核心源码
通达信主图副图选股妖股核心源码主图源码DRAWGBK(CLOSE>0,RGB(150,50,175),RGB(0,25,100),0,2,0);赚钱轨道:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)) /4,COLORRED,LINETHICK2;X_1:=MA(CLOSE,20);DRAWBAND(赚钱轨道,RGB(155,50,50),X_1,RGB(0,100,50));IF(赚钱轨道<X_1 OR CLOSE<赚钱轨道,赚钱轨道,DRAWNULL),COLORBLUE,LINETHICK2;拉升线:IF(赚钱轨道>X_1,X_1,DRAWNULL),COLORMAGENTA,LINETHICK3;下跌线:IF(赚钱轨道<=X_1,X_1,DRAWNULL),COLORLIBLUE,LINETHICK2;X_2:=(CLOSE+HIGH+LOW+OPEN)/4;X_3:=MA((CLOSE*2+HIGH)/3,5);X_4:=MA((OPEN*2+HIGH)/3,5);X_5:=MA((CLOSE+LOW*2)/3,5);X_6:=MA((OPEN+LOW*2)/3,5);X_7:=OPEN+(CLOSE-OPEN)/2;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,2.9,0),COLOR00 0099;STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,1.5,0),COLOR00 00CC;STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,0.1,0),COLOR99 66FF;STICKLINE(X_3>=X_4,CLOSE,OPEN,2.9,0),COLOR000099;STICKLINE(X_3>=X_4,CLOSE,OPEN,1.5,0),COLOR0000CC;STICKLINE(X_3>=X_4,CLOSE,OPEN,0.1,0),COLOR9966FF;STICKLINE(X_3<X_4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,2.9,0),COLOR999900;STICKLINE(X_3<X_4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,1.5,0),COLORCCCC00;STICKLINE(X_3<X_4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,0.1,0),COLORFFFF66;STICKLINE(X_3>=X_4 AND CLOSE<X_4,X_7,MAX(OPEN,CLOSE),2.8,0),COLORMAGENTA;STICKLINE(CROSS(X_3,X_4),CLOSE,OPEN,2.8,0),COLORYELLO W;STICKLINE(X_3<X_4 AND (CROSS(CLOSE,X_6) OR CROSS(X_2,X_6)),X_7,MIN(CLOSE,OPEN),2.8,0),COLORWHITE;STICKLINE(CROSS(X_4,X_3) AND CLOSE<OPEN AND DMI.PDI<DMI.MDI,CLOSE,OPEN,2.8,0),COLORFF3300;X_8:=REF(OPEN,1);X_9:=SMA(MAX(OPEN-X_8,0),6,1)/SMA(ABS(OPEN-X_8),6,1)*100;X_10:=REF(CLOSE,1);X_11:=SMA(MAX(CLOSE-X_10,0),6,1)/SMA(ABS(CLOSE-X_10),6,1)*100;X_12:=REF(HIGH,1);X_13:=SMA(MAX(HIGH-X_12,0),6,1)/SMA(ABS(HIGH-X_12),6,1)*100;X_14:=REF(LOW,1);X_15:=SMA(MAX(LOW-X_14,0),6,1)/SMA(ABS(LOW-X_14),6,1)*100;X_16:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001;X_17:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;X_18:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;X_19:=EMA(X_18,8)*10<(-26);X_20:=IF(X_16 AND MA(X_17,5)<50 AND X_19,30,0);X_21:=X_9;X_22:=X_11;X_23:=X_13;X_24:=X_15;X_25:=MIN(MIN(MIN(X_21,X_22),X_23),X_24);X_26:=MAX(MAX(MAX(X_21,X_22),X_23),X_24);DRAWICON(LLV(X_25,5)<=20 OR LLV(X_26,5)<=30 AND CROSS(X_3,X_4),HIGH,9);X_27:=VOL>REF(VOL,1)*2 AND (CLOSE>=OPEN OR CLOSE>REF(CLOSE,1));STICKLINE(X_27,CLOSE,OPEN,0.5,0),COLOR0088FF;DRAWTEXT(CROSS(X_4,X_3) AND CLOSE<赚钱轨道,HIGH,''),COLORCYAN;X_28:=(CLOSE+LOW+HIGH)/3;X_29:=ATAN(EMA(X_28,13)-REF(EMA(X_28,13),1))*3.1416*10;X_30:=EMA(CLOSE,8);DRAWTEXT(FILTER(X_29>1 AND EMA(X_28,13)>REF(EMA(X_28,8),1),10),X_30,''),COLORWHITE;X_31:=REF(CLOSE,1);X_32:=SMA(MAX(CLOSE-X_31,0),3,1)/SMA(ABS(CLOSE-X_31),3,1)*100;X_33:=EMA(CLOSE,3);X_34:=EMA(CLOSE,21);DRAWTEXT(CROSS(X_33,X_34),LOW*0.99,''),COLORA6E500;DRAWTEXT_FIX(1,0,0,0,''),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,''),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,''),COLORYELLOW;X_35:=INDEXADV;X_36:=INDEXDEC;X_37:=X_35/(X_35+X_36)*100;X_38:=IF(X_37>=70,X_37,DRAWNULL);X_39:=IF(X_37<70,X_37,DRAWNULL);X_40:=HY_INDEXADV;X_41:=HY_INDEXDEC;X_42:=X_40/(X_40+X_41)*100;X_43:=IF(X_42>=70,X_42,DRAWNULL);X_44:=IF(X_42<70,X_42,DRAWNULL);X_45:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X_46:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;X_47:=FINANCE(23)/FINANCE(10)*3.3;X_48:=FINANCE(19)/FINANCE(15)*0.6;X_49:=FINANCE(20)/FINANCE(15)*0.999;X_50:=X_45+X_46+X_47+X_48+X_49;副图源码DRAWGBK(CLOSE>0,RGB(150,50,175),RGB(0,25,100),0,2,0); X_1:=CROSS(KDJ.K#WEEK,KDJ.D#WEEK);X_2:=KD.K#WEEK(9,3,3);X_3:=KD.D#WEEK(9,3,3);X_4:=FILTER(CROSS(X_2,X_3) AND REF(X_3,1)<30,13);X_5:=FILTER(CROSS(X_2,X_3) AND REF(X_3,1)>30,13);X_6:=X_4;X_7:=MACD.DIF#WEEK(12,26,9);X_8:=MACD.DEA#WEEK(12,26,9);X_9:=10;X_10:=5;X_11:=FILTER(CROSS(X_7,X_8) AND REF(X_8,1)<0,13);X_12:=X_11;X_13:=(HHV(HIGH,X_9)-CLOSE)/(HHV(HIGH,X_9)-LLV(LOW,X_9))*200-125;X_14:=SMA(X_13,X_10,1)+15;X_15:=(CLOSE-LLV(LOW,X_9))/(HHV(HIGH,X_9)-LLV(LOW,X_9))*200-105;X_16:=SMA(X_15,X_10,1)+15;X_17:=CROSS(X_16,X_14);XG:X_12 AND X_11 AND X_1;选股源码X_1:=CROSS(KDJ.K#WEEK,KDJ.D#WEEK);X_2:=KD.K#WEEK(9,3,3);X_3:=KD.D#WEEK(9,3,3);X_4:=FILTER(CROSS(X_2,X_3) AND REF(X_3,1)<30,13);X_5:=FILTER(CROSS(X_2,X_3) AND REF(X_3,1)>30,13);X_6:=X_4;X_7:=MACD.DIF#WEEK(12,26,9);X_8:=MACD.DEA#WEEK(12,26,9);X_9:=10;X_10:=5;X_11:=FILTER(CROSS(X_7,X_8) AND REF(X_8,1)<0,13);X_12:=X_11;X_13:=(HHV(HIGH,X_9)-CLOSE)/(HHV(HIGH,X_9)-LLV(LOW,X_9))*200-125;X_14:=SMA(X_13,X_10,1)+15;X_15:=(CLOSE-LLV(LOW,X_9))/(HHV(HIGH,X_9)-LLV(LOW,X_9))*200-105;X_16:=SMA(X_15,X_10,1)+15;X_17:=CROSS(X_16,X_14);XG:X_12 AND X_11 AND X_1;。
通达信首板抓妖排序指标公式源码编程思路破译及成功率回测数据和风险提示
通达信首板抓妖排序指标公式源码编程思路破译及成功率回测数据和风险提示编程思路破译X_1赋值:开盘金额/开盘价/100X_2赋值:X_1/1日前的成交量(手)*100X_3赋值:开盘金额/开盘价/自由流通股本(股)*100X_4赋值:最低价的20日简单移动平均*1.18输出抓妖:收盘价>=开盘价 AND 收盘价>X_4 AND (开盘价>=1日前的收盘价*1 OR 最低价>1日前的最高价) AND 流通市值/100000000<360 AND 流通市值/100000000>9 AND 收盘价<40 AND 开盘价>收盘价的5日简单移动平均AND 开盘金额>2000000 AND X_2>1.3 AND X_3>0.12 AND 1日前的收盘价<1日前的收盘价*1.092 AND 取反 AND 取反 AND 取反程序源码X_1:=DYNAINFO(15)/OPEN/100;X_2:=X_1/REF(VOL,1)*100;X_3:=DYNAINFO(15)/OPEN/FINANCE(46)*100;X_4:=MA(LOW,20)*1.18;抓妖:CLOSE>=OPEN AND CLOSE>X_4 AND (OPEN>=REF(CLOSE,1)*1 OR LOW>REF(HIGH,1)) AND FINANCE(40)/100000000<360 AND FINANCE(40)/100000000>9 AND CLOSE<40 AND OPEN>MA(CLOSE,5) AND DYNAINFO(15)>2000000 AND X_2>1.3 AND X_3>0.12 AND REF(CLOSE<REF(CLOSE,1)*1.092,1) AND NOT(INBLOCK(12)) AND NOT(INBLOCK(13)) AND NOT(INBLOCK(14));风险提示该公式包含未来函数:DYNAINFO该公式包含未来函数:FINANCE。
通达信庄家转强走妖主图指标公式
通达信庄家转强走妖主图指标公式{使用说明:主图提示未来函数是划线函数造成,不会对主要信号造支撑线:Ema((O+C)/2,20),DOTLINE,COLORCYAN;妖股起爆:MA(CLOSE,25)+MA(CLOSE,25)*20/100*0.35,COLORRED,LINET HICK2;Z1:=stRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),CO LORRED;压力线:(MA(MA(H,25),25)-MA(MA(L,25),25))*1+MA(MA(H,25),25),DOTLINE,COLORYELLOW;趋势:=MA(MA(L,25),25)-(MA(MA(H,25),25)-MA(MA(L,25),25))*1,LINETHICK2,COLORRED;STICKLINE(趋势>LOW AND 趋势<HIGH,趋势,MIN(MIN(OPEN,CLOSE),趋势),2,0),COLORGREEN;STICKLINE(趋势>MIN(C,O) AND 趋势<MAX(C,O),趋势,MIN(OPEN,CLOSE),2,0),COLORGREEN;STICKLINE(趋势>HIGH,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(趋势>HIGH,HIGH,LOW,0,0),COLORGREEN;VAR23:=100*MA(MA((C-REF(C,1)),6),6)/MA(MA(Abs((C-REF(C,1))),6),6);回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND crOSS(VAR23,MA(VAR23,2));XG:=趋势>HIGH AND 回调买 AND L<=趋势;DRAWLINE(XG,H,REF(XG,1),REF(H,1),1),COLORRED;DRAWLINE(XG,L,REF(XG,1),REF(L,1),1),COLORGREEN;STICKLINE(XG,C,O,3,0),COLORLIMAGENTA;DRAWICON(XG,L,28);DRAWTEXT(XG,LOW-0.075*LOW,'发现庄家关注'),COLORYELLOW;XXBB:=EMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*4,5)*100;关注1:=REF(XXBB,1)>50 AND XXBB-REF(XXBB,1)>40;关注2:=REF(关注1,1)=0 AND 关注1;DRAWTEXT(关注2,LOW-0.075*LOW,'转强进场'),COLORRED;STICKLINE(关注2,C,O,3,0),COLORYELLOW;走妖:=REF(C<压力线 OR C<妖股起爆,1) AND C>压力线 AND C>妖股起爆 AND C/REF(C,1)>1.04 AND REF(C,1)/REF(C,2)<1.065;STICKLINE(走妖,C,O,3,0),COLORRED;DRAWTEXT(走妖,LOW-0.085*LOW,'走妖起爆或出局'),COLORCYAN;成影响!}。
通达信指标公式源码 妖股起飞之冲天炮副图选股指标
{妖股起飞之冲天炮---家宁康}VAR1:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100, 8,1),3);ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL, 0)),0)/25000,2);M1:=EMA(ABV,12);M2:=EMA(ABV,26);MTM:=CLOSE-REF(CLOSE,1);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)); MMA:=C-REF(C,1);MMB:=100*EMA(EMA(MMA,9),9)/EMA(EMA(ABS(MMA),9),9);MMC:=MA(MMB,5);A:=((VOL)/(CAPITAL))*(100);S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60));Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60));X:=1;V1:=(HIGH+OPEN+LOW+(2)*(CLOSE))/(5);V2:=REF(V1,1);V3:=MAX(V1-V2,0);V4:=ABS(V1-V2);V5:=SMA(V3,10,1);V6:=SMA(V4,10,1);V8:=COUNT(((V5)/(V6)<0.2),5);V9:=COUNT((LLV(V1,10)=V1),10);主力进出:=IF((MMS>REF(MMS,1) AND MMB>REF(MMB,1) ANDCROSS(ABV,M2) AND ABV>REF(ABV,1) AND M1>REF(M1,1) ANDM2>REF(M2,1)),65,0);主进主轨:=ABV>M2 AND CROSS(ABV,M1) AND CROSS(MMB,MMC);精准买卖:=V8>=1 AND V9>=1 AND CLOSE>OPEN ANDREF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND MMS>MML AND CROSS(ABV,M2);短线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN ANDREF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND CROSS(MMS,MML) AND ABV>REF(ABV,1);中线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN ANDREF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1))AND ABV>REF(ABV,1) AND MMS>MML AND CROSS(MMM,MML) AND MMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1);主进主买:=ABV>M2 AND MMB>MMC AND CROSS(MMS,MML) ANDMMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1);短中精:=精准买卖OR 短线买点OR 中线买点OR 主进主买;主力买卖:=IF(短中精,60,0);主力轨迹:=IF(ABV>M2 AND MMS>MML AND CROSS(MMB,MMC) AND MMB>REF(MMB,1) AND MMC>REF(MMC,1),55,0);拉升在即:=IF(S<X AND Y<X AND MMS>MML AND ABV>M1 ANDCROSS(S,Y),50,0);底部构成:=IF(V8>=1 AND V9>=1 AND CLOSE>OPEN ANDREF(CLOSE,1)>REF(OPEN,1) AND VOL>REF(VOL,1)AND ABV>M2 AND MMB>MMC,45,0);ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;CTP1:=CROSS(MACD.DIF,MACD.DEA) OR (MACD.MACD>0 ANDMACD.MACD<0.5);{好}CTP11:=EXIST(主力买卖,5);CTP13:=EXIST(主力进出,5);YGQF:=CTP11 OR CTP13;冲天炮:=IF(CROSS(ROC,16) AND 100*VOL/CAPITAL>3.5,40,0) AND YGQF; STICKLINE(冲天炮,0,1,1,0),COLORRED;DRAWICON(冲天炮,0.9,17);DRAWTEXT(冲天炮,0.5,' 冲天炮'),COLORYELLOW;。
捉妖神器 天下妖股 统统现出原形通达信指标公式源码
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);DD:=DMA(CLOSE,CC);上轨:(1+7/100)*DD,COLORGREEN;上轨1:(1+5/100)*DD,COLORGREEN;下轨:(1-7/100)*DD,COLORGREEN;中轨:(上轨+下轨)/2,COLORGREEN;疯狂:(1+14/100)*DD,COLORGRAY,POINTDOT;抄底:(1-14/100)*DD,COLORGRAY,POINTDOT;上轨红:IF(上轨>=REF(上轨,1),上轨,DRAWNULL),COLORRED,LINETHICK1;中轨红:IF(中轨>=REF(中轨,1), 中轨,DRAWNULL),COLORRED, LINETHICK1;下轨红:IF(下轨>=REF(下轨,1), 下轨,DRAWNULL),COLORRED,LINETHICK1;{中期临界点90:DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),VOL),CIRCLEDOT,COLORGRAY;} {年:DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,250),VOL),CIRCLEDOT,COLORGRAY;} DIR2:=ABS(CLOSE-REF(CLOSE,10));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;{AMA2:EMA(DMA(CLOSE,CQ2),2),COLORLIBLUE,LINETHICK2;}{无穷均线:DMA(CLOSE,(VOL)/(CAPITAL)),LINETHICK1,COLORFF00FF;} {STICKLINE((CLOSE>=中轨) AND (CLOSE>=OPEN),CLOSE,OPEN,3,0),COLORRED;} {STICKLINE((CLOSE>=中轨) AND (CLOSE>=OPEN),HIGH,LOW,0,0),COLORRED;} {STICKLINE((CLOSE>=中轨) AND (CLOSE<OPEN),CLOSE,OPEN,3,1),COLORRED;} {STICKLINE((CLOSE>=中轨) AND (CLOSE<OPEN),OPEN,HIGH,0,0),COLORRED;} {STICKLINE((CLOSE>=中轨) AND (CLOSE<OPEN),CLOSE,LOW,0,0),COLORRED;} {STICKLINE((CLOSE<中轨) AND (CLOSE>OPEN),CLOSE,OPEN,3,1),COLORGREEN;} {STICKLINE((CLOSE<中轨) AND (CLOSE<=OPEN),CLOSE,OPEN,0,1),COLORGREEN;} {STICKLINE((CLOSE<中轨) AND (CLOSE<=OPEN),HIGH,LOW,3,1),COLORGREEN;} {STICKLINE((CLOSE<中轨) AND (CLOSE>OPEN),CLOSE,HIGH,0,1),COLORGREEN;} {STICKLINE((CLOSE<中轨) AND (CLOSE>OPEN),OPEN,LOW,0,1),COLORGREEN;}; ZDT:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDT>7.0,O,C,2,0),COLORYELLOW;STICKLINE(ZDT<-7.8,O,C,2,0),COLOR00FF00;涨停1:=ZDT>7.0;不破价:=REF(L,BARSLAST(涨停1));Z:=(L+H+C*2)/4;Z1:=EMA(Z,14)COLORBLUE,LINETHICK2;Z2:=EMA(Z,25)COLORLIBLUE,LINETHICK2;Z1B:=(Z1-REF(Z1,1))/REF(Z1,1)*100;Z2B:=(Z2-REF(Z2,1))/REF(Z2,1)*100;考虑打击:IF(Z1B>=0 ANDBARSLAST(CROSS(Z1B,0))>0,REF((C+O)/2,BARSLAST(CROSS(Z1B,0))),DRAWNULL); DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);AAA:=(DIF-DEA)*2*60;启动:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2;DRAWTEXT(启动,L*0.97,'↖金牛启动'),COLORYELLOW,LINETHICK2;AA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;BB:=EMA(AA,2);TP:=(CROSS(AA,BB) OR CROSS(C,AA)) AND C>=EMA(C,55);CC1:=EMA(CLOSE,12)-EMA(CLOSE,26);DD1:=EMA(CC1,9);主升启动:=TP AND CROSS(CC1,DD) AND (DD1<=-0.07)*CC1;DRAWICON(主升启动,L*0.996,1);DRAWTEXT(主升启动,L,'↖LSP牛');DRAWTEXT_FIX(1,0,0,0,'总股本(亿):'),COLORFF36FF,LINETHICK3; DRAWNUMBER_FIX(1,0.09,0,0,CONST(FINANCE(1)/100000000)),COLORFF36FF,LINETHICK3;DRAWTEXT_FIX(1,0.23,0,0,'流通股(亿):'),COLORFF36FF,LINETHICK3; DRAWNUMBER_FIX(1,0.5,0,0,CONST(CAPITAL/1000000)),COLORFF36FF,LINETHICK3; DRAWTEXT_FIX(1,0,0,0,EXTERNSTR(0,1))COLOR00FF00;DRAWTEXT_FIX(1,0,0,0,EXTERNSTR(0,3))COLORFF88FF;DRAWTEXT_FIX(1,0,0,0,EXTERNSTR(0,2))COLORFFFFFF;{选股公式:DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);AAA:=(DIF-DEA)*2*60;金牛启动:CROSS(AAA-REF(AAA,1),15);};。
通达信潜伏抓妖选股指标公式回测及源码
通达信潜伏抓妖选股指标公式回测及源码测试时段:所有历史阶段条件选股:潜伏抓妖[日线]成功率测试(20周期收益率10%以上)测试股票数:4883共发出信号:38547 成功信号:19913 失败信号:18426 未完成信号:208信号发出率:81.88% 平均成功率:51.94% 成功率达到50%的股票数有:58.98%利润1总平均:15.27% 最大平均利润1: 347.60% 最小平均利润1: 0.00%利润2总平均:0.59% 最大平均利润2: 229.96% 最小平均利润2: -36.10%条件选股:潜伏抓妖[日线]成功率测试(100周期收益率10%以上)测试股票数:4883共发出信号:38547 成功信号:28342 失败信号:9452 未完成信号:753信号发出率:81.88% 平均成功率:74.99% 成功率达到50%的股票数有:90.25%利润1总平均:34.64% 最大平均利润1: 469.86% 最小平均利润1: 0.00%利润2总平均:2.38% 最大平均利润2: 328.55% 最小平均利润2: -60.74%条件选股:潜伏抓妖[日线]成功率测试(220周期收益率10%以上)测试股票数:4883共发出信号:38547 成功信号:31378 失败信号:5992 未完成信号:1177信号发出率:81.88% 平均成功率:83.97% 成功率达到50%的股票数有:94.65%利润1总平均:56.96% 最大平均利润1: 1077.40% 最小平均利润1: 0.00%利润2总平均:10.42% 最大平均利润2: 420.79% 最小平均利润2: -74.94%条件选股:潜伏抓妖[日线]成功率测试(250周期收益率10%以上)测试股票数:4883共发出信号:38547 成功信号:31771 失败信号:5548 未完成信号:1228信号发出率:81.88% 平均成功率:85.13% 成功率达到50%的股票数有:94.87%利润1总平均:62.71% 最大平均利润1: 1077.40% 最小平均利润1: 0.00%利润2总平均:12.76% 最大平均利润2: 513.61% 最小平均利润2: -67.71%条件选股:潜伏抓妖[日线]成功率测试(1250周期收益率1000%以上)测试股票数:4883共发出信号:38547 成功信号:1219 失败信号:22818 未完成信号:14510信号发出率:81.88% 平均成功率:5.07% 成功率达到50%的股票数有:1.03%利润1总平均:186.27% 最大平均利润1: 4771.92% 最小平均利润1: 0.00%利润2总平均:60.48% 最大平均利润2: 4024.05% 最小平均利润2: -86.22%条件选股:潜伏抓妖[日线]成功率测试(2500周期收益率1000%以上)测试股票数:4883共发出信号:38547 成功信号:3097 失败信号:11630 未完成信号:23820信号发出率:81.88% 平均成功率:21.03% 成功率达到50%的股票数有:7.68%利润1总平均:287.96% 最大平均利润1: 9524.29% 最小平均利润1: 4.35%利润2总平均:102.22% 最大平均利润2: 6388.97% 最小平均利润2: -79.94%源码:VA1:=C / REF(C,1)>1.05 AND HIGH = CLOSE AND LOW < CLOSE ;VA2:=C/LLV(LOW,4) <1.15 AND CLOSE/LLV(LOW,4)> 1.05;VA3:=LLV(LOW,4) = LLV(LOW,10);VA4:=V/REF(V,1)>1.5;VA5:=crOSS(C,ma(C,5));抓妖:VA1 AND (VA2 OR VA3) AND VA4 AND VA5;。
【指标公式源码下载】通达信伏击涨停主图指标公式【五日乖离、黄托底买进,绿压顶买出、金叉、涨停】
通达信伏击涨停主图指标公式【支撑、多空线、五日乖离、黄托底买进,绿压顶买出、金叉、死叉、涨停】V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARD:=REF(VARC,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,L,L*0.98,3,0),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,H*1.01,H,3,0),COLOR00FF00{98FD};MA3:MA(C,3);MA5:MA(C,5),COLORWHITE;MA10:=MA(C,10),NODRAW;MA30:MA(C,34),NODRAW;五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORGREEN; DD5:=MA5<REF(MA5,1);IF(DD5,MA5,DRAWNULL),COLOR00FF00;X:=(3*C+L+O+H)/6;多空线:SMA((CLOSE+HIGH+LOW)/3,9,1);{用法:黄托底买进,绿压顶买出。
通达信指标公式源码 妖股启动副图指标
VAR1:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3); STICKLINE(VAR1>20 AND VAR1<80,VAR1,VAR1,10,1),COLORRED;STICKLINE(VAR1<REF(VAR1,1),VAR1,VAR1,10,1),COLORFFCC66;STICKLINE(VAR1>80,VAR1,VAR1,8,1),COLOR00FF00;STICKLINE(VAR1<20,VAR1,VAR1,8,1),COLORYELLOW;ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/2500 0,2);M1:=EMA(ABV,12);M2:=EMA(ABV,26);MTM:=CLOSE-REF(CLOSE,1);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));MMA:=C-REF(C,1);MMB:=100*EMA(EMA(MMA,9),9)/EMA(EMA(ABS(MMA),9),9);MMC:=MA(MMB,5);A:=((VOL)/(CAPITAL))*(100);S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60));Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60));X:=1;V1:=(HIGH+OPEN+LOW+(2)*(CLOSE))/(5);V2:=REF(V1,1);V3:=MAX(V1-V2,0);V4:=ABS(V1-V2);V5:=SMA(V3,10,1);V6:=SMA(V4,10,1);V8:=COUNT(((V5)/(V6)<0.2),5);V9:=COUNT((LLV(V1,10)=V1),10);主力进出:IF((MMS>REF(MMS,1) AND MMB>REF(MMB,1) AND CROSS(ABV,M2) AND ABV>REF(ABV,1) AND M1>REF(M1,1) AND M2>REF(M2,1)),65,0),COLORWHITE,POINTDOT;主进主轨:=ABV>M2 AND CROSS(ABV,M1) AND CROSS(MMB,MMC);STICKLINE(主力进出OR 主进主轨,65,0,4,1),COLORWHITE;精准买卖:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND MMS>MML AND CROSS(ABV,M2);短线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND CROSS(MMS,MML) AND ABV>REF(ABV,1);中线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1))AND ABV>REF(ABV,1) AND MMS>MML AND CROSS(MMM,MML) AND MMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1);主进主买:=ABV>M2 AND MMB>MMC AND CROSS(MMS,MML) AND MMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1);{好}短中精:=精准买卖OR 短线买点OR 中线买点OR 主进主买;主力买卖:IF(短中精,60,0),COLORFF00FF,POINTDOT;STICKLINE(主力买卖,60,0,4,1),COLORFF00FF;主力轨迹:IF(ABV>M2 AND MMS>MML AND CROSS(MMB,MMC) AND MMB>REF(MMB,1) AND MMC>REF(MMC,1),55,0),COLORFFCC66,POINTDOT;STICKLINE(主力轨迹,55,0,4,1),COLORFFCC66;拉升在即:IF(S<X AND Y<X AND MMS>MML AND ABV>M1 AND CROSS(S,Y),50,0),COLORYELLOW,POINTDOT;STICKLINE(拉升在即,50,0,4,1),COLORYELLOW;底部构成:IF(V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND VOL>REF(VOL,1)AND ABV>M2 AND MMB>MMC,45,0),COLOR00FF00,POINTDOT;STICKLINE(底部构成,45,0,4,1),COLOR00FF00;ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;HSL:=100*VOL/CAPITAL;冲击波:IF(CROSS(ROC,16) AND HSL>3.5,40,0),COLOR0099FF,POINTDOT; STICKLINE(冲击波,40,0,4,1),COLOR0099FF;。
通达信鼎牛伏击涨停主图指标公式
通达信⿍⽜伏击涨停主图指标公式来源:Internet,编辑:股旁⽹,2016-07-01ma3D:=MA(C,3);MA5D:=MA(C,5);ZX:=(MA3D+MA5D)/2;MA20D:=MA(C,20),NODRAW;MA30D:=MA(C,30),NODRAW;QSXS:=MA5D>=MA30D AND MA30D>REF(MA30D,1);GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);YB:=C>REF((O-C)/2+C,2);买:=cr OSS(C,ZX) AND (GD OR YB) AND QSXS,COLOR00FF00,POINTDOT,LINETHICK0; {DRAWTEXT(买,L*0.99, '波段伏击'),COLOR00FF00;}DRAWTEXT_FIX(CURRBARSCOUNT=60,0.4,0.01,0,''),COLORGREEN;优:=买 AND MA5D>REF(MA5D,1),COLORYELLOW,POINTDOT,LINETHICK0;{以下设置主图显⽰⽅式}st ICKLINE(买,H,L,0,1),COLOR00FF00,LINETHICK2;STICKLINE(买,O,C,4.1,0),COLOR00FF00,LINETHICK2;STICKLINE(优,H,L,0,1),COLORYELLOW,LINETHICK2;STICKLINE(优,O,C,4,0),COLORYELLOW,LINETHICK2;{STICKLINE(CLOSE<OPEN ,HIGH,LOW,0,0),COLOR555500;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3.05,0),COLOR888800;STICKLINE(CLOSE<OPEN ,CLOSE,OPEN,2.75,0),COLORAAAA00;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.05,0),COLORCCCC00;STICKLINE(CLOSE<OPEN ,CLOSE,OPEN,1.75,0),COLOREEEE00;STICKLINE(CLOSE<OPEN ,CLOSE,OPEN,1.05,0),COLORFFFF00;}{STICKLINE(OPEN<CLOSE ,HIGH,LOW,0,0),COLOR000088;STICKLINE(OPEN<CLOSE,CLOSE,OPEN,3.05,0),COLOR000088;STICKLINE(OPEN<CLOSE ,CLOSE,OPEN,2.55,0),COLOR000099;STICKLINE(OPEN<CLOSE ,CLOSE,OPEN,1.85,0),COLOR0000AA;STICKLINE(OPEN<CLOSE ,CLOSE,OPEN,1.35,0),COLOR0000BB;STICKLINE(OPEN<CLOSE ,CLOSE,OPEN,0.85,0),COLOR0000CC;STICKLINE(OPEN<CLOSE ,CLOSE,OPEN,0.35,0),,COLOR0000DD;}MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;红线上⽜股起:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF( MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED,LINETHICK2;绿线下熊股出:MA(红线上⽜股起,6),COLORGREEN,LINETHICK2;均价线:=AMOUNT/V/100,POINTDOT;C2:=REF(C,1);UPQK:=LOW-REF(HIGH,1);STICKLINE(CLOSE>REF(CLOSE,1) AND UPQK>0,REF(HIGH,1),LOW,4,0),COLORGRAY; DOWNQK:=REF(LOW,1)-HIGH;STICKLINE(CLOSE<REF(CLOSE,1) ANDDOWNQK>0,REF(LOW,1),HIGH,3.05,0),COLORBLUE;N:=10;M:=9;VAB0:=531;VAB1:=1510000;VAB2:=VAB0 + VAB1;A:=SMA(L,4,3) ;B1:='┄┄┄┄┄';VAB3:=IF(DATE > VAB2,0,1);{DRAWTEXT(均价线 AND 涨停,均价线,B1),COLORGREEN;}B3:='┄┄┄┄┄';涨停:=IF(REF(C,1)*1.1*VAB3-C<0.01 ,1,0);DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3),COLORMAGENTA;B2:='┄┄┄┄┄';DRAWTEXT(涨停,L,B2),COLORGRAY;MA5:=MA(C,5);MA21:=MA(C,21);涨停密码线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORWHITE; LC:=REF(CLOSE,1);第⼀操盘线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(A bs(CLOSE-LC),2,1)*100,COLORWHITE,LINETHICK2;趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,COLORGRAY;震仓线:=45,COLORMAGENTA;震仓线2:=50,COLORGRAY;逃命线:=80,COLORRED;抄底线:=20,COLORGREEN;绝底线:=5,COLORBLUE;VARA12:=SMA(H,10,9)*VAB3;VARA13:=SMA(L,10,9)*VAB3;PP2:=第⼀操盘线<震仓线2 AND REF(第⼀操盘线,1)>震仓线2 ;PP:=第⼀操盘线<震仓线 AND REF(第⼀操盘线,1)>震仓线 ;PP3:=第⼀操盘线<抄底线 AND REF(第⼀操盘线,1)>抄底线;HH:=COUNT(涨停,13)>=1;HD:=COUNT(涨停,21)>=1;A1:=SMA(H,N,M);STICKLINE(A1 AND HD ,A1,A1*1.001,0.3,0)COLORWHITE;A2:=SMA(L,N,M);{STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(涨停,H,L,0,0),COLORYELLOW;STICKLINE(涨停,OPEN,CLOSE,1.9,0) ,COLOR1029FF;STICKLINE(涨停,OPEN,CLOSE,2.3,0) ,COLOR1040FF;STICKLINE(涨停,OPEN,CLOSE,2.0,0) ,COLOR1083FF;STICKLINE(涨停,OPEN,CLOSE,1.6,0) ,COLOR10ABFF;STICKLINE(涨停,OPEN,CLOSE,1,0) ,COLOR10D0FF;STICKLINE(涨停,OPEN,CLOSE,0.2,0) ,COLOR10FFFF;}STICKLINE(涨停,H,L,0,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,3,0) ,COLORRED;STICKLINE(涨停,(C+O)/2,C,2.5,0),COLOR10D0FF;卖出全息价参考:VARA12,COLORRED,NODRAW;补仓全息价参考:VARA13,COLORGREEN,NODRAW;DRAWICON(优,L,11);DRAWTEXT(优,L*0.99, '伏击涨停'),COLORRED;。
通达信最佳买点主副图擒妖抓牛源码,90%牛妖股启动前提醒入场
通达信最佳买点主副图擒妖抓牛源码,90%牛妖股启动前提醒入场一招致胜主图公式最佳买点副图公式:主图指标:MA5:MA(C,5);MA10:MA(C,10);MA30:MA(C,30);DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);MACD1:=CROSS(DIFF,DEA) AND COUNT(MACD>0,1)=1;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;KDJ1:=CROSS(K,D) AND CROSS(J,D);均线:=CROSS(MA(C,5),MA(C,10));量线:=CROSS(MA(V,5),MA(V,10));SCC:=MACD1 AND KDJ1 AND 均线 AND 量线;SC1:=MACD1 AND KDJ1;SC2:=均线 AND 量线;SC3:=均线 AND MACD1;SC4:=量线 AND KDJ1;SC5:=均线 AND KDJ1;SC6:=MACD1 AND 量线;DRAWICON(SC1 OR SC2 OR SC3 OR SC4 OR SC5 OR SC6,L-0.20,9);{两个以上指标同时金叉显示9号图标}DRAWICON(SCC,L-0.20,3);{四个指标同时金叉显示3号图标,便于区别}副图指标: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;通达信擒妖抓牛,这个指标能在90%牛妖股启动前提醒入场:。
通达信妖股牛牛选股指标公式源码编程思路破译及成功率回测数据
通达信妖股牛牛选股指标公式源码编程思路破译及成功率回测数据编程思路破译X_1赋值:如果收盘价>1日前的收盘价,返回88,否则返回0X_2赋值:如果收盘价/1日前的收盘价>1.05ANDHIGH/收盘价<1.01ANDX_1>0,返回91,否则返回0X_3赋值:收盘价>收盘价的20日简单移动平均AND 收盘价>收盘价的60日简单移动平均X_4赋值:收盘价的20日简单移动平均X_5赋值:收盘价>X_4X_6赋值:最高价的21日[2日权重]移动平均*1.05X_7赋值:最低价的21日[2日权重]移动平均*0.95X_8赋值:最低价的5日[1日权重]移动平均X_9赋值:(最高价-收盘价)/收盘价*100<1X_10赋值:收盘价/1日前的收盘价>1.03X_11赋值:收盘价的2日[1日权重]移动平均X_12赋值:如果X_11上穿X_8,返回X_6*1.05,否则返回X_8X_13赋值:如果X_11上穿X_6,返回X_6*1.1,否则返回X_7输出妖股牛牛:X_13>X_7 OR X_12>X_8 AND X_9 AND X_10 AND X_3 AND X_5条件选股:通达信妖股牛牛[日线]成功率测试测试股票数:5022共发出信号:191944 成功信号:103176 失败信号:87733 未完成信号:1035信号发出率:91.24% 平均成功率:54.04% 成功率达到50%的股票数有:64.03%利润1总平均:15.35% 最大平均利润1: 139.64% 最小平均利润1: 0.00%利润2总平均:0.51% 最大平均利润2: 78.54% 最小平均利润2: -36.83%条件选股:通达信妖股牛牛[日线]成功率测试测试股票数:5022共发出信号:191944 成功信号:159308 失败信号:27125 未完成信号:5511信号发出率:91.24% 平均成功率:85.45% 成功率达到50%的股票数有:95.53%利润1总平均:53.64% 最大平均利润1: 1147.12% 最小平均利润1: 0.00%利润2总平均:7.37% 最大平均利润2: 688.14% 最小平均利润2: -71.78%程序源码X_1:=IF(CLOSE>REF(CLOSE,1),88,0);X_2:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE<1.01 AND X_1>0,91,0);X_3:=CLOSE>MA(CLOSE,20) AND CLOSE>MA(CLOSE,60);X_4:=MA(CLOSE,20);X_5:=CLOSE>X_4;X_6:=SMA(HIGH,21,2)*1.05;X_7:=SMA(LOW,21,2)*0.95;X_8:=SMA(LOW,5,1);X_9:=(HIGH-CLOSE)/CLOSE*100<1;X_10:=CLOSE/REF(CLOSE,1)>1.03;X_11:=SMA(CLOSE,2,1);X_12:=IF(CROSS(X_11,X_8),X_6*1.05,X_8);X_13:=IF(CROSS(X_11,X_6),X_6*1.1,X_7);妖股牛牛:X_13>X_7 OR X_12>X_8 AND X_9 AND X_10 AND X_3 AND X_5;。
通达信抓牛股副图指标妖股的好助手源码
通达信抓牛股副图指标妖股的好助手源码以下是通达信抓牛股副图指标妖股的好助手源码(无源码的请下载附件导入)DIF:=EMA(CLOSE,12) - EMA(CLOSE,27);DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA);CCI线:=CCI(84);分割线:=100.00;妖股启动:=CROSS(CCI线,分割线) AND MACD>0 AND MACD>=REF(MACD,1) ANDREF(MACD,1)<REF(MACD,2) AND C>=REF(C,1)*1.05;妖股启动选股:STICKLINE(妖股启动,1,4,2,0),COLORYELLOW;DRAWTEXT(妖股启动,3.5,'妖股启动'),COLORMAGENTA;月DIF:="MACD.DIF#MONTH";月DEA:="MACD.DEA#MONTH";周DIF:="MACD.DIF#WEEK";周DEA:="MACD.DEA#WEEK";日DIF:="MACD.DIF";日DEA:="MACD.DEA";日金叉:=CROSS(日DIF,日DEA);周金叉:=CROSS(周DIF,周DEA);月金叉:=CROSS(月DIF,月DEA);金叉共振:=IF(CROSS(周DIF,周DEA),MACD,0) AND C>REF(C,1)*1.078;共振:=IF((日DIF>日DEA AND 周DIF>周DEA AND 月金叉) OR ( 周DIF>周DEA AND 月DIF>月DEA AND 日金叉)OR (月DIF>月DEA AND 日DIF>日DEA AND 周金叉) OR (日金叉 AND 周金叉 AND 月金叉),MACD+0.2,0) AND C>REF(C,1)*1.078;起爆抓妖选股:STICKLINE(共振,1,3,2,0),COLORRED;妖股初现选股:STICKLINE(金叉共振,0,2,3,0),COLORCC3299;起爆选股:DRAWTEXT(共振,2.5,'起爆'),COLORYELLOW ;青云直上选股:DRAWTEXT(金叉共振,1.8,'青云直上'),COLORLIRED;{时间}N1:=STRCAT(CON2STR(YEAR,0),' 年 ');Y1:=STRCAT(CON2STR(MONTH,0),' 月 ');R:=STRCAT(CON2STR(DAY,0),' 日 ');SJ:=STRCAT(STRCAT(N1,Y1), R);DRAWTEXT_FIX(C>0,0.88,0,0,SJ),COLORYELLOW;{七号}EE:=MACD-REF(MACD,1)>0.05 AND COUNT(C/REF(C,1)>1.09,16)<2 AND C=HHV(H,60) AND C/REF(C,1)>1.07 AND NOT(H=L) AND COUNT(C>O,6)<=4 AND C/REF(C,9)<1.2; STICKLINE(EE AND C/REF(C,1)>1.05,0,1.5,4,0),COLORDB7093;打板启动选股:DRAWTEXT(EE AND C/REF(C,1)>1.05,1.2,'打板启动'),COLORRED; VOLUME:=VOL;MA1:=MA(VOLUME,5);启动:= (MA1+MA1)>VOLUME;买入:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND CLOSE>=HHV(HIGH,10) AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85) AND C>O;选股:=(C>REF(HHV(H,3),1) AND (C-REF(C,1))/REF(C,1)>0.07) AND 启动 AND 买入;抓妖股启动选股:STICKLINE(选股 AND C/REF(C,1)>1.05,0,1,5,0),COLORYELLOW;箭步如飞选股:DRAWTEXT(选股,0.5,'箭步如飞'),COLORMAGENTA;抓妖股:=金叉共振 AND 共振 AND 选股 ;抓妖股选股:DRAWICON(抓妖股,3.3,26)COLORYELLOW;。
伏击活跃股指标公式源码
伏击活跃股指标公式源码伏击活跃股指标是一种技术分析工具,用于判断股市中活跃的股票。
它基于市场的波动和交易量的变化,帮助投资者识别潜在的交易机会。
该指标的公式源码如下:```// 计算股票收盘价的移动平均价float[] closePrices = getClosePrices(); // 获取收盘价数组int period = 20; // 移动平均周期float[] movingAverages = new float[closePrices.length]; for (int i = period - 1; i < closePrices.length; i++) { float sum = 0;for (int j = i - period + 1; j <= i; j++) {sum += closePrices[j];}movingAverages[i] = sum / period;}// 计算成交量的移动平均值float[] volumes = getVolumes(); // 获取成交量数组float[] volumeMovingAverages = new float[volumes.length]; for (int i = period - 1; i < volumes.length; i++) {float sum = 0;for (int j = i - period + 1; j <= i; j++) {sum += volumes[j];}volumeMovingAverages[i] = sum / period;}// 计算伏击活跃股指标float[] ambushIndicators = new float[closePrices.length]; for (int i = period - 1; i < closePrices.length; i++) { ambushIndicators[i] = movingAverages[i] / volumeMovingAverages[i];}// 输出伏击活跃股指标结果for (int i = period - 1; i < closePrices.length; i++) { System.out.println("Date: " + getDate(i) + " Ambush Indicator: " + ambushIndicators[i]);}```这段源码首先计算了股票收盘价的移动平均价和成交量的移动平均值。
通达信涨停板妖股第二波副图选股指标源码编程思路破译
通达信涨停板妖股第二波副图选股指标源码编程思路破译编程思路破译选股指标X_1赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>=9.9X_2赋值:上次1日前的最近2日一直存在X_1距今天数<30X_3赋值:最近30-2+1日存在最近2日一直存在收盘价/1日前的收盘价>1.095ANDCLOSE=最高价X_4赋值:如果模糊匹配品种名称,返回0,否则返回1X_5赋值:当前流通股本(手)/1000000<=35X_6赋值:统计30日中满足X_3的天数>0X_7赋值:X_4 AND X_5 AND X_6X_8赋值:(2*收盘价+最高价+最低价)/4的5日简单移动平均X_9赋值:X_8*102/100X_10赋值:X_8*(200-102)/100X_11赋值:(2*收盘价+最高价+最低价)/4-收盘价的20日简单移动平均的绝对值/收盘价的20日简单移动平均X_12赋值:以X_11为权重收盘价的动态移动平均X_13赋值:(1+7/100)*X_12X_14赋值:(1-7/100)*X_12X_15赋值:1日前的收盘价<=X_14X_16赋值:收盘价>=X_14X_17赋值:收盘价的20日指数移动平均X_18赋值:收盘价的21日指数移动平均X_19赋值:收盘价的22日指数移动平均X_20赋值:收盘价的19日指数移动平均X_21赋值:最高价的5日简单移动平均X_22赋值:最高价的4日简单移动平均X_23赋值:1日前的收盘价<=X_17X_24赋值:1日前的收盘价<=X_18X_25赋值:1日前的收盘价<=X_19X_26赋值:1日前的收盘价<=X_20X_27赋值:收盘价>=X_21X_28赋值:1日前的收盘价<=X_21X_29赋值:1日前的收盘价<=X_22X_30赋值:收盘价>=X_21X_31赋值:收盘价>=X_22X_32赋值:X_23 OR X_24 OR X_25 OR X_26 OR X_15X_33赋值:收盘价>=X_17X_34赋值:收盘价>=X_18X_35赋值:收盘价>=X_19X_36赋值:X_33X_37赋值:最高价的6日简单移动平均X_38赋值:1日前的最高价的10日简单移动平均X_39赋值:1日前的收盘价<=X_38X_40赋值:收盘价>=X_38X_41赋值:1日前的收盘价<=X_37X_42赋值:收盘价>=X_37X_43赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均X_44赋值:X_43的9日指数移动平均X_45赋值:(X_43-X_44)*2X_46赋值:X_43<=1X_47赋值:(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4 X_48赋值:1日前的收盘价<=X_47X_49赋值:(收盘价-收盘价的60日简单移动平均)/收盘价的60日简单移动平均的绝对值<3 AND (收盘价-1日前的收盘价)/收盘价*100的10日累和<(-5)X_50赋值:(收盘价-1日前的收盘价)/收盘价*100的25日累和<(-1)X_51赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100的3日累和<5X_52赋值:收盘价的8日指数移动平均X_53赋值:1日前的收盘价<=X_52X_54赋值:(收盘价-3日前的收盘价)/3日前的收盘价*100<(-3)X_55赋值:X_54=3X_56赋值:1日前的X_54=3X_57赋值:(收盘价/1日前的收盘价-1)*100X_58赋值:2日前的X_57的2日累和<0输出AA:X_4=1 AND X_7 AND X_2 AND X_41 AND X_42 AND X_58,画洋红色X_59赋值:收盘价/1日前的收盘价>1.057X_60赋值:统计25日中满足AA的天数>0X_61赋值:X_60 AND X_33输出EE:X_4=1 AND X_7 AND X_2 AND X_39 AND X_41 AND X_53 AND X_40当满足条件AA时,在0和1位置之间画柱状线,宽度为0,0不为0则画空心柱.,画红色当满足条件AA时,在0和0.5位置之间画柱状线,宽度为0.8,0不为0则画空心柱.当满足条件AA时,在0和0.5位置之间画柱状线,宽度为1,0不为0则画空心柱.。