OPEN-SOURCE SCRIPT
STRX - AutoCorrelation

STRX – AutoCorrelation is a quantitative analysis tool designed to monitor real‑time correlations between up to five assets, using the Pearson correlation coefficient over a customizable period and timeframe. The script displays a correlation matrix as a heatmap table together with a structured textual reading, providing an immediate operational view of the strength and direction of relationships across assets.
The “Assets to Correlate” panel allows the user to select up to five instruments (for example Gold, US100, USDX, Silver, Platinum) and to enable or disable each slot individually, so the correlation set can be quickly adapted to different market contexts. Through the “Settings” panel, the user can define an independent calculation timeframe, the lookback period for the correlation, whether to show the textual reading table, and the position of the panel on the chart.
The matrix highlights, for each pair, the normalized correlation value between −1 and +1, with a color scheme that distinguishes positive and negative correlations and emphasizes their intensity. The textual reading table classifies each relationship as “Strong”, “Moderate”, “Weak” or “Negligible” and specifies the sign (“Positive” / “Negative” / “Independent moves”), helping the user assess co‑movements, diversification, hedging behavior and potential concentration of risk across the selected assets.
This indicator is intended as a decision‑support tool for multi‑asset analysis and does not generate standalone entry or exit signals. It does not constitute financial advice or a guarantee of performance; any trading or investment decisions remain solely the responsibility of the user.
The “Assets to Correlate” panel allows the user to select up to five instruments (for example Gold, US100, USDX, Silver, Platinum) and to enable or disable each slot individually, so the correlation set can be quickly adapted to different market contexts. Through the “Settings” panel, the user can define an independent calculation timeframe, the lookback period for the correlation, whether to show the textual reading table, and the position of the panel on the chart.
The matrix highlights, for each pair, the normalized correlation value between −1 and +1, with a color scheme that distinguishes positive and negative correlations and emphasizes their intensity. The textual reading table classifies each relationship as “Strong”, “Moderate”, “Weak” or “Negligible” and specifies the sign (“Positive” / “Negative” / “Independent moves”), helping the user assess co‑movements, diversification, hedging behavior and potential concentration of risk across the selected assets.
This indicator is intended as a decision‑support tool for multi‑asset analysis and does not generate standalone entry or exit signals. It does not constitute financial advice or a guarantee of performance; any trading or investment decisions remain solely the responsibility of the user.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
