You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Forum on trading, automated trading systems and testing trading strategies
New MetaTrader 5 Platform build 2265: DirectX functions for 3D visualization in MQL5 and symbol settings in Strategy Tester
MetaQuotes Software Corp., 2019.11.29 13:41
The MetaTrader 5 platform update will be released on Friday, December the 6th, 2019. The new version features the following changes:To display the trading history as positions, the terminal uses information about deals executed during the requested period. Only the positions closed within this period will be shown in history. If the position is still open or its close time does not fall within the selected interval, it will not be displayed in the history. Therefore, the total profit and commission in the 'positions' mode can differ from those in the 'orders/deals' history mode.
For example, you are viewing the past week history. During this period, 100 deals were executed, 98 of which participated in the opening and closing of 20 positions. The last two deals opened new positions, which have not been closed up to now. In this case, the history of deals contains 100 records and appropriate total values calculated based on these deals. When viewing the history as positions, you will see 20 records collected based on 98 deals. Only this data will be taken into account when calculating total values. If the broker charges entry deal fees, the final commission value in the deals history will differ from the commissions shown in the positions history, because the two last deals will be ignored in the latter case.
The new CCanvas3D class is an extension of the CCanvas custom graphics class. It is available in the \MQL5\Include\Canvas\ directory. The class features functions for rendering three-dimensional objects via DirectX API.
Detailed documentation for the new library will be published soon.
The following functions are available:
The following error codes have been added for function operations:
The property allows setting the type of chart which opens at the end of optimization, as well as program parameters for the X and Y axes.
The property only sets the default chart view. It can be changed manually at any time, using the context menu.
Custom settings for financial instruments
Now you can change settings of the main trading instrument, for which testing/optimization is performed. Almost all specification parameters can be overwritten: volumes, trading modes, margin requirements, execution mode and other settings. Thus, if you need to check an Expert Advisor under different conditions, there is no need to create a separate custom symbol and download its history. This can be done by changing standard symbol settings.
If the symbol specification is customized, the gear icon and the symbol icon are marked with an asterisk. This shows that custom parameters are used for the current test.Last settings/Expert Advisors/charts
Use the new context menu commands for fast testing or optimization setup. Choose the last used tester settings, recent charts or applications:
If appropriate compilers are installed on your PC, MetaEditor will detect them and add to settings. Optionally, you can specify paths to required components under the Compilers tab. From the same tab, you can download the components by clicking Install next to the appropriate field.
After that you can work with C/C++ and Python projects similarly to MQL5 programs.
There is no need to search for appropriate functions in a trader's room on the broker site. Fast navigation commands are available directly in terminals: users can switch to deposit and withdrawal pages from the Accounts and Trading sections:
Forum on trading, automated trading systems and testing trading strategies
New MetaTrader 5 Platform Build 2280
MetaQuotes, 2019.12.12 15:54
The MetaTrader 5 platform update will be released on Friday, December the 13th, 2019. The update features important additions and fixes based on the feedback we have received after the previous MetaTrader 5 build 2265 major update:
The update will be available through the Live Update system.
Forum on trading, automated trading systems and testing trading strategies
New MetaTrader 5 Platform Build 2340: Managing account settings in the Tester and expanded integration with Python
MetaQuotes, 2020.02.20 14:59
The MetaTrader 5 platform update will be released on Friday, February the 21st, 2020. The new version features the following changes:
In the previous platform update, we introduced support for operations with SQLite databases directly from MQL5. The main functions have become available through the MetaEditor user interface:
How it works
The quick database creation functionality is available from the MQL5 Wizard. You can easily create your first table and define its fields.
Upon the database creation, you will be forwarded to a new Navigator section, which features commands for managing the data.
Database tables are shown in the left-hand side window. Double-click on the table name to quickly query the first 1,000 records. In this navigator section, you can also create and open other databases, as well as work with tables.
The database can be managed in the main editor window, in which you can fill in the table, search and select data, enter SQL queries and execute other operations:
For further details about MetaTrader 5 operations with databases, please read the article entitled "SQLite: Native handling of SQL databases in MQL5".Click "Compile" in the editor to run the script:
To work with Python, do not forget to specify its path under the Settings \ Compilers section in MetaEditor. To enable the use of the MetaTrader 5 library, install it using the following command:
New naming
The existing commands have been renamed as follows:
MT5Shutdown -> shutdown
MT5TerminalInfo -> terminal_info
MT5Version -> version
MT5CopyRatesFrom -> copy_rates_from
MT5CopyRatesFromPos -> copy_rates_from_pos
MT5CopyRatesRange -> copy_rates_range
MT5CopyTicksFrom -> copy_ticks_from
MT5CopyTicksRange -> copy_tick_range
New commands
The list of supported commands has been expanded. Added trading functions, as well as functions for working with the trading history and for receiving financial symbol and current account data.
Running Python scripts on charts
Python scripts can be run directly on platform charts, similarly to regular MQL5 programs. These scripts are marked with special icons in the Navigator.
Script messages will be displayed under the "Toolbox \ Experts" section. If a MetaTrader 5 library is used in the script, it can receive trading symbol and account data, as well as perform trading operations.
Python scripts can be executed on the same chart in parallel with other MQL5 scripts and Expert Advisors. To stop a script with a looped execution, remove it from the chart.
Additional protection
To enable additional account protection when using third-party Python libraries, you may activate the "Disable automated trading via external Python API" option in terminal settings.
Python scripts can only perform trading operations when this option is disabled.
DatabaseImport
Imports data from a file to a table.
DatabaseExport
Exports a table or an SQL query result to a CSV file. The file is created in UTF-8 encoding.
DatabasePrint
Prints the table or SQL query result to the Experts journal.
The new function enables the efficient user interaction with the MQL5 program.
Common settings
In this section, you can set the maximum number of open orders and positions, which can simultaneously exist on the account. Additionally, you can configure sessions during which the program is not allowed to trade.
Margin
The section allows configuration of margin reserving rules and position accounting systems to be used in testing:
Commission
This section provides control over commissions charged for all trading operations.
The new MetaTrader 5 version will be available through the LiveUpdate system.
Forum on trading, automated trading systems and testing trading strategies
New MetaTrader 5 build 2360: Extension of SQLite integration
MetaQuotes, 2020.03.05 16:30
The MetaTrader 5 platform update will be released on Friday, March the 6th, 2020. The new version features the following updates:
The new MetaTrader 5 version will be available through the LiveUpdate system.
Forum on trading, automated trading systems and testing trading strategies
New MetaTrader 5 Platform Build 2450: "Subscriptions" service, UI improvements and revised features in MetaEditor
MetaQuotes, 2020.05.15 13:43
The MetaTrader 5 platform update will be released on Friday, May the 22nd, 2020.
The update only includes 64-bit platform components
We have previously announced the upcoming end-of-support for 32-bit components. From the current update and onward, new versions will only be released for the 64-bit platform. The latest available 32-bit terminal version is build 2360.
If you are still using 32-bit solutions, we recommend switching to 64-bit versions as soon as possible.
The new version features the following changes:
The service is currently under development and will become available for use in the next versions.
How it works
A new Subscriptions section has been added in the Navigator. All available services are displayed under this section. The list of services is configured on the broker side and thus it depends on the server to which you are connected. Subscriptions are divided into categories for easy browsing.
Select a service to view its detailed description. Next, click Subscribe. All your active subscriptions are displayed under a separate section.
When you subscribe to market data, appropriate trading instruments become available for selection in Market Watch. They can be used as regular symbols: view quotes in Market Watch, open charts and analyze them using objects and indicators, as well as run Expert Advisors in the strategy tester. Trading operations for these symbols are not supported.
How to pay for subscriptions
You can pay for the services using your trading account funds. There is no need to visit other websites, as the payment can be performed directly from the platform.
Soon, we will add the possibility to purchase market data subscriptions by connecting to MetaQuotes-Demo
We plan to set up subscriptions to market data from various exchanges around the world. In just a few clicks, you will be able to receive real-time quotes from Nasdaq, CME, NYSE, BOVESPA and other exchanges. You will be able to pay for subscriptions using an MQL5.community account, similarly to Market, Signals and Hosting purchases.
Furthermore, you can quickly enable the display of trading history and trading levels using the chart context menu:The new columns can be shown/hidden using the context menu.
Position value and magic columns have also been added to the trading history section.Furthermore, the profit field in the open positions and history sections is highlighted depending on the operation result.
comment=Request executed
request_id=55
retcode_external=0
request=TradeRequest(action=1, magic=234000, order=0, symbol='USDJPY', volume=0.1, price=108.018, stoplimit=0.0, ...
traderequest: action=1
traderequest: magic=234000
traderequest: order=0
traderequest: symbol=USDJPY
traderequest: volume=0.1
traderequest: price=108.018
traderequest: stoplimit=0.0
...
Added extended search features with partial regular expression support. Use \r, \n, \t to specify line feed and tab characters in search requests. Search and replace dialogs have been combined into a single multi-tab dialog.
Added a separate tab for searching in programmer communities. These include MQL5.community, as well as GitHub, MSDN and Stack Overflow.
Search results from external resources appear in the MetaEditor toolbox window:
Furthermore, you can immediately download source files from GitHub. Files are downloaded into a separate subdirectory of the Projects folder, named in accordance with the GitHub project name.Search results can be additionally sorted by date.
The new version will be available through the LiveUpdate system.
Forum on trading, automated trading systems and testing trading strategies
New MetaTrader 5 Platform build 2470
MetaQuotes, 2020.05.28 16:12
The MetaTrader 5 platform update will be released on Friday, May the 29th, 2020. The new version features the following changes:
The new version will be available through the LiveUpdate system.
Forum on trading, automated trading systems and testing trading strategies
New MetaTrader 5 Platform Build 2485: iCustom improvements and overall optimization in MQL5
MetaQuotes, 2020.06.05 08:44
The MetaTrader 5 platform update will be released on Friday, June the 5th, 2020.
Recompile your products in the Market
We urge the programmers who publish their products in the Market to recompile files using the new platform version and to upload the updated files into the Market. The current version provides important fixes in MQL5. The errors can negatively affect the execution of programs and we therefore recommend recompiling your files.
The new version features the following changes:
If the backslash '\' is indicated before the custom indicator name, the EX5 indicator file is searched relative to the MQL5 root folder. So, for a call of iCustom(Symbol(), Period(), "\FirstIndicator"...), the indicator will be loaded as MQL5\FirstIndicator.ex5. If the file is not found at this path, error 4802 (ERR_INDICATOR_CANNOT_CREATE) is returned.
If the path does not start with a backslash '\', the indicator is searched and loaded based on the following sequence of actions:
Also, if a custom indicator call via iCustom is found in the program code, the compiler will implicitly add the "#property tester_indicator XXX" directive if it is not specified.
Forum on trading, automated trading systems and testing trading strategies
New MetaTrader 5 platform build 2530: Sorting in Market Watch and advanced operations with optimization results
MetaQuotes, 2020.07.09 16:20
The MetaTrader 5 platform update will be released on Friday, July the 10th, 2020. The new version features the following changes:
All interactive hints are grouped into various categories for easier navigation. The number of completed and remaining hints is shown for each category.
Every hint is now provided with a checklist, indicating the key action which the user should execute in order to complete training.
We have also revised the learning system design and fixed errors in the total progress calculation.
The new option enables faster operations with projects consisting of multiple files. For example, to replace a text in all files, you will not need to specify their directories manually. The editor can automatically find them through the #include directives.
Tester: We have revised optimization criteria which include two variables, one of which is the balance. Now, the criteria only take into account the second variable and ignore the balance. The new optimization criteria are easier to analyze.
The graph is colored with a green-to-red gradient, depending on the value of the optimization criterion. The following colors are used for the table:
The update will be available through the Live Update system.
Forum on trading, automated trading systems and testing trading strategies
New MetaTrader 5 Platform build 2560: Built-in learning system improvements
MetaQuotes, 2020.07.23 14:34
The MetaTrader 5 platform update will be released on Friday, July the 24th, 2020. The new version features the following changes:
Complete all lessons to start using the platform capabilities to the maximum.
The update will be available through the Live Update system.