Technical User Guide: SFA Index Dashboard (v1.06)

The SFA Index Dashboard indicator is designed for multi-currency analysis and the calculation of geometric indices for 8 major global currencies (USD, EUR, GBP, AUD, NZD, CAD, CHF, JPY) in a separate MetaTrader 5 chart window.

The indicator operates independently of the chart symbol it is attached to: it automatically requests quotes for all 56 currency pairs, builds the respective currency baskets, and calculates the relative percentage performance of each currency relative to a user-defined anchor point.

1. Overview and Methodology

Mathematical Model

Each of the 8 currency indices is calculated using a geometric mean of the 7 cross-rates that make up that specific currency's basket.

The indicator compares current component prices against prices at the anchor line position, smooths the resulting values with a moving average to filter out market noise, and displays the output as a relative percentage change.

A value of 0.0% on the chart always corresponds to the anchor line position. Values above zero indicate currency strengthening relative to the anchor point, while values below zero indicate weakening.

2. Currency Basket Composition

Each index consists of 7 pairs covering all cross-rate combinations with the remaining 7 currencies:

  • USD: EURUSD(-1), GBPUSD(-1), AUDUSD(-1), NZDUSD(-1), USDCAD, USDCHF, USDJPY
  • EUR: EURUSD, EURGBP, EURAUD, EURNZD, EURCAD, EURCHF, EURJPY
  • GBP: GBPUSD, EURGBP(-1), GBPAUD, GBPNZD, GBPCAD, GBPCHF, GBPJPY
  • AUD: AUDUSD, EURAUD(-1), GBPAUD(-1), AUDNZD, AUDCAD, AUDCHF, AUDJPY
  • NZD: NZDUSD, EURNZD(-1), GBPNZD(-1), AUDNZD(-1), NZDCAD, NZDCHF, NZDJPY
  • CAD: EURCAD(-1), GBPCAD(-1), AUDCAD(-1), NZDCAD(-1), USDCAD(-1), CADCHF, CADJPY
  • CHF: USDCHF(-1), EURCHF(-1), GBPCHF(-1), AUDCHF(-1), NZDCHF(-1), CADCHF(-1), CHFJPY
  • JPY: USDJPY(-1), EURJPY(-1), GBPJPY(-1), AUDJPY(-1), NZDJPY(-1), CADJPY(-1), CHFJPY(-1)

(Note: -1 denotes inverse quotes, where the analyzed currency is the quote currency rather than the base currency).

3. Controls and Interface

Anchor Line

Upon loading the indicator onto a chart, a dotted vertical line named SFA_Dashboard_AnchorLine is created in the subwindow.

  • Drag & Drop: The line can be dragged horizontally across the price history.
  • Recalculation: Moving the line triggers an immediate recalculation of the zero-percent reference point ($0.0\%$) for all currencies based on the selected time position.

Information Legend

A color-coded legend in the top-left corner of the indicator window displays the active currencies along with their current percentage changes: USD (+0.45%), JPY (-1.12%).

4. Input Parameters

ParameterTypeDefault ValueDescription
SmoothLengthint3Period for the Simple Moving Average (SMA) smoothing applied to raw indices to reduce noise.
DefaultBackBarsint200Initial offset (in bars) for the anchor line when loaded for the first time.
ShowUSD ... ShowJPYbooltrueToggles display on/off for individual currency indices.
ShowLegendbooltrueShows or hides the text legend overlay in the subwindow.
IndexLineWidthint1Sets the line width for all plotted indices.

5. System Logs and Reporting (Journal)

Whenever the anchor line is moved, the indicator automatically calculates and outputs a statistical report relative to the USD Index for the period between the anchor line and the current bar to the Experts log (Journal tab):

  • CORR(vsUSD) — Pearson correlation coefficient between the respective currency index and the USD Index.
  • BETA(vsUSD) — Beta coefficient measuring volatility and sensitivity of the index relative to the USD Index.
  • BASKET — Full list of symbol pairs used to construct the basket.

6. Technical Features

  1. Automatic Prefix/Suffix Detection: The indicator automatically detects broker-specific symbol naming conventions (e.g., prefixes or suffixes like EURUSD.pro or mEURUSD) via its internal DetectPrefixSuffix() function.