Loading…

Rollover Cost Countdown

The swap column in the terminal only updates AFTER rollover happens - by the time a trader sees the actual charge, it has already been applied. This indicator shows the number before it happens: a live countdown to the next rollover moment, and for every open market position, an estimate of what that rollover will cost using the broker's currently quoted long/short swap rate for that symbol multiplied by the position's lot size. Many brokers triple the swap charge on one weekday (commonly Wednesday, to account for weekend value-date rollover) rather than charging it every night equally. The countdown detects whether the upcoming rollover falls on the configured triple-swap weekday and flags it plainly, and multiplies the per-position estimate accordingly. Notes and limitations The per-position estimate multiplies MarketInfo's MODE_SWAPLONG/MODE_SWAPSHORT value by the position's lot size. That MarketInfo value is reported by the broker in whatever unit their Market Watch swap column already uses for that symbol - for most brokers this is account-currency money per lot, but some report it in points instead. This tool does not attempt to detect or convert between the two; the estimate is labelled "broker swap units, same as Market Watch" so a trader can cross-check it against their own terminal's swap column rather than assume it is definitely money. The triple-swap weekday is a common convention, not a platform-reported fact - MQL4 exposes no field confirming which day (or whether any day) a given broker triples swap, so this is a configurable assumption the trader must verify against their own broker, not a guarantee.

Indicator · MT5 · v1.0 · Free

About Rollover Cost Countdown

Rollover Cost Countdown is an indicator for MetaTrader 5. It has 8 settings, such as Rollover hour, Rollover minute and Triple swap day. MQL source code included.

Files in the download: RolloverCostCountdown.ex5, RolloverCostCountdown.mq5, RolloverCostCountdown.txt.

Settings

SettingDefaultWhat it does
Rollover hour0Server hour swap is charged (0-23)
Rollover minute0Server minute swap is charged (0-59)
Triple swap day3Day-of-week (0=Sun..6=Sat) whose rollover is tripled by convention
Max rows shown10Most open positions listed on the panel
Refresh seconds1Panel refresh interval
Panel x10Panel horizontal offset in pixels
Panel y20Panel vertical offset in pixels
Panel font size9Panel font size

How to install

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

Download the PDF guide

Tags: MT5 Indicator · MQL5 Source Code

MetaTrader 4 & 5 indicators · PolyMaria