OPEN-SOURCE SCRIPT

Currency Strength Meter - Relative Strength

281
📊 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.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน