【Trading 101】Notes on Successful Algorithmic Trading Part I: Idea Sourcing & Basic Modeling

I. Idea Sourcing

A. Textbooks

  • Trading and Exchanges: Market Microstructure for Practitioners by Larry Harris. Market participants & motives, how trades are carried out in detail.
  • Algorithmic Trading: Winning Strategies and Their Rationale by Ernest Chan. A second to the famous How to Build Your Own Algorithmic Trading Business. Mean reversion, momentum, and reflections on market conditions.
  • Volatility Trading by Euan Sinclair. Volatility modelling/forecasting & option strategy implementation.

B. Internet

Blogs:

Aggreagators:

Forums:

C. Journals

Questions to ask about strategies:

  1. Easy to understand?
  2. Too many paramters?
  3. Prelimary PnL & Risk-reward?

II. Simple Time Series Modeling

A. Evaluating Mean-reversion through ADF(p = 1)

A simple formula capturing "change in x is in proportion to its distance to the mean":

dx_t = \theta(\mu - x_t)dt + \sigma dW_t

Augmented Dicky Fuller test of order p tests whether \gamma = 0 in the follwing set up:

\Delta y_t = \alpha + \beta t + \gamma y_{t-1} + \delta_1 \Delta y_{t -1 } + ... + \delta_{p-1} \Delta y_{t - p +1 } + \epsilon_t

When p = 1, the above set up is simply 

\Delta y_t = \alpha + \beta t + \gamma y_{t-1} + \epsilon_t.

So for any demeaned series, ADF with p = 1 is a test of mean reversion. Passing the ADF means there's some evidence for mean reversion.

statsmodels.tsa.stattools.adfuller provides testing functionality in python.

B. Hurst Exponent << 0.5 for stationarity

The key insight is that any stationary time series diffuses slower than GBM. Hurst exponent measures stationarity, thus a very small hurst index means strong stationarity.

For any price series with no drift, approximately

Var(r_{\tau}) = \Sigma \text{Returns over Tau Length intervals}^2

For GBM, 

Var(r_{\tau}) \approx \tau = \tau^{2 \times 0.5}.

So for GBM H is 0.5. If H is small, the variance is small, the series diffuses very slowly, fitting the profile of stationarity (again, not proving, but good evidence).

C.  Cointegration Test: Regress then test stationarity

Cointegration means there exists a \beta, such that \epsilon(t) is stationary in

y(t) = \beta x(t) + \epsilon(t).

We first find the \beta through a linear regression. Visual justification is normally needed. Then we test the residual's stationarity.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值