[通达信指标]主升浪捕捉器 精准把握主升浪 ,助您赢在起跑线!

发布日期:2024-05-19 12:56    点击次数:76

注意:本指标源码用于通达信。

图片

图片

指标源码

图片

图片

01

SWZB7:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;

SWZB8:=IF(YEAR>=2025,0,1);

SWZB9:=EMA(EMA(LOW,21)+6.8*STD(LOW,2),55);

SWZB10:=EMA(CLOSE/SWZB9*(1.88*CLOSE+LOW+OPEN)/2.75,3);

SWZB11:=(SWZB10-SWZB9)/SWZB9/2;

SWZB12:=EMA(SWZB10-SWZB11*SWZB10,5)*SWZB8;

SWZB13:=EMA(CLOSE,300)-3*STD(CLOSE,300);

LLL:IF(SWZB7>SWZB12,SWZB7,SWZB12)*SWZB8,COLORYELLOW,LINETHICK2;

HHH:IF(SWZB12<SWZB7 AND SWZB12<CLOSE*0.15,EMA(CLOSE,300)-3*STD(CLOSE,300),SWZB12),COLORYELLOW,LINETHICK2;

IF(SWZB12>SWZB7,HHH,DRAWNULL),COLORGREEN,LINETHICK2;

STICKLINE(LLL<>REF(HHH,1),LLL,HHH,4,0),COLORYELLOW;

ZBSX:=BARSLASTCOUNT(LLL!=HHH)=1;

DRAWICON(ZBSX,MIN(HHH,LLL)*0.96,11);

DRAWTEXT(ZBSX,LOW,71),COLORYELLOW;

WH:=CLOSE/REF(C,1)>1.09 AND CLOSE<EMA(C,55)*1.22 AND REF(EXIST(CLOSE/REF(C,1)>1.09,55),2);

WH1:=CLOSE>REF(HHV(H,90),1) AND CLOSE/REF(C,1)>1.03;

WH2:=CLOSE/REF(C,1)>1.04 AND CLOSE/REF(C,1)<1.09 AND EMA(C,33)/EMA(C,66)>1.01 AND CLOSE<EMA(C,33)*1.3;

DRAWICON(WH,LOW,9); 

DRAWICON(WH1,LOW,1);

AAA:=(3*C+H+L+O)/6;

TTZ1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;

TTZ2:=(HHV(TTZ1,5)+HHV(TTZ1,10)+HHV(TTZ1,20))/3;

TTZ3:=(LLV(TTZ1,5)+LLV(TTZ1,10)+LLV(TTZ1,20))/3;

TTZ4:=(HHV(TTZ2,5)+HHV(TTZ2,10)+HHV(TTZ2,20))/3;

TTZ5:=(LLV(TTZ3,5)+LLV(TTZ3,10)+LLV(TTZ3,20))/3;

TTZ6:=(LLV(TTZ1,2)+LLV(TTZ1,4)+LLV(TTZ1,6))/3;

TTZ1,COLORYELLOW;

TTZ6,COLORRED;

IF(TTZ1=TTZ6,TTZ6,DRAWNULL),COLORGREEN;

MA1:=EMA(CLOSE,5);

MA2:=EMA(CLOSE,10);

MA3:=EMA(CLOSE,20);

MA4:=EMA(CLOSE,30);

TJ1:=CROSS(MA1,MA2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018

OR CROSS(MA1,MA4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018

OR CROSS(MA2,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018

OR CROSS(MA1,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018;

TJ2:=(MAX(MA1,MAX(MA2,MA3))-MIN(MA1,MIN(MA2,MA3)))/

MIN(MA1,MIN(MA2,MA3))*100<=2;

XG:=TJ1 AND TJ2;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);

DEA :=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

DDTD1:=IF(K>D AND MACD>0 AND V>1,2,0),COLORRED;

DDTD2:=IF(K<D AND MACD<0 AND V>1,-2,0),COLOR00FF00;

DDTD3:=IF(MACD>0 AND K<D AND V>1,1,0),COLOR0099FF;

DDTD4:=IF(MACD<0 AND K>D AND V>1,-1,0),COLORFFFF00;

STICKLINE(DDTD1,L,H,0,0),COLORRED;

STICKLINE(DDTD1 AND C<O,L,H,0,0),COLORFFFF00;

STICKLINE(DDTD1 AND C>=O,C,O,3,1),COLORRED;

STICKLINE(DDTD1 AND C<O,C,O,3,0),COLOR990099;

STICKLINE(DDTD1 AND C<O,C,O,1,0),COLORCC00CC;

STICKLINE(DDTD1 AND C<O,C,O,0.3,0),COLORFF00FF;

STICKLINE(DDTD1 AND C>=O,C,O,3,0),COLOR000099;

STICKLINE(DDTD1 AND C>=O,C,O,1.5,0),COLOR0000BB;

STICKLINE(DDTD1 AND C>=O,C,O,0.8,0),COLOR0000DD;

STICKLINE(DDTD1 AND C>=O,C,O,0.25,0),COLOR0000FF;

STICKLINE(DDTD2 AND C>=O,L,H,0.1,0),COLOR0000FF;

STICKLINE(DDTD2 AND C>=O,C,O,3,1),COLOR00FF00;

STICKLINE(DDTD2 AND C<O,C,O,3,0),COLOR009900;

STICKLINE(DDTD2 AND C<O,C,O,1,0),COLOR00CC00;

STICKLINE(DDTD2 AND C<O,C,O,0.3,0),COLOR00FF00;

STICKLINE(DDTD3 AND C>=O,L,H,0.1,0),COLOR0000FF;

STICKLINE(DDTD3 AND C>=O,C,O,3,1),COLORFFFFFF;

STICKLINE(DDTD3 AND C<O,C,O,3,0),COLOR999999;

STICKLINE(DDTD3 AND C<O,C,O,1,0),COLORCCCCCC;

STICKLINE(DDTD3 AND C<O,C,O,0.3,0),COLORFFFFFF;

STICKLINE(DDTD4 AND C>=O,L,H,0,0),COLOR0000FF;

STICKLINE(DDTD4 AND C>=O,C,O,3,1),COLOR00FFFF;

STICKLINE(DDTD4 AND C<O,C,O,3,0),COLOR009999;

STICKLINE(DDTD4 AND C<O,C,O,1,0),COLOR00CCCC;

STICKLINE(DDTD4 AND C<O,C,O,0.3,0),COLOR00FFFF;

STICKLINE(FILTER(TJ1,3),C,O,4,0),COLOR0000FF;

DRAWICON(FILTER(XG,3),L*0.97,23);

图片

图片

图片

图片示例

图片

图片

图片

风险提示:本指标公式仅作为知识分享,供交流学习使用,不构成任何投资建议,不作为投资依据。  

图片

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报。