MQL5 is an abbreviation of “MetaQuotes Language 5” and is a language created by “MetaQuotes Software Corp” that developed MT4 for developing its own platform. FX traders affiliated with MetaQuotes can trade using MT4/MT5 separately from their own trading platform.
- XMtrading
- Basic Knowledge of XM and MQL5
- MQL5 Basics
- What Can You Do with XM × MQL5?
- The Benefits of Using MQL5 with XM
- ① Automate and semi-automate trading.
- ② Enables high-speed, high-precision backtesting.
- ③ Execute your EA directly in the XM trading environment.
- ④ Automate trading of a wide variety of financial products.
- ⑤ MQL5 is highly functional and extensible.
- ⑥ Utilizes the MQL5 Market.
- ⑦ Compatible with VPS.
- ⑧ Thorough risk management through programming.
- How to Obtain MQL5 Signals
- How to Obtain MQL5 Signals [Basic Steps]
- What is an MQL5 EA?
- Important Points to Note When Using MQL5 with XM
XMtrading
| Operating company | Tradexfin Limited Fintrade Limited |
| Head office location | Unit E, F28, Eden Plaza, Eden Island, Republic of Seychelles |
| Founding year | 2009 |
| Financial License | (FSA)SD010:Tradexfin Mauritius Financial Services Commission (FSC:):Fintrade Limited Cyprus Securities and Exchange Commission (CySEC):Trading Point of Financial Instruments Ltd |
| Language support | English、日本語、Malay、Thai |
| Platform | MetaTrader 4 (MT4)/MetaTrader 5 (MT5) |
| Service Countries | Over 190 countries |
| Number of users | Over 1 million accounts |
| Max Leverage | 1000x |
| Eligible products | Forex、Metal、Stocks、Equity Indices / Index CFD、Energy CFD、Commodities、Cryptocurrency |
Basic Knowledge of XM and MQL5
Below, we’ll provide a basic overview of XM and MQL5, while also clearly explaining their relationship. The structure is easy to understand, even for FX beginners. Users can access and use our trading tools with updated information through our service. Effective investments can be made by comparing prices. You can monitor your own performance according to your goals using a browser such as WebTrader.
What is XM?
XM (XMTrading) is a globally used FX/CFD broker. It offers comprehensive support in Japanese and boasts a large user base among Japanese traders.
Key Features of XM
Maximum Leverage: Over 1,000x (Depending on Account Terms)
Small-Amount Trading Allowed (Micro Account Available)
Extensive Bonus Programs (Account Opening Bonus, Deposit Bonus, etc.)
Compatible with MT4 and MT5
Trade not only FX but also stock indices, gold, crude oil, cryptocurrency CFDs, and more
Trading Platforms Used by XM
MT4 (MetaTrader 4)
MT5 (MetaTrader 5)
MQL5 Basics
What is MQL5?
MQL5 (MetaQuotes Language 5) is a programming language specifically for MT5, used for the following purposes:
Creating EAs (Automated Trading Programs)
Developing Indicators
Creating Scripts (Support Tools)
Automating and Testing Trading Logic
What You Can Do with MQL5
Automated Entry and Exit
Automated Stop Loss and Take Profit Settings
Simultaneous Monitoring of Multiple Currency Pairs
Backtesting Using Historical Data
Analyzing and Optimizing Trading Performance
Features of MQL5
Syntax Similar to C++ (More Functional than MQL4)
High-Speed Processing and Multi-Currency Support
Fully Utilize MT5 Features
EAs and Indicators Can Also Be Purchased on the Official MQL5 Market
The Relationship Between XM and MQL5
What Can You Do with XM × MQL5?
If you open an MT5 account with XM,
You can run EAs created in MQL5
👉 in your XM MT5 account.
Automated and semi-automated trading is possible.
Test your EA on a demo account and easily transfer to a production account.
Notes
MT4 (MQL4) EAs will not run on MT5.
XM clearly separates the following:
MT4 account → MQL4
MT5 account → MQL5
Even when using EAs,
XM’s trading conditions (spread, swap, and leverage limits) are reflected.
The Benefits of Using MQL5 with XM
Using MQL5 with XM offers many benefits that cannot be achieved through discretionary trading alone. Here, we’ll explain the unique strengths of the XM × MT5 × MQL5 combination from a practical perspective.
① Automate and semi-automate trading.
Automate entry, exit, stop loss, and take profit according to rules.
Enable stable trading without being influenced by emotions.
Also supports hybrid operation of discretionary and EA trading.
▶ Ideal for busy people and those who want to avoid emotional trading.
② Enables high-speed, high-precision backtesting.
MT5 supports multi-threading.
Quick testing using historical data.
Simultaneous testing of multiple currency pairs and time frames is possible.
▶ Quantitatively confirm the effectiveness of your strategy before using it.
③ Execute your EA directly in the XM trading environment.
Operate in a realistic environment that reflects XM’s spreads, leverage, and swaps.
Easily transition from a demo account to a live account.
▶ Minimize discrepancies between testing and actual use.
④ Automate trading of a wide variety of financial products.
FX currency pairs.
Gold.
Stock index and energy CFDs.
Cryptocurrency CFDs (conditions apply).
▶ Flexibility to manage non-FX assets with a single EA.
⑤ MQL5 is highly functional and extensible.
C++-like syntax allows for advanced logic.
Supports object-oriented programming.
Implements complex conditional branching and capital management logic.
▶ Facilitates mid- to long-term strategy development.
⑥ Utilizes the MQL5 Market.
Purchase or rent pre-made EAs and indicators.
Use logic from developers around the world.
Many free EAs available.
▶ “Enable automated trading even without custom development.”
⑦ Compatible with VPS.
Use official XM or external VPS.
Ensure stable 24/7 operation.
Avoid communication delays and PC power issues.
▶ Advantageous for scalping EAs.
⑧ Thorough risk management through programming.
Limits maximum loss per trade.
Stops trading after losing streaks.
Automatic lot adjustment (compound interest/fixed).
▶ Significantly reduces human error.

