Loading…

Triple Swap Day Verifier

"Triple swap is Wednesday" is a habit carried over from classic FX majors, and it is wrong often enough to matter: many brokers triple CFDs and indices on Friday instead, and a mis-configured symbol can simply have the wrong day set on the server. Trusting the assumption instead of checking it means an overnight hold placed the day before the real triple day gets charged three times the expected swap with no warning. This script reports two independent answers per symbol. The declared answer comes from SYMBOL_SWAP_ROLLOVER3DAYS, the platform's own record of which weekday triples. The empirical answer comes from this account's own closed trade history: every closed trade with a non-zero swap is bucketed by the weekday it closed on, and if one weekday's average swap magnitude stands out at roughly three times the others - with enough samples to mean something - that weekday is reported as the empirically observed triple day. When the two answers agree, that is real confirmation, not just an assumption carried forward. When they disagree, the empirical evidence is closer to what actually gets deducted from the account. Notes and limitations - The empirical check requires at least 3 overnight-swap samples on at least 2 different weekdays for that symbol; symbols with too little trading history report "insufficient data" rather than guessing. - A symbol that has never been traded on this account has no empirical answer at all - only the declared day is available for it. - SYMBOL_SWAP_ROLLOVER3DAYS itself can be wrong on a mis-configured symbol; that is exactly the case this tool exists to catch, so do not treat the declared column as automatically correct just because it is the platform's own field. - The empirical detector compares average swap magnitude across weekdays and needs the winning day to be at least roughly double the baseline to count as a real triple-day signal - a small, noisy sample can still fail to clear that bar even when a genuine triple day exists.

Script · MT4 · v1.0 · Free

About Triple Swap Day Verifier

Triple Swap Day Verifier is a script for MetaTrader 4. It has 2 settings, such as Scan all symbols and History days. MQL source code included.

Files in the download: TripleSwapDayVerifier.mq4, TripleSwapDayVerifier.txt.

Settings

SettingDefaultWhat it does
Scan all symbolsfalseScan every known symbol, not only Market Watch
History days365Days of closed-trade history to search for empirical confirmation

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: MT4 Script · MQL4 Source Code

MQL4 & MQL5 scripts · PolyMaria