chunwaihome 發表於 17-1-19 13:25

怎樣可以取得某兩個日期的最高最值收市價呢?

例如我想找2015-05-21和2016-05-21之間的最高和最低的收盤價我嘗試用dateNum(),但不能成功


tn = DateNum();
startDate =5750521;
endDate =5800512;
StartBar = tn == startDate;
EndBar = tn == endDate;
dn = DateNum();
marray = IIf(tn >= startDate AND tn <= endDate, Close, Null);
hv = Highest(marray);
lv = Lowest(marray);
Plot( hv, "myH", colorGreen, styleThick );
Plot( lv, "myL", colorRed, styleThick );



頁: [1]
查看完整版本: 怎樣可以取得某兩個日期的最高最值收市價呢?