【股票指标公式下载】【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)

合集下载

通达信最新最强波段指标公式

通达信最新最强波段指标公式

通达信最新最强波段指标公式DX:=(C+H+L+O)/4;短线:(MA(DX,1)+MA(DX,3)+MA(DX,5))/3,COLORFFFFFF;MTM:=C-REF(C,1);ZLGJ:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);FB:=MA(DX,17)+ABS(MA(DX,17)-REF(MA(DX,17),1));FS:=MA(DX,17)+MA(DX,17)-REF(MA(DX,17),1);搏杀线:IF(MA(DX,17)IF(FB>FS,搏杀线,DRAWNULL),COLOR00FF00;DRAWBAND(FS,FB>FS,FB,RGB(0,250,0));UPPER:= 搏杀线+ 2*STD(CLOSE,20);买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0);STICKLINE(FILTER(买1=1,5),C,O,1,0),COLORFF00FF;STICKLINE(FILTER(卖1=1,1),C,O,1,0),COLOR00FF00;RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;BDGD:=HHV(J,2)=HHV(J,8) AND J>80;注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);STICKLINE(注意AND 卖1<1,O,CLOSE,1,0),COLORYELLOW,LINETHICK2;A:=(3*C+L+O+H)/6;BB:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6) +13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;生死线:EMA(BB,90),LINETHICK1,COLORYELLOW;价涨量缩:DRAWICON(FILTER(REF(V,3)>REF(V,2)*1.1 AND REF(V,2)>=REF(V,1)*1.1 AND REF(V,1)<=V AND L>REF(L,3) AND REF(C,3)>REF(O,3) ANDREF(L,1)>REF(LOW,3),5),L,1);STICKLINE(搏杀线>生死线AND CROSS(短线,搏杀线),L,L*0.99,3,0),COLOR00FF00;VAR1:=MA((VOL-REF(VOL,1))/REF(VOL,1),5);VAR2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;MY:=VAR2*(1+VAR1);SHT:= MY;SHTMA:= MA(SHT,5);IF(SHTMA>=MY,短线,DRAWNULL),COLOR00FF00;IF(SHTMA<=MY,短线,DRAWNULL),COLORAA00FF。

非常实用的波段神器通达信指标公式源码

非常实用的波段神器通达信指标公式源码

非常实用的波段神器通达信指标公式源码以下是通达信指标公式的一些源码,这些指标常被视为实用的波段神器。

1.均线指标公式:MA(CLOSE,N):=AVERAGE(CLOSE,N);MA(CLOSE,N1,N2):=MA(MA(CLOSE,N1),N2);2.相对强弱指标公式(RSI):LC:=REF(CLOSE,1);RSI(CLOSE,N):=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;3. 动量指标公式(Momentum):MOM(CLOSE,N):=CLOSE-REF(CLOSE,N);4. 平均幅度指标公式(Average True Range, ATR):TR:=MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1)),ABS(LOW-REF(CLOSE,1))),ABS(HIGH-REF(LOW,1)));ATR(N):=MA(TR,N);5. 布林带指标公式(Bollinger Bands):MB:=MA(CLOSE,N);UP:=MB+STD(CLOSE,N)*K;DN:=MB-STD(CLOSE,N)*K;6. 弗拉基米尔指标公式(Vladimir):TYP:=(HIGH+LOW+CLOSE)/3;VOLMA(CLOSE,V):=MA(VOL,V);FRAV(TYP):=MA(TYP*(HIGH-LOW),VI);FAPT:=(FRAV(TYP)/VOLMA(CLOSE,V))/FRAV(TYP)*FRAV(VOLMA(CLOSE, VI)-VOLMA(CLOSE,V));7. 成交量指标公式(Volume):VOLMA(CLOSE,N):=MA(VOL,N);以上是一些通达信指标公式的简单示例。

请注意,这些只是指标的公式描述,实际使用中可能需要根据自己的需求进行修改和优化。

通达信炒股黄金波段公式,亲身实战,超级准

通达信炒股黄金波段公式,亲身实战,超级准

炒股专家通达信波段王公式指标纯手打,超级准,实盘控制卖点买点VAR1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VAR3:=BARSCOUNT(CLOSE);VAR4:=VAR1<20 AND VAR2<23 AND VAR3>35;VAR5:=VAR4 AND COUNT(VAR4,1)=1;VAR6:=EMA(CLOSE,21)-EMA(CLOSE,8);VAR7:=EMA(VAR6,5);VAR8:=TROUGHBARS(3,6,1)<4 AND CROSS(VAR6,VAR7);VAR9:=(HIGH+LOW+CLOSE)/3;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=(VAR9-MA(VAR9,14))/(0.015*AVEDEV(VAR9,14));见底: VAR10,COLORYELLOW,LINETHICK3;DRAWTEXT(VAR11<-110 AND 见底>0,3,'见底'), ,COLORYELLOW;DRAWTEXT(见底AND VAR11<-100 AND VAR8 AND VAR5>0,4.1,'★组合5分钟线选股思路获利5%以上'), , COLORRED;DRAWICON(见底>0,4,1);XX:=EMA(CLOSE,30)-EMA(CLOSE,17);AA:=EMA(XX,5);YY:=EMA(XX,13);短:=TROUGHBARS(3,10,1)<1 AND CROSS(XX,AA);DRAWICON(短>0,1.8,18);DRAWTEXT(短>0,1.8,'慧眼'),COLORWHITE;枪:=TROUGHBARS(3,5,1)<1 AND XX<YY;短1:=IF(枪>0,0.4,0),STICK,COLORF0F000,LINETHICK4;DRAWICON(短1>0,1.4,1 );DRAWTEXT(短1>0,1.1,'套利'),COLORLIBLUE;短2:=CROSS(XX,AA) AND TROUGHBARS(3,7,1)<1;DRAWICON(短2>0,1.4,1 );DRAWTEXT(短2,2.5,'小牛'),COLORWHITE;狙击:短OR 短1 OR 短2,COLORWHITE,LINETHICK9;VAR12:=PEAKBARS(3,15,1)<10;VAR13:=IF(VAR12=1,2,0);顶:= IF(VAR13=2,2,0);逃命:IF(顶>REF(顶,1),3,0),COLORRED,LINETHICK2;DRAWTEXT(逃命=3,3,'逃!'),COLORRED;RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*5;FASTK:=SMA(RSV,3,1);金:SMA(FASTK,3,1),COLORLIGREEN,COLORYELLOW;阴阳:SMA(金,5,1),COLORLICYAN,COLORMAGENTA;VAR14:=TROUGHBARS(3,15,1)<10;VAR15:=IF(VAR14=1,50,0);底部:=IF(VAR15=50,10,0);机构介入:底部/20,LINETHICK2 ,COLORBLUE;VAR16:=EMA(EMA(CLOSE,13),13);控盘:= (VAR16-REF(VAR16,1))/REF(VAR16,1)*1000,COLORFFCCCC,POINTDOT; 无庄控盘:控盘<0,LINESTICK;有庄控盘: 控盘>REF(控盘,1) AND 控盘>0,LINETHICK3;VAR17:=100*WINNER(CLOSE*0.95);主力出货: 控盘<REF(控盘,1) AND 控盘>0,COLORGREEN;高度控盘: VAR17>50 AND COST(85)<CLOSE AND 控盘>0,COLORLIMAGENTA;。

