Swap Markup Scanner MT5
- Utilities
-
Ng Wei Siong
Software engineer with 20 years of experience in system development, and 8 years writing MQL4/MQL5 for MetaTrader 4 and 5. - Version: 1.10
A swap of -6.20 points tells you nothing until you know what it costs per year, and how much of it is the interest-rate difference and how much is the broker's own fee.
Swap Markup Scanner reads the swap settings of every symbol in Market Watch (or every symbol on the server) and converts them to annual % of notional for 1 lot. Then it splits each one in two:
Markup: the part you pay whether you are long or short. This is the broker's financing fee. Markup = -(long + short) / 2
Carry: the part that depends on direction (the rate gap). Positive means longs earn it. Carry = (long - short) / 2
Because every value is a % per year, you can compare forex, metals, indices, energy and stocks directly, and compare one broker or account against another.
WHAT YOU GET
A panel on the chart, sorted by markup with the most expensive first, with colour-coded bars (green below 1%, amber 1-2%, red 2% or more per year) and a centred carry bar.
The full table in the Experts log.
A CSV file (MQL5\Files\SwapMarkup_<server>.csv) with long, short, markup, carry and the triple-swap day of every symbol, for comparing brokers in a spreadsheet.
Automatic rescan on a timer, so swap changes by the broker show up.
Dark and light themes.
SUPPORTED SWAP MODES
Points, deposit currency, base/margin currency and annual interest modes. Symbols with no price or with a "reopen" swap mode are skipped and counted in the panel footer.
READ-ONLY
The utility never opens, modifies or closes trades.
HOW TO USE
Attach it to any chart. Add the symbols you want to compare to Market Watch, or set "Scan all broker symbols" to true. To close the panel, remove the utility from the chart.
INPUTS
Scan all broker symbols (false = Market Watch only)
Rows shown in the panel
Write CSV to MQL5\Files
Days used to annualise a daily swap
Panel theme (dark / light)
Panel position X / Y
Rescan interval in minutes (0 = only on start)
NOTES
Values come from the broker's current swap settings, which brokers can change at any time.
Notional is valued at the current bid price.
ALSO FREE FROM THE SAME AUTHOR: Currency Exposure Monitor MT5 shows the combined risk of all your EAs and manual trades per currency, with limits and alerts. https://www.mql5.com/en/market/product/203816
