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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.