编写条件:
编写方法:
网友求助:
ZF:=12;
H1BAR:=PEAKBARS(4,ZF,1);
L1BAR:=TROUGHBARS(4,ZF,1);
K:=IF(H1BAR>L1BAR,0,-1);
TBAR:=TROUGHBARS(4,ZF,2+K);
H1BAR:=PEAKBARS(4,ZF,1);
L1BAR:=TROUGHBARS(4,ZF,1);
K:=IF(H1BAR>L1BAR,0,-1);
TBAR:=TROUGHBARS(4,ZF,2+K);
解答如下:
ZF:=12;
H1BAR:=PEAKBARS(4,ZF,1);
L1BAR:=TROUGHBARS(4,ZF,1);
TBAR:IF(H1BAR>L1BAR,TROUGHBARS(4,ZF,2),TROUGHBARS(4,ZF,1));