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

Modelpass@3pass@1Mean MAE (solved)Best run MAEAvg. attempts
gemini-3-pro-preview1.001.0052.2252.221.00
gpt-5.1-codex-max1.001.00136.9789.431.00
claude-sonnet-4.51.000.80205.3670.821.20
mistral-large-25121.000.80267.21135.241.40
qwen3-max1.000.60572,587,991.97100.141.40
grok-40.800.40573.78119.251.75
deepseek-v3.20.600.60132.10125.871.00
llama-4-maverick0.400.203,202.11131.922.00
llama-3.1-nemotron-ultra0.400.2014,010.61135.262.00
claude-opus-4.50.400.00138.4085.562.50
command-a0.400.007,335.006,738.193.00
nova-premier-v10.000.00