Skip to main content

MT5 Not Enough Money: Free Margin and How to Check Before Trading

The MT5 'Not enough money' error occurs when your Free Margin cannot cover the Initial Margin of a new trade. Learn how floating drawdowns and spread widenings trigger this rejection and how to fix it.

Isabella Torres

14 min read

MT5 Not Enough Money: Free Margin and How to Check Before Trading Watch the video

This article

8sections 14min

  1. 01 What You'll Learn, minute 2, about 1 min
  2. 02 Why Does MT5 Say 'Not Enough Money' When You Have Balance?, minute 2, about 2 minMT5 rejects your order because margin calculations rely on your dynamic Equity, not your static Balance.
  3. 03 How Do You Calculate Required Margin Across Different Assets?, minute 4, about 2 minYou calculate required margin by multiplying the contract size by your lot size and exchange rate, then dividing by your leverage.
  4. 04 How to Check Margin Requirements in MT5 Before Entering a Trade, minute 6, about 2 minYou can check margin requirements manually in the Market Watch Specification window or programmatically using MQL5 functions.
  5. 05 Why Was Your MT5 Order Rejected Despite Having Free Margin?, minute 8, about 2 minOrders can be rejected despite apparent free margin due to sudden spread widening during rollover, high-impact news, or hidden margin locks…
  6. 06 Step-by-Step Fixes: Resolving Margin Rejections and Adjusting Leverage, minute 10, about 2 minTo fix margin rejections, you must either reduce your lot size, free up locked collateral, or adjust your account leverage. You can change…
  7. 07 Conclusion, minute 12, about 1 minThe MT5 'Not enough money' error is an objective gatekeeper, not a platform glitch. Trade server return code 10019 triggers whenever…
  8. 08 Frequently Asked Questions, minute 13, about 1 minError code 10019 (TRADE_RETCODE_NO_MONEY) means your account does not have enough Free Margin to cover the initial margin required to open…

Listen to this article

Also on Apple Podcasts

Listen (audio)

The MT5 "Not enough money" error (Trade Server Return Code 10019) happens when your Free Margin is lower than the Initial Margin required for a new trade. Free Margin is your Equity minus Margin. If floating losses or spread widenings consume this buffer, the trade server immediately rejects your order before execution.

You spot the perfect setup on EUR/USD, dial in your lot size, and click buy. Instead of a confirmation chime, MT5 barks a rejection: "Not enough money." You glance at your balance—there is plenty of cash sitting there. What gives? This frustrating rejection isn't a platform glitch; it is a strict mathematical gatekeeper. In this article, you will learn exactly how MT5 calculates your margin behind the scenes, why floating drawdowns quietly eat your buying power, and how to verify your required margin before you hit the buy button.

What You'll Learn

Why Does MT5 Say 'Not Enough Money' When You Have Balance?

MT5 rejects your order because margin calculations rely on your dynamic Equity, not your static Balance.

Trade Server Return Code 10019 (TRADE_RETCODE_NO_MONEY)

An annotated diagram of the MT5 Trade terminal bar highlighting and defining Balance, Equity, Margin, Free Margin
A breakdown of MT5 trade metrics showing how low free margin leads to a Not Enough Money order rejection.

When you click buy or sell, your MT5 terminal does not instantly throw your trade into the market. It first dispatches the request to the broker's trade server. The server instantly evaluates your incoming order against your account's available liquidity. If the initial margin required to open that specific position exceeds your available free margin, the server blocks the order from reaching the order book entirely.

In the platform's backend logs, this rejection is recorded as Trade Server Return Code 10019, officially designated as TRADE_RETCODE_NO_MONEY.

The Margin Accounting Formula: Balance vs. Equity vs. Free Margin

To understand why this happens, you have to look at how MT5 accounts for your money. Traders often confuse Balance with Equity.

  • Balance is your realized funds. It only changes when you close a trade, make a deposit, or request a withdrawal.
  • Equity is dynamic. It equals your Balance plus or minus any floating profit or loss (PnL) from open positions.
  • Margin is the collateral currently locked up by your open trades.
  • Free Margin is the actual purchasing power you have left (Equity minus Margin).
Example: Imagine you have a $5,000 Balance. You have two open trades that are currently down $1,000 in floating losses. Your Equity is now $4,000. If those existing trades require $3,800 in Margin, your Free Margin is only $200.

Even though your account says you have $5,000 in Balance, existing open positions with floating drawdowns quietly wipe out your Free Margin. If you try to open a new trade that requires $300 in initial margin, MT5 will reject it, because $300 is greater than your $200 of Free Margin.

How Do You Calculate Required Margin Across Different Assets?

You calculate required margin by multiplying the contract size by your lot size and exchange rate, then dividing by your leverage.