【股票指标公式下载】-【通达信】中线波段(主力、散户、新庄)

【股票指标公式下载】-【通达信】中线波段(主力、散户、新庄)

【通达信】中线波段(主力、散户、新庄)-指标公式源码VAR1:=1;VAR2:=1/WINNER(CLOSE);VAR3:=MA(CLOSE,13);VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/100;VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);VARA:=3*VAR8-2*SMA(VAR8,15,1);VARB:=3*VAR9-2*SMA(VAR9,15,1);VARC:=100-VARB;主力: (100-VARA)*VAR1,COLOR0099FF;散户: MA(WINNER(CLOSE*0.95)*100,3)*VAR1,COLORYELLOW;新庄:(100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0))*VAR1,COLORGREEN,LINETHIC K1,POINTDOT ;VARD:=散户>VAR4;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50; STICKLINE(VARD,VAR4,散户,5,0),COLORWHITE;STICKLINE(1,新庄,100,1,0),COLORGREEN;STICKLINE(VAR20,0,80,5,0),COLORRED,LINETHICK3 ;100,COLORGREEN ,LINETHICK2 ;0,COLORYELLOW ,LINETHICK2 ;中线: 15,COLORBLUE ,LINETHICK2 ;【通达信】中线波段(主力、散户、新庄)-指标公式效果图(文档来源:若水财经社区)。

早晨之星选股公式(通达信、大智慧)

早晨之星选股公式(通达信、大智慧)
CLOSE/OPEN>1.05&&CLOSE>REF(CLOSE,2);
公式的含义解释:
REF(CLOSE,2)/REF(OPEN,2)<0.95 : 第一天的K线是阴线,跌幅要大于5%。
REF(OPEN,1)<REF(CLOSE,2) : 第二天开盘价 小于 第一天收盘价,即第二天低开
ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 : 第二天的k线实体(无论阴线或阳线)小于价格的3%,即收一个非常小的实体,可以有上下影线。
第二天的k线实体无论阴线或阳线小于价格的来自即收一个非常小的实体可以有上下影线
早晨之星选股公式(通达信、大智慧)
通达信早晨之星选股公式:
STAR:REF(CLOSE,2)/REF(OPEN,2)<0.95&&
REF(OPEN,1)<REF(CLOSE,2)&&
ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03&&
CLOSE/OPEN>1.05 : 第三天的涨幅大于5%。
CLOSE>REF(CLOSE,2); : 第三天收盘价比第一天高。

通达信波段指标公式

通达信波段指标公式

通达信波段指标公式双趋势波段指标:{超级波段王}VAR1:=(CLOSE+HIGH+LOW+OPEN)/4;VAR2:=SUMBARS(VOL,CAPITAL);VAR3:=HHV(VAR1,VAR2);VAR4:=LLV(VAR1,VAR2);VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);VAR6:=(VAR1-VAR4)/(VAR3-VAR4);VAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60);VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);VAR9:=EMA(VAR8,7);VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;VARC:=HHV(HIGH,9)-LLV(LOW,9);VARD:=HHV(HIGH,9)-CLOSE;VARE:=CLOSE-LLV(LOW,9);VARF:=VARD/VARC*100-70;VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR11:=(2*CLOSE+HIGH+LOW)/4;VAR12:=SMA(VARE/VARC*100,3,1);VAR13:=LLV(LOW,34);VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);VAR15:=IF(VAR14>100,VAR14-100,0);VAR16:=HHV(HIGH,34);VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);VAR18:=EMA(VAR17,5);STICKLINE(VAR17-VAR18>0,VAR17,VAR18,8,1),COLORRED ;STICKLINE(VAR17-VAR18<0,VAR17,VAR18,8,1),COLORGREEN ;Q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);AA:3*Q3-2*Q4 ,COLORYELLOW;Q5:=AA>1*REF(AA, 1);Q6:=LLVBARS(LOW, 50);Q7:=SUM(VOL, Q6);Q8:=HHVBARS(HIGH, 50);Q9:=SUM(VOL, Q8);Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;Q11:=HHV(AA,5);A1:EMA(Q3, 3) , COLORFFDDCC;A2:EMA(A1, 3) , COLORFFBBCC;A3:EMA(A2, 3) , COLORFF99CC;A4:EMA(A3, 3) , COLORFF55CC;A5:EMA(A4, 3) , COLORFF33CC;A6:EMA(A5, 3) , COLORFF11CC;A:EMA(A4, 3), COLORFF00CC;DRAWTEXT(CROSS(AA, 20) AND Q10<-13,10,'☆⼤底'), COLOR00FF00;DRAWTEXT(CROSS(AA, A5) AND REF(AA,1)<34,REF(AA,1),'☆发财了'), COLORRED ;DRAWTEXT(CROSS(A1, AA) AND REF(AA,1)>80, REF(AA,3), '☆闪⼈'), COLORCFB53B ;DRAWTEXT(CROSS(AA, A1) AND Q5 AND A1<20 AND Q1>9 OR A1>1*REF(A1, 1)AND Q1>4 AND A1<60, 30, '拉'), COLORFFFFCC;超级波段王-条件选股公式:{超级波段王-条件选股公式}VAR1:=(CLOSE+HIGH+LOW+OPEN)/4;VAR2:=SUMBARS(VOL,CAPITAL);VAR3:=HHV(VAR1,VAR2);VAR4:=LLV(VAR1,VAR2);VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);VAR6:=(VAR1-VAR4)/(VAR3-VAR4);VAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60);VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);VAR9:=EMA(VAR8,7);VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;VARC:=HHV(HIGH,9)-LLV(LOW,9);VARD:=HHV(HIGH,9)-CLOSE;VARE:=CLOSE-LLV(LOW,9);VARF:=VARD/VARC*100-70;VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR11:=(2*CLOSE+HIGH+LOW)/4;VAR12:=SMA(VARE/VARC*100,3,1);VAR13:=LLV(LOW,34);VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);VAR15:=IF(VAR14>100,VAR14-100,0);VAR16:=HHV(HIGH,34);VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);VAR18:=EMA(VAR17,5);Q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);AA:=3*Q3-2*Q4;Q5:=AA>1*REF(AA, 1);Q6:=LLVBARS(LOW, 50);Q7:=SUM(VOL, Q6);Q8:=HHVBARS(HIGH, 50);Q9:=SUM(VOL, Q8);Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;Q11:=HHV(AA,5);A1:=EMA(Q3, 3) , COLORFFDDCC;A2:=EMA(A1, 3) , COLORFFBBCC;A3:=EMA(A2, 3) , COLORFF99CC;A4:=EMA(A3, 3) , COLORFF55CC;A5:=EMA(A4, 3) , COLORFF33CC;A6:=EMA(A5, 3) , COLORFF11CC;A:=EMA(A4, 3), COLORFF00CC;BARSLAST((CROSS(AA, 20) AND Q10<-13))<DAYS OR BARSLAST(CROSS(AA, A5) AND REF(AA,1)<34)<DAYS;波段王:VAR1A:=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); VAR2A:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;VAR3A:=SMA(SMA(VAR2A,3,1),3,1);VAR4A:=EMA(VAR3A,5);VAR5A:=LLV(LOW,26);VAR6A:=HHV(HIGH,34);VAR7A:=EMA((CLOSE-VAR5A)/(VAR6A-VAR5A)*4,4)*25;VAR8A:=(2*C+H+L)/4;VAR9A:=LLV(LOW,9);VAR10A:=HHV(HIGH,9);VAR2W:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));MW:= EMA(VAR2W,3);VAR3W:=EMA(VAR2W,7);M1:= EMA(VAR3W,5);MB1:=CROSS(MW,M1) AND M1<20;MG1:=IF(CROSS(M1,MW) AND REF(MW,1)>80,80 ,0) ;波段:=EMA((VAR8A-VAR9A)/(VAR10A-VAR9A)*100,9),COLORRED;B1:=EMA(0.667*REF(波段,1)+0.333*波段,2),COLOR00FF00;STICKLINE(波段>B1,波段,B1,10,1),COLORRED;STICKLINE(波段<=B1,波段,B1,10,1),COLOR00FF00;超级波段王⼤底-条件选股DAYS(1,30,3){超级波段王}VAR1:=(CLOSE+HIGH+LOW+OPEN)/4;VAR2:=SUMBARS(VOL,CAPITAL);VAR3:=HHV(VAR1,VAR2);VAR4:=LLV(VAR1,VAR2);VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);VAR6:=(VAR1-VAR4)/(VAR3-VAR4);VAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60);VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);VAR9:=EMA(VAR8,7);VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;VARC:=HHV(HIGH,9)-LLV(LOW,9);VARD:=HHV(HIGH,9)-CLOSE;VARE:=CLOSE-LLV(LOW,9);VARF:=VARD/VARC*100-70;VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR11:=(2*CLOSE+HIGH+LOW)/4;VAR12:=SMA(VARE/VARC*100,3,1);VAR13:=LLV(LOW,34);VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);VAR15:=IF(VAR14>100,VAR14-100,0);VAR16:=HHV(HIGH,34);VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);VAR18:=EMA(VAR17,5);Q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);AA:=3*Q3-2*Q4;Q5:=AA>1*REF(AA, 1);Q6:=LLVBARS(LOW, 50);Q7:=SUM(VOL, Q6);Q8:=HHVBARS(HIGH, 50);Q9:=SUM(VOL, Q8);Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;Q11:=HHV(AA,5);A1:=EMA(Q3, 3) , COLORFFDDCC;A2:=EMA(A1, 3) , COLORFFBBCC;A3:=EMA(A2, 3) , COLORFF99CC;A4:=EMA(A3, 3) , COLORFF55CC;A5:=EMA(A4, 3) , COLORFF33CC;A6:=EMA(A5, 3) , COLORFF11CC;A:=EMA(A4, 3), COLORFF00CC;BARSLAST((CROSS(AA, 20) AND Q10<-13))=DAYS;{波段⼤底}书⽣点兵-主图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;马线:MA(⽜线,6),COLORGREEN;MAA5:MA(C,5),COLORFF00FF,LINETHICK2;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);⽇:=150;昨前:=3;⾼1:=REF(HHV(H,⽇),昨前);低1:=REF(LLV(L,⽇),昨前);H1:=⾼1-(⾼1-低1)*0.191;H2:=⾼1-(⾼1-低1)*0.382;H3:=⾼1-(⾼1-低1)*0.5;H4:=⾼1-(⾼1-低1)*0.618;H5:=⾼1-(⾼1-低1)*0.809;顶:REFDATE(⾼1,DATE),COLORRED;低:REFDATE(低1,DATE),COLORRED;。

