【精选指标】通达信【峰谷战法擒牛】主图指标,助你股海擒牛!

财富   2024-12-12 21:01   湖北  



  精 彩 内 容 呈 现  


 指    标    源    码

DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,HYBLOCK),COLOR0000FF;

DRAWTEXT_FIX(ISLASTBAR,0.01,0.07,0,DYBLOCK),COLORYELLOW;

DRAWTEXT_FIX(ISLASTBAR,0.01,0.13,0,GNBLOCK),COLORFF00FF;

DRAWTEXT_FIX(ISLASTBAR,0.01,0.2,0,FGBLOCK),COLOR0080FF;

A:=AMOUNT/V/100;

ZYGA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);

QQ:=EMA(((ZYGA/10)+EMA(A,13)),0);

行情线:=MA(A,1);

重心:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;

【趋势线】:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK4;

【波段线】:IF(重心>=【趋势线】,【趋势线】,DRAWNULL),COLORRED,LINETHICK2;

【空仓线】:IF(重心<【趋势线】,【趋势线】,DRAWNULL),COLORCYAN,LINETHICK2;

DRAWTEXT(ISLASTBAR,【趋势线】,'【趋势线】'),COLORRED;

变:EMA(CLOSE,5),LINETHICK1,COLORYELLOW;

金:IF(变>REF(变,1),变,DRAWNULL),COLORRED,LINETHICK1;

空:IF(变<REF(变,1),变,DRAWNULL),COLORGREEN,LINETHICK1;

DRAWTEXT(ISLASTBAR,变,'【波段线】'),COLORRED;

DA:=(EMA(H,1)+EMA(L,1)+EMA(H,1)+EMA(H,1))/4;

DB:=EMA(REF(HHV(H,25),1),2),COLORGREEN,LINETHICK1;

DRAWTEXT(CROSS(DA,【趋势线】),【趋势线】,'B'),COLORWHITE,LINETHICK1;

涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);

STICKLINE(涨停,O,C,1,0),COLORYELLOW;

ZDF:=(C-REF(C,1))/REF(C,1)*100;

STICKLINE(ZDF<-9.9,O,C,1,0),COLORBLUE;

ZYG3:=LLV(HIGH,240);

ZYG4:=100*(CLOSE-ZYG3)/ZYG3;

ZYG5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;

ZYG6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;

ZYG7:=0;DRAWTEXT_FIX(C>O,0,0.07,0,'更多实用指标公式,请关注微信公众号:通达信指标公式'),COLORMAGENTA;

ZYG8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;

ZYG9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;

ZYG10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);

ZYG11:=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);

ZYG12:=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);

ZYG13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);

ZYG14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);

ZYG15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);

ZYG16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);

ZYG17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);

ZYG18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);

ZYG19:=EMA(CLOSE,2)-EMA(CLOSE,150);

买1:=ZYG10;

买2:=(ZYG11+ZYG13+ZYG15+ZYG17);

卖1:=(ZYG12+ZYG14+ZYG16+ZYG18);

B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;

S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;

ZYG100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));

ZYG200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));

ZYG300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));

F:IF(CROSS(ZYG200,MA(ZYG300,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLORFF00FF;

DRAWTEXT(CROSS(S,卖1),S,'←落袋为安'),COLORWHITE,LINETHICK1;

DRAWTEXT(CROSS(B,买1),B,'←不破买入'),COLORRED,LINETHICK1;

PH:=TROUGHBARS(2,5,1);

LL:=HHV(H,PH);

TJ1:=LL=HIGH AND LL<REF(LL,1);{//=1}

TS:=SUMBARS(TJ1,2);

TJ:=PEAKBARS(2,5,1)=1 AND TS>=PH;

DRAWICON(TJ,HIGH*1.01+0.02,2);

警告灯:IF(TJ,HIGH*1.008,DRAWNULL),CROSSDOT,LINETHICK2,COLORCYAN;

PL:=BARSLAST(TJ);

支撑位:IF(BARSLAST(TJ1),

REF(LOW,BARSLAST(TJ1)),DRAWNULL),COLOREA91B5;

压力位:IF(BARSLAST(TJ),REF(HIGH,PL),DRAWNULL),COLORYELLOW;

TJ_2:=LOW>REF(REF(LOW,TS),PL);

DRAWTEXT(ISLASTBAR,压力位,'压力位'),COLORYELLOW;

DRAWTEXT(ISLASTBAR,支撑位,'支撑位'),COLOREA91B5;

AZ1:=C>REF(C,4);

NT:=BARSLASTCOUNT(AZ1);

TJ11:=NT=9;

TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);

AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;

DRAWTEXT(AY>0,H*1.002,VAR2STR(AY,0)),COLORFF00FF;

DRAWTEXT(NT=9,H*1.002,'9'),COLORGREEN;

BZ1:=C<REF(C,4);

NT0:=BARSLASTCOUNT(BZ1);

TJ21:=NT0=9 ;

TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);

AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;

DRAWTEXT(AY1>0,L*0.998,VAR2STR(AY1,0)),COLORFF00FF;

DRAWTEXT(NT0=9,L*0.998,'9'),COLORGREEN;





使用说明:




.点击下方通达信指标公式公众号名片,关注星标后,每天免费获取更多精彩指标公式!

    

温馨提示



如果你喜欢本文,请分享到朋友圈,想要获得更多信息,请关注我。

通达信指标公式
专业分享通达信各类指标公式,给喜欢倒腾指标公式的股友一个纯净交流平台,以股会友,广交五湖四海股友!!!
 最新文章