Guarda come scaricare robot di trading gratuitamente
Ci trovi su Facebook!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Script

Swap Markup Scanner - script per MetaTrader 5

Visualizzazioni:
94
Valutazioni:
(2)
Pubblicato:
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

Screenshot


A swap has two parts that MetaTrader shows as one number:

- Carry: the interest-rate difference. It is positive in one direction and negative in the other.
- Markup: the broker's financing fee. You pay it in BOTH directions.

From the long and short swap of a symbol:
  markup = -(long + short) / 2
  carry  = (long - short) / 2

The script converts every swap mode (points, base / margin / deposit currency, interest) into the same unit — annual % of the position's notional value — so you can compare forex, metals, indices and commodities directly.

Why it matters: a strategy that holds positions for weeks pays the markup every day. A markup of 0.75% a year on forex or 2.5% a year on index CFDs can remove the whole edge of a slow strategy, even when the backtest of the price moves looks good.

Output:
- Chart panel: aligned table, markup bars (green < 1%, amber 1-2%, red >= 2% a year) and centred carry bars; stays until you remove the script
- Experts log: full table, most expensive symbols first

- CSV file in MQL5\Files (SwapMarkup_<server>.csv) for your own analysis

Inputs:
- InpAllSymbols — scan all broker symbols instead of Market Watch only
- InpTopRows — rows shown in the panel
- InpTheme — dark or light panel
- InpX, InpY — panel position
- InpWriteCsv — write the CSV file
- InpDaysPerYear — days used to annualise a daily swap (default 365)

Notes:
- The script is read-only; it never trades.
- Values use the swap settings at the moment you run it. Brokers change swaps when interest rates change.
- "Reopen" swap modes are skipped because they are not a periodic charge.

DataSnooping: SPA test, Reality Check, StepM and model confidence set DataSnooping: SPA test, Reality Check, StepM and model confidence set

Is the best of many strategies really better than the benchmark? Hansen's SPA test, White's Reality Check, Romano-Wolf StepM and the model confidence set.

Basket Pair Closer Basket Pair Closer

Position manager for MT5 that closes the best winner together with the worst loser when their combined result reaches your minimum. Basket take profit and stop loss in money, magic filter, simple panel. Works with grid, martingale and manual trades. Open source code.

Partial Close Multi TP Manager Partial Close Multi TP Manager

Partial close expert advisor for MetaTrader 5: closes a percent of the position at TP1, TP2, TP3, TP4 and TP5, moves the stop loss to breakeven and trails it. Works on manual trades and on positions of any EA, on any symbol, Gold (XAUUSD) included. Open source code.

Broker GMT offset and daylight-time rule from price history Broker GMT offset and daylight-time rule from price history

Detects the broker's GMT offset and its daylight-time rule (fixed, US or European) from the weekly closes in the H1 history, the same way live and in the Strategy Tester, with functions that convert New York times to server time and back.