Beta Neutral Arbitrage Strategy (Python). StockSharp

Author: StockSharp
N: 1751
v5.0.1 (6/5/2026)
Downloads: 1202

This strategy seeks to exploit pricing differences between two securities while neutralizing overall market beta. By adjusting positions based on each asset's beta to a common index, the portfolio aims to remain insensitive to broad market moves. A long spread goes long the asset with lower beta-adjusted price and shorts the other when the spread deviates beyond two standard deviations. A short spread does the reverse when the spread is above the mean. Trades are closed once the beta-adjusted spread reverts toward its average. Beta neutral arbitrage is common among hedge funds looking for relative value without taking directional risk. A stop-loss is applied if the spread continues to widen instead of converging. [list] [][b]Entry Criteria[/b]: [list] [][b]Long[/b]: Beta-adjusted spread < Mean - 2StdDev [][b]Short[/b]: Beta-adjusted spread > Mean + 2StdDev [/list] [][b]Long/Short[/b]: Both sides. [][b]Exit Criteria[/b]: [list] [][b]Long[/b]: Exit when spread approaches mean [][b]Short[/b]: Exit when spread approaches mean [/list] [][b]Stops[/b]: Yes, percent stop-loss. [][b]Default Values[/b]: [list] [][b]CandleType[/b] = TimeSpan.FromMinutes(5) [][b]LookbackPeriod[/b] = 20 [][b]StopLossPercent[/b] = 2m [/list] [][b]Filters[/b]: [list] []Category: Arbitrage []Direction: Both []Indicators: Beta-adjusted spread []Stops: Yes []Complexity: Advanced []Timeframe: Intraday []Seasonality: No []Neural networks: No []Divergence: Yes [*]Risk Level: High [/list] [/list]