Currency Strength Meter Open Formula
- Indicadores
-
Kazuma Kamizono
MQL5 / MQL4 / Pine Script v6 developer and active trader.
Seller on the MQL5 Market (indicators for MT4/MT5).
Services:
- TradingView Pine Script to MT5/MT4 conversion (bar-by-bar matching, with tester report)
- MT4 to MT5 migration - Versão: 1.2
- Ativações: 5
Currency Strength Meter MTF combines the 28 pairs of the 8 major currencies (USD, EUR, JPY, GBP, AUD, NZD, CAD, CHF) into one strength value per currency. It draws 8 lines in a subwindow and shows a ranking table for the chart timeframe, M15, H1, H4 and D1. This is the MetaTrader 4 version; the formula, inputs, defaults, display and alerts are the same as in the MetaTrader 5 version (sold separately).
The full formula is published below. The indicator shows the relative strength of past price changes calculated by a fixed formula. It is an analysis aid. It does not tell you when to buy or sell, and it does not show future price movement.
FEATURES
- Strength lines: 8 lines in a subwindow, with the currency name and value at the right end.
- Multi-timeframe ranking table: rows for the chart timeframe, M15, H1, H4 and D1 (changeable), with the 8 currencies sorted from strongest to weakest.
- 28-pair difference list (off by default): "strength of the base currency - strength of the quote currency", largest difference first.
- Extra symbols (empty by default): up to 3 symbols such as gold or stock indices, shown in a separate table with the same % change. They are not used for the 8 currencies.
- Prefix / suffix: detected automatically from the chart symbol name, or set manually.
- Alerts (off by default): the 1st or the 8th currency changed; the difference between the 1st and the 8th rose above a threshold. Pop-up, sound, push notification and / or e-mail.
- Chart text, table and alerts in English or Japanese. The default (Auto) follows the terminal language: Japanese on a Japanese terminal, English otherwise.
FORMULA
- Pair change = (close of the last closed bar / close of the closed bar N bars earlier - 1) x 100 (%). N = 20 by default.
- Currency strength = the mean of the changes of the available pairs that contain the currency.
- The sign is kept when the currency is the base currency (EUR in EURUSD) and flipped when it is the quote currency (USD in EURUSD).
- Time alignment: on each timeframe, the time T of the chart symbol's closed bar is the reference. Each pair uses the close of its last bar at or before T (the same for the bar N bars earlier).
- When a pair has no bar at that time (for example a market holiday), the value at that time (its last bar at or before T) is used as it is.
- Missing pairs are excluded and the number of pairs used is shown. When a currency has fewer than 7 pairs, the table shows the number used, for example "(6)".
WHAT CAN AND CANNOT CHANGE (please read)
- Only closed bars are used. The forming bar has no value and no line.
- Values of closed bars do not change later.
- Exception: when a pair that was not ready during the first load arrives later, or when older history of a pair in use arrives later (for example right after the terminal starts), the whole timeframe is recalculated to include it, and past values change at that time. The same full recalculation happens when a pair is excluded after repeated loading failures, and when the terminal reloads the chart history.
- Values appear about 10 to 60 seconds after a bar closes (the indicator waits for the bars of the other pairs to close).
- The last bar on Friday is shown only after the first tick on Monday. Over the weekend, D1 values therefore end on Thursday.
FIRST LOAD
- While the terminal loads the history of the other pairs, "Waiting for data (n/28)" is shown for up to 30 seconds, then "Calculating...".
- Right after the terminal starts, some pairs may have only their latest bars. When their older history arrives, the timeframe is recalculated once the history stops growing (usually within seconds), so these pairs are not left out.
- In MT4, the first load (when the history of the other pairs is read for the first time) can take longer. In our check it usually took 10 to 20 seconds, and more than a minute when no history had been downloaded yet.
- Many bars use much memory and time. Keep "Bars drawn in the subwindow" (5000 by default) and the terminal's "Max bars in chart" to what you need.
PREFIX AND SUFFIX
- If the chart symbol contains one of the 28 pair names, the characters before and after it are used as the prefix and suffix (for example ".x" for "EURUSD.x").
- On a chart whose symbol contains no pair name (for example gold), automatic detection is not possible. Set the prefix / suffix manually. A manual prefix / suffix has priority.
- Pairs that are not found are excluded and listed below the table as "Not available (excluded)". The list has up to 6 lines; the rest is shown as "+n more".
- When no pair is found, "No pairs (0/28). Check prefix/suffix" is shown.
- The subwindow name shows N and the number of pairs actually used on the latest closed bar (for example 28/28). Before the first values are calculated, it shows the number of pairs loaded.
DISPLAY
- By default the ranking table is on the main chart, in the corner that overlaps the candles least. When the one-click trading panel is shown, a top-left table is moved below the panel.
- Table position: main chart auto or one of 4 corners, or subwindow auto or one of 4 corners.
- The 28-pair difference list is off by default.
- Extra symbols are shown in a separate table below the ranking table.
- No values in the Data Window. Values can be read with iCustom (buffers 0-7 = USD, EUR, JPY, GBP, AUD, NZD, CAD, CHF; 39 inputs in order).
- Two copies can run on one chart. The second gets "#2" (numbered in load order). Two tables on the main chart are crowded, so turn the second table off or put it in the subwindow.
ALERTS
- Alerts tell you that a condition was reached. They are not buy or sell signals.
- Conditions: the 1st or the 8th currency changed; the difference between the 1st and the 8th rose above the threshold (1.0% by default). Both are off by default.
- The alert timeframe is chosen separately from the chart timeframe (H1 by default) and checked once per closed bar.
- As a guide, in our check (with the MT5 version, which uses the same formula) alerts came about 10 times per day on H1. The number depends on the market and the settings.
- No alerts in the Strategy Tester.
- Push notifications and e-mail need the terminal's settings.
IMPORTANT
- Currency strength is a relative comparison of past price changes by a fixed formula. It does not show trade timing, profit or future price movement. Past charts do not guarantee future results.
- Strength depends strongly on N and the timeframe. At the same moment, the ranking can be reversed on another timeframe.
- In quiet markets the differences are small and the ranking changes often.
- If your account does not offer some pairs, fewer pairs are used.
- Objects whose names start with "CSM_<number>_" are treated as this indicator's drawings and are cleaned up. Do not use such names for your own objects.
- With an input outside its range, the indicator does not start (a message is shown in the Experts tab).
MT4 NOTES
- If the ranking table is hidden behind the candles, turn off "Chart on foreground" in the chart properties (F8).
- The input dialog has no group headers; the inputs are listed in the same order as in the MT5 version.
- When the indicator is called with iCustom from a script, the journal may show "cannot set timer". This does not affect the values.
- MT4 limits object texts to 63 bytes. The tables and the list of missing pairs are wrapped so that nothing is lost; a long message in the middle of the subwindow (for example when no pairs are found) can end with "..." in the Japanese display.
OTHER
- MetaTrader 4 only (it does not run on MT5; the MT5 version is a separate product). Designed for accounts that offer the 28 pairs. It can be attached to a chart of any symbol and timeframe.
- Works with templates and after a terminal restart.
- No DLLs, no external files, no internet access.
- A PDF user guide (English or Japanese) is available: send a message through MQL5 after purchase and it will be sent to you.
- Support through MQL5 messages, reply within 3 business days: installation, settings and bug reports only. Questions about market views, trade decisions or how to read a result cannot be answered.
