OPEN-SOURCE SCRIPT
Currency Strength Meter - Relative Strength

📊 Currency Strength Meter (CSM) — Relative Currency Strength
Description
The Currency Strength Meter measures the relative strength of 8 major currencies (USD, EUR, GBP, CHF, CAD, AUD, JPY, NZD) in real time, calculated from 26 Forex pairs.
Instead of looking at pairs in isolation, the CSM aggregates each currency's behavior across every pair it appears in, generating a score from 0 to 9 that reflects how strong or weak that currency currently is on the selected timeframe.
How it works
For each of the 26 pairs, the indicator calculates where the closing price sits within the high/low range of the last N candles — a calculation similar to a stochastic oscillator.
That value is converted into a score from 0 to 9 (0 = extremely weak, 9 = extremely strong).
The base currency of the pair receives the calculated score, while the quote currency receives the complementary value (9 − score).
Each currency's final strength is the average of all scores it received across the pairs it's part of.
An optional smoothing filter (with triangular weighting) reduces noise by giving more weight to recent candles.
Key features
📈 8 strength lines plotted on the panel, one per currency
📋 Real-time ranking table, sorting currencies from strongest to weakest
🔲 Mini visual histogram (block bars) showing each currency's intensity
🟢🔴 Configurable reference zones (strong limit and weak limit)
▲▼ Buy/Sell signals when the chart's base currency is strong and the quote currency is weak (or vice versa)
🔶 "Market imbalance" alert, triggered when one currency crosses into the strong zone and another crosses into the weak zone — a hint of a strong trend forming
🔔 Ready-to-use alertconditions for setting up TradingView alerts
Settings
Timeframe used for calculation (independent of the chart's timeframe)
Number of candles analyzed
Smoothing and triangular weighting (on/off)
Upper and lower thresholds for signals
Panel position and display options
How to use
This indicator works best as a confirmation and market-context tool, not as a standalone entry system. Combine the strength/weakness signals with your own technical analysis (price action, support/resistance, other indicators) before making entry decisions.
⚠️ This indicator is an analysis tool and does not constitute investment advice. Always manage your own risk.
Description
The Currency Strength Meter measures the relative strength of 8 major currencies (USD, EUR, GBP, CHF, CAD, AUD, JPY, NZD) in real time, calculated from 26 Forex pairs.
Instead of looking at pairs in isolation, the CSM aggregates each currency's behavior across every pair it appears in, generating a score from 0 to 9 that reflects how strong or weak that currency currently is on the selected timeframe.
How it works
For each of the 26 pairs, the indicator calculates where the closing price sits within the high/low range of the last N candles — a calculation similar to a stochastic oscillator.
That value is converted into a score from 0 to 9 (0 = extremely weak, 9 = extremely strong).
The base currency of the pair receives the calculated score, while the quote currency receives the complementary value (9 − score).
Each currency's final strength is the average of all scores it received across the pairs it's part of.
An optional smoothing filter (with triangular weighting) reduces noise by giving more weight to recent candles.
Key features
📈 8 strength lines plotted on the panel, one per currency
📋 Real-time ranking table, sorting currencies from strongest to weakest
🔲 Mini visual histogram (block bars) showing each currency's intensity
🟢🔴 Configurable reference zones (strong limit and weak limit)
▲▼ Buy/Sell signals when the chart's base currency is strong and the quote currency is weak (or vice versa)
🔶 "Market imbalance" alert, triggered when one currency crosses into the strong zone and another crosses into the weak zone — a hint of a strong trend forming
🔔 Ready-to-use alertconditions for setting up TradingView alerts
Settings
Timeframe used for calculation (independent of the chart's timeframe)
Number of candles analyzed
Smoothing and triangular weighting (on/off)
Upper and lower thresholds for signals
Panel position and display options
How to use
This indicator works best as a confirmation and market-context tool, not as a standalone entry system. Combine the strength/weakness signals with your own technical analysis (price action, support/resistance, other indicators) before making entry decisions.
⚠️ This indicator is an analysis tool and does not constitute investment advice. Always manage your own risk.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。