The CloseByPercentLossOrProfit Expert Advisor closes all positions when the specified total profit or loss is reached (for the entire account). Profit and loss are indicated as a percentage of the current account balance. In addition, the Expert Advisor can delete pending orders.
Allow auto-trading before launching the Expert Advisor.
Using:
Run the Expert Advisor on the chart.
Input parameters:
- Language of messages displayed (EN, RU, DE, FR, ES) – the language of message output (English, Russian, German, French, Spanish);
- Profit, % – profit as a percentage;
- Loss, % – loss as a percentage;
- Delete of pending orders – delete pending orders after closing all positions;
- View comment – show a comment;
- The number of attempts to delete order – the number of attempts to delete an order or close a position (in case of requotes or other errors);
- Slippage – slippage.
If you need to keep track of only a part of the characters, then use the following product