![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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 3081: Improvements in MQL5 services and design updates
MetaQuotes, 2021.09.24 16:48
The MetaTrader 5 platform update will be released on Thursday, October 14, 2021. The new version features the following changes:
Market, Signals and VPS sections have been moved from the main platform workspace to the Navigator. The new positioning provides easy access to the desired products and enables efficient management of purchases and subscriptions. "How it works" sections have been added to each service, to provide the basic usage information.
If your broker enables cost calculation on the server, the new Costs column will appear in your account trading history. The column shows the deal execution cost relative to the current mid-point price of the symbol (mid-point spread cost).
This is the eighth language available at MQL5.community, the largest community of algorithmic traders. The website interface, articles, the Economic Calendar and important forum topics are already available in Korean. MQL5 documentation will be translated soon.
The relevant values for entry and reversal deals are set in accordance with the Stop Loss/Take Profit of orders, which initiated these deals. The Stop Loss/Take Profit values of appropriate positions as of the time of position closure are used for exit deals.
Your subscription will not end abruptly, as the system will automatically renew it for another month through the payment method that you previously used for the initial subscription purchase.
If you made your previous payment using a card and the renewal payment fails, the system will try to make a payment from your MQL5 account balance.
Do not worry about changes in subscription prices. If the price grows, auto-renewal will be canceled. You will receive a relevant notification by email.
You can enable or disable the auto renewal option at any moment via the My Subscriptions section at MQL5.com.
Previously, the payment for the renewal could only be made from the MQL5 account balance. The user had to make sure the relevant amount is available on their account.
Now there is no need to top up the MQL5 account. The system will renew the subscription using the same payment method which you used for the initial subscription. If you paid for the VPS with a card and enabled the auto renewal option, the system will use the same payment method for the new subscription period. If the payment fails, the system will try to make a payment from your MQL5 account balance.
With the new option, you can be sure that your Expert Advisors and signal subscriptions will not stop due to the end of the VPS period. Furthermore, there is no need to check and top up your balance manually.
MetaTrader 5 iPhone/iPad, MetaTrader 5 Android
Connect your account to the monitoring to access advanced trading statistics, to share the results with other traders or to start selling your signals.
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 3090: Improvements and fixes
MetaQuotes, 2021.10.20 16:52
The MetaTrader 5 platform update will be released on Thursday, October 21, 2021. The update provides improvements and fixes based on the feedback we have received after the previous MetaTrader 5 build 3081 release:
Now the largest community of algorithmic traders MQL5.community is available in 11 languages. We have already localized the website interface, documentation and important forum topics. Articles and Economic Calendar in the new languages will also become available soon.
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 3091: Improvements
MetaQuotes, 2021.10.22 12:28
The MetaTrader 5 platform update will be released on Friday, October 22, 2021. The new version features the following changes:
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 3180: Vectors and matrices in MQL5 and improved usability
MetaQuotes, 2022.01.20 17:18
The MetaTrader 5 platform update will be released on Friday, January 28, 2022.
The new version features improved platform usability: smart activation of volumes on charts so that traders do not miss this data when analyzing markets, the ability to quickly place orders from the account history and improved chart printing functions.
Besides, we continue developing the functions for working with vectors and matrices in MQL5. More than 30 new methods are ready for use at the moment.
In addition, we have implemented multiple fixes and improvements in all platform components.
These changes along with other new features of the updated MetaTrader 5 platform version are described in detail below.Both of these actions change the chart financial instrument to the selected one. Previously, they did not let the chart window become active. Accordingly, some further actions, such as calling a trading dialog (F9) or changing the scale (+/-) using hotkeys, could erroneously be applied to another chart. Now the chart, whose symbol has been changed by dragging, becomes selected for further work right away.
Real trading volumes have a higher priority. If they are provided by a broker, their display is enabled on the chart. Otherwise, the display of tick volumes is enabled.
The mechanism is used only if the chart is opened with the default.tpl template. Volumes are no longer enabled when reopening a chart if a user has manually disabled them in the chart settings. Custom templates are not affected.
Multiple functions are currently ready for use:
For more details please read the relevant MQL5 documentation.
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 3210: Revised Sharpe Ratio calculation algorithm, new matrix methods and control over indicator minimum/maximum values
MetaQuotes, 2022.02.10 16:30
The MetaTrader 5 platform update will be released on Friday, February the 11th, 2022.
The update provides the revised Sharpe Ratio calculation algorithm based on a traditional formula, new matrix methods, optimized memory consumption, and improved network system operation for better data transfer.
We have also added two new properties, INDICATOR_FIXED_MINIMUM and INDICATOR_FIXED_MAXIMUM, in the ENUM_CUSTOMIND_PROPERTY_INTEGER enumeration, which fix/unfix minimum and maximum indicator values using the IndicatorSetDouble function.In addition, we have fixed some errors in the Math\Stat\Math.mqh mathematical library and corrected the operation of the CopyTicks and CopyTicksRange functions, which could return outdated data when crossing over midnight.
These changes, along with other new features of the updated MetaTrader 5 platform version, are described in detail below:Pseudocode for calculating the address of a matrix element:
For example, for 'matrix mat(3,3)', access to elements can be written as follows:
reading: 'x=mat.Flat(4)', which is equivalent to 'x=mat[1][1]'writing: 'mat.Flat(5, 42)', equivalent to 'mat[1][2]=42'
If the function is called with an invalid matrix index, the OutOfRange critical execution error will be thrown.
Using these properties, you can fix or unfix the minimum and maximum indicator values using the IndicatorSetInteger function. When calling IndicatorSetInteger(INDICATOR_FIXED_MINIMUM/INDICATOR_FIXED_MAXIMUM, true), the current minimum or maximum value is used.
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 3260: Bulk operations, matrix and vector functions, and chat enhancements
MetaQuotes, 2022.03.31 13:59
The MetaTrader 5 platform update will be released on Friday, April 15, 2022.
In the new version, we have added a set of commands for bulk position closing and pending order cancellation operations. Now, the relevant actions can be executed with a couple of mouse clicks.
We have also expanded the capabilities of the MQL5 language. The update provides new matrix and vector functions, as well as built-in array and string methods.
Furthermore, we have improved built-in chats. Now, chats support citing and combined messages containing text, images and attachments.
In addition, we have implemented multiple fixes and improvements in MQL5 service purchasing processes and have optimized the terminal graphics system.
These changes, along with other new features of the updated MetaTrader 5 platform version, are described in detail below:New "Bulk Operations" command has been added to the context menu of the Trade tab. The list of available commands is formed automatically, depending on the selected operation and on your account type.
The following commands are always available in the menu:
If you select a position, additional commands appear in the menu:
If you select a pending order, additional commands appear in the menu:
The following three methods are already available:
Example:
The following methods are currently available:
All methods are analogous to string functions.
Example:
It is only used for subscription-based trading symbols. The delay is usually applicable to data provided in trial mode.
The property can only be requested for symbols selected in the Market Watch. Otherwise, the ERR_MARKET_NOT_SELECTED (4302) error will be returned.
If this option is disabled, accounts are not allowed to have opposite-direction positions and orders for the same financial instrument. For example, if the account has a Buy position, the user cannot open a Sell position or place a pending Sell order. If the user tries to perform such an operation, the TRADE_RETCODE_HEDGE_PROHIBITED error will be returned.
Use the values to obtain swap calculation rates for specific days of the week. 1 — single swap, 3 — triple swap, 0 — no swap.
The update will be available through the Live Update system.
Forum on trading, automated trading systems and testing trading strategies
New version of MetaTrader 5 build 3270: Improvements and fixes
MetaQuotes, 2022.04.20 17:17
The MetaTrader 5 platform update will be released on Thursday, April 21, 2022. The update provides improvements and fixes based on the feedback we have received after the previous MetaTrader 5 build 3260 release, which included many new features.
The update provides the following changes:
The update will be available through the Live Update system.
Forum on trading, automated trading systems and testing trading strategies
MetaTrader 5 Platform update build 3280: Improvements and fixes based on traders' feedback
MetaQuotes, 2022.04.29 11:10
The MetaTrader 5 platform update will be released on Friday, April 29, 2022. The update provides improvements and fixes based on the feedback we have received after the release of build 3270.
The update includes the following changes:
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 3300: Fast compilation and improved code navigation in MetaEditor
MetaQuotes, 2022.05.19 17:32
The MetaTrader 5 platform update will be released on Friday, May 20, 2022.
In the new version, we have implemented multiple improvements to MetaEditor. Compilation now supports two modes: slow compilation with code optimization and fast one without optimization. The latter option can be useful for fast code validations during development.
Other code editor improvements include a new command for jumping to method declarations and the auto-substitution option on the "Tab" key.
In addition, we have facilitated MQL5 debugging processes by automatically displaying local variables in the watch list.
These changes, along with other new features of the updated MetaTrader 5 platform version, are described in detail below:The following variables can be used as metrics:
The "Maximum optimization" parameter in the project settings performs the same function.
All compilation-relation operations are available under the "Build" menu.
The update will be available through the Live Update system.
Forum on trading, automated trading systems and testing trading strategies
MetaTrader 5 Platform update build 3320: Improvements and fixes
MetaQuotes, 2022.05.26 16:11
The MetaTrader 5 platform update will be released on Thursday, June 2, 2022. The update provides improvements and fixes based on the feedback we have received after the previous MetaTrader 5 build 3300 release, which included many new features.
These new features, along with other changes, are described in detail below.
Similar tooltips are available for the lines joining entry and exit trades.
The update will be available through the Live Update system.