通达信指标公式源码 涨停回调狙击
通达信涨停阻击指标源码支持手机电脑
通达信涨停阻击指标源码支持手机电脑通达信涨停阻击指标源码支持手机电脑明涨停价:CLOSE * 1.1,NODRAW;ST涨停价:CLOSE * 1.05,NODRAW;极品T爆点:REF(C,1)*1.01,COLORRED,NODRAW;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));VAR8:=(((CLOSE - VAR7) / VAR7) * 100);VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) < REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) >2.5));VARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100);VARF:=(((HIGH + LOW) + CLOSE) / 3);VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100))< (0 - 0.273));VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR13:=(VAR11 AND VAR12);VAR14:=((((VARA >= (0 - 45)) AND (VARA <= (0 - 10))) AND (VARB <= (0 - 15))) AND (VARC <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17:=1;VAB0:=531;VAB1:=1510000;VAB2:=VAB0 + VAB1; VAB3:=IF(DATE > VAB2,0,1);VARA12:=SMA(H,10,9)*VAB3; VARA13:=SMA(L,10,9)*VAB3; VAR18:=(CLOSE * VOL);VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);VAR1A:=(1 * VAR19);VAR1B:=(VAR19 * 0.92);VAR1C:=EMA(CLOSE,34);VAR1D:=MA((VAR1C * 1.12),5);VAR1E:=MA((VAR1C * 0.82),5);VAR1F:=(CLOSE < VAR1E);VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) /MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17));VAR21:=HHV(HIGH,500);VAR22:=LLV(LOW,500);VAR23:=HHV(HIGH,250);VAR24:=LLV(LOW,250);VAR25:=HHV(HIGH,125);VAR26:=LLV(LOW,125);VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35);VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18);VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);VAR2C:=VAR27;VAR2D:=VAR28;VAR2E:=VAR29;VAR2F:=VAR2A;VAR30:=VAR2B;VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));VAR32:=(INDEXA / 100000000);VAR33:=INDEXADV;VAR34:=INDEXDEC;VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);VAR37:=EMA(VAR35,10);VAR38:=EMA(VAR36,10);VAR39:=EMA(VAR37,10);VAR3A:=EMA(VAR38,20);VAR3B:=EMA(VAR37,3);VAR3C:=EMA(VAR39,6);VAR3D:=EMA(VAR3A,2);VAR3E:=(VAR3C - VAR3D);VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0));VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);VAR41:=VAR40;VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);VAR44:=(CLOSE - REF(MA(CLOSE,20),11));VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE <VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE< VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31));VAR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR49:=REF(CLOSE,1);VAR4A:=((SMA(MAX((CLOSE - VAR49),0),5,1) / SMA(ABS((CLOSE - VAR49)),5,1)) * 100);VAR4B:=(((HIGH + LOW) + CLOSE) / 3);VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100))< (0 - 0.273));VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR4F:=(VAR11 AND VAR12);VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));VAR51:=(COUNT(VAR50,1) >= 1);VAR52:=(VAR4F AND VAR51);VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);VAR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR57:=REF(CLOSE,1);VAR58:=((SMA(MAX((CLOSE - VAR57),0),5,1) / SMA(ABS((CLOSE - VAR57)),5,1)) * 100);VAR59:=(((HIGH + LOW) + CLOSE) / 3);VAR5A:=((VAR59 - MA(VAR59,14)) / (0.015 * AVEDEV(VAR59,14)));VAR5B:=((((((VAR54 >= (0 - 15.8)) AND (VAR54 <= (0 - 12.2))) AND (VAR55 <= (0 - 20.8))) AND (VAR56 <= (0 - 27.5))) AND (VAR58<= 11.7)) AND (VAR5A <= (0 - 145)));VAR5C:=9.999999884842+026;VAR5D:=(COST(10) * 0)*VAB3;VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));VAR61:=MA(CLOSE,3);VAR62:=(REF(CLOSE,2) * 0.865);VAR63:=(REF(CLOSE,13) * 0.772);VAR64:=MIN(VAR62,VAR63);VAR65:=((100 * VOL) / CAPITAL);VAR66:=MA(CLOSE,13);VAR67:=IF(((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8)),1,0);开始控盘:=STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),5,0)*VAB3,COLORBROWN;出击:=IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) <1.8))),120,0),LINETHICK2,COLOR0000FF;VAR68:=0;VARQ:=MA(CLOSE,152);VARW:=MA(CLOSE,194.16);VAREE:=(VARW + (2 * STD(CLOSE,170)));VARR:=(VARQ + (2 * STD(CLOSE,170)));VART:=IF((DATE > 1080822),0,1);VAR611:=EMA(HHV(HIGH,500),21);VAR71:=EMA(HHV(HIGH,250),21);VAR81:=EMA(HHV(HIGH,90),21);VAR91:=EMA(LLV(LOW,500),21);VARA1:=EMA(LLV(LOW,250),21);VARB1:=EMA(LLV(LOW,90),21);VARC1:=EMA((((((((VAR91 * 0.96) + (VARA1 * 0.96)) + (VARB1 * 0.96)) + (VAR611 * 0.558)) + (VAR71 * 0.558)) + (VAR81 * 0.558)) / 6),21);VARD1:=EMA((((((((VAR91 * 1.25) + (VARA1 * 1.23)) + (VARB1 * 1.2)) + (VAR611 * 0.55)) + (VAR71 * 0.55)) + (VAR81 * 0.65)) /6),21);VARE1:=EMA((((((((VAR91 * 1.3) + (VARA1 * 1.3)) + (VARB1 * 1.3)) + (VAR611 * 0.68)) + (VAR71 * 0.68)) + (VAR81 * 0.68)) /6),21);VARF1:=EMA((((((VARC1 * 3) + (VARD1 * 2)) + VARE1) / 6) * 1.738),21)*VAB3;VAR101:=REF(LOW,1);VAR111:=((SMA(ABS((LOW - VAR101)),3,1) / SMA(MAX((LOW - VAR101),0),3,1)) * 100);VAR121:=EMA(IF(((CLOSE * 1.35) <= VARF1),(VAR111 * 10),(VAR111 / 10)),3)*VAB3;VAR131:=LLV(LOW,30);VAR141:=HHV(VAR121,30)*VAB3;VAR151:=IF(MA(CLOSE,58),1,0);VAR161:=((EMA(IF((LOW <= VAR131),((VAR121 + (VAR141 * 2)) / 2),0),3) / 618) * VAR151);VAR171:=(((IF((VAR161 > 50),50,VAR161) / 20) * 15) * VART)*VAB3;SG:=EMA(HHV(HIGH,1),8);X1:=EMA(CLOSE,8);X30:=((X1 < REF(X1,1)) AND (CLOSE < X1));X31:=IF(((SG < REF(SG,1)) OR X30),1,0);LC:=REF(CLOSE,1);{量化分析}操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORRED,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;PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;PP:=操作线<震仓线AND REF(操作线,1)>震仓线 ;PP3:=操作线<抄底线AND REF(操作线,1)>抄底线*VAB3;卖出全息价参考:VARA12,COLORRED,NODRAW;补仓全息价参考:VARA13,COLORGREEN,NODRAW;涨T狙击手:(((((COUNT((X31 = 1),4) = 3) AND (X31 = 0))AND O<C AND (((C-REF(C,1))/REF(C,1))>0.085))*89) >=89)OR((C-REF(C,1))/REF(C,1)>0.085 AND (REF(PP3,1) OR REF(PP,1))) AND VAB3=1,COLORYELLOW,NODRAW;STICKLINE(涨T狙击手,3,2,1,0),COLORRED;STICKLINE(涨T狙击手,2,1,2,0),COLORFF00FF;STICKLINE(涨T狙击手,1,0,4,0),COLORYELLOW;公:DRAWNULL,COLORCCCCCC;众:DRAWNULL,COLORCCCCCC;号:DRAWNULL,COLORCCCCCC;股市客栈:DRAWNULL,COLORCCCCCC;。
通达信指标公式源码 回调K线 做强势回调必备 源码
{回调K线}涨幅:100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORWHITE;最大涨幅:100*(H-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORYELLOW; 最大跌幅:100*(L-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORYELLOW;实体幅:ABS(100*(CLOSE-OPEN)/OPEN),NODRAW,COLORRED;上影幅:IF(CLOSE>OPEN,100*(H-C)/C,100*(H-O)/O),NODRAW,COLORYELLOW; 下影幅:IF(CLOSE>OPEN,100*(O-L)/L,100*(C-L)/L),NODRAW,COLORWHITE; X:=(3*C+L+O+H)/6;AH1:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*RE F(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*R EF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*RE F(X,18)+REF(X,20))/210;CP:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/ 12);AH2:=EXPMEMA(CP,25);持股线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; VAR2M:=CLOSE*VOL;VAR3M:=EMA((EXPMA(VAR2M,3)/EXPMA(VOL,3)+EXPMA(VAR2M,6)/EXPMA(VOL,6)+EXPMA(VAR2M,12)/EXPMA(VOL,12)+EXPMA(VAR2M,24)/EXPMA(VOL,2 4))/4,13);SDN:=VAR3M*0.94;涨停B:=CLOSE>1.1*REF(CLOSE,1)-0.005 AND H>L;首个涨停:=BARSLAST(涨停B);大阳:=100*(H-REF(C,1))/REF(C,1)>7;DRAWICON((C>SDN AND 100*(L-持股线)/持股线<1.5 AND100*(L-((MIN(AH2,AH1)+MIN(持股线,AH2)+MIN(持股线,AH1))/2.95))/((MIN(AH2,AH1)+MIN(持股线,AH2)+MIN(持股线,AH1))/2.95)<1.5 AND (COUNT(大阳{ OR 倍量},13)>=2 OR 首个涨停<13) AND BARSLAST(大阳)>0 AND 涨幅<=2),L*0.98,1);DRAWTEXT(CLOSE>1.1*REF(CLOSE,1)-0.005,CLOSE*1.02,'停,'),COLORCYAN; DRAWTEXT(CLOSE<0.9*REF(CLOSE,1)+0.005,L*0.98,'停,'),COLORCCCCCC; VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;火:=BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1));CRXP:=((REF(上影幅,1)>3 AND REF(下影幅,1)<1.15))AND ((下影幅>3 AND 上影幅<1.55)) AND 涨幅<8;JM:=(3*SMA(SMA(VAR32,2,1),2,1)-2*SMA(SMA(SMA(VAR32,2,1),2,1),3,1)); 强势回调:=(首个涨停<14 OR (首个涨停<26 AND 首个涨停>19));搓揉:=((强势回调AND CRXP) OR (CRXP AND (JM>REF(JM,1) OR (火>0 AND JM<7))));DRAWTEXT_FIX(1,0.85,0,0,'~ 作者: 阿虎~'),COLORCYAN;DRAWTEXT(搓揉,L*0.98,'搓揉,'),COLORYELLOW;回调搓合承受价:(MIN(AH2,AH1)+MIN(BBI,AH2)+MIN(BBI,AH1))/2.95,NODRAW;大盘短期生命线:EMA(((SLOPE(INDEXC,22)*23)+INDEXC),48),COLORYELLOW,LINETHICK3, NODRAW;=============================================== =============================================== ==============={均线定势}日最大涨幅:100*(H-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORYELLOW; 日涨幅:100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORWHITE; M5:MA(C,5),COLORWHITE;M10:MA(C,10),COLORYELLOW;M20:MA(C,20),COLORBLUE;MA30:MA(C,30),COLORRED,LINETHICK2;M60:MA(C,60),COLORFFCC66;PMA:=MA(C,5);X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X, 5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*R EF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*RE F(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK2;DD:=多空线<REF(多空线,1);IF(DD,多空线,DRAWNULL),COLOR00FFFF,LINETHICK2;A:=(PMA>多空线);IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLO RGREEN,LINETHICK2;IF(MA(CLOSE,5)<=REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORGR EEN;IF(MA(CLOSE,10)<=REF(MA(CLOSE,10),1),MA(CLOSE,10),DRAWNULL),COLO RGREEN;DRAWTEXT(CLOSE>=1.094*REF(CLOSE,1),CLOSE*1.02,'停,'),COLORCYAN; VARZT:=BARSLAST(C/REF(C,1)>1.094);DRAWTEXT(VARZT=2,L*0.95,'3T'),COLORYELLOW;DRAWTEXT(VARZT=4,H*1.06,'5T'),COLORYELLOW;DRAWTEXT(VARZT=7,L*0.95,'8T'),COLORYELLOW;DRAWTEXT(VARZT=12,H*1.06,'13T'),COLORYELLOW;DRAWTEXT(VARZT=20,L*0.95,'21T'),COLORYELLOW;DRAWTEXT(VARZT=33,H*1.06,'34T'),COLORYELLOW;DRAWTEXT(VARZT=54,L*0.95,'55T'),COLORYELLOW;DRAWTEXT_FIX(1,0,0,0,'总股本(亿):'),COLORLIGRAY;DRAWNUMBER_FIX(1,0.06,0,0,CONST(FINANCE(1)/100000000)),COLORLIGR AY;DRAWTEXT_FIX(1,0.13,0,0,'流通股本(亿):'),COLORLIGRAY; DRAWNUMBER_FIX(1,0.2,0,0,CONST(CAPITAL/1000000)),COLORLIGRAY; DRAWTEXT_FIX(1,0.25,0,0,'所属板块:'),COLORLIGRAY;DRAWTEXT_FIX(1,0.302,0,0,HYBLOCK),COLORLIGRAY;DRAWTEXT_FIX(1,0.35,0,0,DYBLOCK),COLORLIGRAY;AL2:=ABS((REF(C,1)-(REF(O,1)))/(REF(O,1)));AL3:=ABS((REF(H,1)-(REF(O,1)))/(REF(O,1)));AL4:=ABS((REF(L,1)-(REF(O,1)))/(REF(O,1)));ELE:=(((REF(HIGH,1))+(REF(LOW,1))+(REF(OPEN,1))+2*(REF(CLOSE,1)))/5 );上升突破价:=(ELE+((REF(HIGH,1))-(REF(LOW,1))));上升阻力价:=(2*ELE-(REF(LOW,1)));下跌支撑价:=(2*ELE-(REF(HIGH,1)));下跌反转价:=(ELE-((REF(HIGH,1))-(REF(LOW,1))));预测低一:=O-(O*(ABS((AL2+AL3+AL4)/3)));预测低二:=(预测低一+((((ELE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5)+O)/2))/2;VARM:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买盘:=IF(CLOSE>OPEN,VARM*(HIGH-LOW),IF(CLOSE<OPEN,VARM*((HIGH-OP EN)+(CLOSE-LOW)),VOL/2));DRAWTEXT_FIX(1,0.85,0,0,'~ 作者: 阿虎~'),COLORCYAN;DRAWTEXT_FIX(1,0.78,0.9,0,'@别人贪婪时我恐惧,别人恐惧时我贪婪!'),COLORLIGRAY;DRAWTEXT_FIX(1,0,0.10,0,'预测低一:'),COLORLIGRAY;DRAWTEXT_FIX(1,0,0.18,0,'预测低二:'),COLORLIGRAY;DRAWTEXT_FIX(1,0.25,0.18,0,'系数:'),COLORLIGRAY;DRAWNUMBER_FIX(1,0.06,0.10,0,CONST(预测低一)),COLORLIGRAY; DRAWNUMBER_FIX(1,0.06,0.18,0,CONST(预测低二)),COLORLIGRAY; DRAWTEXT_FIX(1,0.13,0.10,0,'成交量比:'),COLORLIGRAY;DRAWTEXT_FIX(1,0.13,0.18,0,'涨停价★:'),COLORLIGRAY; DRAWNUMBER_FIX(1,0.19,0.18,0,CONST(REF(C,1)+(REF(C,1))/10)),COLORL IGRAY;DRAWTEXT_FIX(1,0.25,0.10,0,'量比:'),COLORLIGRAY;DRAWNUMBER_FIX(1,0.19,0.10,0,CONST(买盘/VOL*100)),COLORLIGRAY; DRAWNUMBER_FIX(1,0.28,0.10,0,CONST(DYNAINFO(17))),COLORLIGRAY; DRAWNUMBER_FIX(1,0.28,0.18,0,CONST(IF(CURRBARSCOUNT=1,VOL*240/F ROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1))),COLORLIGRAY;。
通达信指标公式源码涨跌停牛熊线一目了然
通达信指标公式源码涨跌停牛熊线一目了然通达信是一种常用的股票分析软件,其具有丰富的指标公式源码库。
下面是一些通达信指标公式源码的示例,包括涨跌停和牛熊线指标。
1.涨跌停指标公式源码:
涨停、跌停是股票市场中非常重要的指标之一,可以用来衡量市场风险和市场情绪。
通达信中有很多方法可以计算涨跌停指标,以下是其中一种常用的方法:
```cpp
涨停:=REF(CLOSE,1)*1.1;
跌停:=REF(CLOSE,1)*0.9;
```
上述代码是一个简单的涨跌停指标计算公式,使用了通达信的内置变量REF,表示获取前一日的收盘价,并分别乘以1.1和0.9得到涨停价和跌停价。
2.牛熊线指标公式源码:
牛熊线是一种趋势判断指标,可以用来判断市场是牛市还是熊市。
通达信中有多种方法可以计算牛熊线指标,以下是其中一种常用的方法:```cpp
牛市:=MA(CLOSE,30)>MA(CLOSE,60);
熊市:=MA(CLOSE,30)<MA(CLOSE,60);
C1:牛市,COLORRED;
C2:熊市,COLORGREEN;
```
上述代码使用了通达信的内置函数MA,表示求移动平均线,分别计算了30日和60日的移动平均线,然后根据这两个移动平均线的大小关系判断市场是牛市还是熊市,并分别用红色和绿色表示。
以上仅仅是涨跌停和牛熊线指标的一种计算方法,通达信中还有很多其他的指标公式源码可以用来计算涨跌停和牛熊线指标。
每个人可以根据自己的需求和分析方法选择合适的指标公式进行使用。
轻松涨停狙击通达信指标公式源码
最近大盘一直在震荡,如意闲来无事整合优化一个涨停狙击指标优化之后感觉挺好的,所以发上来和大家一起分享下附图内是.TNE的通达信公式文件,是附图,下载之后直接导入软件内就行了,导入之后可以看到源码,源码全公开用法:同样是盘后选股,最好是5-10-20-30均线之上的,止盈止损10%N:=0.01;X_1:=DYNAINFO(4)>0;X_2:=EMA(CLOSE,5);X_3:=EMA(CLOSE,10);X_4:=EMA(CLOSE,20);X_5:=MAX(X_2,X_3);X_6:=MAX(X_4,X_5);X_7:=X_6;X_8:=MIN(X_2,X_3);X_9:=MIN(X_8,X_4);X_10:=X_9;X_11:=(X_7-X_10)/X_7*1000<25;X_12:=CLOSE>X_7;X_13:=OPEN<X_10;X_14:=X_12 AND X_13;X_15:=CROSS(X_2,X_3) OR CROSS(X_2,X_4) OR X_11;X_16:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;X_17:=SMA(X_16,3,1);X_18:=SMA(X_17,3,1);X_19:=CROSS(X_17,X_18) OR REF(CROSS(X_17,X_18),1);X_20:=(HIGH+LOW+CLOSE)/3;X_21:=(X_20-MA(X_20,14))/(0.015*AVEDEV(X_20,14));X_22:=X_21>REF(X_21,1);X_23:=X_1 AND X_14 AND X_15 AND X_19 AND X_22 AND X_18<65;X_24:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;X_25:=MA(X_24,3);X_26:=LLV(OPEN,30);X_27:=MA(CLOSE,10);X_28:=MA(CLOSE,12);X_29:=ATAN(X_27-REF(X_27,1))*3.1416*10;X_30:=ATAN(X_28-REF(X_28,1))*3.1416*10;X_31:=MA(CLOSE,13);X_32:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;X_33:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;X_34:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;X_35:=(X_32+2*X_33+3*X_34)/6;X_36:=MA(X_35,3);X_37:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);X_38:=(CLOSE-X_37)/X_37*100;X_39:=REF(X_38,1)<0-40 AND X_38>REF(X_38,1) AND REF(X_38,1)<REF(X_38,2) AND X_38-REF(X_38,1)>2.5;X_40:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;X_41:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;X_42:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;X_43:=REF(CLOSE,1);X_44:=SMA(MAX(CLOSE-X_43,0),5,1)/SMA(ABS(CLOSE-X_43),5,1)*100;X_45:=(HIGH+LOW+CLOSE)/3;X_46:=(X_45-MA(X_45,14))/(0.015*AVEDEV(X_45,14));X_47:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,110)/MA(VOL,110)/100)/(MA(AMO UNT,5)/MA(VOL,5)/100)<0-0.273;X_48:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)<0-0.125;X_49:=X_47 AND X_48;X_50:=X_40>=0-45 AND X_40<=0-10 AND X_41<=0-15 AND X_42<=0-20;X_51:=COUNT(X_50,1)>=1;X_52:=X_49 AND X_51;X_53:=1;X_54:=531;X_55:=1510000;X_56:=X_54+X_55;X_57:=1;X_58:=SMA(HIGH,10,9)*X_57;X_59:=SMA(LOW,10,9)*X_57;X_60:=CLOSE*VOL;X_61:=EMA((MA(X_60,4)/MA(VOL,4)+MA(X_60,6)/MA(VOL,6)+MA(X_60,13)/MA(VOL,13 )+MA(X_60,24)/MA(VOL,24))/4,1);X_62:=1*X_61;X_63:=X_61*0.92;X_64:=EMA(CLOSE,34);X_65:=MA(X_64*1.12,5);X_66:=MA(X_64*0.82,5);X_67:=CLOSE<X_66;X_68:=(MA(AMOUNT,5)*X_53/MA(VOL,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(M A(AMOUNT,5)/MA(VOL,5)/100)<(0-0.4)*X_53;X_69:=HHV(HIGH,500);X_70:=LLV(LOW,500);X_71:=HHV(HIGH,250);X_72:=LLV(LOW,250);X_73:=HHV(HIGH,125);X_74:=LLV(LOW,125);X_75:=MA((X_69*0.45+X_71*0.5+X_70+X_72+X_74)/5,35);X_76:=MA((X_71*0.62+X_74)/2,35);X_77:=MA((X_71*0.75+X_74)/2,18);X_78:=MA((X_71*0.93+X_75*2+X_76*1.8+X_77*1.5)/4,18);X_79:=MA((X_69*0.95+X_75*3+X_76*2)/3,35);X_80:=X_75;X_81:=X_76;X_82:=X_77;X_83:=X_78;X_84:=X_79;X_85:=CLOSE-REF(MA(CLOSE,20),11)<0-2;X_86:=INDEXA/100000000;X_87:=INDEXADV;X_88:=INDEXDEC;X_89:=X_60/(X_60+X_61)*X_53;X_90:=X_61/(X_60+X_61)*X_53;X_91:=EMA(X_89,10);X_92:=EMA(X_90,10);X_93:=EMA(X_91,10);X_94:=EMA(X_92,20);X_95:=EMA(X_91,3);X_96:=EMA(X_93,6);X_97:=EMA(X_94,2);X_98:=X_96-X_97;X_99:=X_96-REF(X_96,1)>0 AND REF(X_96,1)-REF(X_96,2)<0;X_100:=IF(CROSS(X_95,X_96) AND X_96<=20,30,0);X_101:=X_100;X_102:=SMA(AMOUNT/VOL/100,13,1)*1.15;X_103:=SMA(AMOUNT/VOL/100,13,1)*0.85;X_104:=CLOSE-REF(MA(CLOSE,20),11);X_105:=CLOSE<X_66 AND X_68 AND CLOSE<X_103 OR (CLOSE<X_66 AND X_85 AND X_68) OR (CLOSE<X_66 AND CLOSE<X_103) OR (CLOSE<X_66 AND X_68 AND CLOSE<X_103) OR (X_68 AND CLOSE<X_80) OR (X_68 AND X_85 AND X_104<0-1.5) OR (X_68 AND CLOSE<X_66) OR (X_68 AND X_104<0-1.5) OR (X_85 AND CLOSE<X_103) OR (CLOSE<X_80 AND X_104<0-1.5) OR (CLOSE<X_66 AND X_85);X_106:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;X_107:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;X_108:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;X_109:=REF(CLOSE,1);X_110:=SMA(MAX(CLOSE-X_109,0),5,1)/SMA(ABS(CLOSE-X_109),5,1)*100;X_111:=(HIGH+LOW+CLOSE)/3;X_112:=(X_111-MA(X_111,14))/(0.015*AVEDEV(X_111,14));X_113:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,110)/MA(VOL,110)/100)/(MA(AM OUNT,5)/MA(VOL,5)/100)<0-0.273;X_114:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)<0-0.125;X_115:=X_47 AND X_48;X_116:=X_32>=0-45 AND X_32<=0-7 AND X_33<=0-11 AND X_34<=0-14;X_117:=COUNT(X_116,1)>=1;X_118:=X_115 AND X_117;X_119:=X_68 AND CLOSE<X_66 AND X_85 AND CLOSE<X_80 AND X_105 AND X_118; X_120:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;X_121:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;X_122:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;X_123:=REF(CLOSE,1);X_124:=SMA(MAX(CLOSE-X_123,0),5,1)/SMA(ABS(CLOSE-X_123),5,1)*100;X_125:=(HIGH+LOW+CLOSE)/3;X_126:=(X_125-MA(X_125,14))/(0.015*AVEDEV(X_125,14));X_127:=X_120>=0-15.8 AND X_120<=0-12.2 AND X_121<=0-20.799999 AND X_122<=0-27.5 AND X_124<=11.7 AND X_126<=0-145;X_128:=10+26;X_129:=COST(10)*0*X_57;X_130:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AM OUNT,5)/MA(VOL,5)/100);X_131:=MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,5);X_132:=CROSS(0-5,X_131) AND X_130<0-0.4 AND (CLOSE-MA(CLOSE,30))/MA(CLOSE,30)<0-0.19;X_133:=MA(CLOSE,3);X_134:=REF(CLOSE,2)*0.865;X_135:=REF(CLOSE,13)*0.772;X_136:=MIN(X_134,X_135);X_137:=100*VOL/CAPITAL;X_138:=MA(CLOSE,13);X_139:=IF((CLOSE-X_136)/CLOSE<0.03 AND SUM(X_137,5)/5<1.8,1,0);X_140:=EMA(HHV(HIGH,1),8);X_141:=EMA(CLOSE,8);X_142:=X_141<REF(X_141,1) AND CLOSE<X_141;X_143:=IF(X_140<REF(X_140,1) OR X_142,1,0);X_144:=REF(CLOSE,1);X_145:=SMA(MAX(CLOSE-X_144,0),2,1)/SMA(ABS(CLOSE-X_144),2,1)*100;X_146:=SMA(MAX(CLOSE-X_144,0),14,1)/SMA(ABS(CLOSE-X_144),14,1)*100;X_147:=45;X_148:=50;X_149:=80;X_150:=20;X_151:=5;X_152:=X_145<X_148 AND REF(X_145,1)>X_148;X_153:=X_145<X_147 AND REF(X_145,1)>X_147;X_154:=X_145<X_150 AND REF(X_145,1)>X_150*X_57;涨停狙击:(COUNT(X_143=1,4)=3 AND X_143=0 AND OPEN<CLOSE AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>N)*89>=89 OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>N AND (REF(X_154,1) OR REF(X_153,1))) AND X_23 AND LOW<X_25*1.05,COLORYELLOW;。
涨停狙击通达信指标公式源码高成功率高成功率指标
它虽然有未来函数,不过有很强的参考意义——黑马暴涨主图DRAWTEXT_FIX(1,0.88,5,0,''),COLORRED;Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');ZK1:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLOR WHITE;ZD1:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COL ORRED;ZD2:EMA(ZD1,25),LINETHICK2;DRAWBAND(ZD1,RGB(55,0,0),ZD2,RGB(0,91,0));DRAWKLINE(H,O,L,C);STICKLINE(ZD1>LOW AND ZD1<HIGH,ZD1,MIN(MIN(OPEN,CLOSE),ZD1),2,0),COLORYELLOW;STICKLINE(ZD1>MIN(C,O) AND ZD1<MAX(C,O),ZD1,MIN(OPEN,CLOSE),2,0),COLORYELLOW;STICKLINE(ZD1>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(ZD1>HIGH,HIGH,LOW,0,0),COLORYELLOW;VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(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:=ZD1>HIGH AND 回调买AND L<=ZD1;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLO SE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOS E,OPEN))));QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX( OPEN,CLOSE))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OP EN)-JJ)));DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK; V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);V5:=SMA(V2*120/FROMOPEN*5,2,1);V10:=SMA(V5,5,1);V20:=SMA(V10,5,1);DY:=CURRBARSCOUNT=1 AND C<REF(C,1);DY2:=REF(V2,1)-DY;XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<ZK1; {DRAWTEXT(XG2,L,'▲抓牛'),COLORYELLOW;}DRAWTEXT(XG2 AND L<ZD1,L,'↖黑马暴涨'),COLORRED;。
通达信指标公式源码 一技必杀之涨停出击,信号准确!
明涨停价:CLOSE * 1.1,NODRAW;ST涨停价:CLOSE * 1.05,NODRAW;获利1个点:REF(C,1)*1.01,COLORRED,NODRAW;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));VAR8:=(((CLOSE - VAR7) / VAR7) * 100);VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) < REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) >2.5));VARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100); VARF:=(((HIGH + LOW) + CLOSE) / 3);VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100))< (0 - 0.273));VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR13:=(VAR11 AND VAR12);VAR14:=((((VARA >= (0 - 45)) AND (VARA <= (0 - 10))) AND (VARB <= (0 - 15))) AND (VARC <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17:=1;VAB0:=531;VAB1:=1510000;VAB2:=VAB0 + VAB1; VAB3:=IF(DATE > VAB2,0,1); VARA12:=SMA(H,10,9)*VAB3; VARA13:=SMA(L,10,9)*VAB3; VAR18:=(CLOSE * VOL); VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);VAR1A:=(1 * VAR19);VAR1B:=(VAR19 * 0.92);VAR1C:=EMA(CLOSE,34);VAR1D:=MA((VAR1C * 1.12),5);VAR1E:=MA((VAR1C * 0.82),5);VAR1F:=(CLOSE < VAR1E);VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17));VAR21:=HHV(HIGH,500);VAR22:=LLV(LOW,500);VAR23:=HHV(HIGH,250);VAR24:=LLV(LOW,250);VAR25:=HHV(HIGH,125);VAR26:=LLV(LOW,125);VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35); VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18);VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);VAR2C:=VAR27;VAR2D:=VAR28;VAR2E:=VAR29;VAR2F:=VAR2A;VAR30:=VAR2B;VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));VAR32:=(INDEXA / 100000000);VAR33:=INDEXADV;VAR34:=INDEXDEC;VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);VAR37:=EMA(VAR35,10);VAR38:=EMA(VAR36,10);VAR39:=EMA(VAR37,10);VAR3A:=EMA(VAR38,20);VAR3B:=EMA(VAR37,3);VAR3C:=EMA(VAR39,6);VAR3D:=EMA(VAR3A,2);VAR3E:=(VAR3C - VAR3D);VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0)); VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);VAR41:=VAR40;VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);VAR44:=(CLOSE - REF(MA(CLOSE,20),11));VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE <VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE< VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31));VAR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR49:=REF(CLOSE,1);VAR4A:=((SMA(MAX((CLOSE - VAR49),0),5,1) / SMA(ABS((CLOSE - VAR49)),5,1)) * 100); VAR4B:=(((HIGH + LOW) + CLOSE) / 3);VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100))< (0 - 0.273));VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR4F:=(VAR11 AND VAR12);VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));VAR51:=(COUNT(VAR50,1) >= 1);VAR52:=(VAR4F AND VAR51);VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);VAR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR57:=REF(CLOSE,1);VAR58:=((SMA(MAX((CLOSE - VAR57),0),5,1) / SMA(ABS((CLOSE - VAR57)),5,1)) * 100); VAR59:=(((HIGH + LOW) + CLOSE) / 3);VAR5A:=((VAR59 - MA(VAR59,14)) / (0.015 * AVEDEV(VAR59,14)));VAR5B:=((((((VAR54 >= (0 - 15.8)) AND (VAR54 <= (0 - 12.2))) AND (VAR55 <= (0 - 20.8))) AND (VAR56 <= (0 - 27.5))) AND (VAR58<= 11.7)) AND (VAR5A <= (0 - 145)));VAR5C:=9.999999884842+026;VAR5D:=(COST(10) * 0)*VAB3;VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));VAR61:=MA(CLOSE,3);VAR62:=(REF(CLOSE,2) * 0.865);VAR63:=(REF(CLOSE,13) * 0.772);VAR64:=MIN(VAR62,VAR63);VAR65:=((100 * VOL) / CAPITAL);VAR66:=MA(CLOSE,13);VAR67:=IF(((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8)),1,0); 开始控盘:=STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),5,0)*VAB3,COLORBROWN;出击:=IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) <0.03) AND ((SUM(VAR65,5) / 5) <1.8))),120,0),LINETHICK2,COLOR0000FF;VAR68:=0;VARQ:=MA(CLOSE,152);VARW:=MA(CLOSE,194.16);VAREE:=(VARW + (2 * STD(CLOSE,170)));VARR:=(VARQ + (2 * STD(CLOSE,170)));VART:=IF((DATE > 1080822),0,1);VAR611:=EMA(HHV(HIGH,500),21);VAR71:=EMA(HHV(HIGH,250),21);VAR81:=EMA(HHV(HIGH,90),21);VAR91:=EMA(LLV(LOW,500),21);VARA1:=EMA(LLV(LOW,250),21);VARB1:=EMA(LLV(LOW,90),21);VARC1:=EMA((((((((VAR91 * 0.96) + (VARA1 * 0.96)) + (VARB1 * 0.96)) + (VAR611 * 0.558)) + (VAR71 * 0.558)) + (VAR81 * 0.558))/ 6),21);VARD1:=EMA((((((((VAR91 * 1.25) + (VARA1 * 1.23)) + (VARB1 * 1.2)) + (VAR611 * 0.55)) + (VAR71 * 0.55)) + (VAR81 * 0.65)) /6),21);VARE1:=EMA((((((((VAR91 * 1.3) + (VARA1 * 1.3)) + (VARB1 * 1.3)) + (VAR611 * 0.68)) + (VAR71 * 0.68)) + (VAR81 * 0.68)) /6),21);VARF1:=EMA((((((VARC1 * 3) + (VARD1 * 2)) + VARE1) / 6) * 1.738),21)*VAB3;VAR101:=REF(LOW,1);VAR111:=((SMA(ABS((LOW - VAR101)),3,1) / SMA(MAX((LOW - VAR101),0),3,1)) * 100); VAR121:=EMA(IF(((CLOSE * 1.35) <= VARF1),(VAR111 * 10),(VAR111 / 10)),3)*VAB3; VAR131:=LLV(LOW,30);VAR141:=HHV(VAR121,30)*VAB3;VAR151:=IF(MA(CLOSE,58),1,0);VAR161:=((EMA(IF((LOW <= VAR131),((VAR121 + (VAR141 * 2)) / 2),0),3) / 618) * VAR151);VAR171:=(((IF((VAR161 > 50),50,VAR161) / 20) * 15) * VART)*VAB3;SG:=EMA(HHV(HIGH,1),8);X1:=EMA(CLOSE,8);X30:=((X1 < REF(X1,1)) AND (CLOSE < X1));X31:=IF(((SG < REF(SG,1)) OR X30),1,0);LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORRED,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;PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;PP:=操作线<震仓线AND REF(操作线,1)>震仓线;PP3:=操作线<抄底线AND REF(操作线,1)>抄底线*VAB3;卖出价参考:VARA12,COLORRED,NODRAW;补仓价参考:VARA13,COLORGREEN,NODRAW;财主抓涨停:(((((COUNT((X31 = 1),4) = 3) AND (X31 = 0))AND O<C AND (((C-REF(C,1))/REF(C,1))>0.085))*89) >=89)OR((C-REF(C,1))/REF(C,1)>0.085 AND (REF(PP3,1) OR REF(PP,1))) AND VAB3=1,NODRAW;STICKLINE(财主抓涨停,0.1,0,2,0),COLORRED;STICKLINE(财主抓涨停,0.1,1,2,0),COLORBLUE;STICKLINE(财主抓涨停,0.2,1,2,0),COLORRED;STICKLINE(财主抓涨停,0.3,1,2,0),COLORBLUE;STICKLINE(财主抓涨停,0.4,1,2,0),COLORMAGENTA;STICKLINE(财主抓涨停,0.5,1,2,0),COLORBROWN;STICKLINE(财主抓涨停,0.6,1,2,0),COLORMAGENTA;STICKLINE(财主抓涨停,0.7,1,2,0),COLORYELLOW;STICKLINE(财主抓涨停,0.8,1,2,0),COLORLIRED;STICKLINE(财主抓涨停,0.9,1,2,0),COLORYELLOW;。
通达信指标公式源码通达信狙击主力主图指标 源码
通达信狙击主力主图指标源码AMV0:=VOL*(O+C)/2;CG:MA(C,3),COLORFFCC66,LINETHICK2;FL:=HHV(CG,2);黄金线:HHV(CG,2),COLOR00FF00;FS:CG-(FL-CG),COLORRED,LINETHICK2;十:MA(C,13),COLOR00FFFF,LINETHICK2;涨:IF(MA(CLOSE,13)>REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COL ORRED,LINETHICK2;平:IF(MA(CLOSE,13)=REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COL OR00FFFF,LINETHICK3;跌:IF(MA(CLOSE,13)<REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COL ORGREEN,LINETHICK2;DRAWTEXT(平=十,十*0.998-0.01,'关注'),COLORCYAN;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波峰:IF(T1,A,A),COLORFF00FF,POINTDOT;STICKLINE(T1,A,A,9,0),COLORFF00FF;波谷:IF(T2,B,B),COLOR80FF00,POINTDOT;STICKLINE(T2,B,B,9,0),COLOR80FF00;VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/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; VAR7:=0;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;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);买1:=VAR10;{}买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买'),COLORRED;S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN; DRAWTEXT(卖1>0,HIGH*1.02,'卖'),COLORGREEN;{股灵吧决策}VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) -LLV(LOW,20))));VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) -LLV(LOW,20))));VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) -LLV(LOW,5))),34));X1:=(C+L+H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(9,17,8)<REF("MACD.MACD"(9,17,8),1);STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF; STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF; STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR990000; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;生命线:MA(CLOSE,43),LINETHICK3,COLORWHITE;AA1:=MA(C,5);BB1:=MA(C,15);AF:=CROSS(AA1,BB1);STICKLINE(AF,LLV(L,4),LLV(L,4),50,1),COLORRED,LINETHICK3; DRAWTEXT(AF,LLV(L,4),'止损线'),COLORYELLOW;VAR01:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-RE F(CLOSE,1))),25);VAR02:=HIGH-REF(HIGH,1);VAR03:=REF(LOW,1)-LOW;VAR04:=SUM(IF(VAR02>0 AND VAR02>VAR03,VAR02,0),25);VAR05:=SUM(IF(VAR03>0 AND VAR03>VAR02,VAR03,0),25);VAR06:=VAR04*100/VAR01;VAR07:=VAR05*100/VAR01;VAR08:=MA(ABS(VAR07-VAR06)/(VAR07+VAR06)*100,15);VAR09:=(VAR08+REF(VAR08,15))/2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; DRAWICON(CROSS(84,RSI) ,H*1.03,5);DRAWICON(CROSS(RSI,11) ,L*0.99,4);VAR27:=REF(CLOSE,1);VAR28:=SMA(MAX(CLOSE-VAR27,0),5.5,1)/SMA(ABS(CLOSE-VAR27),6,1)*10 0;DRAWICON(IF(CROSS(76,VAR28),1,0),H*1.03,5);DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 ANDEMA(CLOSE,12)/LOW>1.15,5),LOW,'☆'),LINETHICK7 , 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); DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>SS),H*1.02,'☆卖'),LINETHICK7,COLORGREEN;VAR31:=ZIG(3,10)<REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)>REF(ZIG(3,10),2);{ZIG 有未来}VAR32:=ZIG(3,10)>REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)<REF(ZIG(3,10),2);STICKLINE(VAR31,C,O,1,0),COLORYELLOW,LINETHICK2;{高位黄色} STICKLINE(VAR31,C,O,1,0),COLORYELLOW,LINETHICK2;{高位黄色} STICKLINE(VAR31,H,L,1,0),COLORYELLOW,LINETHICK2;{高位黄色} STICKLINE(VAR32,C,O,1,0),COLORFF00FF,LINETHICK2;{底位红色} STICKLINE(VAR32,C,O,1,0),COLORFF00FF,LINETHICK2;{底位红色} STICKLINE(VAR32,H,L,1,0),COLORFF00FF,LINETHICK2;{底位红色};。
通达信底部涨停选股指标公式源码编程思路破译及成功率回测数据
通达信底部涨停选股指标公式源码编程思路破译及成功率回测
数据
编程思路破译
SG赋值:1日内最高价的最高值的8日指数移动平均
X1赋值:收盘价的8日指数移动平均
X30赋值:X1<1日前的X1 AND 收盘价<X1
X31赋值:如果((SG<1日前的SG)ORX30),返回1,否则返回0
底部涨停赋值:(((统计4日中满足(X31=1)的天数=3 AND X31=0 AND (收盘价-1日前的收盘价)/1日前的收盘价>0.085))*89) 输出XG:底部涨停>=89
条件选股:底部涨停[日线]成功率测试(250日收益率10%)
测试股票数:5046
共发出信号:46391 成功信号:38681 失败信号:5976 未完成信号:1734
信号发出率:88.35% 平均成功率:86.62% 成功率达到50%的股票数有:94.37%
利润1总平均:57.15% 最大平均利润1: 855.91% 最小平均利润1: 0.00%
利润2总平均:5.76% 最大平均利润2: 427.50% 最小平均利润2: -77.08%。
通达信新涨停回马枪主图指标公式
通达信新涨停回马枪主图指标公式P1:=5;P2:=10;P3:=20;P4:=30;MA1:MA(C,P1);MA2:MA(C,P2);MA3:MA(C,P3);MA4:MA(C,P4);ZT:=(C/REF(C,1)-1)*100>9.5;ZT1:=BARSLAST((C/REF(C,1)-1)*100>9.5);最后涨停距今数:ZT1,NODRAW,COLORWHITE;ZT2:=BARSLAST(ZT);ZT3:=REF(H,ZT2)-REF(L,ZT2);STICKLINE(C,(REF(L,ZT2)+ZT3*0.5),(REF(L,ZT2)+ZT3*0.5),7,0), COLORRED;STICKLINE(C,REF(L,ZT2),REF(L,ZT2),2,0),COLORBLUE;STICKLINE(ZT,O,C,2.6,0),COLOR0000E5;STICKLINE(ZT,O,C,2.4,0),COLOR335555;STICKLINE(ZT,O,C,1.8,0),COLOR338888;STICKLINE(ZT,O,C,1.2,0),COLOR33AAAA;STICKLINE(ZT,O,C,0.6,0),COLOR33CCCC;STICKLINE(ZT,O,C,0.1,0),COLOR33EEEE;{DRAWTEXT(BARSTATUS=2 AND ZT1>13,(REF(L,ZT2)+ZT3*0.5)*1.06,CON2STR(ZT1,0)),LINETHICK 2,COLORYELLOW};STICKLINE(ZT1=2,L*0.97,L*0.98,8,0),COLOR0000FF;STICKLINE(ZT1=4,H*1.03,H*1.02,8,0),COLOR9966FF;STICKLINE(ZT1=7,L*0.97,L*0.98,8,0),COLOR00FFFF;STICKLINE(ZT1=12,H*1.03,H*1.02,8,0),COLORFF33FF;DRAWTEXT(ZT1=1,H*1.06,'1'),COLORYELLOW;DRAWTEXT(ZT1=2,H*1.06,'2'),COLORYELLOW;DRAWTEXT(ZT1=3,H*1.06,'3'),COLORYELLOW;DRAWTEXT(ZT1=4,H*1.06,'4'),COLORYELLOW;DRAWTEXT(ZT1=5,H*1.06,'5'),COLORYELLOW;DRAWTEXT(ZT1=6,H*1.06,'6'),COLORYELLOW;DRAWTEXT(ZT1=7,H*1.06,'7'),COLORYELLOW;DRAWTEXT(ZT1=8,H*1.06,'8'),COLORYELLOW;DRAWTEXT(ZT1=9,H*1.06,'9'),COLORYELLOW;DRAWTEXT(ZT1=10,H*1.06,'10'),COLORYELLOW;DRAWTEXT(ZT1=11,H*1.06,'11'),COLORYELLOW;DRAWTEXT(ZT1=12,H*1.06,'12'),COLORYELLOW;DRAWTEXT(ZT1=13,H*1.06,'13'),COLORYELLOW;DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);DEA:= EMA(DIFF,9);MACD:= 2*(DIFF-DEA);A1:= BARSLAST((C/REF(C,1)-1)*100>9.5);A2:= IF(REF(L,A1)>REF(H,A1+1),REF(C,A1+1),REF(O,A1));A3:= BETWEEN(A1,2,13);A4:= C>=A2 AND BETWEEN(L/A2,1.035,0.97);A5:= V<REF(V,1) AND V<MA(V,5);A6:= ABS(C/O-1)*100<5;A7:= LLV(C,A1)>=A2;A8:= MACD>-1;关注:=A3 AND A4 AND A5 AND A6 AND A7 AND A8;A9:=MA(C,5)>=A2 AND C>A2 AND C>=MA(C,5) AND REF(C,1)<=REF(MA(C,5),1)AND LLV(L,A1)<A2*1.045;买入:=REF(A3,1)>0 AND A9;STICKLINE(关注 AND NOT(ZT),O,C,2.4,0),COLOR550055; STICKLINE(关注 AND NOT(ZT),O,C,1.8,0),COLOR880088; STICKLINE(关注 AND NOT(ZT),O,C,1.2,0),COLORAA00AA; STICKLINE(关注 AND NOT(ZT),O,C,0.6,0),COLORCC00CC; STICKLINE(关注,O,C,0.1,0),COLOREE00EE; STICKLINE(买入 AND NOT(ZT),O,C,2.4,0),COLOR000055; STICKLINE(买入 AND NOT(ZT),O,C,1.8,0),COLOR000088; STICKLINE(买入 AND NOT(ZT),O,C,1.2,0),COLOR0000AA; STICKLINE(买入 AND NOT(ZT),O,C,0.6,0),COLOR0000CC; STICKLINE(买入,O,C,0.1,0),COLOR0000EE;跌停:=(C-REF(C,1))/REF(C,1)*100<-9.95;STICKLINE(跌停,O,C,2.4,0),COLOR555500; STICKLINE(跌停,O,C,1.8,0),COLOR888800; STICKLINE(跌停,O,C,1.2,0),COLORAAAA00; STICKLINE(跌停,O,C,0.6,0),COLORCCCC00; STICKLINE(跌停,O,C,0.1,0),COLOREEEE00;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
ZT1:=C/REF(C,1)>1.0975 AND C=H;TS:=BARSLAST(ZT1);
AA:=REF((H+L)/2,TS);
ZJ:IF(TS<=16,DRAWLINE(ZT1,(H+L)/2,ISLASTBAR,
REF((H+L)/2,TS),1),DRAWNULL),LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR,ZJ,' %ZJ'),COLORYELLOW;
MA30:MA(C,30);CPXA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
CPXB:(20*CPXA+19*REF(CPXA,1)+18*REF(CPXA,2)+17*REF(CPXA,3)+16*REF(CPXA,4) +15*REF(CPXA,5)+14*REF(CPXA,6)+13*REF(CPXA,7)+12*REF(CPXA,8)+11*REF(CPXA, 9)
+10*REF(CPXA,10)+9*REF(CPXA,11)+8*REF(CPXA,12)+7*REF(CPXA,13)+6*REF(CPXA, 14)
+5*REF(CPXA,15)+4*REF(CPXA,16)+3*REF(CPXA,17)+2*REF(CPXA,18)+1*REF(CPXA,1 9))/210;
ZT:=IF(REF(C,1)*1.1-C<0.01 ,1,0);LC:=REF(CLOSE,1);
CZX:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
ZCX:=45;ZCX2:=50;CDX:=20;
PP2:=CZX<ZCX2 AND REF(CZX,1)>ZCX2 ;PP:=CZX<ZCX AND REF(CZX,1)>ZCX ;PP3:=CZX<CDX AND REF(CZX,1)>CDX;
HH:=COUNT(ZT,9)>=1;
DDDD:=(PP2 AND HH OR PP AND HH OR PP3 AND HH);
A:=SMA(L,4,3) ;ZF:=(C-REF(C,1))/REF(C,1)*100;
ZT9:=INTPART(SUM(ZF>9.9,9));
LSMR:=IF (((A AND REF(PP,1) AND HH AND ZT9) OR (A AND REF(PP3,1)
AND HH AND ZT9) OR (A AND REF(PP2,1) AND HH AND ZT9)),1,0 );
LT:=(CAPITAL/100)/10000<=10;
XG1:=LSMR AND REF(LSMR,1) AND CZX>REF(CZX,1) AND LT;
XG2:=LSMR AND REF(LSMR,2) AND CZX>REF(CZX,1) AND LT;
XG3:=REF(LSMR,1) AND CZX>REF(CZX,1) AND LT AND REF(CZX,1)<REF(CZX,2);
JD30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.14159;
AA30:=JD30>5;
XG:XG1 OR XG2 OR XG3 AND C>MA30 AND C>CPXB AND C>AA,COLORRED,NODRAW; DRAWICON(XG,REF(CLOSE,1)*0.96,25);
高:=REF(HHV(H,80),3);
低:=REF(LLV(L,80),3);
H18:=高-(高-低)*0.181;
L19:=低+(高-低)*0.181;
H中:=高-(高-低)*0.5;
顶点:REFDATE(高,DATE),COLORWHITE;
%18:REFDATE(H18,DATE),COLORYELLOW;
%50:REFDATE(H中,DATE),COLORRED;
%19:REFDATE(L19,DATE),COLORYELLOW;
低点:REFDATE(低,DATE),COLORWHITE;
DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;
DRAWTEXT(ISLASTBAR,%18,'%18'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,%50,'%50'),COLORRED;
DRAWTEXT(ISLASTBAR,%19,'%19'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;
{回调狙击获利副图}
ZT1:=C/REF(C,1)>1.0975 AND C=H;TS:=BARSLAST(ZT1);
ZJ:=IF(TS<=16,DRAWLINE(ZT1,(H+L)/2,ISLASTBAR,REF((H+L)/2,TS),1),DRAWNULL); MA30:=MA(C,30);CPXA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
CPXB:=(20*CPXA+19*REF(CPXA,1)+18*REF(CPXA,2)+17*REF(CPXA,3)+16*REF(CPXA,4 )+15*REF(CPXA,5)+14*REF(CPXA,6)+13*REF(CPXA,7)+12*REF(CPXA,8)+11*REF(CPXA, 9)+10*REF(CPXA,10)+9*REF(CPXA,11)+8*REF(CPXA,12)+7*REF(CPXA,13)+6*REF(CPX A,14)+5*REF(CPXA,15)+4*REF(CPXA,16)+3*REF(CPXA,17)+2*REF(CPXA,18)+1*REF(CP XA,19))/210;
ZT:=IF(REF(C,1)*1.1-C<0.01 ,1,0);LC:=REF(CLOSE,1);
CZX:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
ZCX:=45;ZCX2:=50;CDX:=20;
PP2:=CZX<ZCX2 AND REF(CZX,1)>ZCX2 ;PP:=CZX<ZCX AND REF(CZX,1)>ZCX ;PP3:=CZX<CDX AND REF(CZX,1)>CDX;
HH:=COUNT(ZT,9)>=1;
DDDD:=(PP2 AND HH OR PP AND HH OR PP3 AND HH);
A:=SMA(L,4,3) ;ZF:=(C-REF(C,1))/REF(C,1)*100;
ZT9:=INTPART(SUM(ZF>9.9,9));
LSMR:=IF (((A AND REF(PP,1) AND HH AND ZT9) OR (A AND REF(PP3,1) AND HH AND ZT9) OR (A AND REF(PP2,1) AND HH AND ZT9)),1,0 );
LT:=(CAPITAL/100)/10000<=10;
XG1:LSMR AND REF(LSMR,1) AND CZX>REF(CZX,1) AND LT;
XG2:LSMR AND REF(LSMR,2) AND CZX>REF(CZX,1) AND LT;
XG3:REF(LSMR,1) AND CZX>REF(CZX,1) AND LT AND REF(CZX,1)<REF(CZX,2);
JD30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.14159;
AA30:=JD30>5;
AA:=REF((H+L)/2,TS);
XG:XG1 OR XG2 OR XG3 AND C>MA30 AND C>CPXB AND C>AA;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
第二波选股:COUNT(C/REF(C,1)>=1.09925,20)>=1
AND REF(K,1)<16 AND K>=REF(K,1),COLORRED;。