Codes

TP-SL_Removing for MetaTrader 4

Immediately deletes the SL/TP of all positions

Closed_TOTAL for MetaTrader 4

Total closure of all positions (winners/losers). You can also select which are of a single instrument

Closed_LOSS for MetaTrader 4

Closure of all positions with a loss. (You can indicate a specific instrument if you want to)

Closed_WIN for MetaTrader 4

Closure of all winning positions. (You can indicate a specific instrument if you want to)

Forum

Forum rules and recommendations

Each language has its own forum, and it is therefore forbidden to communicate in any language other than that of the forum in question. Threads in capital letters will be deleted. It is forbidden to post personal details such as telephone numbers or e-mail addresses. Discussions and advertising

Problems with your broker account and withdrawals? Read this thread carefully.

You are on the official forum of MetaQuotes Ltd. ( https://www.mql5.com ). MetaQuotes Ltd. is a software development company and does not provide any financial, investment, brokerage, trading or datafeed services, nor is it involved in any commission payments in connection with any trading

MT5 Strategy Tester Spread in weekend

Existential doubt... If my broker increases the spread considerably over the weekend (44 in EURUSD)...this will be the spread that MT5 use in the strategy tester ? I hope not, because it would be impossible to do tests during the weekend. I hope I can get out of doubts. Thank you in advance. Edited

PositionsTotal()

How should I use PositionsTotal() to return the number of operations at the symbol (chart) applied and not the total? (MQL5 code) For several reasons I need you to be as well. I don't want the total, as I do not wish to take into account manual trades in other symbols. Thank you in advance.‌ int