Swap Payback Scanner
- Indicateurs
-
Keiki Ishii
Independent MQL5 developer from Japan.
I build tools for MetaTrader 5 traders: risk managers, indicators and Expert Advisors.
How I work:
- Every product is tested in the Strategy Tester and on demo accounts (hedging and netting) before release. - Version: 1.0
- Activations: 5
Swap Payback is a multi-symbol table that shows how many rollover days a positive swap needs to pay back the spread. It has no trade signals and never trades.
A positive swap looks attractive in the symbol specification. But you pay the spread (and maybe a commission) when you open and close. Swap Payback puts the swap and the cost side by side for many symbols at once, and counts the days.
What each row shows
-
Swap long and swap short for one rollover, in your account currency per 1.00 lot and in points. The swap type of the symbol is converted for you (points, base / margin / profit / account currency, annual interest, reopen).
-
Triple-swap day (for example "We"), read from the terminal.
-
Spread now in points. A star marks a quote older than 10 minutes (market closed).
-
Round-trip cost = spread + the commission you enter, in account currency per 1.00 lot.
-
Payback days, long and short: how many rollover days of swap credit add up to the round-trip cost. Triple-swap days count three times, weekends without rollover are skipped.
-
Payback days after your haircut: the same count with a percent you enter taken off the swap credit (for example, if you expect to receive less than the published swap). Default 0.
-
If a side pays a negative swap, the cell says charge in grey instead of a number.
Colors: a payback cell is green when it is within your limit (default 20 rollover days) and red when it is longer. A positive swap that needs months to repay the spread stays red.
Symbols: choose one of three sources:
-
the symbols in your Market Watch (the table follows when you add or remove symbols),
-
your own list (broker suffixes such as EURUSD.m are found automatically),
-
all forex and metals symbols on the server.
In modes 2 and 3 the indicator can add symbols to Market Watch to receive prices, and removes the ones it added when you remove it. You can turn this off.
Sorting and pages: shortest payback (after haircut), largest swap per 1.00 lot, or symbol name. A Sort button and page buttons are on the panel.
Light on the terminal: only the rows on the screen and a small batch of other symbols are read at each update (default every 2 seconds, 25 symbols), so several hundred symbols do not slow the chart.
Under the table a note is always shown (you can change it): "Swap can change any day. Positive swap is not a strategy. A price move of a few pips can erase months of swap." The assumptions of the count (cost used, haircut, limit) are shown too.
What it does not do
-
No trade signals, no arrows, no automated trading. It does not open, close or modify orders.
-
It does not predict swap changes. Brokers can change swap rates at any time; the table shows the values your terminal reports now.
-
It does not include the price move of a position. A swap credit says nothing about whether holding the position makes or loses money.
-
Points-based commission is applied per symbol point; for a mixed table use money per lot or percent.
Inputs (main)
-
Symbols to scan, symbol list, add to Market Watch, maximum symbols, hide symbols with no positive side
-
Commission type and value (round trip)
-
Haircut on swap credit (%), payback limit for green / red (rollover days)
-
Sort order, rows per page, seconds between updates, symbols per update, note text
-
Panel corner, position, font size, colors
Notes
-
Works on any account currency and any symbol with swap data. Values come from the symbol settings of your terminal.
-
If the terminal reports per-day swap multipliers, they are used; otherwise Monday to Friday count 1 and the triple-swap weekday counts 3.
-
In the Strategy Tester, other symbols often have no prices; their rows show "n/a" with the reason.
-
No DLL. No web requests.
