|
例如我想找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 );
|
|