Platform guide · MT4 & MT5
MetaTrader 4 vs MetaTrader 5: Setup, Orders, EAs and Testing
Build a dependable trading workspace, understand what happens when an order is sent, and test a complete workflow before using real money. Platform features do not replace broker due diligence or risk controls.
Choose the platform around the work you need to do
MetaTrader is software supplied by MetaQuotes. Your broker supplies the trading account, instruments, prices and execution conditions. A familiar platform logo does not establish that a broker is authorised, financially sound or appropriate for your jurisdiction. Before downloading, identify the company named in the client agreement and check it on the relevant regulator’s register.
| Area | MT4 | MT5 |
|---|---|---|
| Typical use | Established retail forex and CFD workflows | Multi-asset workflows; products depend on broker |
| Chart timeframes | 9 | 21 |
| Pending orders | Buy/sell limit and buy/sell stop | The same four plus buy/sell stop limit |
| Built-in tester | Single-threaded | Multi-threaded, multi-currency and real-tick capabilities |
| Programs | MQL4 / EX4 | MQL5 / EX5 |
These are platform capabilities, not a promise that every broker enables every feature. Existing MT4 tools can be a reason to keep MT4; a new multi-currency testing workflow can favour MT5. Confirm the required EA has a native version for your platform. Changing a file extension does not convert it. MetaQuotes platform comparison.
The steps in this guide refer primarily to the desktop terminals. Mobile and web interfaces can manage an account but have different menus and capabilities. An EA running on a desktop or VPS can create positions that are visible on a phone; opening the mobile app does not move the EA’s runtime onto that phone. Plan which device runs automation and which provides backup monitoring. Broker documentation on mobile EA support.
Install and connect to the correct account
- Use the broker’s authenticated website or an official MetaQuotes download channel. Check the domain carefully and avoid files supplied through unsolicited messages.
- Create a demo with the intended account currency, approximate balance, leverage and account type. An unrealistically large demo balance can hide sizing mistakes.
- Record whether the credentials belong to MT4 or MT5. The broker portal password, trading account password and MQL5.community password can be different.
- Choose File → Login to Trade Account, enter the trading account number and select the exact server supplied by the broker. A demo login usually cannot connect to the live server.
- Confirm a connection, current quotes, account currency and demo status before opening an order window.
MT5 distinguishes trading access from investor access. An investor password permits observation but cannot place trades. Do not post either password, account screenshots containing identifiers, or authentication codes in public support forums. Protect the broker portal with multi-factor authentication where offered. Connection and access documentation; demo account workflow.
Set up a workspace you can read and audit
Start with one chart and a small watchlist. Display the pair, timeframe and bid/ask clearly; add only indicators required by your written process. Save a chart template after choosing legible colours and line weights. Keep trading volume visible so a previous order’s size cannot silently become the next order’s size.
In Market Watch, open the instrument’s specification and record contract size, minimum volume, volume step, tick size, tick value, margin calculation, trading hours, financing and stop restrictions. Similar names can refer to different contracts: EURUSD, EURUSD.a and EURUSDmicro should not be treated as interchangeable without checking. Quotes and daily candles use the broker server’s time convention, which can affect indicators and event filters. Market Watch and contract specifications.
Make the terminal’s Trade, History and Journal tabs part of the workspace. History explains completed activity; the Journal helps establish why an order failed. Save a dated settings note so a later platform update or account change can be investigated without relying on memory.
Choose an order type for the intended entry
| Order | Purpose | Trade-off |
|---|---|---|
| Market buy/sell | Request a trade now | Fill price can differ from the displayed quote |
| Buy limit | Buy on a pullback below the current ask | The market may never offer your price |
| Sell limit | Sell on a rise above the current bid | A touch on a chart does not establish a fill |
| Buy stop | Enter after an upward trigger | A fast move can produce slippage |
| Sell stop | Enter after a downward trigger | A gap can skip the requested level |
| MT5 stop limit | A stop trigger places a limit order | The limit may remain unfilled after triggering |
For example, with EUR/USD around 1.1000, an illustrative pullback buy limit might be 1.0970, while an upward breakout buy stop might be 1.1030. These demonstrate placement, not trade recommendations. The entry order and a protective stop-loss have different jobs. Broker execution mode, permitted order types and minimum distances determine which requests are accepted. MT4 order types; MT5 order mechanics.
Calculate volume before sending the order
Choose the invalidation level first, then work out how much money that distance represents. Margin tells you whether an order is affordable under the broker’s rules; it does not tell you whether its loss would be acceptable.
Lots = cash risk budget ÷ [(stop pips × pip value per lot) + estimated costs per lot].
Illustration: a USD 10,000 demo account uses a USD 50 risk budget. A EUR/USD long has a 40-pip stop, and one standard lot represents USD 10 per pip under the assumed 100,000-unit contract. Allow USD 7 round-trip commission and USD 10 slippage reserve per lot. The calculation is 50 ÷ (400 + 7 + 10) = 0.1199 lots. With a 0.01 lot step, round down to 0.11 lots. Planned loss including those allowances is USD 45.87.
That is an example budget, not a recommended risk percentage. Check the live contract values and conversion into your account currency. Do not add spread twice if your entry and stop calculation already uses executable ask and bid. If the minimum permitted volume exceeds your budget, skip the trade.
Place, modify and close a demo position
- Open New Order from the toolbar or the symbol menu. On the Windows desktop terminal, F9 opens the order window.
- Check the exact symbol, order type, volume, pending price if relevant, stop-loss, take-profit and expiry. Confirm that stop levels use prices, while other fields may use points.
- Check the spread immediately before submitting. A major release or daily rollover can change the economics of an otherwise valid setup.
- After sending, inspect the accepted order or position. Record the fill, volume, attached stop and any rejection message. A click is not proof of execution.
- Practise changing the stop and cancelling a pending order. Then use the position’s close command, confirm the closed quantity and check History.
A partial close must respect the minimum volume and volume step for both the closed amount and any remainder. MT5 records orders, executed deals and positions separately, so one request may not correspond to one history line. Reconcile the complete transaction, including commission and financing. Official trade execution instructions.
Understand netting and hedging before pressing Sell
MT5’s account model is set by the broker. On a netting account, each symbol has one aggregate position. On a hedging account, separate positions can coexist. Use the explicit close command when you intend to close a hedging position. Position accounting documentation.
Consider a 0.30-lot EUR/USD long. Selling 0.10 lots on a netting account leaves a 0.20-lot long. Selling 0.50 lots instead reverses it into a 0.20-lot short. On a hedging account, a separate sell order can open a short while the original long remains. You may then have two positions, additional costs and unfamiliar margin treatment.
Opposite tickets do not erase trading costs or operational risk. Several EAs on the same netting symbol can also interfere with one aggregate position. Test combined behaviour, identify which system owns the exposure and check protective levels after adding, reducing or reversing a position.
Stops, points and execution deserve a separate rehearsal
A five-decimal EUR/USD quote commonly has ten platform points per conventional pip. A setting of 50 points may therefore mean 5 pips. For a three-decimal JPY quote, ten points commonly correspond to a 0.01 pip. Always derive the relationship from the symbol’s digits and tick size; metals and indices have different conventions.
Buy trades open on ask and close on bid; sell trades open on bid and close on ask. A short stop can therefore trigger when the ask reaches the level even if a bid-only chart appears short of it. Display the ask line while learning these mechanics. Stop-loss instructions can slip in gaps or thin liquidity and are not guaranteed execution prices.
A terminal trailing stop needs the platform operating and connected to keep updating. If the terminal stops, the last stop already accepted by the server remains, but the trailing logic stops adjusting it. Before shutting down, confirm what is actually on the server. Trailing-stop behaviour. Keep a broker contact route available for connection failures.
Install an EA or indicator in the right place
An indicator analyses data; an Expert Advisor can manage or submit orders. A script usually performs a requested task and ends. Read the program’s documentation to establish which account models, symbols and timeframes it expects before you attach it.
- Use File → Open Data Folder in the intended terminal. This avoids copying into a different installation’s folders.
- For MT4, place the native EA in
MQL4/Experts; for MT5 useMQL5/Experts. Custom indicators belong in the respectiveIndicatorsfolder. - A source file, MQ4 or MQ5, must be compiled with the matching MetaEditor. Inspect errors and warnings. The executable is EX4 or EX5 respectively.
- Refresh Navigator, attach the program to a demo chart, inspect inputs and save a named preset.
- Confirm the program identity, permissions and journal messages before permitting trading.
Official folder structure; MQL4 program compilation; MQL5 program types and compilation.
Control automation and plan its failure behaviour
Enable automated trading at both platform level and the individual EA level only after reviewing the inputs. Leave DLL imports disabled unless the dependency is necessary and trusted; allow web requests only to identified endpoints. A profitable-looking screenshot says nothing about a program’s safety. EA permissions and dependency guidance.
Use an explicit risk amount, maximum spread, maximum open exposure and unique strategy identifier where the EA supports them. Test whether it resumes safely after restart and whether it reconstructs existing positions without duplicating them. Two copies running on a desktop and a VPS can accidentally send duplicate orders.
Switching automation off usually stops new automated trade requests; it is not a command to close every open position or cancel every pending order. Know how to inspect and manage those manually. A VPS can improve availability, but it adds another system to monitor and cannot prevent broker outages, gaps or software errors. Review updates on demo before replacing a working live configuration.
Backtest the implementation, then forward-test the process
In MT5 Strategy Tester, choose the EA, exact symbol, timeframe, dates, deposit currency, leverage and saved inputs. Use real ticks where the broker provides suitable history for a strategy whose intrabar behaviour matters. Inspect the journal for missing or corrected data. The tester offers execution-delay settings and a historical forward split; neither guarantees that a live fill can be replicated. Tester settings and limitations.
First run a short visual test and reconcile several trades by hand. Verify that stops occur on the correct side of the quote, costs are charged and the EA cannot see future bars. Then test a longer history containing changing volatility, ranges and strong trends. Keep the final period untouched while writing rules. Stress wider spreads, worse slippage and financing rather than optimising only entry indicators.
Record net profit, equity drawdown, trade count, average win/loss, losing streaks and maximum exposure. A smooth balance curve can hide large unrealised losses. Continue with a demo forward test using exactly the saved rules. The objective is to identify operational discrepancies, not to declare profitability after a few wins.
Troubleshooting and the readiness checklist
| Symptom | Check first |
|---|---|
| Invalid account or no connection | Platform version, server, account number, password and demo expiry; then the Journal |
| Quotes visible but trading unavailable | Investor access, session hours, account restrictions and symbol trade mode |
| Invalid volume or insufficient funds | Minimum/step, contract size, free margin and existing exposure |
| Invalid stops | Price side, tick precision and minimum stop/freeze distances |
| EA attached but no orders | Global and EA permissions, required data, spread/event filters and log messages |
| EA missing from Navigator | Correct terminal data folder, native executable, program type and compilation errors |
Before using real funds, demonstrate that you can place and cancel each order type you intend to use, calculate volume independently, close the correct position, restore the workspace and explain every cost on a statement. Also define when you will stop opening trades because of drawdown, abnormal execution or a broken rule. A working platform is the beginning of a controlled process, not evidence that the strategy has an edge.
Sources and further reading
Official documentation and research checked for this update. Broker terms depend on the contracting entity and can change.
- MetaQuotes: MT5 and MT4 comparison
- MetaQuotes: connecting to an account
- MetaQuotes: opening an account
- MetaQuotes: Market Watch
- MetaQuotes: MT4 order types
- MetaQuotes: MT5 orders and position accounting
- MetaQuotes: executing trades
- MetaQuotes: program folders
- MetaQuotes: MQL4 programs
- MetaQuotes: creating EAs and indicators
- MetaQuotes: EA permissions
- MetaQuotes: Strategy Tester
- FXTM: desktop versus mobile EA support
