Pairs Trading Country ETFs Strategy (Python)
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 s...
614
Downloads
☆☆☆☆☆
Bewertung
0
Bewertungen
NuGet 5.0.0
Install-Package StockSharp.Strategies.0387_Pairs_Trading_Country_ETFs.py -Version 5.0.0
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.
- 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.