峰2动态天数
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);
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;
动态天数:IF(峰 OR 谷,IF(峰,谷谷天,峰峰天),IF(谷谷天<峰峰天,谷谷天,IF(谷谷天>峰峰天,峰峰天,DRAWNULL))),NODRAW;
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));{以上13行代码抄自任我行2010班长}
DRAWNUMBER(峰 OR 谷,D4,IF(峰,谷谷天,峰峰天)),COLORGREEN;
赞 (0)