Skip to main content
Any Framework

Pairs Trading Country ETFs Strategy (Python)

Published
Aug 7, 2025
1y ago
Total Downloads
739
739

Install

dotnet add package StockSharp.Strategies.0387_Pairs_Trading_Country_ETFs.py --version 5.0.0

No framework information available.

README

Pairs Trading Country ETFs Strategy (Python Version)

This mean-reversion strategy trades a pair of country ETFs based on the z-score of their price ratio. When the ratio deviates beyond a threshold the system enters a long/short position expecting the spread to revert toward its average.

The price ratio is tracked with a rolling window and positions are closed when the z-score crosses the exit level.

Details

  • Universe: exactly two country ETFs.
  • Signal: z-score of rolling price ratio exceeding EntryZ.
  • Exit: close when z-score reverts to ExitZ.
  • Data: daily candles, 60-day window by default.
  • Risk control: orders skipped if trade value below MinTradeUsd.

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.