• Overview
  • Reviews (2)
  • Comments (1)
  • What's new


The CloseByPercentLossOrProfit Expert Advisor closes all positions as the total profit of loss for the entire account reaches a specified value. The profit or loss is specified as percentage of the account balance. In addition, the Expert Advisor can delete pending orders.

Allow AutoTrading before running the Expert Advisor.


Run the Expert Advisor on the chart.

Input parameters:

  • Language of messages displayed (EN, RU, DE, FR, ES) - the language of output messages (English, Russian, German, French, Spanish);
  • Profit, % - profit in percentage terms;
  • Loss, % - loss in percentage terms;
  • Delete of pending orders - delete pending orders after closing all positions;
  • View comment - show the comment;
  • The number of tries to delete order - the number of attempts to delete the order or close a position (in case of requotes or other errors);
  • Slippage - slippage.

If you want to watch some specific symbols only, then use the following product https://www.mql5.com/en/market/product/704.

Nikolay Gaylis
Nikolay Gaylis 2019.01.14 08:42 

User didn't leave any comment to the rating

Vadim Strelkov
Vadim Strelkov 2014.04.30 09:28 

User didn't leave any comment to the rating

Version 1.3 2015.06.29
A new parameter sets a pause in milliseconds before a new try