How to Obtain MQL5 Signals
Below, we’ll explain how to obtain MQL5 signals, covering everything from how they work to the steps and important points to consider when using them with XM, in a way that’s easy for beginners to understand.
What are MQL5 Signals?
MQL5 Signals is a trading signal distribution service provided by the MQL5 community (official MetaQuotes).
Automatically copy trades from professional and advanced traders to your MT5 account.
No EA required (standard MT5 feature)
Paid and free signals available
How to Obtain MQL5 Signals [Basic Steps]
① Install MT5
Open an XM MT5 account
Install the PC version of MT5
- The PC version of MT5 is recommended for signal subscriptions (for stability).
② Create an MQL5 account
Register for a free membership on the official MQL5 website
MT5 top menu
“Tools” → “Options” → “Community”
Log in with your MQL5 account
👉 MT5 and MQL5 are now linked.
③ Open the “Signals” tab in MT5
Click the “Signals” tab at the bottom of MT5
A list of available signals will be displayed.
④ Select a signal (Important)
Be sure to check the following points.
Items to Check
Operation Period (Recommended: At least 6 months)
Maximum Drawdown (The lower the better)
Profit Curve (Beware of Sharp Rising Curves)
Trading Frequency (Scalping/Day Trading/Swing Trading)
Product Used (FX, Gold, Indices, etc.)
Number of Subscribers/Ratings
⑤ Subscribe to a Signal
Click “Subscribe” on the signal details screen
Select Free or Paid (Monthly)
Set Copying Conditions
Main Settings
Percentage of Trades to Copy (e.g., 50%)
Maximum Allowed Drawdown
Stop-Out Behavior
Automated Trading On/Off
⑥ Enable Automated Trading
Turn on the “Automated Trading” button at the top of MT5
Keep your chart open
👉 The signal will now be automatically updated
How to Use an Automated Trading Tool (EA) in MQL5
Below, we will provide a practical explanation of how to use an automated trading tool (EA) in MQL5, covering preparation, installation, configuration, operation, and important points, assuming use with XM.
What is an MQL5 EA?
An EA (Expert Advisor) is a program that automatically executes trades on MT5.
Automate entry, exit, stop loss, and take profit.
Enables trading without being influenced by emotions.
24-hour operation (when using VPS).
① Preparation (required).
Requirements.
XM MT5 account.
MT5 (PC version).
MQL5 account (free).
- EAs do not work on the mobile version of MT5.
② How to obtain EAs.
Method ①: Obtain from the MQL5 Market (for beginners).
Open the “Market” tab at the bottom of MT5.
Search for EAs (free/paid).
Purchase or download.
Automatically installs into MT5.
▶ Easy and secure installation.
Method ②: Import an external EA (.ex5).
MT5.
“File” → “Open Data Folder.”
Save the EA file in MQL5 → Experts.
Restart MT5.
▶ Use with distributed EAs and custom EAs.
③ Adding an EA to a Chart
Navigator
Select an EA from “Expert Advisors”
Drag it to the target currency pair chart
Check the Settings Screen
Important Settings
✅ Enable Automated Trading
✅ Use of DLL (depending on the EA)
Lot Setting, SL/TP, Time Conditions, etc.
④ Enable Automated Trading
Turn on the “Automated Trading” button at the top of MT5 (green)
A “😊” icon appears in the upper right corner of the chart to indicate that it is running.
⑤ Backtesting (Highly Recommended)
Procedure
MT5
“View” → “Strategy Tester”
Select the EA, currency pair, and time period
Test execution
Check Points
Win Rate
Maximum Drawdown
Profit Factor
Number of Trades
▶ Essential Steps Before Actual Use
⑥ Testing in a Demo Account
At Least 1-2 Weeks
Confirm Actual Execution and Spread Impact
Check for Errors and Unexpected Behavior
⑦ Investing in a Live Account
Safe Start
Minimum Lot Size
Fixed Lot Size Recommended (Compound Interest Disabled)
Beware of Copycat and High-Frequency EAs

