Server pluginBillingv1.0.016 options Live demo

Interest on Free Margin

Accrue daily interest on idle free margin or balance with tiered APY rates, activity qualifiers, payout schedules, and native MT5 interest hook support.

Get a licenseDownload

What it does

8 capabilities
  • Daily micro-cent accrual ledger eliminates fractional-cent rounding drift across cycles
  • Accrues on free_margin or cash balance while always excluding bonus credit
  • Tiered APY schedule (rate_tiers) plus per-group (group_rates) and per-currency (currency_rates) overrides
  • Activity qualifiers (min_monthly_lots and min_monthly_trades) verified from closed trade deals
  • Configurable daily, weekly, or monthly payout schedules with 360 or 365 day-count basis
  • Optional per-period payout cap (max_payout_per_period) and client payout statement emails
  • Dual payout engine: confirmed DEAL_INTERESTRATE balance ops or native MT5 HookTradeInterest
  • Isolated dry-run preview mode, restart-safe state persistence, and CRM accrual/payout reports

How it works

Interest on Free Margin pays yield on idle client funds to retain deposits and reward active traders. Each day at the configured UTC snapshot time, it computes eligible funds from free margin or cash balance while always excluding bonus credit, resolves the effective APY from per-group overrides, per-currency rates, or tiered balance schedules, and accrues daily interest in exact micro-cents so fractional cents never drift over a 30-day cycle. Payouts execute daily, weekly, or monthly via confirmed MT5 DEAL_INTERESTRATE operations (or directly via MT5 native HookTradeInterest when use_native_hook is enabled), enforce optional monthly closed-lot and trade-count qualifiers plus per-period payout caps, email payout statements to clients, and record full accrual and payout ledgers to CRM reports.

Parameters & options

Configured directly in MetaTrader 5 Administrator and testable live in the simulator.

18 of 18
ParameterTypeDefaultDescription
groups
group mask*,!demo*Client groups eligible for margin interest (MT5 group mask). * means all
exempt_logins
textemptyLogins excluded from accrual and payout, separated by commas
base
textfree_marginInterest calculation base (always excludes bonus credit): free_margin or balance
rate_tiers
text0=0.00; 5000=3.00; 50000=5.00Tiered APY rates as eligible_amount=apy_percent, semicolon separated
group_rates
textemptyPer-group APY % overrides, semicolon separated, for example vip*=6.00; islamic*=0.00
currency_rates
textemptyPer-currency APY % overrides, semicolon separated, for example USD=5.00; EUR=3.50; JPY=0.50
min_monthly_lots
number0.00Minimum closed traded lots in the month required to receive payout. 0.00 disables check
min_monthly_trades
int0Minimum closed trades in the month required to receive payout. 0 disables check
max_payout_per_period
number0.00Maximum interest payout per period in account currency. 0.00 means uncapped
payout_schedule
textmonthlyPayout frequency: daily, weekly, or monthly
accrual_time
text23:55UTC daily accrual snapshot time, HH:MM
day_count
int365Annual day-count basis: 360 or 365
use_native_hook
bool01: supply interest via MT5 native HookTradeInterest. 0: pay via BalanceKind::Interest deals
notify_client
bool11: send MT5 internal mail statement on payout. 0: no email
comment
textFree margin interestDeal comment for interest payouts (up to 31 characters)
dry_run
bool11: simulate accruals and payouts in isolated dry-run state without crediting accounts. 0: pay live
license_key
System
textemptyLicense key from FXOpsPro, for example FXO-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
license_server
System
texthttps://plugins.fxopspro.comLicense server address

Billing

View all server plugins