P:=10;
趋势:=ZIG(3,P);
↑:=TROUGHBARS(3,P,1);
↓:=PEAKBARS(3,P,1);
上:IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORRED,LINETHICK1;
下:IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK1;
下JD:=ATAN((下/REF(下,1)-1)*100)*180/3.1416;
买入条件:=TFILTER(↑=0,↓=0,1);
卖出条件:=TFILTER(↓=0,↑=0,0);
DRAWICON(买入条件,L*0.98,1);
DRAWICON(卖出条件,H*1.02,2);
14ZD5011L0-31492.jpg
|