MetaTrader 5 build 3260: Bulk operations, matrix and vector functions, and chat enhancements
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
15 April 2022
Added commands for bulk closing of positions and cancellation of pending orders.
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:
string test="some string";
PrintFormat("String length is %d",test.Length());
// Result log:// String length is 11
Added SYMBOL_SUBSCRIPTION_DELAY value into the ENUM_SYMBOL_INFO_INTEGER enumeration for the delay in quotes delivery for specific symbols.
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
Added ACCOUNT_HEDGE_ALLOWED property into the ENUM_ACCOUNT_INFO_INTEGER
enumeration — enables the opening of opposite positions and pending
orders. The property is only used for hedging accounts to comply with
specific regulatory requirements, according to which an account cannot
have opposite positions for the same symbol, while same-direction
positions are allowed.
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.
Fixed operation of CopyTicks and CopyTicksRange
functions. An error could cause the return of outdated data when
crossing through midnight. The error occurred when no ticks were
provided for the financial instrument.