Pair Trading Backtest

Kalman Filter Spread Model

Backtest Parameters

Controls adaptation speed of Kalman filter

Days for initial OLS regression

Window size for z-score calculation

Z-score to enter into long/short trade

Z-score to exit from a trade position

Stop Loss & Target

Force exit after X days regardless of Z-score

Exit when ROI hits this loss percentage

Exit when ROI hits this profit percentage