最大成交量不出峰天和谷天指标 通达信公式(附图)

[复制链接]
查看114 | 回复0 | 2021-8-20 14:43:06 | 显示全部楼层 |阅读模式

A:=H=ZIG(1,7) AND ZIG(1,7)>REF(ZIG(1,7),1);

B:=H=ZIG(1,7) AND ZIG(1,7)<REF(ZIG(1,7),1);

WAVE1:=DRAWLINE(A,H,B,L,0);{通达信指标WWW.HAO169CN.COM}

WAVE2:=DRAWLINE(B,L,A,H,0);

ZG:IF(WAVE1<REF(WAVE1,1) OR WAVE1=WAVE2,WAVE1,WAVE2),COLORMAGENTA;

峰:=WAVE2=WAVE1 AND A;

谷:=WAVE2=WAVE1 AND B;

峰峰天:=BARSLAST(峰)+1;

谷谷天:=BARSLAST(谷)+1;

D1:=ZG>REF(ZG,1) AND ISLASTBAR AND WAVE2!=WAVE1;

D2:=ZG<REF(ZG,1) AND ISLASTBAR AND WAVE2!=WAVE1;

D3:=IF(谷 OR D2,峰峰天,IF(峰 OR D1,谷谷天,DRAWNULL));

D4:=IF(谷 OR D2,L*0.98,IF(峰 OR D1,H*1.02,DRAWNULL));

DRAWTEXT(D3>0,D4,VAR2STR(D3,0)),COLORGREEN;

VV:IF(D3=0,REF(HHV(V,D4),1),IF(D4=0,REF(HHV(V,31),1),DRAWNULL)); {在峰/谷点计算出的前一波最大量,不管两头的};

DRAWTEXT(D3=0, H*1.02,VAR2STR(VV,0));

DRAWTEXT(D4=0, L*0.99,VAR2STR(VV,0));

16011I51340-56045.jpg

16011I51340-56045.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则