Skip to main content
Any Framework

Beta Neutral Arbitrage Strategy (Python)

Published
Aug 7, 2025
1y ago
Total Downloads
1.5K
1,526

Install

dotnet add package StockSharp.Strategies.0233_Beta_Neutral_Arbitrage.py --version 5.0.1

No framework information available.

README

Beta Neutral Arbitrage Strategy (Python Version)

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.

Testing indicates an average annual return of about 52%. It performs best in the crypto market.

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.

Details

  • Entry Criteria:
    • Long: Beta-adjusted spread < Mean - 2*StdDev
    • Short: Beta-adjusted spread > Mean + 2*StdDev
  • Long/Short: Both sides.
  • Exit Criteria:
    • Long: Exit when spread approaches mean
    • Short: Exit when spread approaches mean
  • Stops: Yes, percent stop-loss.
  • Default Values:
    • CandleType = TimeSpan.FromMinutes(5)
    • LookbackPeriod = 20
    • StopLossPercent = 2m
  • Filters:
    • Category: Arbitrage
    • Direction: Both
    • Indicators: Beta-adjusted spread
    • Stops: Yes
    • Complexity: Advanced
    • Timeframe: Intraday
    • Seasonality: No
    • Neural networks: No
    • Divergence: Yes
    • Risk Level: High

Changes from Previous Version

No structural changes between v5.0.0 and v5.0.1.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.