MetaTrader 4, commonly called MT4, is an electronic trading platform developed by MetaQuotes Software and released in 2005. It is best known as a foreign exchange platform, though many brokers also offer contracts for difference (CFDs), metals, stock indices, energy products, shares, and cryptocurrency-based instruments through it.
MT4 combines live quotes, interactive charts, technical indicators, trade execution, account monitoring, and automated trading within one application. Traders can use the platform on desktop computers, mobile devices, and, where offered by a broker, through a web browser.
The software has remained widely used despite its age. Its familiar interface, modest computer requirements, support for MQL4 programs, and large library of third-party trading tools have helped it retain a place in retail trading. MetaTrader 5 offers newer functions, but many traders continue using MT4 because their broker, indicators, or automated systems already rely on it.
What MetaTrader 4 Is
MetaTrader 4 is a client trading terminal rather than a brokerage service. A trader installs or opens the platform, while the broker operates the server that supplies quotes, stores account records, and processes trading instructions. MT4 cannot create a live trading account by itself. Users need an account with a broker that supports the platform.
After opening an account, the trader receives a login number, password, and server name. These details connect MT4 to the correct brokerage account. One broker may operate several servers for demo accounts, live accounts, regional branches, or different account categories, so choosing the correct server matters.
The platform displays the prices sent by the connected broker. It also sends order requests back to that broker. Trade execution, spreads, commissions, financing charges, available instruments, and margin rules are set by the brokerage provider rather than MetaQuotes.
This distinction explains why two MT4 brokers can offer very different trading conditions. Both may use the same terminal interface, yet one may provide lower spreads, faster execution, different contract sizes, or a narrower instrument list. The platform is the operating tool; the broker controls the trading service behind it.
Demo and Live Accounts
MT4 supports demo and live accounts. A demo account uses virtual funds and allows users to practice placing orders without risking money. It is useful for learning the interface, checking indicator settings, and testing how an Expert Advisor behaves.
A live account involves real funds and actual financial exposure. Conditions on a demo server may differ from those on a live server. Demo orders may fill with little delay, while live orders can encounter slippage, rejected requests, widening spreads, or reduced liquidity. Financing charges and commissions may also be represented differently.
Demo results should therefore be treated as operational tests rather than proof that a method will earn money. They show whether the trader can use the platform and whether the trading rules work as coded. They do not fully reproduce the costs or execution pressure of a funded account.
The MT4 Interface
The desktop terminal is divided into several working areas. The default arrangement may look dated beside newer software, but the layout is practical once the user knows where each function sits.
Market Watch
The Market Watch window lists the instruments supplied by the broker. It normally shows bid and ask quotes, though users can add fields such as the daily high, daily low, and quote time. Right-clicking an instrument opens commands for creating a new order, viewing a chart, or checking the contract terms.
Not every available symbol appears automatically. Selecting Show All can reveal hidden instruments. Brokers often add suffixes or prefixes to symbol names, such as EURUSD.a or xEURUSD. These naming conventions help the broker separate account groups, pricing feeds, or contract types.
Navigator
The Navigator window provides access to trading accounts, built-in indicators, custom indicators, Expert Advisors, and scripts. Programs installed in the correct MT4 data folders appear here after the list is refreshed or the terminal is restarted.
An item can usually be applied by dragging it from the Navigator onto a chart. MT4 then opens a settings box where the trader can choose input values, colors, calculation periods, and trading permissions.
Chart Area
The central area contains price charts. Users can open several charts at once, resize them, tile them, or switch between them using tabs. Each chart can have its own instrument, period, indicators, drawing objects, and visual settings.
MT4 supports line, bar, and candlestick charts. Candlesticks are common because they display the open, high, low, and close for each period in a compact form. Charts can be zoomed, scrolled, or shifted to leave blank space on the right-hand side.
Terminal Window
The Terminal window, called the Toolbox in some related MetaTrader software, contains open trades, pending orders, account history, alerts, mailbox messages, platform logs, and Expert Advisor logs. It is one of the main areas used for checking whether an order was accepted or why a program failed to run.
The Trade tab displays balance, equity, used margin, free margin, and current open profit or loss. The Account History tab contains closed trades and account transactions. Users can filter history by date and save reports for record keeping.
Markets and Instruments Available on MT4
Foreign exchange remains the product most closely associated with MetaTrader 4. Typical offerings include major pairs such as EUR/USD, GBP/USD, and USD/JPY, along with cross pairs and less frequently traded currencies.
A broker may also provide gold, silver, crude oil, natural gas, stock indices, individual shares, bonds, or cryptocurrency-based CFDs. Availability depends on the provider, local regulation, and account category. Seeing an asset name in MT4 does not mean the trader owns the underlying asset. Many products are CFDs that track a reference price.
Before trading an instrument, users should check its contract terms. The symbol properties window normally shows:
- Contract size and minimum trade volume
- Volume increment and maximum order size
- Tick size and tick value
- Margin calculation method
- Trading hours and market breaks
- Swap rates for overnight positions
- Minimum distance for stop and pending orders
- Profit calculation currency
These terms can differ sharply between symbols. One lot of EUR/USD does not represent the same financial exposure as one lot of gold or an equity index. Even two brokers offering a symbol with the same name may define its contract size differently.
Symbol Prices and Digits
MT4 brokers may quote currency pairs with four or five decimal places. A four-digit EUR/USD quote might appear as 1.0850, while a five-digit quote could appear as 1.08503. For yen pairs, the comparable formats usually use two or three decimal places.
The extra digit is often called a fractional pip or pipette. This affects how point-based settings are entered in indicators and automated systems. An EA designed around four-digit quotes may place stops ten times closer than intended on a five-digit feed unless its code adjusts for quote precision.
How Orders Work in MetaTrader 4
MT4 supports market orders and pending orders. The exact execution process depends on the broker’s account model and server settings.
Market Orders
A market order requests a trade at the available market price. The price shown when the button is pressed may not be the final execution price. Markets can move during transmission and processing, particularly around economic announcements or outside busy trading hours.
The difference between the requested price and the filled price is called slippage. Slippage can work against or in favor of the trader. Some execution modes allow a maximum deviation setting, while others fill at the next available price without using that field in the same manner.
Pending Orders
A pending order remains inactive until the market reaches a chosen level. Standard MT4 installations support four main pending order types.
| Order type | Normal placement | Common purpose |
|---|---|---|
| Buy Limit | Below the current ask price | Buying after a downward retracement |
| Sell Limit | Above the current bid price | Selling after an upward retracement |
| Buy Stop | Above the current ask price | Buying after an upward breakout |
| Sell Stop | Below the current bid price | Selling after a downward breakout |
A broker may require pending orders to sit a minimum distance from the current market. The server can reject an order placed inside that distance. The same restriction may apply when modifying a stop-loss or take-profit level.
Stop-Loss and Take-Profit Orders
A stop-loss closes a position after price reaches a preset adverse level. A take-profit closes it at a chosen favorable level. Both can be entered when opening a trade or added later.
These orders help define planned exits, but they do not promise an exact fill price. During a price gap, the first available quote may be beyond the stop level. The position may then close at a worse price than requested. Guaranteed stop products, where available, are brokerage features and often carry a fee.
Trailing Stops
A trailing stop moves the stop-loss as price travels in the trade’s favor. In the standard desktop terminal, this instruction usually operates on the trader’s computer rather than the brokerage server. MT4 must remain open and connected for the trailing calculation to continue.
If the computer is turned off, the last stop-loss already sent to the server remains active, but it will not keep moving. Traders who rely on terminal-based trailing stops often keep the platform running on a virtual private server.
Closing and Partially Closing Positions
An open position can be closed from the Trade tab or directly from the chart. Some account setups also permit a partial close. The trader enters a volume smaller than the open position, leaving the rest active.
The smallest partial close depends on the symbol’s minimum volume and volume step. If an instrument trades in increments of 0.01 lots, the remaining position must normally conform to that increment as well.
Bid, Ask, Spread, and Trading Costs
MT4 charts generally display bid prices by default. Buy orders open at the ask and close at the bid. Sell orders open at the bid and close at the ask. The difference between those prices is the spread.
This can confuse new users when a sell stop or stop-loss appears to activate before the visible chart touches it. The chart may show only the bid line, while the order was triggered by the ask. MT4 can display an ask line through the chart properties, which makes this behavior easier to review.
Trading costs may include the spread, commission, overnight financing, conversion charges, and inactivity or account fees imposed outside the terminal. MT4 does not present every cost in the same place. Commissions often appear in the Trade or Account History tabs, while swap charges are added when positions remain open past the broker’s rollover time.
Overnight Swap
Swap is a financing adjustment applied to positions held across the daily rollover. It may be charged or credited, depending on the instrument, trade direction, and broker rate. A multi-day adjustment is commonly applied once each week to account for the weekend.
Rates can change, so old screenshots or strategy reports may not reflect current holding costs. Traders running long-term systems should include swap in performance tests rather than treating it as a minor accounting entry.
Charting and Technical Analysis
MT4 includes nine standard chart periods, ranging from one minute to one month. The available periods are M1, M5, M15, M30, H1, H4, D1, W1, and MN. Custom programs can create offline charts for other periods, though these do not always behave like native charts.
The platform contains common drawing tools such as horizontal lines, vertical lines, trend lines, channels, text labels, arrows, and Fibonacci studies. Objects can be moved, copied, hidden by period, or locked into place through their properties.
Charts can also be saved as templates. A template records colors, indicators, display settings, and Expert Advisor placement. Applying it to another chart reproduces that setup without changing the underlying account.
A profile saves a group of open charts and their arrangement. Profiles are useful for separating currency charts from metals, indices, or strategy workspaces. They reduce repeated setup, especially on terminals with many instruments.
Built-In Indicators
MT4 includes trend, momentum, volatility, and volume-based indicators. Common examples include moving averages, Bollinger Bands, Average True Range, MACD, Relative Strength Index, Stochastic Oscillator, Commodity Channel Index, and the Average Directional Movement Index.
Indicators calculate values from historical data. They do not know future prices. A moving average smooths past prices, while an oscillator compares recent price behavior with a formula. Their usefulness depends on the trading rules, market conditions, and chosen period.
Several indicators showing similar calculations can create the appearance of confirmation without providing much new evidence. RSI, Stochastic, and Williams’ Percent Range all measure related forms of momentum. Using all three may repeat the same message in slightly different shapes.
Custom Indicators
Custom indicators are written in MQL4 and installed in the Indicators folder inside the terminal’s data directory. They may draw levels, calculate alternative formulas, issue alerts, or transfer data to other programs where permissions allow.
Code from unknown sources should be treated cautiously. A poorly written indicator may freeze charts, consume excessive processing power, display repainting signals, or produce values that differ between historical and live bars. Testing it on a demo terminal can expose basic faults before it is used around real orders.
A repainting indicator changes old signals after new price data arrives. Some calculations do this by design, but marketing material may hide the behavior. Reviewing the indicator bar by bar in real time is more informative than relying only on a polished historical screenshot.
Expert Advisors and Automated Trading
An Expert Advisor, or EA, is an MQL4 program that runs on an MT4 chart. It can read price data, calculate indicators, open and close trades, modify orders, control position size, or send alerts. Some EAs trade without manual input, while others act as trade management panels.
Automated execution offers consistency. The program applies the coded rules without hesitation and can monitor markets while the trader is away. That consistency does not make the rules profitable. An EA can repeat a weak decision just as efficiently as a sound one.
For an EA to trade, automated trading must be enabled at terminal level and in the program’s settings. The chart must remain open, the account must stay connected, and the market must accept the requested order. A smiling icon near the chart corner traditionally indicates that trading permission is active, though the journal should still be checked for errors.
Magic Numbers and Trade Identification
Many EAs assign a magic number to their orders. This numerical tag allows a program to distinguish its positions from manual trades or orders placed by another EA. Reusing the same magic number across unrelated systems can lead to incorrect trade management.
Comments can also identify orders, but a broker server may alter or shorten them. Well-written programs rely on controlled identifiers and verify the symbol, account, and order type before modifying a position.
Scripts and Libraries
A script normally performs one task and then stops. It might close all open positions, place a group of pending orders, or export chart data. Unlike an EA, it does not usually continue monitoring each market tick.
Libraries contain reusable code called by other MQL4 programs. Users installing third-party packages may need to place files in several folders. Installation instructions should be followed carefully, since missing library files can prevent an indicator or EA from loading.
Backtesting in the Strategy Tester
MT4 includes a Strategy Tester for running an EA against historical price data. The user selects an EA, instrument, modelling method, testing period, and account settings. The tester then produces trade records, performance statistics, and an equity graph.
Backtesting can identify coding errors and show how a rules-based method reacted to past prices. It cannot establish how the same method will perform later. Results depend heavily on data quality, spread assumptions, execution modelling, and the accuracy of the EA.
Modelling Quality and Historical Data
Older MT4 tests often rely on bar data from the broker terminal. A test using one-minute bars to simulate movements inside each bar may not reproduce the exact sequence of historical ticks. This matters for scalping systems, trailing stops, and strategies that place several orders within a short period.
Tick-data testing can offer a closer simulation, but it still requires realistic commissions, variable spreads, swap, and order delays. A test that assumes a permanently narrow spread can make a fragile strategy appear profitable.
Optimization and Curve Fitting
The Strategy Tester can run many combinations of input settings. This process is called optimization. It helps compare parameter sets, but it can also produce curve fitting, where settings match past data unusually well and then fail on later prices.
A sound review separates the data used for parameter selection from a later test period. Traders may also compare results across instruments, volatility conditions, and spread assumptions. Forward testing on a demo or small funded account can reveal operational behavior that historical testing misses.
Pay attention to trade count, average gain, average loss, maximum equity decline, longest losing sequence, and exposure time. A very high historical return may come from aggressive position sizing rather than an effective entry method.
Account Figures and Margin
The Trade tab displays several account values that change as prices move.
| Account figure | Meaning |
|---|---|
| Balance | Funds after closed trades and recorded account transactions |
| Equity | Balance adjusted for open profit or loss |
| Margin | Funds set aside to support open exposure |
| Free Margin | Equity remaining after used margin |
| Margin Level | Equity divided by margin, normally shown as a percentage |
Margin-based trading allows an account to control exposure greater than the cash committed to the position. This magnifies both gains and losses. A small market move can cause a large percentage change in account equity, particularly when several correlated trades are open.
If equity falls far enough, the account may reach a margin-call or stop-out threshold. The broker can then close positions according to its stated rules. The trigger percentage and closing sequence vary by provider. Some brokers close the largest losing position first, while others use another method.
Position Sizing
Position size should reflect account equity, stop distance, tick value, and the amount the trader is prepared to lose. Choosing lot size solely from the available margin can create far more exposure than the trading plan allows.
Suppose a trader accepts a potential loss of $100 and uses a stop that represents $10 per lot for each point of movement. The lot size should be calculated from the full stop distance and instrument value. The same lot size cannot be reused blindly across currency pairs, gold, and indices because their tick values differ.
Open trades should also be viewed as a group. Buying EUR/USD and GBP/USD while selling USD/CHF may create several positions linked to weakness in the US dollar. Each ticket looks separate in MT4, but the account risk may be concentrated in one market theme.
Desktop, Mobile, and Web Access
The Windows desktop version provides the fullest MT4 feature set. It supports custom indicators, EAs, scripts, templates, profiles, and the Strategy Tester. Traders using macOS often rely on a broker-provided package, compatibility software, or a remote Windows computer.
MT4 mobile applications for Android and iOS provide quotes, charts, built-in indicators, order entry, account history, and position management. They are practical for checking trades away from a desk. They generally do not run desktop EAs or custom MQL4 indicators.
Some brokers provide browser access based on MetaTrader technology. A web terminal can be useful on a computer where software installation is restricted. Its tools may differ from the installed terminal, so users should verify order functions and chart settings before relying on it.
Account data is stored on the broker server, which means an open position can be viewed from another device after login. Local chart objects, templates, and custom programs do not automatically transfer between desktop installations.
Installing and Configuring MT4
Most traders download MT4 from their chosen broker because the installer may contain the correct server list and branding. After installation, the user logs in with the account number, trading password, and assigned server.
An investor password may provide read-only access. It allows another person to view account activity without placing or modifying trades. Traders should still protect it because account history and financial details remain private data.
After login, check the account number, server, base currency, and connection indicator. Open Market Watch and review the required symbols. The symbol properties should be checked before placing a trade, particularly where suffixes indicate different pricing or account terms.
Saving a Working Setup
MT4 stores much of its configuration locally. Templates, profiles, indicators, EA files, and historical data can be copied as a backup. The platform’s Open Data Folder command points to the active storage location.
Backing up the data folder can save time after a computer failure or terminal reinstall. Login passwords should not be stored in an unsecured document alongside the backup. A saved chart layout is convenient; an exposed trading password is not.
Using a VPS With MT4
A virtual private server, or VPS, is a remote computer that can run MT4 continuously. Traders commonly use one for EAs, signal copying, or desktop trailing stops. The remote terminal remains active when the trader’s home computer is turned off.
Server location affects communication delay. A VPS hosted near the broker’s trading server may reduce network latency, though it cannot remove processing delays or poor execution. It also cannot turn an unprofitable strategy into a profitable one. It keeps the software running; that is the job.
VPS users should apply operating-system updates carefully, restart the terminal when required, and confirm that EAs resume after a reboot. Automatic Windows restarts have interrupted more than a few trading systems at inconvenient times.
Security and Software Safety
MT4 login details should be kept private and stored with care. Traders should use a strong password where the broker permits changes and avoid entering credentials into unverified account-management tools.
Indicators and EAs can request permission for DLL imports or external web requests. DLL access allows a program to call functions outside MT4, which can be useful but creates added security risk. Permission should only be granted when the source and purpose of the program are known.
Trading software should come from a broker, the platform provider, or a source with a verifiable history. Files shared through anonymous forums may contain faulty code, hidden trade logic, or malware. A high backtest return shown in an advert says nothing about software safety.
The platform does not verify whether a broker is regulated or financially sound. Users need to check the provider’s legal entity, licence, client-money arrangements, complaint process, and withdrawal terms. A familiar MT4 screen is not evidence that the company behind it is trustworthy.
Common MT4 Problems
No Connection
A No Connection message may result from an incorrect server, invalid password, internet problem, firewall rule, or broker outage. Rescanning servers or logging in again can help, but repeated failures should be reported to the broker.
Trade Is Disabled
The message Trade is disabled can appear when the market is closed, the account is read-only, the symbol cannot be traded on that account, or the broker has restricted dealing. Automated trading permissions should also be checked if the message comes from an EA.
Invalid Stops
An Invalid Stops error usually means the stop-loss, take-profit, or pending order is too close to the market or placed on the wrong side of the price. Quote precision can also cause this error in poorly coded EAs.
Off Quotes and Requotes
Off Quotes indicates that a usable price was not available when the request reached the server. A requote occurs when the requested price is no longer offered and the broker returns another price for approval. Both can happen during rapid price movement or weak connectivity.
EA Does Not Trade
If an EA loads but places no orders, check automated trading permissions, account status, market hours, minimum lot size, free margin, and the Experts and Journal tabs. The program may also be waiting for entry conditions that have not occurred. No trade does not always mean a fault.
MetaTrader 4 Compared With MetaTrader 5
MetaTrader 5, or MT5, is a later MetaQuotes platform built with a different architecture. It offers more native chart periods, more pending order types, broader testing functions, and stronger support for exchange-traded products. MT5 uses MQL5 rather than MQL4.
Programs written for MT4 generally do not run directly on MT5. Indicators and EAs often require code changes or a full rewrite. This compatibility issue is one reason some traders retain MT4 installations even after their broker begins offering MT5.
| Feature | MetaTrader 4 | MetaTrader 5 |
|---|---|---|
| Primary historical use | Forex and CFDs | Forex, CFDs, and exchange products |
| Programming language | MQL4 | MQL5 |
| Native chart periods | 9 | 21 |
| Pending order types | 4 standard types | 6 standard types |
| Strategy testing | Single-threaded in many common uses | Multi-threaded with broader testing tools |
| Existing third-party tools | Large long-established library | Growing library with newer development |
MT5 is not simply an updated MT4 installation. The two platforms can operate side by side, and brokers may offer different instrument lists or account terms on each. The better choice depends on broker support, required markets, preferred programs, and testing needs.
Benefits and Constraints of MT4
MT4 remains popular because it is familiar, relatively light on computer resources, and supported by many forex and CFD brokers. Its charting tools cover common forms of technical analysis, while MQL4 allows traders and developers to build indicators, scripts, and automated systems.
The mature software library is useful, but quality varies. Some older programs were written for outdated quote formats or operating systems. Others rely on trading conditions that no longer exist. Compatibility and recent testing matter more than the age or popularity of a file.
MT4 also lacks some functions found in newer multi-asset platforms. Native period choices are narrower, exchange order-book support depends on the broker, and the Strategy Tester can require more work to produce realistic tick-based results.
Its appearance can also encourage users to treat all MT4 brokers as interchangeable. They are not. Pricing feeds, execution rules, margin thresholds, commissions, withdrawal procedures, and legal protections come from the broker.
Who MetaTrader 4 May Suit
MT4 may suit traders who focus on forex or CFDs, prefer desktop charting, and need access to MQL4 indicators or EAs. It can also serve traders who use straightforward order types and want the same account available on desktop and mobile devices.
It may be less suitable for someone who needs advanced exchange data, a broad selection of native periods, centralized portfolio reporting, or direct compatibility with programs written for MT5. Broker availability may settle the question before platform preference does.
Before funding an account, users can install MT4, open a demo, place each order type, modify stops, export account history, and check how the platform behaves after disconnection. Automated traders should test restart behavior, file dependencies, quote digits, and trade identification settings.
Using MetaTrader 4 Responsibly
MetaTrader 4 is a trading tool, not a source of guaranteed returns. It organizes market data and order instructions, but it cannot judge whether a strategy is sensible or whether account exposure is appropriate.
A practical MT4 setup begins with a properly authorised broker, known trading costs, accurate contract terms, and position sizes based on planned loss rather than available margin. Demo testing can confirm platform operation, while historical and forward tests can reveal weaknesses in automated rules.
Users should keep records outside the terminal, back up custom files, monitor server messages, and review open exposure across correlated instruments. Stop-loss orders can control planned risk in ordinary conditions, though gaps and execution delays can still produce a different result.
MT4 has lasted because it performs its main tasks without demanding much ceremony. It displays prices, manages orders, runs MQL4 programs, and keeps account records in a familiar format. Used with careful broker selection and disciplined risk controls, it remains a practical platform for forex and CFD trading.