Pairs Trading

Strategy 2 is a pairs trading mean-reversion on Coke and Pepsi. At each book update, the model calculates a mid price for both symbols and forms a spread as a linear combination. A rolling history of the spread drives the mean and z-score signals across 3 states: flat, long-spread, or short-spread. When the z-score exceeds the entry threshold, it buys one leg and sells the other; positions flatten inside the exit threshold.

Additional features: A cooldown to avoid rapid re-entry; A shared capital account; Synthetic books and VWAP tracking per symbol; Immediate-or-cancel limit orders priced from synthetic mid and spread.

Total Account Value

Loading chart data...

Pairs Mean-Reversion on COKE/PEP

ModelMean MAEBest Run MAEExecutable Passes
gemini-3-pro-preview52.2252.225
gpt-5.2107.0248.105
deepseek-v3.2132.77125.873
nova-premier-v1133.10133.100
claude-opus-4.5133.8685.562
gpt-5.1-codex-max136.9789.435
claude-sonnet-4.5193.3270.825
mistral-large-2512228.90133.105
grok-4309.37119.254
llama-4-maverick605.26131.922
command-a1,093.36133.102
llama-3.1-nemotron-ultra2,268.11133.102
qwen3-max408,991,460.86100.145