Problem: Object "meanDur5min.msft" not found
Use traceback() to see the call stack
> meanDur5min.ave.msft@title = "5-min Mean Durations: MSFT\n(averaging across 11 trading days)"
Problem: Object "meanDur5min.ave.msft" not found
Use traceback() to see the call stack
>
> # plots of ACF and calendar pattern in durations
> par(mfrow = c(1,2))
> acf.plot(acf(meanDur5min.msft, lag.max = 234, plot = F),
+ main = "ACF of 5-min Mean Durations:\nMSFT (lags up to 3 days)")
Problem: Object "meanDur5min.msft" not found
Use traceback() to see the call stack
> plot(meanDur5min.ave.msft, reference.grid = F,
+ x.axis.args = list(format.label = c("%H:%02M", "%Z"),
+ time.of.day.style = "24:00"))
Problem: Object "meanDur5min.ave.msft" not found
Use traceback() to see the call stack
>
> ## USD/EUR
> ## mean durations in 5-min intervals
> meanDur5min.eurusd = aggregateSeriesHF(duration.eurusd, interv.type = "weekly",
+ bound.hours = c("22:00", "22:00"), FUN = mean,
+ by = "minutes", k.by = 5, adj = 1, drop.empty = F, together = T)
Problem: Object "duration.eurusd" not found
Use traceback() to see the call stack
> meanDur5min.eurusd[1:5,]
Problem: Object "meanDur5min.eurusd" not found
Use traceback() to see the call stack
>
> # averaging 5-min mean durations across trading days
> meanDur5min.ave.eurusd = SmoothAcrossIntervs(ts = meanDur5min.eurusd, n.subinterv = 288,
+ n.interv = 5, FUN = mean)
Problem: Object "meanDur5min.eurusd" not found
Use traceback() to see the call stack
> meanDur5min.ave.eurusd@title = "5-min Mean Durations: USD/EUR\n(averaging across 11 trading days)"
Problem: Object "meanDur5min.ave.eurusd" not found
Use traceback() to see the call stack
>
> # plots of ACF and calendar pattern in durations
> #removing the NAs in meanDur5min before plotting ACF
> na.idx = is.na(seriesData(meanDur5min.eurusd))
Problem: Object "meanDur5min.eurusd" not found
Use traceback() to see the call stack
> par(mfrow = c(1,2))
> acf.plot(acf(meanDur5min.eurusd[!na.idx,], lag.max = 864, plot = F),
+ main = "ACF of 5-min Mean Durations:\nUSD/EUR (lags up to 3 days)")
Problem: Object "meanDur5min.eurusd" not found
Use traceback() to see the call stack
> plot(meanDur5min.ave.eurusd, reference.grid = F,
+ x.axis.args = list(format.label = c("%H:%02M", "%Z"),
+ time.of.day.style = "24:00"))
Problem: Object "meanDur5min.ave.eurusd" not found
Use traceback() to see the call stack
>
> ### 3.3.3 Calendar patterns in the frequency of trades or quotes ###
> ## MSFT
> # construct an aux series to count trades
> aux.msft = timeSeries(data.frame(Ticks = rep(1, nrow(msftt.ts))),
+ pos = msftt.ts@positions)
>
> # the number of trades in 5-min intervals
> trades5min.msft = aggregateSeriesHF(aux.msft, interv.type = "daily",
+ bound.hours = c("9:30", "16:00"), FUN = sum,
+ by = "minutes", k.by = 5, adj = 1, drop.empty = F, together = T)
Problem in sub(ts@data, idx, ): argument "x" is missing with no default
Use traceback() to see the call stack
> trades5min.msft[1:5,]
Problem: Object "trades5min.msft" not found
Use traceback() to see the call stack
>
> # averaging the number of trades in 5-min intervals across trading days
> trades5min.ave.msft = SmoothAcrossIntervs(ts = trades5min.msft, n.subinterv = 78,
+ n.interv = 11, FUN = mean)
Problem: Object "trades5min.msft" not found
Use traceback() to see the call stack
> trades5min.ave.msft@title = "Number of Trades in 5-min Intervs: MSFT\n(averaging across 11 trading days)"
Problem: Object "trades5min.ave.msft" not found
Use traceback() to see the call stack
>


雷达卡
京公网安备 11010802022788号







