OPEN-SOURCE SCRIPT
Correlation Stability

3 CORRELATION STABILITY INDICATOR
This indicator is shown as a table on the main chart.
WHAT IT DOES It evaluates how stable the statistical relationship between two assets is over time using correlation analysis.
HOW IT WORKS
• Correlation between two assets is calculated over rolling windows
• The test is performed periodically
• Each window is marked as pass or fail depending on correlation strength
• If more than half of the tested windows pass, the pair is considered stable
The result is displayed as a simple table showing the current status of the pair.
HOW TO USE This indicator is a filter, not a trading signal.
It helps the trader:
• Select suitable pairs for statistical arbitrage
• Avoid trading pairs where the relationship has broken down
• Improve the quality of mean-reversion signals
RECOMMENDED TO USE WITH
• Ornstein–Uhlenbeck Z-score for signal generation
• OU Signals Overlay for trade visualization
TRIGONUM STATISTICAL ARBITRAGE INDICATORS
This is a series of indicators developed by Trigonum for statistical arbitrage and pairs trading.
The core idea of the series is to trade the relationship between two assets, not the direction of a single market. All signals are based on mean reversion of a spread between two instruments and are intended to be used with hedged positions (long one asset and short the other).
The series consists of three indicators, each serving a different purpose.
This indicator is shown as a table on the main chart.
WHAT IT DOES It evaluates how stable the statistical relationship between two assets is over time using correlation analysis.
HOW IT WORKS
• Correlation between two assets is calculated over rolling windows
• The test is performed periodically
• Each window is marked as pass or fail depending on correlation strength
• If more than half of the tested windows pass, the pair is considered stable
The result is displayed as a simple table showing the current status of the pair.
HOW TO USE This indicator is a filter, not a trading signal.
It helps the trader:
• Select suitable pairs for statistical arbitrage
• Avoid trading pairs where the relationship has broken down
• Improve the quality of mean-reversion signals
RECOMMENDED TO USE WITH
• Ornstein–Uhlenbeck Z-score for signal generation
• OU Signals Overlay for trade visualization
TRIGONUM STATISTICAL ARBITRAGE INDICATORS
This is a series of indicators developed by Trigonum for statistical arbitrage and pairs trading.
The core idea of the series is to trade the relationship between two assets, not the direction of a single market. All signals are based on mean reversion of a spread between two instruments and are intended to be used with hedged positions (long one asset and short the other).
The series consists of three indicators, each serving a different purpose.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.