【股票指标公式下载】-【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)

【股票指标公式下载】-【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)

【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)-指标公式源码{中短波}短波:EMA(EMA(CLOSE,13),1),COLOR00DD00;中波:EMA(EMA(CLOSE,13),26),COLORRED;HZ2:EMA(EMA(CLOSE,13),8),COLORGREEN,LINETHICK2;HZ4:EMA(EMA(CLOSE,13),39),COLORFF00FF,LINETHICK2;STICKLINE(HZ2<HZ4,短波,HZ4,1,0),COLORBLUE ;STICKLINE(短波>HZ2,短波,HZ2,1,0),COLORGREEN;STICKLINE(中波>HZ4,中波,HZ4,1,0),COLORFF00FF;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);{红}STICKLINE(MACD>0,C,O,2.8,0),COLOR000080;STICKLINE(MACD>0,H,L,0,0),COLOR0000E5;{淡蓝}STICKLINE(MACD<0 AND MACD<REF(MACD,1),C,O,2.8,0),COLORFF9900; STICKLINE(MACD<0 AND MACD<REF(MACD,1),H,L,0,0),COLORFFFF00;{黄}STICKLINE(MACD<0 AND MACD>REF(MACD,1),C,O,2.8,0),COLOR0099FF; STICKLINE(MACD<0 AND MACD>REF(MACD,1),H,L,0,0),COLOR00FFFF;T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1) > REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW ANDCLOSE!=HIGH),1,0));T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1)< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 ANDREF(OPEN,1)> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));T10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.96AND CLOSE<REF(OPEN,1)AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.04AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.97AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.03AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1) -REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));T18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW <CLOSE/OPEN+0.018),1,0));T19{三个白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1) >REF(OPEN,1) AND CLOSE>OPENAND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPENAND CLOSE/OPEN<0.98),1,0));T21{孕育线}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1)AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPENAND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) ANDOPEN<=REF(CLOSE,1)AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2)) <=1/100),1,0));T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)<REF(OPEN,1)AND CLOSE>OPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN< EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND(V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 ANDREF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 ANDCLOSE>REF(CLOSE,4)),1,0));T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 ANDREF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 ANDCLOSE<REF(CLOSE,4)),1,0));T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)AND CLOSE<REF(CLOSE,1)),1,0));T28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));T29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));T30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1) -REF(OPEN,1))<0),1,0));T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0)); T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));T34{大阴烛}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW <OPEN/CLOSE+0.018),1,0));T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)),1,0));T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O >REF(O,1) AND C<REF(O,1)),1,0));N:=0.04;TS1:=IF(T1=1,0+N,0);TS2:=IF(T2=1,TS1+N,TS1);TS3:=IF(T3=1,TS2+N,TS2);TS4:=IF(T4=1,TS3+N,TS3);TS5:=IF(T5=1,TS4+N,TS4);TS6:=IF(T6=1,TS5+N,TS5);TS7:=IF(T7=1,TS6+N,TS6);TS8:=IF(T8=1,TS7+N,TS7);TS9:=IF(T9=1,TS8+N,TS8);TS10:=IF(T10=1,TS9+N,TS9);TS11:=IF(T11=1,TS10+N,TS10);TS12:=IF(T12=1,TS11+N,TS11);TS13:=IF(T13=1,TS12+N,TS12);TS14:=IF(T14=1,TS13+N,TS13);TS15:=IF(T15=1,TS14+N,TS14);TS16:=IF(T16=1,TS15+N,TS15);TS17:=IF(T17=1,TS16+N,TS16);TS18:=IF(T18=1,TS17+N,TS17);TS19:=IF(T19=1,TS18+N,TS18);TS20:=IF(T20=1,TS19+N,TS19);TS21:=IF(T21=1,TS20+N,TS20);TS22:=IF(T22=1,TS21+N,TS21);TS23:=IF(T23=1,TS22+N,TS22);TS24:=IF(T24=1,TS23+N,TS23);TS25:=IF(T25=1,TS24+N,TS24);TS26:=IF(T26=1,TS25+N,TS25);TS27:=IF(T27=1,TS26+N,TS26);TS28:=IF(T28=1,TS27+N,TS27);TS29:=IF(T29=1,TS28+N,TS28);TS30:=IF(T30=1,TS29+N,TS29);TS31:=IF(T31=1,TS30+N,TS30);TS32:=IF(T32=1,TS31+N,TS31);TS33:=IF(T33=1,TS32+N,TS32);TS34:=IF(T34=1,TS33+N,TS33);TS35:=IF(T35=1,TS34+N,TS34);TS36:=IF(T36=1,TS35+N,TS35);AAA:=CONST(HHV(H,90));DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS1),'早晨之星,见底回升'); DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS2),'黄昏之星,见顶回落'); DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS3),'长十字,重要的警告信号,原趋势停顿或反转');DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS4),'垂死十字,下跌信号'); DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS5),'早晨十字星,上涨信号,见底回升');DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS6),'黄昏十字星,趋势停顿或反转,下跌或,见顶回落');DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS7),'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低');DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS8),'倒转锤头构成一个看涨信号,可能见底回升');DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS9),'锤头,可能见底回升,如有量配合,信号强烈');DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS10),'吊颈,上升行情中见顶回落,顶部出现,见顶信号');DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS11),'穿头破脚,顶部出现,见顶回落信号');DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS12),'乌云盖顶,见顶回落信号');DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS13),'曙光初现,将演化为V型反转或横盘。

