【股票指标公式下载】-【通达信】新鲜波段(拉升力、做空)
【股票指标公式下载】-【通达信】神奇曲线(趋势、判断、转强、拉升、建仓)
【通达信】神奇曲线(趋势、判断、转强、拉升、建仓)-指标公式源码趋势:SMA(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100),3,1),COLORRE D;DRAWBAND(趋势,RGB(155,50,50),50,RGB(0,100,50));判断:SMA(趋势,3,1),COLORYELLOW;转强:IF(趋势>50,趋势,DRAWNULL),COLORRED;转弱:IF(趋势<50,趋势,DRAWNULL),COLORGREEN;拉升:IF(判断>50 AND 趋势>判断,判断,DRAWNULL),COLORYELLOW,LINETHICK2; 建仓:IF(判断<50 AND 趋势>判断,判断,DRAWNULL),COLORLIMAGENTA;出货:IF(判断>50 AND 趋势<判断,判断,DRAWNULL),COLORLIGREEN,LINETHICK2; RSV:=(CLOSE-LLV(CLOSE,3))/(HHV(CLOSE,3)-LLV(CLOSE,3))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);DEA:=EMA(DIFF,6);MACD:=2*(DIFF-DEA);转点:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);STICKLINE(转点=1,48,52,2,0),COLORYELLOW;STICKLINE(转点=0,50,50,2,0),COLORCYAN;STICKLINE(C,90,90,1,0),COLORYELLOW;STICKLINE(C,10,10,1,0),COLORCYAN;持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN; 持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED;【通达信】神奇曲线(趋势、判断、转强、拉升、建仓)-指标公式效果图(文档来源:若水财经社区)。
通达信波段抓牛股选股公式
通达信波段抓牛股选股公式个人常用的一个波段选股公式(带指标副图),经测试比较准,分享给大家。
E13:=EXPMA(C,13);M8:=MA(C,8);M21:=MA(C,21);M233:=MA(C,233);E10:=EXPMA(C,10);ZZT:=C/REF(C,1)>1.095 AND C=H;ZA:=BARSLASTCOUNT(ZZT);ZT:=BARSLAST(CROSS(ZA=3,0.5));ZLL:=REF(L,(ZT+2));ZTJ:=C<ZLL;ZAA:=COUNT(ZTJ,ZT+1)=1 AND ZTJ;ZTA:=BARSLAST(ZAA);ZLT:=BARSLAST(L=LLV(L,ZTA+1));ZTJ1:=CROSS(C,E10);ZXG:=COUNT(ZTJ1,ZLT+1)=1 AND ZTJ1 AND TOTALBARSCOUNT>200;HA:=M8/M21*100;HTJ:=BARSLASTCOUNT(RANGE(HA,99.9,100.3));HHB:=MAX(C,O)/MIN(C,O)*100-100;HTJ1:=BARSLASTCOUNT(HHB<2);HZF:=(HHV(H,5)-LLV(L,5))/LLV(L,5)*100;HDZF:=(H-L)/REF(C,1)*100;HTJ2:=COUNT(MIN(C,O)/L>1.03,5)=0;HTJ3:=COUNT(H<REF(L,1),5)=0;HTJ4:=C>M233;HXG:=HTJ>4 AND HTJ1>4 AND HZF<10 AND HTJ2 AND HTJ3 AND HTJ4;ZF:=(C-REF(C,1))/REF(C,1)*100;TJ:=EVERY(RANGE(ZF,-2.22,2.55),15);TJ1:=C>O AND C/REF(C,1)>1.03;TJ2:=COUNT(E13>=REF(E13,1),15);JD:=(ATAN((E13/REF(E13,15)-1)*100)*180/3.1415926);A:=IF(MIN(C,O)>E13,MAX(C,O)/E13*100-100,IF(MAX(C,O)<E13,E13/MIN(C,O),E13));B:=MAX(C,O)/MIN(C,O)*100-100;LL:=LLV(A,15);HH:=HHV(A,15);HB:=COUNT(BB>3,15)<2;XG:=REF(TJ,1) AND TJ1 AND TJ2>13 AND JD>72 AND REF(LL,1)<1.37 AND REF(HH,1)<11.15;WT:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1));C1:=REF(C,WT+1);C2:=REF(C1,WT+1);C3:=REF(C2,WT+1);C4:=REF(C3,WT+1);C5:=REF(C4,WT+1);C6:=REF(C5,WT+1);C7:=REF(C6,WT+1);C8:=REF(C7,WT+1);C9:=REF(C8,WT+1);WM10:=(C+C1+C2+C3+C4+C5+C6+C7+C8+C9)/10;E20:=EXPMA(C,20);E120:=EXPMA(C,120);E250:=EXPMA(C,250);WA:=MACD.DIF;WB:=MACD.DEA;WT1:=BARSLAST(CROSS(WA,WB));WST:=BARSLAST(CROSS(WB,WA));WZF:=(HHV(H,110)-LLV(L,110))/LLV(L,110)*100;WTJ:=EVERY(V>REF(V,1),2);WHH:=MAX(MAX(E20,E120),E250);WLL:=MIN(MIN(E20,E120),E250);WNH:=WHH/WLL*100-100;WTJ1:=EVERY(WNH<40,25);WZZF:=(C-REF(C,10))/REF(C,10)*100 ;WTJA:=C>WM10;WXG:=WT1=0 AND WA<REF(WA,WST) AND WB<REF(WB,WST) AND WZF<70 AND WTJ AND WTJ1 AND WZZF<1.4 AND WTJA;M5:=MA(C,5);M10:=MA(C,10);M15:=MA(C,15);FTJ:=M5>REF(M5,1) AND M10>REF(M10,1) AND M15>=REF(M15,10);FT:=BARSLAST(CROSS(FTJ,0.5));FTT:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1));FHH:=MAX(MAX(M5,M10),M15);FLL:=MIN(MIN(M5,M10),M15);FNH:=FHH/FLL*100-100;FZZF:=(C-REF(C,FTT+1))/REF(C,FTT+1)*100;FZZF1:=REF(FZZF,FTT+1);FTJ2:=CROSS(FZZF>20,0.5) OR CROSS(FZZF1>20,0.5);FJD:=(ATAN((M5/REF(M5,1)-1)*100)*180/3.1415926);FTJA:=FZZF1>0 AND FZZF1>0 ;FDT:=M10/M15*100-100>1 AND H/MAX(C,O)<1.03;FBL:=MIN(C,O)/M5;FBL5:=M5/M10*100-100;FXG:=FTJ2 AND C=HHV(C,5) AND BETWEEN(FT,0,5)AND FTJA AND FNH<12 AND FDT AND FBL<1.045 AND FBL5<7.2 AND FJD<77.5;DTJ:=O>REF(H,1) AND C<O AND O/C<C/L AND V>REF(V,1);DTT:=BARSLAST(REF(ZA>1,1) AND DTJ);DXG:=COUNT(CROSS(C,REF(H,DTT)),DTT+1)=1 AND CROSS(C,REF(H,DTT));QT:=BARSLAST(C>REF(C,1)*1.095 AND C=H);QTJ:=(C-REF(C,QT+1))/REF(C,QT+1)*100;QTJ1:=EVERY(C<O,QT);QTJ2:=COUNT(REF(C,1)/C>1.09,QT)>0 AND REF(C,1)/C>1.09;QA:=QTJ>-1 AND QTJ1 AND QTJ2;QTA:=BARSLAST(QA);QHH:=REF(H,QTA);QTJ3:=EVERY(MAX(C,O)<QHH,QTA);QTJ4:=MIN(C,O)<QHH AND MAX(C,O)>QHH AND COUNT(MIN(C,O)<QHH AND MAX(C,O)>QHH,QTA)=1;QTJ5:=REF(QTJ3,1) AND QTA<69 AND IF(C<O,O/QHH>1.007,C>O) AND IF(C<O,REF(C,1)/C<1.06,C>O);QXG:=QTJ4 AND QTJ5;DIF:=MACD.DIF;H300:=HHVBARS(DIF,300);IA:=BOLL.UB;IT:=BARSLAST(CROSS(IA>=REF(IA,1),0.5));E25:=EXPMA(C,25);IZF:=EVERY(RANGE(C/REF(C,1),0.97,1.05),IT+1);IZFF:=(HHV(H,IT+1)-LLV(L,IT+1))/LLV(L,IT+1)*100;ITJ:=EVERY(MAX(C,O)/IA<1.02 ,IT+1);IXL:=(ATAN((E25/REF(E25,IT)-1)*100)*180/3.1415926);ITJ1:=CROSS(DIF>=REF(DIF,H300),0.5) AND IZFF<17 AND IZF AND ITJ;ITJ2:=MIN(C,O)/E25>1.04;IXG:=ITJ1 AND IXL>75;LT8:=LLVBARS(L,60);LTT8:=BARSLAST(CURRBARSCOUNT=CONST(LT8)+1);HT8:=FINDHIGHBARS(H,LT8+1,60,1);A8:=DRAWLINE(CURRBARSCOUNT=CONST(HT8)+1,H,ISLA STBAR,REF(H,HT8),0);TT8:=BARSLAST(CURRBARSCOUNT=CONST(HT8)+1);AA8:=CROSS(C,CONST(A8));TJ8:=COUNT(AA8,TT8+1)=1 AND AA8;TJ18:=COUNT(V<MA(V,277),TT8+1) ;BL8:=TJ18/(TT8+1)*100;XG8:=TJ8 AND TT8>40 AND BL8>70;XGT8:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(X G8))+1);ZH8:=REF(H,TT8);YL8:=REF(L,LTT8);XC8:=REF(C,XGT8);YZ8:=(XC8-YL8)/YL8*100;ZBL8:=YZ8/REF(LTT8,XGT8);XGA8:=XG8 AND ZBL8<2.95;SNH:=E120/E250*100-100;STA:=EVERY(SNH<3 AND E120>E250,20);STB:=CROSS(E20,MAX(E120,E250));STC:=MIN(C,O)/E20<1.08;SXG:=STB AND STA AND STC;联合选股:ZXG OR HXG OR XG OR WXG OR FXG OR QXG OR IXG OR XGA8 OR SXG OR DXG;。
通达信波段操作指标公式(源码副图主图贴图)
通达信波段操作指标公式(源码副图主图贴图)通达信波段操作指标公式(源码副图主图贴图)X:=REF(CLOSE,1)<REF(CLOSE,2) AND REF(VOL,1)>MAX(REF(MA(VOL,5),1),MAX(REF(MA(VOL,10),1),RE F(MA(VOL,20),1))) AND REF(VOL,1)>REF(MA(VOL,20),1)*1.1;Y:=IF(X,MIN(REF(LOW,1),LOW),0);Z1:=REF(Y,BARSLAST(X));X1:=REF(CLOSE,1)<REF(OPEN,1) AND REF(VOL,1)>MAX(REF(MA(VOL,5),1),MAX(REF(MA(VOL,10),1),RE F(MA(VOL,20),1))) AND REF(AMOUNT,1)=REF(HHV(AMOUNT,20),1) OR REF(CLOSE,1)<REF(OPEN,1) AND REF(AMOUNT,1)=REF(HHV(AMOUNT,20),1);Y1:=IF(X1,REF(CLOSE,1),0);Z2:=REF(Y1,BARSLAST(X1));RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;KK:=SMA(RSV1,5,1);中多:SMA(KK,10,1),COLOR669933;STICKLINE(KK<=中多 ,KK,中多,3,0),COLOR669933;VARE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;RSV3:=SMA(SMA(VARE,3,1),3,1);RSV4:=3*SMA(VARE,3,1)-2*RSV3;短多:EMA(RSV4,5),COLORRED;DRAWICON(CROSS(短多,中多),短多,1);DRAWICON(CROSS(中多,短多),中多,2);STICKLINE(SMA(VARE,3,1)>RSV3 ,SMA(VARE,3,1),RSV3,3,0), COLORRED;STICKLINE(SMA(VARE,3,1)>RSV3 AND CLOSE>Z1 AND CLOSE>Z2 ,SMA(VARE,3,1),RSV3,3,0), COLORCYAN;STICKLINE(SMA(VARE,3,1)>RSV3 ,SMA(VARE,3,1),RSV3,3,0), COLORYELLOW;VAR1:=100*(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21));RSV7:=SMA(VAR1,3,1);STICKLINE(FILTER( RSV7<8, 50) ,0,20,4,0), COLORRED;STICKLINE(FILTER( RSV7<8,50) ,0,8,15,0), COLORYELLOW;STICKLINE(FILTER( RSV7>92, 50),92,100,15,0), COLOR66CC33;STICKLINE(FILTER( RSV7>92, 50),80,92,4,0), COLORRED;VAR2Q:=(MA(CLOSE,80)-MA(CLOSE,13)/3);RSV8:= MA((CLOSE-VAR2Q)/VAR2Q,1);XA:=EMA(RSV8,12)*0.7;XB:=EMA(RSV8,3);IF(LLV(XB-XA,12)>0,0,-5),COLORGREEN,LINETHICK2;103,COLORGREEN,LINETHICK2;0,COLORCYAN,LINETHICK2;DIFF :=( EMA(CLOSE,20) - EMA(CLOSE,90))*100;DEA :=EMA(DIFF,45);MACD :=2*(DIFF-DEA);STICKLINE(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)<REF(DEA,1) ,0,3,40,0),COLOR66CC33;STICKLINE(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)<REF(DEA,1) ,3,6,30,0),COLOR00FFFF;STICKLINE(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)<REF(DEA,1),6,20,0,0),COLORRED;STICKLINE(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),97,100,40,0),COLORFF00FF;STICKLINE(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),94,97,30,0),COLOR00FFFF;STICKLINE(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),80,94,1,0),COLORFF0000;突破线:50,COLORWHITE,LINETHICK2;。
【股票指标公式下载】-【通达信】波段组合(波峰波谷、拉升力、做空周期、多头)
【通达信】波段组合(波峰波谷、拉升力、做空周期、多头)-指标公式源码拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE; 拉升力A:=SMA(拉升力,6.3,1);波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;拉升力B:=3*拉升力A-2.1*波峰波谷;空方:=3*波峰波谷-1* 拉升力A;做空:IF(空方>拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;多头:IF(做空>=REF(做空,1) ,做空,DRAWNULL),COLORRED,LINETHICK3; DRAWICON(做空>=REF(做空,1) AND REF(做空,1)<REF(做空,2),做空,23);空头:IF(做空<REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3; {DRAWICON(做空<=REF(做空,1) AND REF(做空,1)>REF(做空,2),做空,19);} 短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;{红柱}STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR000088; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLOR0000AA; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLOR0000DD; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLOR0000FF; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,2,0),COLOR008800; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,1,0),COLOR00AA00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.8,0),COLOR00DD00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.3,0),COLOR00FF00; {蓝柱}STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR880088; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAA00AA; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDD00DD;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFF00FF; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,2,0),COLOR009999; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,1.5,0),COLOR00BBBB; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.8,0),COLOR00DDDD; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.3,0),COLOR00FFFF; VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,5,0,4,0),COLOR770077;STICKLINE(A1,5,0,3,0),COLOR990099;STICKLINE(A1,5,0,2,0),COLORBB00BB;STICKLINE(A1,5,0,1,0),COLORDD00DD;STICKLINE(A1,5,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,5.2,'全仓'),COLORRED;CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);CYS:(CLOSE-CYC13)/CYC13*100;DRAWTEXT("ZXNH.ZXNH"=1 AND CYS<=-2,CYS,'B'),COLORRED;DRAWTEXT("ZXNH.ZXNH"=1 AND CYS>2,CYS,'S'),COLORGREEN;【通达信】波段组合(波峰波谷、拉升力、做空周期、多头)-指标公式效果图(文档来源:若水财经社区)。
通达信准确的波段指标公式
通达信准确的波段指标公式Z:=5;N:=10;HIGH1:=IF(HIGH<REF(H,1),(H+L)*0.5,HIGH);LOW2:=IF(LOW>=(REF(L,1)+REF(L,2))/2,CLOSE,LOW);LOW1:=IF(LOW>=REF(LOW,1),CLOSE,LOW);CLOSE1:=IF(CLOSE>=REF(CLOSE,1),CLOSE,(HIGH1+LOW2)* 0.5);VARA:=IF(CLOSE=CLOSE,(CLOSE+LOW+OPEN+HIGH+HIGH 1+LOW2)/6,AMOUNT/(100*VOL));VARU1:=LLV(LOW1,30);VARA1:=HHV(HIGH1,30);VARU2:=LLV(LOW1,21);VARA2:=HHV(HIGH1,21);CC:=MA((VARA-VARU2)/(VARA2-VARU2)*100,11);CC1:=EMA(CC,7),COLOR336699;B:=EMA((VARA-VARU1)/(VARA1-VARU1)*105,13);B1:=EMA(B,8);移动平均A:STICKLINE(B-B1>0 ,B*1.03,B1,3,1),COLOR3366AA;移动平均B:STICKLINE(B-B1<=0,B*1.03,B1,3,1),COLOR779966;VAR44:=ZIG(3,Z);RSV:=(VAR44-LLV(VAR44,N))/(HHV(VAR44,N)-LLV(VAR44,N))*100;月MD:="KDJ.D#MONTH",COLORFF0000,LINETHICK2;月MK:="KDJ.K#MONTH",COLOREECC00;周CD:="KDJ.D#WEEK",COLOR0000BB,LINETHICK2;周CK:="KDJ.K#WEEK",COLOR0099FF;月死KD:=MA((月MD,月MK),1);周死KD:=MA((周CD,周CK),1);周死RSI:="RSI.RSI2#WEEK"<="RSI.RSI3#WEEK";月金KD:=MA((月MK,月MD),1);周金KD:=MA((周CK,周CD),1);周金RSI:="RSI.RSI2#WEEK">="RSI.RSI3#WEEK"*0.998;周金R:="RSI.RSI1#WEEK">="RSI.RSI2#WEEK";AA:=STICKLINE(月死KD && 周死KD && 周死RSI,100,50,0,1),COLOR998888;BB:=STICKLINE(月金KD && 周金KD && 周金RSI,0,50,0,1),COLOR8800DD;K:SMA(RSV,3,1),COLORAA9999,LINETHICK2;D:SMA(K,3,1),COLOR00AA00,LINETHICK2;J:=3*K-2*D,COLORFFAABB,LINETHICK1;STICKLINE(周CK<周CD,D,K*1.01,4.2,1),COLORFFCC00;STICKLINE(周CK>=周CD,D,K*1.01,4.2,1),COLOR0000FF;RMA2:=MA(MA("RSI.RSI2#MONTH",2),2),COLORGRAY,LINET HICK1;RMA3:=MA(MA("RSI.RSI3#MONTH",2),2),COLOR000099,LIN ETHICK1;STICKLINE(RMA2>=RMA3,D*0.999,K*1.03,0.8,0),COLOR006 8FF;STICKLINE(RMA2<RMA3,D*0.999,K*1.03,0.8,0),COLORFF004 4;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF( A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*R EF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);卖转向:STICKLINE(PEAKBARS(3,15,1)=1,101,51,1.6,0),COLOR00FF44,LI NETHICK2;买转向:STICKLINE(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,0,49,1.6,0),COLORAA00FF;死叉RSI:=DRAWICON(CROSS(周CD,周CK) AND 周死RSI,99,2);转向:=DRAWICON((CROSS(周CK,周CD) AND 周金RSI),25,5);月金叉:=月MK>月MD;月周金叉:=IF(CROSS(周CK,周CD) AND 月金叉,31,0),LINETHICK1,COLOR3333FF;周金叉RSI:=STICKLINE(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),0,25, 3,0),COLOR0038FF;金叉RSI:=DRAWICON(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),18, 9);波段升:STICKLINE(CROSS(D1,K1) AND CC>=CC1,1,33,0.1,0),COLOR00FFFF;波段下:STICKLINE(CROSS(K1,D1) AND CC<CC1,98,68,0.1,0),COLORAAAAAA;DIFFR:=EMA(CLOSE,12)-EMA(VARA,26);DEAR:=EMA(DIFFR,9),COLORFFFFFF,LINETHICK1;MACDA:=EMA(CLOSE,12)-EMA(CLOSE,26);MACDD:=EMA(CLOSE,9)-EMA(CLOSE,12);MACDB:=EMA(CLOSE,9)-EMA(CLOSE1,12);MACDH:=EMA(CLOSE,12)-EMA(CLOSE1,26);MACDC:=EMA(CLOSE,8)-EMA(CLOSE1,15);MACDM:=EMA(CLOSE,7)-EMA(CLOSE,11);中线持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL);中线空仓:=IF(CLOSE<SAR(4,2,20),SAR(4,2,20),DRAWNULL);DXB:=COUNT(CROSS(MACDM,0) OR CROSS(MACDD,0) OR CROSS(MACDA,0),15)>=2;DXC:=COUNT(CROSS(MACDM,0) OR CROSS(MACDD,0) OR CROSS(MACDA,0) OR CROSS(MACDH,0),20)>=2;DXD:=COUNT(CROSS(MACDM,0) OR CROSS(MACDC,0) OR CROSS(MACDH,0) OR CROSS(MACDB,0),20)>=2;DXE:=COUNT(CROSS(MACDM,0) OR CROSS(MACDH,0) OR CROSS(MACDB,0) OR CROSS(MACDD,0) ORCROSS(MACDA,0),30)>=4;MD:=BACKSET(DEAR>=REF(DEAR,1),2);STICKLINE((MACDD>0 OR MACDH>0) AND 中线持仓 ,0,7,3,1),COLOR0000FF;STICKLINE((MACDC>=0 OR MACDH>=0) AND 中线持仓AND (DXB OR DXC OR DXD OR DXE) AND MD,1,12,2.2,0),COLORCC88FF;STICKLINE((MACDD<=0 OR MACDC<=0) AND 中线空仓,100,94,3.8,1),COLORAA7777;MCST:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL);DIF:=EMA(EMA(CLOSE,18)-EMA(CLOSE,34),11);MACD:=EMA(EMA(DIF,11),11),COLOR58FF58;DEF:=2*(DIF-MACD),COLORFFFF00,LINETHICK0;STICKLINE(C>=MCST,12,19,1,1),COLOR00EEFF;。
波段指标——做波段的利器通达信指标公式源码
波段指标——做波段的利器通达信指标公式源码波段指标是一种用于短期交易的技术指标,它可以帮助投资者找到股票的买入和卖出时机。
通达信是一个广泛使用的股票分析软件,它提供了丰富的指标计算工具。
下面是波段指标通达信源码的详细说明,共计超过1200字。
以下是通达信中波段指标的计算公式源码的一个示例:```c//定义波段指标的公式参数input n1 = 20;input n2 = 10;input n3 = 6;//计算波段指标的公式var f1 = CLOSE > REF(HHV(HIGH, n1), 1);var f2 = CLOSE < REF(LLV(LOW, n1), 1);var f3 = COUNT(f1, n2) > 0 AND COUNT(f2, n2) > 0;var f4 = SUM(f3, n3) == n3;//输出波段指标的结果PlotWaveBand = f4;```在这个示例中,n1、n2和n3是用户可以自定义的参数,它们分别表示波段指标中的周期长度。
用户可以根据自己的需求设置这些参数的数值。
该公式计算了一个布尔变量f1,它表示当前价格是否大于前n1个周期内的最高价;同时计算了一个布尔变量f2,它表示当前价格是否小于前n1个周期内的最低价。
然后,它根据f1和f2计算了f3,表示在前n2个周期内,有至少一个周期的最高价高于前n1个周期内的最高价,同时有至少一个周期的最低价低于前n1个周期内的最低价。
最后,它计算了一个布尔变量f4,它表示在前n3个周期中,f3为真的周期的数量是否等于n3、如果f4为真,则将PlotWaveBand设置为1;否则将PlotWaveBand设置为0。
通过以上的源码,用户可以自定义波段指标的计算公式,并将其添加到通达信的分析工具中进行使用。
使用波段指标可以帮助投资者快速找到股票的买入和卖出时机,从而提高交易的效果。
【股票指标公式下载】-【通达信】波段理论(波浪顶、波段底)
【通达信】波段理论(波浪顶、波段底)-指标公式源码PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,13);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,26);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,55);走强一:=BARSLAST(PL5<REF(PL5,1));走弱一:=BARSLAST(PL5>REF(PL5,1));走强二 :=BARSLAST(PL10<REF(PL10,1));走弱二:=BARSLAST(PL10>REF(PL10,1));走强三:=BARSLAST(PL20<REF(PL20,1));走弱三:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二 ),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二 ),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱二),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱二),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强三),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱三),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱三),0);DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.98,'(Ⅰ)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.02,'(Ⅱ)'),COLORFFFF00;DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.98,'(Ⅲ)'),COLORFFFF00;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1.02,'⑴'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.98,'⑵'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.02,'⑶'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.98,'⑷'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'⑸'),COLOR0000FF;DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,'【A】'),COLOR00FF00;DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.03,'【B】'),COLOR00FF00; DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.94,'【C】'),COLOR00FF00;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.04,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.94,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.04,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.94,'④'),LINETHICK3,COLOR00FFFF;DMLJ:=HHV(HIGH,120);TY:=CLOSE;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10); LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10); A:=REF(CLOSE,BARSLAST(HD));B:=REF(CLOSE,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2;STICKLINE(T1,A,A,9,0),COLORFF00FF;波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;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:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS(CLOSE-REF(CLOSE,1)),7)* 100;VAR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS(CLOSE-REF(CLOSE,1)),13) *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:=TROUGH(3,6,1)<4 AND CROSS(VARD,VARE);VAR10:=IF(TROUGH(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;买点二:=(VAR11+VAR13+VAR15+VAR17);卖点一:=(VAR12+VAR14+VAR16+VAR18);VAR22:=买点一 AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5=0 AND VAR6=0 AND VAR20<(-110);VAR1:=MA(CLOSE,6);VAR2:=MA(CLOSE,18);VAR31:=MA(CLOSE,30);VARB1:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);VARC1:=INTPART(VARB1*100)/100;VARD1:=EMA(CLOSE,5)-EMA(CLOSE,10);VARE1:=EMA(VARD1,9);VAR131:=REF(VARE1,1);VAR141:=VARE1;VAR151:=VAR141-VAR131;VAR161:=REF(VARD1,1);VAR171:=VARD1;VAR181:=VAR171-VAR161;VAR191:=OPEN;VAR1A1:=CLOSE;DRAWTEXT(买点一>0,LOW-0.01,'▲B1'),COLORRED;DRAWTEXT(买点二>0,LOW-0.01,'▲B2'),COLORYELLOW;DRAWTEXT(卖点一>0,HIGH+0.1,'▲S'), COLORWHITE;AX:=BARSCOUNT(CLOSE);AH:=HHV(HIGH,72);AL:=LLV(LOW,72);A0:=(AH-AL)/21;B1:=LOW-A0;DRAWTEXT((AX+0)/15=FLOOR((AX+0)/15),B1-2.5*A0,'▲TW'),COLORWHITE; VAR31X:=HHVBARS(ZIG(3, 19)>REF(ZIG(3,19),1)AND REF(ZIG(3,19), 1)<REF(ZIG(3,19), 2),0);STICKLINE(VAR31X=2,LOW*0.95,LOW*0.98,8,0),COLOR0000FF;DRAWTEXT(VAR31X=2,LOW*0.95,'3天'),COLORWHITE;STICKLINE(VAR31X=4,HIGH*1.05,HIGH*1.02,8,0),COLOR9966FF; DRAWTEXT(VAR31X=4,HIGH*1.06,'5天'),COLORWHITE;STICKLINE(VAR31=7,LOW*0.95,LOW*0.98,8,0),COLOR00FFFF;DRAWTEXT(VAR31X=7,LOW*0.95,'8天'),COLORWHITE;STICKLINE(VAR31X=12,HIGH*1.05,HIGH*1.02,8,0),COLORFF33FF; DRAWTEXT(VAR31X=12,HIGH*1.06,'13天'),COLORWHITE;STICKLINE(VAR31X=20,LOW*0.95,LOW*0.98,8,0),COLOR0066FF; DRAWTEXT(VAR31X=20,LOW*0.95,'21天'),COLORWHITE;STICKLINE(VAR31X=33,HIGH*1.05,HIGH*1.02,8,0),COLORFFFF00; DRAWTEXT(VAR31X=33,HIGH*1.06,'34天'),COLORWHITE;STICKLINE(VAR31X=54,LOW*0.95,LOW*0.98,8,0),COLORWHITE; DRAWTEXT(VAR31X=54,LOW*0.95,'55天'),COLORWHITE;STICKLINE(VAR31X=88,HIGH*1.05,HIGH*1.02,8,0),COLOR00FF00; DRAWTEXT(VAR31X=88,HIGH*1.06,'89天'),COLORWHITE;STICKLINE(VAR31X=143,LOW*0.95,LOW*0.98,8,0),COLORCCFFFF; DRAWTEXT(VAR31X=143,LOW*0.95,'144天'),COLORWHITE;STICKLINE(VAR31X=232 ,HIGH*1.05,HIGH*1.02,8,0),COLORFF0033; DRAWTEXT(VAR31X=232,HIGH*1.06,'233天'),COLORWHITE;STICKLINE(VAR31X=376,LOW*0.95,LOW*0.98,8,0),COLORFF9966; DRAWTEXT(VAR31X=376,LOW*0.95,'377天'),COLORWHITE;GET:ZIG(3,5),COLORYELLOW,LINETHICK2;【通达信】波段理论(波浪顶、波段底)-指标公式效果图(文档来源:若水财经社区)。
通达信波段密码指标公式
通达信波段密码指标公式X_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;X_2:=IF(CLOSE>OPEN,CLOSE,OPEN);X_3:=IF(CLOSE>OPEN,OPEN,CLOSE);X_4:=LLV(X_2,4);X_5:=HHV(X_3,4);X_6:=X_2>=X_4 AND X_3<=X_4 AND X_2>=X_5 AND X_3<=X_5;X_7:=REF(X_2,1)>=X_4 AND REF(X_3,1)<=X_4 AND REF(X_2,1)>=X_5 AND REF(X_3,1)<=X_5;X_8:=REF(X_2,2)>=X_4 AND REF(X_3,2)<=X_4 AND REF(X_2,2)>=X_5 AND REF(X_3,2)<=X_5;X_9:=REF(X_2,3)>=X_4 AND REF(X_3,3)<=X_4 AND REF(X_2,3)>=X_5 AND REF(X_3,3)<=X_5;X_10:=X_6 AND X_7 AND X_8 AND X_9;X_11:=REF(X_5,BARSLAST(X_10));X_12:=(REF(OPEN,5)+REF(CLOSE,5))/2;X_13:=(HIGH+LOW+CLOSE+OPEN)/4;X_14:=MAX(X_12,MAX(X_13,HHV(HIGH,5)));X_15:=MIN(X_12,MIN(X_13,LLV(LOW,5)));DRAWKLINE(X_14,X_12,X_15,X_13);X_16:=X_14=X_12;X_17:=X_16;X_18:=REF(X_14,BARSLAST(X_17));X_19:=EMA(CLOSE,5)-EMA(CLOSE,55);X_20:=EMA(X_19,10);X_21:=X_19-X_20;X_22:=CLOSE>X_18 AND X_21>0;STICKLINE(X_22,X_14,X_15,3.2,1),COLORMAGENTA;STICKLINE(X_22,X_12,X_13,3.2,0),COLORMAGENTA;STICKLINE(X_22,X_12,X_13,3,0),COLORMAGENTA;STICKLINE(X_22,X_12,X_13,1.9,0),COLORMAGENTA;STICKLINE(X_22,X_12,X_13,1.1,0),COLORMAGENTA;STICKLINE(X_22,X_12,X_13,0.3,1),COLORMAGENTA;STICKLINE(X_22<1,X_14,X_15,3.2,1),COLORLIBLUE;STICKLINE(X_22<1,X_12,X_13,3.2,0),COLORLIBLUE;STICKLINE(X_22<1,X_12,X_13,2,0),COLORLIBLUE;STICKLINE(X_22<1,X_12,X_13,1,1),COLORLIBLUE;X_23:=X_15=REF(X_15,1) AND X_14<REF(X_14,1) AND X_16;X_24:=X_15=REF(X_15,1) AND X_15=REF(X_15,2) AND X_15=REF(X_15,3) AND X_15=REF(X_15,4);STICKLINE(X_24,X_14,X_15,3.2,1),COLORGREEN;STICKLINE(X_24,X_12,X_15,2.6,0),COLORGREEN;STICKLINE(X_24,X_12,X_13,2.6,0),COLORGREEN;STICKLINE(X_24,X_12,X_15,0.5,1),COLORGREEN;X_25:=X_1>=9.84 AND REF(X_1<9.84,1) AND REF(X_1<9.84,2);STICKLINE(X_1>=9.84,X_12*1.05,X_13*0.95,3.4,0),COLOR00A AFF;STICKLINE(X_1>=9.84,X_12*1.05,X_13*0.95,2,0),COLOR00CC FF;STICKLINE(X_1>=9.84,X_12*1.05,X_13*0.95,0.5,0),COLORYEL LOW;STICKLINE(X_25,X_12*1.05,X_13*0.95,0.5,0),COLORRED;STICKLINE(CLOSE,X_18-X_18*0.0035,X_18,3,0),COLORGREEN,LINETHICK3;X_26:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;X_27:=X_26>9.85匒ND NOT(OPEN=CLOSE) AND X_1>4;X_28:=X_26>9.85 AND NOT(OPEN=CLOSE) AND X_1>4 ANDX_1<9.3;X_29:=REF(HIGH,BARSLAST(X_28));X_30:=REF(LOW,BARSLAST(X_28));STICKLINE(HIGH,X_29-X_29*0.003,X_29,3,0),COLORWHITE;X_31:=MA(OPEN,20);X_32:=OPEN>MA(OPEN,5);X_33:=MA(OPEN,5)>MA(OPEN,10);X_34:=OPEN>MA(OPEN,10);X_35:=MA(OPEN,5)>MA(OPEN,20);X_36:=OPEN>MA(OPEN,20);X_37:=REF(X_31,1);X_38:=X_31>X_37;X_39:=IF(X_32,10,0-10)+IF(X_33,10,0-10)+IF(X_34,10,0-10)+IF(X_35,10,0-10)+IF(X_36,10,0-10)+IF(X_38,10,0-10);X_40:=MA(CLOSE,5)>REF(MA(CLOSE,5),1) AND MA(CLOSE,10)>REF(MA(CLOSE,10),1) AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) AND MA(CLOSE,60)>REF(MA(CLOSE,60),1);X_41:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,60);X_42:=LOW<MA(CLOSE,5) AND LOW<MA(CLOSE,10) AND CLOSE>MA(CLOSE,5) AND CLOSE>MA(CLOSE,10);X_43:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;X_44:=X_43>9.85 AND X_24;X_45:=X_26>9.85 AND NOT(OPEN=CLOSE) AND X_1>4 AND X_1<9.3;X_46:=(CLOSE-REF(CLOSE,BARSLAST(X_45)))/REF(CLOSE,BARSLAST(X_45))*100;B:REF(X_5,BARSLAST(X_10)),NODRAW;A:REF(HIGH,BARSLAST(X_28)),NODRAW;S:REF(X_14,BARSLAST(X_17)),NODRAW;涨停力度S:X_15/S,NODRAW;涨停力度A:X_15/A,NODRAW;涨停力度B:X_15/B,NODRAW;BS:ABS(S-B)/B,NODRAW;AB:ABS(A-B)/B,NODRAW;AS:ABS(A-S)/S,NODRAW;X_47:=B=REF(B,1);X_48:=BARSLAST(NOT(X_47));STICKLINE(X_5,X_11-X_11*0.003,X_11,3,0),COLORYELLOW,LINETHICK3;DRAWNUMBER(X_47>0,B*0.99,X_48),COLORYELLOW;DRAWICON(X_39>40 AND X_22 AND EXIST(X_10,12),X_11*0.9,89);X_49:=EMA(EMA(EMA(X_14,5),5),5);。
通达信波段指标公式
通达信波段指标公式
1.MA指标:MA(N)=N日内的收盘价之和÷N,N可以是5、10、20、60等数字。
MA指标用来测量股价走势。
MA通过把收盘价乘以系数或者
求出移动平均后,把短期数据转换成长期数据,用来分析股市走势。
2.EXPMA指标:EXPMA(N)=(2*C+(N-1)*EXPMA(N-1))/(N+1),其中
C表示收盘价,N为移动平均线的周期数。
EXPMA指标与MA指标的区别
仅在于计算过程不同而已,作用也一样。
3.BOLL指标:BOLL(N)=[MA(N)+K*STD(N)]、[MA(N)]、[MA(N)-
K*STD(N)],其中N为移动平均线的时间窗口,K为布林带百分比参数,STD为标准差函数。
BOLL指标是用来测量股价趋势强弱的技术分析指标,是当今股票分析中非常重要的技术指标。
4.SAR指标:SAR(X,Y)=IF(TREND>=0,HIGH(N)+α*(HIGH(N)-
LOW(N)),LOW(N)-α*(HIGH(N)-LOW(N))),其中N为指定的时间窗口,
X和Y分别表示正常和多头情况下的α最大值,α的初始值为0。
SAR
指标是一种动态单点技术指标,它用于测量和识别市场行情走势,可
以帮助投资者更好地把握市场走势,因此被广泛应用于股票市场分析中。
股市中波段操作最好用的通达信指标公式(1)
顾王{BN:1,100,3;牛:1,100,3;短线:1,20,9;中线:1,30,9;}MAXCYC:DMA((C+O)/2,V/CAPITAL);MAV:=(((CLOSE)*(2)+HIGH+LOW)/(4))*(10);SK:=EMA(MAV,13)-EMA(MAV,34);SD:=EMA(SK,5);B:=((2)*(SK-SD))*(5.5);拉升资金:IF((IF((B>=0),B,(-18))>120),120,IF((B>=0) AND(DATE<=1080531),B,(-18))),LINETHICK2,COLORFF00FF;VAR96:=((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28)))*(100);VAR97:=SMA(VAR96,4,1);VAR98:=SMA(VAR97,2,1);VAR99:=DMA(((AMOUNT)/(VOL))/(100),(VOL)/(CAPITAL));VAR100:=LOW;VAR101:=REF(LOW,1);VAR102:=((SMA(ABS(VAR100-VAR101),3,1))/(SMA(MAX(VAR100-VAR101,0),牛,1)))*(100);VAR103:=MA(IF(((CLOSE)*(1.68)<=MAXCYC),(VAR102)*(10),(VAR102)/(10)),牛); VAR104:=LLV(LOW,30);VAR105:=HHV(VAR103,30);魔王:=MA(IF((LOW<=VAR104),(VAR103+(VAR105)*(2))/(2),0),牛);牛魔王:IF(魔王>10000,100,0),LINETHICK2,COLOR00FFFF;VAR106:=MA(CLOSE,5);VAR107:=MA(CLOSE,10);VAR108:=MA(CLOSE,30);VAR109:=(SUM(((CLOSE)*(VOL))*(100),4))/(SUM((VOL)*(100),4));VAR110:=(SUM(((CLOSE)*(VOL))*(100),7))/(SUM((VOL)*(100),7));VAR111:=(SUM(((CLOSE)*(VOL))*(100),28))/(SUM((VOL)*(100),28));VAR112:=(INTPART((VAR111)*(100)))/(100);短线趋势:=EMA(CLOSE,5)-EMA(CLOSE,10);中线趋势:=EMA(短线趋势,中线);VAR113:=REF(中线趋势,1);VAR114:=中线趋势;VAR115:=VAR114-VAR113;VAR116:=REF(短线趋势,1);VAR119:=短线趋势;VAR120:=VAR119-VAR116;VAR117:=OPEN;VAR118:=CLOSE;小牛魔王:IF((VAR117<=VAR106) AND (VAR117<=VAR107) AND (VAR117<=VAR108) AND (VAR118>=VAR106) AND (VAR118>=VAR112) AND (VAR115>0) AND(VAR120>0) ,80,0),LINETHICK2,COLORFFFFFF;主力建仓:IF((VAR98<8.5) AND (VAR97<11),120,(-18)),LINETHICK2,COLOR0000FF; VAR84:=((CLOSE-MA(CLOSE,13))/(MA(CLOSE,13)))*(100);VAR85:=100-ABS(VAR84);VAR86:=(3)*(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1)) -(2)*(SMA(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15, 1));VAR87:=(3)*(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1))-( 2)*(SMA(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15,1)) ;VAR88:=100-VAR87;VAR89:=100-VAR86;VAR92:=MA(((100)*(CLOSE-LLV(CLOSE,34)))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VAR93:=100-(3)*(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),2 0,1))+(2)*(SMA(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20, 1),15,1));VAR94:=100-(3)*(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20, 1))+(2)*(SMA(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),1 5,1));VAR95:=(VAR93<REF(VAR94,1)) AND (VOL>REF(VOL,1)) AND(CLOSE>REF(CLOSE,1));A11:=(3)*(SMA(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*(100),5,1))-(2)* (SMA(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*(100),5,1));黑马线:=EMA(A11,5);A12:=((黑马线-REF(黑马线,1))/(REF(黑马线,1)))*(100);A4:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);趋势线3:=MA((3)*(SMA(A4,6,1))-(2)*(SMA(SMA(A4,5,1),5,1)),2);N:=3;VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/(4),1);VAR2:=(SMA(ABS(LOW-VAR1),13,1))/(SMA(MAX(LOW-VAR1,0),10,1));VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF((LOW<=VAR4),VAR3,0),5);VAR6:=REF(CLOSE,1);VAR7:=((SMA(MAX(CLOSE-VAR6,0),6,1))/(SMA(ABS(CLOSE-VAR6),6,1)))*(100); VAR8:=(LLV(LOW,5)=LLV(LOW,45)) AND (CLOSE>=(OPEN)*(1.04));VAR9:=(CLOSE>(REF(HIGH,1)+REF(LOW,1))/(2));VAR10:=VAR8 AND VAR9;VAR11:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR12:=LLV(LOW,13);VAR13:=HHV(HIGH,13);VAR14:=(LLV(LOW,1)=LLV(LOW,35)) AND (CLOSE>=(OPEN)*(1.04));VAR15:=(CLOSE>(REF(HIGH,1)+REF(LOW,1))/(2));VAR16:=EMA(((VAR11-VAR12)/(VAR13-VAR12))*(100),13);VAR17:=(((CLOSE-MA(CLOSE,6))/(MA(CLOSE,6)))*(100)+((CLOSE-MA(CLOSE,24))/( MA(CLOSE,24)))*(100)+((CLOSE-MA(CLOSE,32))/(MA(CLOSE,32)))*(100))/(3);VAR19:=MA(CLOSE,13);VAR20:=100-ABS(((CLOSE-VAR19)/(VAR19))*(100));VAR21:=LLV(LOW,75);VAR22:=HHV(HIGH,75);VAR23:=(VAR22-VAR21)/(100);VAR24:=SMA((CLOSE-VAR21)/(VAR23),20,1);VAR25:=SMA((OPEN-VAR21)/(VAR23),20,1);VAR26:=(3)*(VAR24)-(2)*(SMA(VAR24,15,1));VAR27:=MA(HHV(HIGH,485),17);VAR28:=MA(HHV(HIGH,222),17);VAR29:=MA(HHV(HIGH,96),17);VAR30:=MA(LLV(LOW,485),17);VAR31:=MA(LLV(LOW,222),17);VAR32:=MA(LLV(LOW,96),17);VAR33:=MA(((VAR30)*(0.96)+(VAR31)*(0.96)+(VAR32)*(0.96)+(VAR27)*(0.558)+(VAR2 8)*(0.558)+(VAR29)*(0.558))/(6),17);VAR34:=MA(((VAR30)*(1.25)+(VAR31)*(1.23)+(VAR32)*(1.2)+(VAR27)*(0.55)+(VAR28)* (0.55)+(VAR29)*(0.65))/(6),17);VAR35:=MA(((VAR30)*(1.3)+(VAR31)*(1.3)+(VAR32)*(1.3)+(VAR27)*(0.68)+(VAR28)*(0 .68)+(VAR29)*(0.68))/(6),17);VAR36:=LLV(LOW,30);VAR37:=MA((((VAR33)*(3)+(VAR34)*(2)+VAR35)/(6))*(1.738),17);VAR38:=VAR37;VAR39:=LOW;VAR40:=REF(LOW,1);VAR41:=((SMA(ABS(VAR39-VAR40),3,1))/(SMA(MAX(VAR39-VAR40,0),N,1)))*(100); VAR42:=MA(IF(((CLOSE)*(1.35)<=VAR38),(VAR41)*(10),(VAR41)/(10)),N);VAR43:=HHV(VAR42,30);VAR44:=1080531;VAR45:=(3)*(VAR25)-(2)*(SMA(VAR25,15,1));VAR46:=100-VAR45;VAR47:=1;VAR49:=(REF(LOW,1))*(0.9);VAR50:=(LOW)*(0.9);VAR51:=((VAR50)*(VOL)+(VAR49)*(CAPITAL-VOL))/(CAPITAL);VAR52:=EMA(VAR51,30);VAR53:=CLOSE-REF(CLOSE,1);VAR54:=MAX(VAR53,0);VAR55:=ABS(VAR53);VAR56:=((SMA(VAR54,7,1))/(SMA(VAR55,7,1)))*(100);VAR57:=((SMA(VAR54,13,1))/(SMA(VAR55,13,1)))*(100);VAR58:=BARSCOUNT(CLOSE);VAR59:=((SMA(MAX(VAR53,0),6,1))/(SMA(ABS(VAR53),6,1)))*(100);VAR60:=(((-200))*(HHV(HIGH,60)-CLOSE))/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR61:=((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100);VAR62:=SMA((SMA(VAR61,4,1)-50)*(2),3,1);VAR63:=((INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14)))*(100);VAR64:=SMA(VAR63,4,1);VAR65:=SMA(VAR64,3,1);VAR66:=((HHV(HIGH,30)-CLOSE)/(CLOSE))*(100);VAR67:=(VAR59<=25) AND (VAR60<(-95)) AND (VAR66>20) AND (VAR62<(-30)) AND (VAR65<30) AND (VAR52-CLOSE>=(-0.25)) AND (VAR56<22) AND (VAR57<28) AND (VAR58>50);VAR68:=(HIGH+LOW+CLOSE)/(3);VAR69:=(VAR68-MA(VAR68,14))/((0.015)*(AVEDEV(VAR68,14)));VAR70:=(VAR68-MA(VAR68,70))/((0.015)*(AVEDEV(VAR68,70)));VAR71:=IF((VAR69>=150) AND (VAR69<200) AND (VAR70>=150) AND(VAR70<200),10,0);VAR72:=IF((VAR69<=(-150)) AND (VAR69>(-200)) AND (VAR70<=(-150)) AND(VAR70>(-200)),(-10),VAR71);VAR73:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);VAR74:=REVERSE(VAR73);VAR75:=SMA(VAR73,3,1);绝佳买点:=MA(IF((LOW<=VAR36),(VAR42+(VAR43)*(2))/(2),0),N);跑:=FILTER((REF(黑马线,1)>90) AND (A12<0) ,7);买线:=EMA(CLOSE,2);卖线:=EMA((SLOPE(CLOSE,21))*(20)+CLOSE,42);指數位置:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)*(S MA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));抄底:=CROSS(指數位置,10);A1:=(VOL=HHV(VOL,120));A2:=((CLOSE)/(OPEN)>1.05);TJ:=A1 AND A2;龙:=VAR10;买4:=VAR14;AA1:=(AMOUNT)/(VOL);BB1:=(LOW<(AA1)*(0.9));CC1:=(((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(100)>1.2);DD1:=(LOW<(MA(CLOSE,5))*(0.921));EE1:=(VOL<(MA(VOL,5))*(1.5));FF1:=BB1 AND CC1 AND DD1 AND EE1;买3:=FILTER(FF1,3);二十天最低跌幅:=(HHV(CLOSE,20))/(LLV(CLOSE,20));RSV:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=(3)*(K)-(2)*(D);X:=(LLV(J,2)=LLV(J,8));买1:=CROSS(J,REF(J+0.01,1)) AND X AND (J<20) AND (二十天最低跌幅>=1.3);长期底部:=LLV(HIGH,30);上:=(SMA(LOW,5,2))*(0.96);短期底部:=(LLV(HIGH,30))*(0.93);LC:=REF(CLOSE,1);RSI:=((SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1)))*(100);大顶:=FILTER((VAR17>20) AND FILTER((VAR17<REF(VAR17,1)),5),5);VAR76:=(OPEN+LOW+HIGH+CLOSE)/(4);MAN:=(SMA(HIGH,21,2))*(1.05);短底2:=EMA(VAR76,5);支撑:=HHV(短底2,60);VAR77:=((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36)))*(100);VAR78:=SMA(VAR77,5,1);VAR79:=SMA(VAR78,8,1);VAR80:=CROSS(VAR78,VAR79) AND (VAR79<5);VAR81:=(CLOSE>LLV(CLOSE,60)+(0.3)*(LLV(CLOSE,60))) AND VAR80;VAR82:=IF((CLOSE>1000),VAR80,VAR81);黑马起步:=VAR82;逃:=FILTER((HIGH>支撑) AND (CLOSE<支撑) AND ((CLOSE)/(OPEN)>0-1.06) AND (CLOSE<OPEN),5);逃命:=(黑马起步>0);选逃:=FILTER((((逃命OR 逃) OR CROSS(84,RSI)) OR 大顶),3) ;WW:=1;散户:=((SMA(VAR75,3,1))*(VAR47))*(WW);新庄:=((SMA(散户,3,1))*(VAR47))*(WW);高抛:=CROSS(新庄,散户) AND (新庄>75);买:CROSS(买线,卖线) ,COLOR0000FF;卖:CROSS(卖线,买线) ,COLOR008000;大黑马:=CROSS(趋势线3,0) AND (黑马线<40);大买:=FILTER((绝佳买点>30000),5);大资金进场:=VAR95 AND (COUNT(VAR95,30)=1);做空:=高抛+选逃+(卖=1)+跑;选拉升股:=(买AND (拉升资金>0) OR (拉升资金>0) AND (COUNT(买,5)>=1) AND (COUNT(做空,BARSLAST(买))=0) AND (REF((拉升资金>0) AND (COUNT(买,5)>=1) AND (COUNT(做空,BARSLAST(买))=0),1)=0));选潜力股:=(COUNT(做空,BARSLAST(买))=0) AND((CLOSE)/(REF(CLOSE,BARSLAST(买)))<=1.08) AND ((主力建仓=120) OR (拉升资金>0)) ;选暴涨股:买AND ((COUNT((主力建仓=120),BARSLAST(做空))>=3) OR (COUNT(大黑马+大买+大资金进场,7)>=1)),COLORFF0000;选暴涨潜力:((CLOSE)/(REF(CLOSE,BARSLAST(选暴涨股)))<=1.1) AND (COUNT(做空,BARSLAST(选暴涨股))=0),COLOR000080;选超级暴涨股:(选暴涨股AND (COUNT((主力建仓=120),10)>=3) OR 买AND (COUNT(大黑马+大买+大资金进场,7)>=1) AND (COUNT(做空,BARSLAST(((大黑马OR 大买) OR 大资金进场)))=0)),COLOR800080;黄金暴涨股:买AND (COUNT((主力建仓=120),BARSLAST(做空))>=3) AND (拉升资金>0) AND (COUNT(大黑马+大买+大资金进场,7)>=1) AND (COUNT(做空,BARSLAST(((大黑马OR 大买) OR 大资金进场)))=0),COLOR00FFFF;坚决买进:(((买AND 选暴涨潜力OR 选暴涨股) OR 选超级暴涨股) OR 黄金暴涨股),COLORFF00FF;坚决买进潜力股:(坚决买进OR ((CLOSE)/(REF(CLOSE,BARSLAST(坚决买进)))<=1.1) AND (COUNT(做空,BARSLAST(坚决买进))<=1)) AND (COUNT(做空,BARSLAST(买))=0) AND (做空=0),COLOR00FF00;黄金暴涨潜力股:(黄金暴涨股OR ((CLOSE)/(REF(CLOSE,BARSLAST(黄金暴涨股)))<=1.1) AND (COUNT(做空,BARSLAST(黄金暴涨股))=0)) AND (COUNT(做空,BARSLAST(买))=0) AND (做空=0),COLORFFFFFF;选底:FILTER((LOW<=上) AND (HIGH>=短期底部) AND (CLOSE>=长期底部) AND ((CLOSE)/(OPEN)>1.03),3) AND (DATE<=1080531),COLORFFFF00;稳赚10买:FILTER((买3 OR 选底),3) AND (COUNT(买1+买4+龙,3)>0),COLOR0000FF; 选持股阶段股:(COUNT(卖,BARSLAST(买))=0),COLOR008000;STICKLINE(黄金暴涨潜力股,50,40,7,0),COLORFF0000;STICKLINE((买=1),0,50,7,0),COLOR1020FF;STICKLINE((卖=1),50,100,7,0),COLORFFDD00;STICKLINE(VAR95 AND (COUNT(VAR95,30)=1),50,85,5,0),COLORFF0000; STICKLINE(大黑马,50,90,5,0),COLORFF0000;STICKLINE(大买,50,30,3,0),COLOR0000FF;STICKLINE(选逃,50,65,3,0),COLORFF0000;STICKLINE((选底=1),50,80,3,0),COLOR399C71;STICKLINE((稳赚10买=1),50,65,3,0),COLORFF0000;STICKLINE(高抛,50,75,3,0),COLORFF0000;STICKLINE(跑,50,65,3,0),COLORFF0000;STICKLINE(坚决买进潜力股,50,58,6,0),COLORFF0000;STICKLINE(选持股阶段股,70,50,0.1,0),COLOR0000FF;DRAWTEXT(选持股阶段股,75,'—'),COLOR0000FF;DRAWTEXT(坚决买进,13,'坚决买'),COLOR00FFFF;DRAWTEXT(选拉升股,40,'▲'),COLOR00FFFF;DRAWTEXT(选暴涨股,50,'★'),COLOR00FFFF;DRAWTEXT(选超级暴涨股,60,'●'),COLOR00FFFF;DRAWTEXT(黄金暴涨股,73,'■'),COLOR00FFFF;DRAWTEXT(VAR95 AND (COUNT(VAR95,30)=1),110,'大资金'),COLORFFFFFF; DRAWTEXT(VAR95 AND (COUNT(VAR95,30)=1),100,'进场'),COLORFFFFFF; DRAWTEXT(跑,70,'跑'),COLORYELLOW;DRAWTEXT(大黑马,105,'大黑马'),COLORFFFFFF;DRAWTEXT(CROSS(新庄,散户) AND (新庄>75),90,'抛'),COLOR008000;DRAWTEXT((稳赚10买=1),80,'赚10'),COLORFFFFFF; DRAWTEXT((稳赚10买=1),67,'%买'),COLORFFFFFF; DRAWTEXT(IF((选底=1),100,0),92,'底'),COLORFFFFFF; DRAWTEXT(选逃,80,'逃'),COLOR008000; DRAWTEXT(大买,30,'大买'),COLORFFFFFF; DRAWTEXT((买=1),(-2),'买'),COLOR0000FF; DRAWTEXT((卖=1),117,'卖'),COLOR00FFFF;。
通达信波段买卖指标通达信指标公式源码
通达信波段买卖指标VAR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);VAR8:=IF(VAR6<=-20,10,0);VAR9:=HHV(VAR8,10);STICKLINE(VAR8=10,20,10,3,0),COLORRED;VARA:=IF(VAR9 && CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0); STICKLINE((VARA=20),0,10,3,0),COLORWHITE;VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) && (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) && (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));VARD:=(ZIG(3,5)<REF(ZIG(3,5),1)) && (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) && (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));STICKLINE((VARC=1),(-14),0,3,0),COLORMAGENTA;DRAWTEXT((VARC=1),(-14),'买');STICKLINE((VARD=1),14,0,3,0),COLORGREEN;DRAWTEXT((VARD=1),18,'卖');VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-2 0;VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR11:=VARF<REF(VAR10,1) && VOL>REF(VOL,1) && CLOSE>REF(CLOSE,1); DRAWTEXT(VAR11 && COUNT(VAR11,30)=1,15,'大资金活动');STICKLINE(VAR11 && COUNT(VAR11,30)=1,1,10,3,0),COLORCYAN;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 && VAR13<200 && VAR14>=150 &&VAR14<200,10,0);VAR16:=IF(VAR13<=-150 && VAR13>-200 && VAR14<=-150 &&VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 && VAR13>=150,15,IF(VAR14<=-200 &&VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 && VAR1B>60 && VAR19<100;DRAWTEXT(VAR1C && COUNT(VAR1C,30)=1,15,'大笔出货'); STICKLINE(VAR1C && COUNT(VAR1C,30)=1,0,10,3,0),COLORYELLOW;。
【股票指标公式下载】-【通达信】超强组合(波段线、金手指)
【通达信】超强组合(波段线、金手指)-指标公式源码{波段线}VAR2:=(HIGH+LOW+CLOSE*2)/4;VAR3:=EMA(VAR2,21);VAR4:=STD(VAR2,21);VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;VAR6:=(EMA(VAR5,5)-25)*1.56;{AK: EMA(VAR6,2)*1.22;AD1: EMA(AK,2);AJ: 3*AK-2*AD1;DRAWTEXT(CROSS(AK,AD1),AK,'*'),COLORRED;DRAWTEXT(CROSS(AD1,AK),AK,'*'),COLORWHITE;}{金手指}RA:=LLV(LOW,35);RB:=HHV(HIGH,30);RC:=EMA((CLOSE-RA)/(RB-RA)*4,4)*19;近日均价:=MA(CLOSE,5),COLORYELLOW,LINETHICK2;DRAWICON(RC<6 AND100*(HHV(HIGH,19)-CLOSE)/(HHV(HIGH,19)-LLV(LOW,19))>97,100,11); LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;ZL:=EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5;SH:=EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5;BT1:=CROSS(RSI1,25);BT2:=CROSS(ZL,SH) AND ZL<-10;BT:=FILTER(COUNT(BT1 OR BT2,3)>=2,3);BIAS:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VARC:=LOW;VARD:=REF(LOW,1);VARE:=SMA(ABS(VARC-VARD),3,1)/SMA(MAX(VARC-VARD,0),3,1)*100; VARF:=MA(VARE/10,3);VAR10:=LLV(LOW,30);VAR11:=HHV(VARF,30);MA(IF(LOW<=VAR10,(VARF+VAR11*2)/5,0),3);VAR1B:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2B:=SMA(ABS(LOW-VAR1B),13,1)/SMA(MAX(LOW-VAR1B,0),10,1);VAR3B:=EMA(VAR2B,10);VAR4B:=LLV(LOW,33);VAR5B:=EMA(IF(LOW<=VAR4B,VAR3B,0),3);{主力进场:IF(VAR5B>REF(VAR5B,1),VAR5B,0),COLORRED;}STICKLINE(VAR5B>REF(VAR5B,1),0,VAR5B*2,2,0 ),COLORYELLOW;洗盘:IF(VAR5B<REF(VAR5B,1),VAR5B,0),COLORLIGREEN;VARR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VARR2:=SMA(ABS(LOW-VARR1),13,1)/SMA(MAX(LOW-VARR1,0),10,1); VARR3:=EMA(VARR2,10);VARR4:=LLV(LOW,33);VARR5:=EMA(IF(LOW<=VARR4,VARR3,0),3);STICKLINE(VARR5>REF(VARR5,1),0,VARR5,2,0 ),COLORGREEN; STICKLINE(VARR5<REF(VARR5,1),0,VARR5*2,2,0),COLORRED;找主力吸筹提款:VARR5>REF(VARR5,4) {AND C>REF(C,1)},COLORMAGENTA; VAR2C:=(HIGH+LOW+CLOSE*2)/4;VAR3C:=EMA(VAR2C,7);VAR4C:=STD(VAR2C,7);VAR5C:=(VAR2C-VAR3C)*100/VAR4;VAR6C:=EMA(VAR5C,3);{WW:(EMA(VAR6C,5)+100)/2-3,COLORFF00FF;MM:HHV(WW,3),COLORFF3333;}AAA:=AMOUNT/VOL/100;主力进场:IF(VAR5B>REF(VAR5B,1),VAR5B*1.5,0),COLORRED,LINETHICK2; {吸筹}VAR2Q:=REF(LOW,1);VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100; VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);VAR5Q:=LLV(LOW,30);VAR6Q:=HHV(VAR4Q,30);VAR7Q:=IF(MA(CLOSE,58),1,0);VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;VAR9Q:=IF(VAR8Q>100,100,VAR8Q);吸筹:STICKLINE(VAR9Q>-120,0,VAR9Q,6,1),COLORRED;VARY2:=REF(LOW,1);VARY3:=SMA(ABS(LOW-VARY2),3,1)/SMA(MAX(LOW-VARY2,0),3,1)*100;VARY4:=EMA(IF(CLOSE*1.3,VARY3*10,VARY3/10),3);VARY5:=LLV(LOW,30);VARY6:=HHV(VARY4,30);VARY7:=IF(MA(CLOSE,58),1,0);VARY8:=EMA(IF(LOW<=VARY5,(VARY4+VARY6*2)/2,0),3)/618*VARY7;VARY9:=IF(VARY8>100,100,VARY8);吸筹2:STICKLINE(VARY9>-120,0,VARY9/3,2,1),COLORMAGENTA;LCC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LCC,0),4.1,1)/SMA(ABS(CLOSE-LCC),4.1,1)*100,COLORY ELLOW,LINETHICK1;黄买:FILTER((REF(CLOSE,2)<CLOSE AND RSI<25),7),COLORYELLOW; STICKLINE(黄买,0,-40,10,1),COLORYELLOW;黄卖:=FILTER((REF(CLOSE,2)>CLOSE AND RSI>80),7);STICKLINE(黄卖,100,82,10,0),COLORBLUE;红买:FILTER(CROSS(RSI,11),7),COLORRED;STICKLINE(红买,0,-30,6,0),COLORRED;红卖:=FILTER(CROSS(89,RSI),7);STICKLINE(红卖,100,88,8,0),COLORCYAN;绿买:FILTER(CROSS(RSI,20),7),COLOR00FF00;STICKLINE(绿买,0,-20,6,0),COLORMAGENTA;绿卖:=FILTER(CROSS(80,RSI),7);STICKLINE(绿卖,100,94,6,0),COLOR00FF00;★遵守纪律★:100,COLORRED;★交易之魂★:100,COLORRED;ZLC:= EMA((WINNER(CLOSE) * 70),3);SHC:= EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3); 主力控盘: ((ZLC / (ZLC+ SHC)) * 100),COLOR00FFFF,LINETHICK2;上限: HHV(主力控盘,20),COLORGREEN,LINETHICK2;下限: LLV(主力控盘,20),COLORRED,LINETHICK2;中线:(上限 + 下限)/2,COLORYELLOW,POINTDOT,LINETHICK2;{60,LINETHICK4,POINTDOT,COLORYELLOW;}{10,LINETHICK4,POINTDOT,COLORFF00FF;}VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORWHITE;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'满仓'),COLORRED;DRAWTEXT(A1,36,'满仓'),COLORRED;AK: EMA(VAR6,2)*1.22;AD1: EMA(AK,2);AJ: 3*AK-2*AD1;DRAWTEXT(CROSS(AK,AD1),AK,'*'),COLORRED;DRAWTEXT(CROSS(AD1,AK),AK,'*'),COLORWHITE;WW:(EMA(VAR6C,5)+100)/2-3,COLORFF00FF;MM:HHV(WW,3),COLORFF3333;DRAWTEXT(BT1,0,'□'),COLORYELLOW;DRAWTEXT(BT,0,'■'),COLORYELLOW;DRAWICON(CROSS(85,RSI1),102,15);{饭跑跑}DRAWICON(CROSS(RSI1,25),10,26);{金钻}DRAWICON(CROSS(ZL,SH) AND ZL<-10,20,24);{蓝钻}DRAWICON(CROSS(BIAS,-12),-10,13);{BIAS买点};【通达信】超强组合(波段线、金手指)-指标公式效果图(文档来源:若水财经社区)。
通达信指标公式源码波段指标
通达信指标公式源码波段指标波段指标是一种用于确定市场波动周期的技术分析指标。
它的主要使用方法是通过计算一段时间的价格波动幅度,然后根据波动幅度的大小来判断市场的强弱。
波段指标可以帮助交易者识别市场趋势,制定交易策略和管理风险。
通达信是一种常见的股票分析软件,提供了丰富的指标公式源码,包括波段指标的计算方法。
以下为波段指标的通达信指标公式源码:1. MAD指标(Moving Average Deviation)MAD指标是波段指标的一种,用于衡量价格波动幅度的大小。
公式如下:MAD:=MA(abs(C-REF(C,1)),N);解释:MAD:波段指标值C:收盘价REF(C,1):前一日的收盘价abs(C-REF(C,1)):收盘价与前一日的收盘价之差的绝对值MA(X,N):X的N日简单移动平均2. WR指标(Williams Overbought/Oversold Index)WR指标用于衡量市场超买超卖情况,是一种常用的波段指标。
公式如下:WR(N):100*(HHV(H,N)-C)/(HHV(H,N)-LLV(L,N));解释:WR(N):波段指标值HHV(H,N):N日内最高价的最高值C:收盘价LLV(L,N):N日内最低价的最低值100*(HHV(H,N)-C)/(HHV(H,N)-LLV(L,N)):最高价和最低价与收盘价的差异百分比CR指标用于衡量市场的价格波动与市场趋势的关系,是一种常用的波段指标。
公式如下:CR(N):MA((H+L+C)/3,N)/(MA(H,N)+MA(L,N));解释:CR(N):波段指标值MA((H+L+C)/3,N):(最高价+最低价+收盘价)/3的N日简单移动平均MA(H,N):最高价的N日简单移动平均MA(L,N):最低价的N日简单移动平均MA(X,N):X的N日简单移动平均以上是通达信中常见的几种波段指标的公式源码。
通过计算这些指标,可以有效地分析市场的价格波动情况,并做出相应的交易决策。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】新鲜波段(拉升力、做空)-指标公式源码
拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE; 拉升力A:=SMA(拉升力,6.3,1);
波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;
拉升力B:=3*拉升力A-2.1*波峰波谷;
空方:=3*波峰波谷-1* 拉升力A;
做空:IF(空方>拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;
做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;
多头:IF(做空>=REF(做空,1) ,做空,DRAWNULL),COLORRED,LINETHICK3; DRAWICON(做空>=REF(做空,1) AND REF(做空,1)<REF(做空,2),做空,23); 空头:IF(做空<REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3; {DRAWICON(做空<=REF(做空,1) AND REF(做空,1)>REF(做空,2),做空,19);} 短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE; 中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;
红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;
蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;
{红柱}
STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR000088; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLOR0000AA; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLOR0000DD; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLOR0000FF; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,2,0),COLOR008800; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,1,0),COLOR00AA00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.8,0),COLOR00DD00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.3,0),COLOR00FF00; {蓝柱}
STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR880088; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAA00AA; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDD00DD;
STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFF00FF; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,2,0),COLOR009999; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,1.5,0),COLOR00BBBB; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.8,0),COLOR00DDDD; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.3,0),COLOR00FFFF; VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
操盘:=3*VAR300-2*VAR400;
A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;
STICKLINE(A1,5,0,4,0),COLOR770077;
STICKLINE(A1,5,0,3,0),COLOR990099;
STICKLINE(A1,5,0,2,0),COLORBB00BB;
STICKLINE(A1,5,0,1,0),COLORDD00DD;
STICKLINE(A1,5,0,0.3,0),COLORFF00FF;
DRAWTEXT(A1,5.2,'全仓'),COLORRED;
【通达信】新鲜波段(拉升力、做空)-指标公式效果图
(文档来源:若水财经社区)。