Codes

Copula: Gaussian, Student t, Clayton, Gumbel and Frank copulas with tail dependence for MetaTrader 5

Fits five bivariate copulas on ranks, with Kendall's tau, tail dependence, the probability of joint extreme days, AIC and the conditional probabilities of pairs trading

ChangePoint: Bayesian online change point detection for MetaTrader 5

Online detection of changes in the mean or volatility (Adams-MacKay): probability of a change in the last k bars, current segment length, forecast, and an indicator

MeanReversion: Ornstein-Uhlenbeck fit and optimal trading bands for MetaTrader 5

Exact maximum likelihood of an Ornstein-Uhlenbeck spread and Bertram's optimal entry and exit levels for a given cost, with the expected length of a trade cycle

RealizedVol: range volatility estimators, realized variance and HAR forecasts for MetaTrader 5

Parkinson, Garman-Klass, Rogers-Satchell and Yang-Zhang estimators, daily realized and bipower variance from intraday bars, and HAR volatility forecasts

Stationarity: KPSS, Phillips-Perron, DF-GLS, Zivot-Andrews and variance ratio tests for MetaTrader 5

Five tests to tell a random walk from a mean-reverting series: KPSS, Phillips-Perron, DF-GLS, Zivot-Andrews with the break date, and the variance ratio

DataSnooping: SPA test, Reality Check, StepM and model confidence set for MetaTrader 5

Is the best of many strategies really better than the benchmark? Hansen's SPA test, White's Reality Check, Romano-Wolf StepM and the model confidence set

Cointegration: ADF, Engle-Granger and Johansen tests with a pair scanner for MetaTrader 5

Unit root and cointegration tests (ADF, Engle-Granger, Johansen) with MacKinnon p-values, hedge ratio, half-life and z-score of the spread, and a pair scanner

Kalman: exact diffuse Kalman filter, local level and time-varying hedge ratio for MetaTrader 5

Kalman filter and smoother with an exact diffuse start, missing values and maximum likelihood: local level, local linear trend and a regression whose hedge ratio drifts

RegimeHMM: market regimes with a hidden Markov model for MetaTrader 5

Gaussian hidden Markov model fitted by Baum-Welch: regime probabilities without look-ahead, most likely path, expected durations and regime forecasts

Garch: GARCH, GJR-GARCH and EGARCH volatility models with forecasts for MetaTrader 5

Fits GARCH(1,1), GJR-GARCH and EGARCH with normal, Student t or GED shocks by maximum likelihood, with robust standard errors and variance forecasts