(Using TradingMRI API - Inbuilt Dates)
Analyze potential statistical arbitrage opportunities between two assets.
Pairs trading is a market-neutral strategy that aims to profit from temporary mispricings between two related assets (a "pair").
log(Price Asset 1 / Price Asset 2).(Current Spread - Rolling Mean) / Rolling Standard Deviation.|Z-Score|) exceeds the "Entry Z-Score Threshold".
Disclaimer: Data fetching uses the TradingMRI API (api.tradingmri.com) which limits free requests to 120 data points. Cointegration test is simplified (Z-Score based). Backtest excludes transaction costs/slippage. For educational use only.