Red slips? We'll turn them green for you.
Profits go to your bank card first β we'll split them afterward.
No upfront payment, no account access required.
π’ WhatsApp: 85254981192 βͺ Telegram: @kkk437
MetaTrader 5 build 4570: Enhancements to the Web version and OpenBLAS integration in MQL5
What's new in MetaTrader 5
27 September 2024
Terminal
Restricted access to MQL5 trading and history functions if the account is subscribed to a signal.
When a signal subscription is detected on the account (regardless of whether copying is enabled in the current terminal), any MQL5 trading function
calls are prohibited, including receiving open orders and positions,
receiving history, and performing trading operations. A corresponding
warning is logged in the journal:
'XXX': signal subscription detected, trading and history access functions in MQL5 and Python disabled
The restrictions also apply to Python trading functions:
positions_total, positions_get, orders_total, orders_get,
history_orders_total, history_orders_get, history_deals_total,
history_deals_get, order_check, and order_send.
If a signal
subscription is canceled on the account or you connect to another
account without a signal subscription, the restriction is lifted, and
the following message is logged:
'XXX': no signal subscription detected, trading and history access functions in MQL5 and Python enabled
If the restriction is active on the account, MQL5 functions will return the following response codes:
OrderSend and OrderSendAsync return RET_REQUEST_AT_DISABLED_CLIENT
OrdersTotal and PositionsTotal return 0
PositionGetSymbol, PositionSelect, PositionSelectByTicket, and PositionGetTicket return ERR_MQLAPI_TRADE_POSITION_NOT_FOUND
OrderGetTicket and OrderSelect returns ERR_MQLAPI_TRADE_POSITION_NOT_FOUND
Fixed, optimized and accelerated tick history request and export to CSV\HTML files.
Added Microsoft Edge WebView2 support for displaying HTML content in the trading platform on macOS.
Compared to the outdated MSHTML, the new component significantly
expands content displaying capabilities by providing access to modern
technologies. The transition to WebView2 improves the appearance of
Market, Signals, VPS, and other sections, increasing their performance
and creating more responsive interfaces.
Fixed context menu in the internal mail sending window.
Fixed filtering in the trading instrument selection dialog. It is no longer necessary to first input instrument names to hide expired instruments.
Fixed calculation of margin requirements in the contract specification window. The error occurred for Exchange Stocks and Bonds instruments.
Improved bulk position closing function for FIFO
accounts. Incompatible operation types are no longer displayed for such
accounts, including closing of all profitable/losing positions,
same-directed positions and opposite positions.
Fixed issue where users could not place opposite pending orders on accounts where position closing follows the FIFO rule.
Fixed calculation of liquidation value for accounts with positions on Exchange Futures instruments.
Fixed floating profit calculations for positions on Exchange Bonds and Exchange MOEX Bonds instruments.
Disabled automatic demo account creation when the platform is launched without previously added accounts.
Improved name and email validation when registering accounts.
Fixed margin calculation for hedged positions. The error could occur in certain cases when using floating margin on the account (calculated based on the volume/value of current positions).
Fixed updating the "Next" button state in the demo account opening
dialog. After entering the phone or email confirmation code, the button
could remain inactive under certain conditions.
Updated user interface translations.
MQL5
Added native integration with the OpenBLAS matrix computation library.
OpenBLAS
is a high-performance open-source linear algebra library that
implements BLAS (Basic Linear Algebra Subprograms) and some LAPACK
functions. OpenBLAS is designed to improve computational performance,
particularly in matrix and vector operations, which are often used in
scientific and engineering tasks such as machine learning, numerical
methods, and simulations.
Key features of OpenBLAS:
Multithreading
support: OpenBLAS can efficiently use multiple processor cores for
parallel computations, significantly accelerating operations on
multiprocessor systems.
Optimization for processor
architectures: OpenBLAS includes optimized builds for various processors
such as Intel, AMD, ARM and others. The library automatically detects
processor characteristics (supported instruction sets like
AVX/AVX2/AVX512) and selects the most suitable function implementations.
Extensive
BLAS operation support: OpenBLAS implements core BLAS functions,
including vector operations (e.g., vector addition and dot product),
matrix operations (multiplication), and vector-matrix operations.
LAPACK
compatibility: The library supports LAPACK (Linear Algebra PACKage)
functions for more complex linear algebra operations, such as solving
systems of linear equations, calculating matrix eigenvalues, and others.
High
performance: Compared to other BLAS libraries, OpenBLAS often
demonstrates better results due to hand-crafted optimizations for
specific processor architectures.
OpenBLAS is widely used in applications involving numerical computations:
Training neural networks and other machine learning tasks.
Scientific computing (e.g. modeling of physical processes).
Processing and analyzing large amounts of data.
The following methods are currently available in MQL5:
SingularValueDecompositionDC β
divide-and-conquer algorithm; considered the fastest among other SVD
algorithms (lapack function GESDD).
SingularValueDecompositionQR β QR algorithm; considered a classical SVD algorithm (lapack function GESVD).
SingularValueDecompositionQRPivot β QR with pivoting algorithm (lapack function GESVDQ).
SingularValueDecompositionBisect β bisection algorithm (lapack function GESVDX).
SingularValueDecompositionJacobiHigh β Jacobi high level algorithm (lapack function GEJSV).
SingularValueDecompositionJacobiLow β
Jacobi low level algorithm (lapack function GESVJ). The method computes
small singular values and their singular vectors with much greater
accuracy than other SVD routines in certain cases.
SingularValueDecompositionBidiagDC β divide-and-conquer algorithm for bidiagonal matrices (lapack function BDSVDX).
SingularValueDecompositionBidiagBisect β bisection algorithm for bidiagonal matrices (lapack function BDSVDX).
EigenSolver β
compute eigenvalues and eigenvectors of a regular square matrix using
the classical algorithm (lapack function GEEV).
EigenSymmetricDC
β compute eigenvalues and eigenvectors of a symmetric or Hermitian
(complex conjugate) matrix using the divide-and-conquer algorithm
(lapack functions SYEVD, HEEVD).
Detailed documentation will be provided soon.
Added the SYMBOL_SWAP_MODE_CURRENCY_PROFIT value in the ENUM_SYMBOL_SWAP_MODE enumeration. If the SymbolInfoInteger function returns this value, swaps on the account are charged in the profit calculation currency.
Expanded ONNX Runtime support. Added new types of machine learning operations, allowing you to run more advanced neural models.
We continue transition to a more efficient MQL5 compiler,
which is already used for some functions. The transition will allow for
further optimizations and faster program execution.
Added new data types to support the OpenBLAS library:
complexf β complex number represented by float data
vectorcf β vector containing elements of type complexf
matrixcf β matrix containing elements of type complexf
Improved WebRequest
operations when working with websites that violate URL formatting
rules, contain redirect errors or have long lists of alternative DNS
names.
Fixed simultaneous assignment of matrix or vector types to multiple variables.
MetaEditor
Updated available models for the AI Assistant. The more advanced GPT-4o mini now replaces GPT-3.5 Turbo. Also added the 01-mini model.
Fixed debugger error due to which variable values could fail to update in the watch window.
Fixed memory leaks that could occur between testing passes under certain conditions.
Web Terminal
Added Crosshair mode for viewing precise values and measuring distances on charts.
Enable the mode by clicking the relevant button on the left panel. Move
the crosshair over any point on the chart to see the date and price on
the respective axes. To measure distance, click on any point on the
chart and drag the cursor to another point while holding the mouse
button.
You can also use shortcuts: press the middle mouse button to enable crosshair and use Esc or right-click to disable it.
Added a simple line chart constructed on bar closing prices:
In the mobile view, added ability to display additional columns in
the Market Watch section. To configure, switch to the table mode and
click "...":
Added hotkeys:
Home β scroll to the beginning of the chart (earliest date)
End β scroll to the end of the chart (latest date)
Page Up β scroll the chart one screen back
Page Down β scroll the chart one screen forward
Enhanced data security for account connection storage.
Improved chart scrolling, dragging, and scaling functionality.
Accelerated initial loading of the web platform on the page.
Optimized loading of bars.
Fixed floating profit calculations for positions on Exchange Bonds and Exchange MOEX Bonds instruments.
Fixed volume input on the one-click trading panel on charts.
Fixed error in updating the order volumes in the Depth of Market.
Values could have been delayed in updating under certain conditions.
Fixed minimum allowable trading volume check when placing orders.
Fixed margin calculation for hedged positions. The error could occur in certain cases when using floating margin on the account (calculated based on the volume/value of current positions).
Fixed error where the Buy and Sell buttons on the one-click trading panel could become inactive until the volume was changed.