通达信准确的波段指标公式

通达信准确的波段指标公式

通达信准确的波段指标公式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;。

通达信分时看盘波段实时解盘公式

通达信分时看盘波段实时解盘公式

通达信分时看盘波段实时解盘公式股票公式不明白请查阅:股票公式文件使用以及说明!通达信分时看盘波段实时解盘公式我最喜欢的指标。

分时看盘主图:源码:一主三副图。

源码:主图:金轨道上18H:WMA(SMA(HHV(HIGH,18),9/2,1),3);下18L:WMA(SMA(LLV(LOW,18),9/2,1),3);通道:(上18H+下18L)/2;DRAWBAND(上18H,RGB(0,0,155),通道,RGB(0,0,155));DRAWBAND(通道,RGB(0,40,0),下18L,RGB(0,40,0));WMA(SMA(HHV(HIGH,18),9/2,1),3),COLOR0080FF,DOTLINE;WMA(SMA(LLV(LOW,18),9/2,1),3),COLOR0080FF,DOTLINE;(上18H+下18L)/2,COLORFFFFFF;MA5:WMA(C,5);IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHIC K3;{CCI-金}现价:IF (DYNAINFO(4)=0,C,DYNAINFO(7)),COLOR0077FF,LINETHICK0;TYB:WMA(((C+(H+L)/2)/2*0.618+(C+O)/2*0.382),2),LINETHI CK0;CCIA:=(TYB-MA(TYB,14))/(0.015*AVEDEV(TYB,14));CCIB:=(TYB-MA(TYB,28))/(0.015*AVEDEV(TYB,28));CCIC:=(TYB-MA(TYB,42))/(0.015*AVEDEV(TYB,42));CCI:=WMA((CCIA+2*CCIB+CCIC)/4,5);PK:=4;BX:=IF(BARSCOUNT(C)=500,0,500);CCIS:=ABS(HHV(CCI,BX)-LLV(CCI,BX))/(HHV(C,BX)-LLV(C,BX))*PK;CCIK:CCI/CCIS+现价,COLOR00FF00,DOTLINE;IF(CCIK>REF(CCIK,1),CCIK,DRAWNULL),COLOR00DDDD,LINE THICK3;DRAWTEXT(CCI>REF(CCI,1) AND CROSS(CCI,-100),CCIK,'CCI 底背离'),COLORFFFFFF;{高抛.低吸}RC:=(H+L+C*2)/4;R2D:=WMA(RC,27);R2E:=STD(RC,27);R3F:=(RC-R2D)/R2E*100;R40:=WMA(R3F,3);R41:=WMA(R40,3);JD:=WMA(R41,2);AJ:=3*R41-2*JD;DRAWTEXT(CROSS(AJ,JD) ,L-0.1,'★'),COLOR00FFFF,LINETHICK1;DRAWTEXT(CROSS(JD,AJ) ,H+0.1,'★'),COLORFFFF00,LINETHI CK1;STICKLINE(C>=O,C,O,3.4,0),COLOR0000AA;STICKLINE(C>=O,C,O,3.0,0),COLOR0000BB ;STICKLINE(C>=O,C,O,2.4,0),COLOR0000CC;STICKLINE(C>=O,C,O,2.0,0),COLOR0000DD ;STICKLINE(C>=O,C,O,1.6,0),COLOR0000EE;STICKLINE(C>=O,C,O,1.2,0),COLOR0000FF;STICKLINE(C>=O,C,O,0.6,0),COLOR0000FF;STICKLINE(C>=O,H,L,0,0),COLORRED;STICKLINE(C<=O,C,O,3.4,0),COLORAAAA00;STICKLINE(C<=O,C,O,3.0,0),COLORBBBB00;STICKLINE(C<=O,C,O,2.4,0),COLORCCCC00;STICKLINE(C<=O,C,O,2.0,0),COLORDDDD00;STICKLINE(C<=O,C,O,1.6,0),COLOREEEE00;STICKLINE(C<=O,C,O,1.2,0),COLORFFFF00;STICKLINE(C<=O,C,O,0.6,0),COLORFFFF00;STICKLINE(C<=O,H,L,0,0),COLORFFFF00;AA:=REF(MA(C,20),1)<REF(MA(C,20),2);BB:=COUNT(AA,3)>=2;CC:=MA(C,20)>REF(MA(C,20),1);拐点:=CC AND BB;DRAWTEXT(拐点,L*0.99,'★拐点'),COLORYELLOW;副图一:洗盘后买入:N:=10;ZZ:=(HHV(H,3)+LLV(L,3))/2;A:=IF(C>ZZ,VOL,0);B:=IF(C<ZZ,V OL,0);总0:=(A-B);BBD:EMA(总0,3)/SUM(VOL,5)*600,LINETHICK;STICKLINE(BBD>=0,0,BBD,3,0),COLOR000088;STICKLINE(BBD>=0,0,BBD,1.5,0),COLOR0000AA;STICKLINE(BBD>=0,0,BBD,1,0),COLOR0000CC;STICKLINE(BBD>=0,0,BBD,0.5,0),COLOR0000FF;STICKLINE(BBD<0,0,BBD,3,0),COLOR888800;STICKLINE(BBD<0,0,BBD,1.5,0),COLORAAAA00;STICKLINE(BBD<0,0,BBD,1,0),COLORCCCC00;STICKLINE(BBD<0,0,BBD,0.5,0),COLORFFFF00;XH1:=REF(BBD,1)<REF(BBD,2) AND REF(BBD,1)<-10 AND BBD>REF(BBD,1) AND BBD>0;XH2:=REF(BBD,1)>=REF(BBD,2) AND REF(BBD,1)>8 AND BBD<REF(BBD,1) AND BBD<0;DRAWICON(XH1,-20,1);DRAWICON(XH2,20,2);AA:=REF(CLOSE,1);BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;HHH:=BBB-LLV(BBB,27);CCC:=LLV(BBB,27)-BBB;QQ:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK 1;SS:=(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK1;GG:=MA(HHH,5),LINETHICK1,COLORGREEN;MM:=MA(CCC,5),LINETHICK1,COLORGREEN;WW:=IF(QQ<GG,SS,MM),LINETHICK1,COLOR0000FF;EE:=IF(SS<MM,GG,QQ),COLORFFFFCC,LINETHICK1;★买:=IF(EE-WW<5.6,200,0);RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB2:=(RSVV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH),COLORRED;买:IF(黄金AND RSVV<VARB2-2,180,0),COLOR00FFFF,STICK,LINETHICK1;DRAWTEXT(买>0,99.6,'买'),COLORFFFFFF;STICKLINE(买,0,2,0,9),COLOR0000FF;VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);小心: 3.2,COLORYELLOW;风险: 3.5,COLORBLUE;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),0,0),COLORRED;STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),0,0),COLOR00FF00;底部:0.2,COLORC6C600;关注:0.5,COLORFF75FF;强弱分界:1.75,COLORRED;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);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,45,'低进'),COLORFFFFFF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,85,'▲'),COLORFF00FF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,80,'▲'),COLORFF00FF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,75,'↑'),COLORFF00FF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,70,'↑'),COLORFF00FF;小股民:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);庄家:= EMA(0.667*REF(小股民,1)+0.333*小股民,2);DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,90.5,'高出'),COLOR00FF00;DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,80,'●'),COLOR00FF00;高出:100*(CROSS(庄家,小股民) AND 小股民>70),COLOR00FF00,STICK,LINETHICK1;副图二: 波段:VAR1:=1;VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);高位:90,DOTLINE,COLOR626262;低位:20,DOTLINE,COLOR626262;VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);C1:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),LINETHICK2,COLOR0000FF;C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFF FFF,LINETHICK1;H1:IF( CROSS(C2,C1),C2,DRAWNULL),CROSSDOT,LINETHICK 1,COLORYELLOW;F1_:IF(CROSS(C2,C1),C2,DRAWNULL),CIRCLEDOT,LINETHICK 1,COLORFFFF00;DRAWTEXT(CROSS(C1,C2),REF(C2,1),'B'),COLOR000000;DRAWTEXT(CROSS(C2,C1),REF(C1,1),'★'),COLORC6C600;H2:IF( CROSS(C1,C2),C1,DRAWNULL),CROSSDOT,LINETHICK 1,COLORMAGENTA;F2_:IF(CROSS(C1,C2),C1,DRAWNULL),CIRCLEDOT,LINETHICK 1,COLORYELLOW;DRAWICON(CROSS(C1,C2) AND C2>0,C2,1);DRAWICON(CROSS(C2,C1) AND C2<-100,C1,2);DRAWICON(CROSS(C1,C2) AND C2<0,C2,34);DRAWICON(CROSS(C2,C1) AND C2>-100,C1,2);条件:=CROSS(C1,C2) AND C1<40;条件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;DRAWTEXT(条件,15,'★'),COLOR00FFFF;DRAWTEXT(条件0,96,'卖'),COLORYELLOW;副图三:盘1:=COST(0.33);盘2:=COST(5);盘3:=COST(15);盘4:=COST(55);盘5:=COST(97);获利:=WINNER(CLOSE)*100;套牢:=100-WINNER(CLOSE)*100;DRAWTEXT_FIX(1,0.02,0,0,EXTERNSTR(0,1)),COLOR719FFF;DRAWTEXT_FIX (1,0.4,0,1,'升浪:'),COLOR00FFFF;DRAWNUMBER_FIX(1,0.41,0,0,CONST(COST(55))),COLOR007 DFB;DRAWTEXT_FIX (1,0.5,0,0,'预测:'),COLOR00FFFF;DRAWNUMBER_FIX(1,0.55,0,0,CONST(COST(97))),COLOR007 DFB;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,30);多头排列:= MA1>MA2 AND MA2>MA3 AND MA3>MA4 ;MA60:=MA(C,60),COLORFFCC66;MA13:=MA(C,13),COLORFFCC66;MA75:=MA(C,75),COLORFFCC66;空头排列:= MA1<MA2 AND MA2<MA3 AND MA3<MA4 ;下跌趋势:=MA4<REF(MA4,3)AND MA4<REF(MA4,1);上升趋势:=MA4>REF(MA4,3) AND MA4>REF(MA4,1) ;下降成:=CONST(IF(下跌趋势AND MA1<REF(MA1,1) AND REF(NOT(下跌趋势),1),1,0));上升成:=CONST(IF(上升趋势 AND REF(NOT(上升趋势),1),1,0));DRAWTEXT_FIX(ISLASTBAR AND 下降成=1,0.8,0.2,0,'下降趋势成'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND 上升成=1,0.8,0.2,0,'上升趋势成'),COLOR8080FF;一阴穿2线:=C/O<0.985 AND H>MA1 AND C<MA3;一阳穿2线:=C/O>1.016 AND L<MIN(MA1,MA3)AND C>MAX(MA1,MA3);发散度:=MA1/MA4;均线下发散:=下跌趋势AND 发散度<0.9 AND 发散度<0.99*REF(发散度,1);均线上发散:=MA1>REF(MA1,1) AND MA2>REF(MA2,1) AND MA3>REF(MA3,1) AND MA4>REF(MA4,1) AND MA1>MA2 AND MA2>MA3 AND MA3>MA4;AAAA1:=MAX(MAX(MA(V,5),MA(V,10)),MA(V,60))/MIN(MIN( MA(V,5),MA(V,10)),MA(V,60))<=1.4;AAAA2:=MAX(MA(C,5),MA(C,10))/MIN(MA(C,5),MA(C,10))< =1.4;DIFF:=EMA(C,12)-EMA(C,26);DEA:=EMA(DIFF,9);升:=CONST(IF( DIFF>0,1,0)),COLORRED;DRAWTEXT_FIX(ISLASTBAR AND 升=1,0.1,0.35,0,'处于上升趋势'),COLOR8080FF;降:=CONST(IF( DIFF<-0,1,0)),COLORRED;DRAWTEXT_FIX(ISLASTBAR AND 降=1,0.1,0.35,0,'处于下降趋势'),COLORFFFF00;VARF:=LOW*0.9;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(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;均线密集:=DIFF>DEA AND K >D AND(MA5-MA10)<0.05 AND (MA20-MA5)<0.05 AND (MA10-MA5)<0.05 AND (MA5-MA20)<0.05;A:=MA(-100*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34)),19);B:=-100*(HHV(H,14)-C)/(HHV(H,14)-LLV(L,14));DD:=EMA(-100*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34)),4);长线:=A+100;短线:=B+100;中线:=DD+100;见顶:=(REF(中线,1)>85 AND REF(短线,1)>85 AND REF(长线,1)>65 AND CROSS(长线,短线));顶区:=(中线>REF(中线,1) AND REF(中线,1)>80 AND REF(短线,1)>95 OR REF(短线,2)>95AND 长线>60 AND 短线<83.5 AND 短线<中线 AND 短线<长线+4);底区:=长线<20 AND 中线<18 AND 短线<40 AND REF(短线,1)<5 AND 中线 >REF(中线,1)AND 短线 >REF(短线,1);顶部:=FILTER(顶区,4);{}VAR2N:=LLV(LOW,3)<=LLV(LOW,60);VAR3N:= C>O AND (C/O>1.03 OR C>1.03*REF(C,1));绝地反击:=IF(VAR2N AND VAR3N,90,0),COLORYELLOW,LINETHICK2;LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;A1:=SMA(MAX(C-LC,0),6,1);B1:=SMA(ABS(C-LC),6,1);界:=IF(C>LC,(REF(A1,1)*5-REF(B1,1)*5*0.5)/(0.5-1)+LC,LC+REF(B1,1)*5-REF(A1,1)*5/0.5),COLORWHITE;MACD:=4*(DIFF-DEA);{}缩头:=IF(MACD>0 AND REF(MACD,1)>REF(MACD,2) AND MACD< REF(MACD,1),1,0);缩脚:=IF(MACD<0 AND REF(MACD,1)< REF(MACD,2) AND MACD>REF(MACD,1),1,0);ZDIF:=EMA(INDEXC,12)-EMA(INDEXC,26);ZHIDEA:=EMA(ZDIF,9);ZEMACD:=(ZDIF-ZHIDEA)*2/100,COLORSTICK;DK:=ZEMACD;{}Z缩头:=IF(DK>0 AND REF(DK,1)>REF(DK,2) AND DK< REF(DK,1),1,0);Z缩脚:=IF(DK<0 AND REF(DK,1)< REF(DK,2) AND DK>REF(DK,1),1,0);{}TT:=240/FROMOPEN;比:=TT;J12:=(HIGH - ((HIGH - LOW) / 3));J23:=(LOW + ((HIGH - LOW) / 3));AAA1:=CONST(HHV(H,90));BBB:=CONST(LLV(L,30))+2;T1:=CONST(IF(CLOSE>界,1,0));T2:=CONST(IF(CLOSE<界,1,0));T3:=CONST(IF(C<MA(C,75),1,0));T4:=CONST(IF(CROSS(CLOSE,界),1,0));T5:=CONST(IF(CROSS(MA(CLOSE,13),CLOSE),1,0));T6:=CONST(IF(C>=MA(C,5) AND C<MA(C,13),1,0));T7:=CONST(IF(C>=MA(C,75),1,0));VAR1Y:=VOL/CAPITAL*100;VAR2Y:=LLVBARS(LOW,10);VAR3Y:=(CLOSE-REF(OPEN,VAR2Y))/REF(OPEN,VAR2Y)*100;VAR4Y:=REF(CLOSE,2)*0.865;VAR5Y:=REF(CLOSE,13)*0.772;VAR6Y:=MAX(VAR4Y,VAR5Y);T9:=(CLOSE-VAR6Y)/CLOSE>0.2 AND VAR3Y<50 AND SUM(VAR1Y,5)/5>5;T10:=CONST(IF(VAR2N AND VAR3N,1,0));T11:=CONST(IF(缩脚,1,0));T12:=CONST(IF( ZDIF<0 ,1,0));T14:=CONST(IF(ZEMACD>=REF(ZEMACD,1) AND ZEMACD>0 AND ZDIF>=0 ,1,0));DRAWTEXT_FIX(ISLASTBAR ,0.01,0.2,0,'看均线'),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR ,0.01,0.35,0,'看MACD'),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR ,0.01,0.50,0,'看大盘'),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR ,0.01,0.65,0,'看买卖'),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR AND T1=1,0.26,0.2,0,'短线上升持股'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND T2=1,0.26,0.2,0,'短线下降持币'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND T3=1,0.38,0.2,0,'长线下降持币'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND T7=1,0.38,0.2,0,'长线上升持股'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND T6=1,0.1,0.65,0,'低买点持股信号'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND T4=1,0.65,0.65,0,'加买点信号'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND T5=1,0.65,0.65,0,'短线卖出信号'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND T14=1,0.1,0.5,0,'处于上升趋势'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND T12=1,0.1,0.5,0,'处于下降趋势'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND T9=1,0.2,0.65,0,'阳线卖点'),COLOR00FFFF;LC1:=REF(INDEXC,1);ZRSI:=SMA(MAX(INDEXC-LC1,0),6,1)/SMA(ABS(INDEXC-LC1),6,1)*100,COLORD9D900;X:=INDEXC;Y:=INDEXO;Z:=INDEXL;I:=INDEXH;急速超跌:=(X-MA(X,34))/MA(X,34)*100<-5;当日收阳:=(I-Z)/Z>0.01 AND (X-Y)/Y>0.01 AND X/REF(X,1)>1.01;超跌收阳:=CONST(IF(急速超跌 AND 当日收阳,1,0));DRAWTEXT_FIX(ISLASTBAR AND 超跌收阳=1 ,0.65,0.5,0,'大盘短底,少量买'),COLOR8080FF;A1W:=SMA(MAX(X-LC1,0),6,1);B1W:=SMA(ABS(X-LC1),6,1);界1:=IF(X>LC1,(REF(A1W,1)*5-REF(B1W,1)*5*0.5)/(0.5-1)+LC1,LC1+REF(B1W,1)*5-REF(A1W,1)*5/0.5),COLORWHITE;TYP := (Z +I + X)/3;YY:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;BB:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));超卖:=CONST(IF(CROSS(BB,-200),1,0));DRAWTEXT_FIX(ISLASTBAR AND 超卖=1 ,0.65,0.5,0,'大盘超卖,少量买'),COLOR8080FF;KS:=(C-MA(C,17))/MA(C,17)*(-100);RKS:=REF(KS,1);MLS:=RKS/KS>=1.23 AND RKS>=8 AND C/REF(C,1)>=1.01;大盘4:=CONST(IF(X>界1,1,0));大盘3:=CONST(IF(X<界1,1,0));大盘12{M13}:=CONST(IF(ZEMACD>REF(ZEMACD,1) AND ZEMACD>0 AND ZDIF<0 ,1,0));大盘13:=CONST(IF(ZEMACD<0 AND ZDIF>0 ,1,0));M整理:=CONST(IF( MACD<0 AND DIFF>0,1,0));M走缓:=CONST(IF(MACD<REF(MACD,1) AND MACD>0 AND DIFF>0 ,1,0));DRAWTEXT_FIX(ISLASTBAR AND M整理=1 ,0.26,0.35,0,'股价升途整理'),COLOR00FFFF;DRAWTEXT_FIX(ISLASTBAR AND M走缓=1 ,0.26,0.35,0,'股价上升走缓'),COLOR00FFFF;大盘16:=CONST(IF(ZEMACD<REF(ZEMACD,1) AND ZEMACD<0 AND ZDIF>0 ,1,0));大盘11:=CONST(IF(KS>=17 ,1,0));大盘2:=CONST(IF(MLS=1,1,0));DRAWTEXT_FIX(ISLASTBAR AND 大盘4=1 ,0.26,0.5,0,'短线持股'),COLOR8080FF;DRAWTEXT_FIX(大盘3=1 AND ISLASTBAR,0.26,0.5,0,'短线持币'),COLORFFFF00;DRAWTEXT_FIX(大盘13=1 AND ISLASTBAR,0.3,0.5,0,'上升趋势,升途整理,谨慎'),COLOR00FFFF;DRAWTEXT_FIX(大盘11=1 AND ISLASTBAR,0.2,0.65,0,'今日价超跌'),COLORFFFF00;DRAWTEXT_FIX(大盘2=1 AND ISLASTBAR,0.2,0.65,0,'今日价反弹'),COLOR8080FF;M弹:=CONST(IF(MACD>REF(MACD,1) AND MACD>0 AND DIFF<0,1,0));{DRAWTEXT_FIX(大盘12=1 AND ISLASTBAR,0.3,0.5,0,'大盘下降趋势,反弹,谨慎'),COLORWHITE ;}DRAWTEXT_FIX(大盘12 AND ISLASTBAR,0.5,0.5,0,'处于反弹区'),COLOR8080FF;DRAWTEXT_FIX(M弹=1 AND ISLASTBAR,0.26,0.35,0,'反弹阶段小心'),COLORYELLOW;MM3:=CONST(IF(RSI1<ZRSI,1,0));MM4:=CONST(IF((RSI1>=ZRSI),1,0));DRAWTEXT_FIX(ISLASTBAR AND MM3=1,0.1,0.2,0,'弱于大盘走势'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND MM4=1,0.1,0.2,0,'强于大盘走势'),COLOR8080FF;WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);MFI:=(HIGH-LOW)*1000000/(VOL*比);绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);M1:=CONST(IF(空头排列 AND 均线下发散,1,0));M2:=CONST(IF(多头排列 AND 均线上发散,1,0));M3:=CONST(IF(空头排列 AND NOT(均线下发散),1,0));M9:=CONST(IF(空头排列 ,1,0));M10:=CONST(IF(多头排列 ,1,0));MM1:=CONST(IF(均线密集,1,0));MM2:=CONST(IF(上升趋势 AND NOT(一阴穿2线) AND REF(上升趋势,1),1,0));M4:=CONST(IF(下跌趋势 AND NOT(一阳穿2线),1,0));MM5:=CONST(IF(DIFF<0 AND MACD<0 AND MACD>REF(MACD,1),1,0));MM7:=CONST(IF(ZEMACD>REF(ZEMACD,1) AND ZEMACD<0,1,0));MM8:=CONST(IF(下跌趋势 AND REF(下跌趋势,1) AND NOT(一阳穿2线),1,0));MM9:=CONST(IF(ZEMACD<REF(ZEMACD,1) AND ZEMACD>0,1,0));量大:=(卖盘+买盘)/REF(VOL,1)>2;M5:=CONST(量大);量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;M6:=CONST(量缩);卖量大:=(卖盘-买盘)/买盘>0.4;M7:=CONST(卖量大);买量大:=(买盘-卖盘)/卖盘>0.4;M8:=CONST(买量大);DRAWTEXT_FIX(ISLASTBAR AND M2=1,0.7,0.2,0,'多头发散,注意13日线得失'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND M7=1,0.7,0,0,'☆卖出量大于买入量40%以上'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND M8=1,0.7,0,0,'☆买入量大于卖出量40%以上'),COLOR8080FF;{{DRAWTEXT_FIX(ISLASTBAR AND MM1=1,0.2,0,7,'均线密集,注意方向变化'),COLORYELLOW;}DRAWTEXT_FIX(ISLASTBAR AND M1=1,0.4,0.2,0,'有加速下跌趋势'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND M2=1,0.4,0.2,0,'有加速上升趋势'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND M4=1,0.5,0.2,0,'下跌趋势未变,'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND MM2=1,0.5,0.2,0,'上升趋势未变'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND M9=1,0.8,0.2,0,'空头排列'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND M10=1,0.8,0.2,0,'多头排列'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND MM5=1,0.25,0.35,0,'下跌趋势趋缓,可能转折'),COLOR00FFFF;{DRAWTEXT(VAR2N AND VAR3N,L*0.99,'反击'),COLOR00FF00;}BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);乖:=CONST(IF(CROSS(BIAS,乖离) AND 乖离<-9,1,0)),COLOR00FFFF;DRAWTEXT_FIX(ISLASTBAR AND 乖=1,0.65,0.35,0,'乖离买点'),COLOR8080FF;坑:=CONST(IF( 乖离<-19,1,0)),COLORRED;DRAWTEXT_FIX(ISLASTBAR AND 坑=1,0.65,0.5,0,'深坑买点'),COLOR8080FF;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;支撑:=L1+P1*0.5/8;底: CROSS(支撑,C),COLOR8080FF,STICK,LINETHICK1;DRAWTEXT(底>0,19.26,'底'),COLOR4646FF;VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);VAR2:=8;RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE -LC)),3,1)) * 100);减:CROSS(88,RSI),STICK,LINETHICK1,COLORFFFF00;DRAWTEXT(减>0,13.1,'↓减'),COLORFFFF00;STICKLINE(减,0,1,0,0),COLORFFFF00;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,2,'低进'),COLORFFFFFF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,13,'▲'),COLORFF00FF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,10,'↑'),COLORFF00FF;小股民:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);庄家:= EMA(0.667*REF(小股民,1)+0.333*小股民,2);DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,1.9,'卖'),COLOR00FF00;DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,12,'↓'),COLOR00FF00;高出:100*(CROSS(庄家,小股民) AND 小股民>70),COLOR000000,LINETHICK1,STICK;RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB2:=(RSVV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH),COLORRED;买:IF(黄金AND RSVV<VARB2-2,18,0),COLOR2E2E2E,STICK,LINETHICK1;DRAWTEXT(买>0,13.6,'买'),COLOR8080FF;再送一个选股预警指标:洗盘后再买入:RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB2:=(RSVV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH);洗盘再买:黄金 AND RSVV<VARB2-2;。