Important Points to Note When Using MQL5 with XM
Below, we will explain practical points to note when using MQL5 with XM, divided into four areas: “Account/Environment,” “EA/Signal Operation,” “Risk Management,” and “Technical Aspects.”
① Notes on Accounts and Trading Environment
MQL5 cannot be used without an MT5 account
XM offers both MT4 and MT5 accounts
MQL5 is only available for MT5
MT4 accounts do not support MQL5 EAs
MQL5 signals
MQL5 EAs
MQL5 signals
👉 Be sure to select “MT5” when opening an account
Check the trading conditions for each account type
Standard / Micro / Zero / KIWAMI Kyoku
Spreads
Minimum lot size
Commissions
👉 Performance is likely to deteriorate if the EA/signal conditions do not match
② Notes on EA/signal operation
Backtesting does not equal future profits
MQL5 test results are based on historical data
Performance changes as market conditions change
👉 Beware of excessive optimization (curve fitting)
Demo operation is essential
Don’t jump straight into a production account
Check XM’s unique
Execution
Spread fluctuation
Swap
In a real environment
Don’t leave signals to the provider’s discretion
Be wary of high-yield, short-term performance
Always limit copy ratios and maximum due dates
Risk of service suspension and poor performance
③ Risk Management Precautions (Most Important)
Incorrect lot setting is the biggest cause of accidents
EA/signal initial settings often assume high lot sizes
👉 Always check the following:
Fixed lot size or % lot size
Minimum lot size
Compound interest ON/OFF
Always set acceptable loss rules
Per trade: 1-2% or less
Maximum drawdown: 20% or less
Stop EAs after a certain due date
👉 Determine “stop criteria” in advance
④ Technical/System Considerations
Unstable without a VPS
PC power off = EA shutdown
Unstable connection = risk of malfunction
👉 A VPS is almost essential for long-term operation.
The EA appears to be running but isn’t.
Common causes:
Auto-trade button is off.
Currency pair specifications are incorrect.
Trading time restrictions are in place.
Insufficient account balance.



コメント