Forex Margin Math and Cross-Currency Conversions

The standard formula for calculating forex margin is straightforward:
(Contract Size × Lots × Base Currency to Account Currency Exchange Rate) ÷ Leverage.

For a standard lot (100,000 units) of EUR/USD on a USD-denominated account with 1:100 leverage, the math is simple. If EUR/USD is trading at 1.0850 (for illustration):
(100,000 × 1.00 × 1.0850) ÷ 100 = $1,085 required margin.

However, things get tricky with cross-currency pairs. If you trade EUR/GBP on a USD account, MT5 has to convert the base currency (EUR) into your account currency (USD). If you ignore this conversion step, your mental math will be off, and you might trigger a margin rejection.

An infographic comparing margin calculation formulas across asset classes (Forex, Gold
Required margin calculation examples in MT5 for EUR/USD, spot gold, and cash indices based on lot size, price, and leverage.

Calculating Margin for Gold (XAUUSD) and Equity Indices

Commodities and indices use different contract specifications. For Gold (XAU/USD), a standard lot is typically 100 ounces. At a broker that applies 1:100 leverage to gold, the margin for 1 standard lot with gold at $3,950 (November 2026) is:
(100 oz × 1.00 × $3,950) ÷ 100 = $3,950 required margin.
Margin for gold, silver, indices, crypto and exotic pairs is set per instrument and does not follow your leverage; with a live account selected, the Margin & headroom tool shows MT5's exact figure. With gold at $3,950, that is $1,975 for 1 standard lot.

To put retail CFD margin into institutional context, the benchmark CME COMEX Gold Futures (GC) maintenance margin requirement per standard 100-oz contract is $20,765 USD (CME Group, October 2026). Retail CFDs offer much lower barriers to entry, making it essential to understand why gold moves with real yields before maximizing your leverage.

Indices like the UK100 (FTSE 100) have their own unique tick sizes and index point multipliers. Always check the symbol specifications, as a 1-lot trade on an index might represent a massive notional value depending on how the broker structures the contract.

How to Check Margin Requirements in MT5 Before Entering a Trade

You can check margin requirements manually in the Market Watch Specification window or programmatically using MQL5 functions.

Manual Verification via Market Watch Specification

Before you risk capital on an unfamiliar asset, you need to read its rulebook. In MT5, right-click the asset in the Market Watch window and select Specification.

Scroll down to find three critical parameters:

  • Margin Initial: The exact financial requirement to open the trade.
  • Margin Maintenance: The minimum equity required to keep the trade open before triggering a margin call.
  • Margin Rate: The specific percentage or multiplier applied to this asset.

Keep an eye on the bottom status bar in your Trade tab. It provides a live feed of your Equity, Margin, Free Margin, and Margin Level. If your Margin Level drops near 100%, you are dangerously close to being unable to open new positions. Be aware of MT5 symbol sessions and server times, as attempting to open trades outside of trading hours will result in a different error entirely.

Algorithmic Pre-Flight Checks: OrderCalcMargin() and OrderCheck()

If you trade using Expert Advisors (EAs), you should never rely on hardcoded margin assumptions. Professional developers implement algorithmic pre-flight checks to ensure the account has enough liquidity before sending an order.

The native MQL5 function OrderCalcMargin() calculates the precise initial margin required for a specific order type, symbol, volume, and price. By running this calculation first, your EA can compare the result against AccountInfoDouble(ACCOUNT_MARGIN_FREE).

A step-by-step UI screenshot of MT5 showing the right-click action in Market Watch opening the 'Specification' window
Selecting Specification in the MT5 Market Watch displays contract size, margin currency, and initial margin requirements.

Additionally, OrderCheck() allows your EA to simulate the trade execution. If the simulation results in a TRADE_RETCODE_NO_MONEY error, your EA can intercept the rejection, scale down the lot size automatically, and prevent the server from logging a failed execution.

Why Was Your MT5 Order Rejected Despite Having Free Margin?

Orders can be rejected despite apparent free margin due to sudden spread widening during rollover, high-impact news, or hidden margin locks from pending orders.

Spread Widening at Rollover and High-Impact News

You check your Free Margin, confirm you have enough, click buy, and still get rejected. Why? Because the Ask price determines your entry on a long position, and spreads are not static.

During the daily rollover window (typically 21:00 to 23:00 GMT) or right before headline inflation data releases, liquidity dries up. The spread between the Bid and Ask prices can expand massively. This sudden Ask price expansion drives up the notional value of your trade at the exact millisecond of execution, pushing the initial margin requirement above your available Free Margin.

Warning: Never execute market orders at maximum leverage during the daily rollover period. The spread widening can instantly trigger a margin rejection or, worse, an immediate margin call on execution.

Pending Orders and Hedged Margin Multipliers

Your Free Margin might also be tied up by trades that haven't even executed yet. Depending on the broker's margin calculation mode, pending orders like Buy Limits or Sell Stops can consume free margin the moment you place them, reserving the collateral in advance.

Hedging also plays a massive role. If you hold 1 lot long on EUR/USD and try to open 1 lot short, the margin requirement depends on the broker's hedged margin settings. A 0% margin lock means the offsetting position requires no additional margin. A 100% margin lock means you must front the full collateral for both directions, which will quickly result in a "Not enough money" error if you are already heavily leveraged.

Step-by-Step Fixes: Resolving Margin Rejections and Adjusting Leverage

To fix margin rejections, you must either reduce your lot size, free up locked collateral, or adjust your account leverage. You can change leverage yourself: open the account's page in your portal and pick a new value (options from 1:50 up to 1:500). Support can also change it for you on request.

Immediate Execution Workflows: Lot Sizing and Margin Buffers

When you hit the 10019 error, your immediate reaction shouldn't be to blindly click buy again. Instead, recalculate your maximum lot size based on your available Free Margin minus a 20-30% buffer. This buffer absorbs intra-trade volatility and spread fluctuations.

If you absolutely must enter the market, look at your terminal. Do you have inactive pending orders sitting miles away from the current price? Cancel them. Do you have decaying positions that are dragging down your equity? Close them. Releasing locked collateral instantly boosts your Free Margin.

Account Leverage Modification in the NX Flex Client Portal

A visual decision tree or troubleshooting checklist illustrating solutions to margin rejections, such as reducing lot size
Steps to resolve an MT5 "Not Enough Money" error by scaling down lot size, closing existing positions, or increasing leverage.

Sometimes, the issue isn't your lot size, but the structural leverage of your account. If you are trading on an NX Flex account, your leverage isn't permanently locked. You can choose leverage from 1:50 up to 1:500.

If your strategy demands higher capital efficiency and you keep hitting margin limits, you can modify your account leverage settings directly in the client portal (navigate to Accounts > Change leverage).

Pro Tip: Leverage changes on NX Flex apply to new positions and can be modified later in the client portal without requiring a flat account—meaning you can still have open positions and pending orders.

Managing your net deposit requirements and reallocating equity across sub-accounts ensures you always maintain a healthy trade buffer, preventing platform rejections from disrupting your momentum.

Conclusion

The MT5 'Not enough money' error is an objective gatekeeper, not a platform glitch. Trade server return code 10019 triggers whenever floating drawdowns, expanded spreads, or uncalculated exchange conversions drive the required initial margin above your dynamic free margin. By mastering MT5 symbol specifications, running pre-execution checks with OrderCalcMargin(), and maintaining a healthy equity buffer, you can prevent execution rejections before they disrupt your order flow.

Audit your open trades and pending orders on MT5 today. Run a manual margin calculation on your primary asset before your next session, or adjust your account leverage in the client portal to match your strategy's capital requirements.

Trading CFDs involves risk of loss; better terms do not change market risk.

Frequently Asked Questions

What is MT5 error code 10019?

Error code 10019 (TRADE_RETCODE_NO_MONEY) means your account does not have enough Free Margin to cover the initial margin required to open a new position. The MT5 trade server blocks the order to prevent your account from becoming overleveraged.

How do I calculate Free Margin in MT5?

Free Margin is calculated by taking your current Equity (Balance plus or minus open floating profits/losses) and subtracting your Used Margin (the collateral locked by your open trades). This number represents your available purchasing power for new trades.

Why did my pending order get canceled for no money?

When a pending order reaches its trigger price, MT5 attempts to execute it as a market order. If your floating losses on other trades have reduced your Free Margin below the required amount at that exact moment, the server will cancel the pending order due to insufficient funds.

Can I change my leverage to fix the 'Not enough money' error?

Yes, increasing your account leverage reduces the initial margin required for a trade, which frees up margin. On NX Flex accounts, you can change your leverage between 1:50 and 1:500 in the client portal. Changing leverage does not require a completely flat account, and the update applies to new positions.

End of article

General information and education, never investment advice.

CFDs are complex, leveraged instruments with a high risk of losing money rapidly. 64% of retail investor accounts lose money trading CFDs with this provider.

Written by Isabella Torres.

Derivatives Analyst

All articles by Isabella
Publisher
FXNX Global Markets Ltd
Company
Saint Lucia 2025-00128
Published
October 16, 2026

Next step

Now practise it,
on a demo.

Open an account and practise with virtual money on live prices. No deposit, no ID.

$10,000
Demo balance, ready on your first visit. Or pick $1,000 or $100,000.

Demo results don't predict live results.