通达信波段主图指标公式,源码简洁原理却不简单

通达信波段主图指标公式,源码简洁原理却不简单

通达信波段主图指标公式,源码简洁原理却不简单通达信波段主图指标公式的核心语句也就4句,后面的语句都是为了画图的。

公式看起来比较简单,原理也比较巧妙,但是理解起来有些困难。

直接上源码:HH:=HHV(H,5);LL:=LLV(L,5);TH:=BARSLAST(H>REF(HH,1));TL:=BARSLAST(L<REF(LL,1));IF(TH<TL,LL,DRAWNULL),DOTLINE,COLORMAGENTA;IF(TH>TL,HH,DRAWNULL),DOTLINE,COLORGREEN;STICKLINE(C>O ANDTH<TL,H,L,0,1),COLORRED;STICKLINE(C>O ANDTH<TL,C,O,3,1),COLORRED;STICKLINE(C<O ANDTH<TL,H,L,0,0),COLORRED;STICKLINE(C<O ANDTH<TL,C,O,3,0),COLORRED;STICKLINE(C<O ANDTH>TL,H,L,0,0),COLORCYAN;STICKLINE(C<O ANDTH>TL,C,O,3,0),COLORCYAN;STICKLINE(C>O ANDTH>TL,H,L,0,1),COLORCYAN;STICKLINE(C>O ANDTH>TL,C,O,3,1),COLORCYAN;一、波段指标公式核心语句HH:=HHV(H,5);表示5日高点,下图中的绿色虚线就是5日高点连成的线;LL:=LLV(L,5);表示5日低点,下图中的洋红色虚线就是5日低点连成的线。

H>REF(HH,1)表示最高价大于前一天对应的5日最高点,TH:=BARSLAST(H>REF(HH,1));就表示满足这个条件距离当天的周期数。

通达信波段密码指标公式

通达信波段密码指标公式

通达信波段密码指标公式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);。

【股票指标公式下载】-【通达信】超强组合(波段线、金手指)

【股票指标公式下载】-【通达信】超强组合(波段线、金手指)

【通达信】超强组合(波段线、金手指)-指标公式源码{波段线}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. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)-指标公式源码{中短波}短波:EMA(EMA(CLOSE,13),1),COLOR00DD00;中波:EMA(EMA(CLOSE,13),26),COLORRED;HZ2:EMA(EMA(CLOSE,13),8),COLORGREEN,LINETHICK2;HZ4:EMA(EMA(CLOSE,13),39),COLORFF00FF,LINETHICK2;STICKLINE(HZ2<HZ4,短波,HZ4,1,0),COLORBLUE ;STICKLINE(短波>HZ2,短波,HZ2,1,0),COLORGREEN;STICKLINE(中波>HZ4,中波,HZ4,1,0),COLORFF00FF;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);{红}STICKLINE(MACD>0,C,O,2.8,0),COLOR000080;STICKLINE(MACD>0,H,L,0,0),COLOR0000E5;{淡蓝}STICKLINE(MACD<0 AND MACD<REF(MACD,1),C,O,2.8,0),COLORFF9900; STICKLINE(MACD<0 AND MACD<REF(MACD,1),H,L,0,0),COLORFFFF00;{黄}STICKLINE(MACD<0 AND MACD>REF(MACD,1),C,O,2.8,0),COLOR0099FF; STICKLINE(MACD<0 AND MACD>REF(MACD,1),H,L,0,0),COLOR00FFFF;T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1) > REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW ANDCLOSE!=HIGH),1,0));T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1)< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 ANDREF(OPEN,1)> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));T10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.96AND CLOSE<REF(OPEN,1)AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.04AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.97AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.03AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));T18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW <CLOSE/OPEN+0.018),1,0));T19{三个白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1) >REF(OPEN,1) AND CLOSE>OPENAND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPENAND CLOSE/OPEN<0.98),1,0));T21{孕育线}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1)AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPENAND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) ANDOPEN<=REF(CLOSE,1)AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2)) <=1/100),1,0));T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)<REF(OPEN,1)AND CLOSE>OPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN< EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND(V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 ANDREF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 ANDCLOSE>REF(CLOSE,4)),1,0));T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 ANDREF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 ANDCLOSE<REF(CLOSE,4)),1,0));T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)AND CLOSE<REF(CLOSE,1)),1,0));T28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));T29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));T30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1) -REF(OPEN,1))<0),1,0));T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0)); T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));T34{大阴烛}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW <OPEN/CLOSE+0.018),1,0));T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)),1,0));T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O >REF(O,1) AND C<REF(O,1)),1,0));N:=0.04;TS1:=IF(T1=1,0+N,0);TS2:=IF(T2=1,TS1+N,TS1);TS3:=IF(T3=1,TS2+N,TS2);TS4:=IF(T4=1,TS3+N,TS3);TS5:=IF(T5=1,TS4+N,TS4);TS6:=IF(T6=1,TS5+N,TS5);TS7:=IF(T7=1,TS6+N,TS6);TS8:=IF(T8=1,TS7+N,TS7);TS9:=IF(T9=1,TS8+N,TS8);TS10:=IF(T10=1,TS9+N,TS9);TS11:=IF(T11=1,TS10+N,TS10);TS12:=IF(T12=1,TS11+N,TS11);TS13:=IF(T13=1,TS12+N,TS12);TS14:=IF(T14=1,TS13+N,TS13);TS15:=IF(T15=1,TS14+N,TS14);TS16:=IF(T16=1,TS15+N,TS15);TS17:=IF(T17=1,TS16+N,TS16);TS18:=IF(T18=1,TS17+N,TS17);TS19:=IF(T19=1,TS18+N,TS18);TS20:=IF(T20=1,TS19+N,TS19);TS21:=IF(T21=1,TS20+N,TS20);TS22:=IF(T22=1,TS21+N,TS21);TS23:=IF(T23=1,TS22+N,TS22);TS24:=IF(T24=1,TS23+N,TS23);TS25:=IF(T25=1,TS24+N,TS24);TS26:=IF(T26=1,TS25+N,TS25);TS27:=IF(T27=1,TS26+N,TS26);TS28:=IF(T28=1,TS27+N,TS27);TS29:=IF(T29=1,TS28+N,TS28);TS30:=IF(T30=1,TS29+N,TS29);TS31:=IF(T31=1,TS30+N,TS30);TS32:=IF(T32=1,TS31+N,TS31);TS33:=IF(T33=1,TS32+N,TS32);TS34:=IF(T34=1,TS33+N,TS33);TS35:=IF(T35=1,TS34+N,TS34);TS36:=IF(T36=1,TS35+N,TS35);AAA:=CONST(HHV(H,90));DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS1),'早晨之星,见底回升'); DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS2),'黄昏之星,见顶回落'); DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS3),'长十字,重要的警告信号,原趋势停顿或反转');DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS4),'垂死十字,下跌信号'); DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS5),'早晨十字星,上涨信号,见底回升');DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS6),'黄昏十字星,趋势停顿或反转,下跌或,见顶回落');DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS7),'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低');DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS8),'倒转锤头构成一个看涨信号,可能见底回升');DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS9),'锤头,可能见底回升,如有量配合,信号强烈');DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS10),'吊颈,上升行情中见顶回落,顶部出现,见顶信号');DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS11),'穿头破脚,顶部出现,见顶回落信号');DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS12),'乌云盖顶,见顶回落信号');DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS13),'曙光初现,将演化为V型反转或横盘。

相关文档
最新文档