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

StopAndClose

The utility (expert) is designed for monitoring and controlling the total drawdown, as well as closing all positions after reaching the specified levels or time with the ability to disable the operation of the automatic experts running in the same terminal.

  • It is capable of tracking the status of the entire account, as well as individual pairs.
  • It works with the positions opened manually or by other automatic experts.
  • It tracks the open trades in real time mode and the previously closed trades that had been performed after the start of monitoring.
  • It can control the absolute and relative drawdown.
  • It can send a notification when reaching the specified drawdown and profit levels.
  • It can close all orders and stop all EAs at a specified time.

Positions are closed according to the following algorithm:

  1. delete all automatic experts from the monitored pairs.
  2. close all orders.
  3. send notifications
  4. switch to standby mode until the next activation.


Input parameters

  • Stop Level - stop loss level.
  • Take Level - take profit level, or 0 if the total TP is not used.
  • Unit - units of level measurement (percentage or the deposit currency).
  • Drawdown type - type of the monitored drawdown (relative or absolute).
  • What pairs need to control - monitoring mode (All - monitor all pairs, From the input list - only the ones present in the list below).
  • List of controlled pairs (exact name) - list of the monitored currency pairs (the exact name of the pair with the prefix and suffix), separated by commas.
  • Close all by time - close all at a specified time.
  • Closing Time - time to close orders (if Close all by time is true)
  • Notify me if the drawdown will exceed - drawdown level at which notifications are sent.
  • Notify me if the profit will exceed - profit level at which notifications are sent.

Calculation of the current drawdown considers the results of trades closed after the monitoring started, if any, as well as the current drawdown of the open positions. When the relative drawdown is selected in the settings, the level of the total stop loss will be recalculated based on the current balance, in case the balance increases. The operation will not be disrupted for the experts running on the pairs that had not added to monitoring list. If multi-currency experts are running on the account, and you want to monitor them, simply add all pairs those experts trade and are running on to the monitoring list or choose "All".


Very easy to use

Simply attach it to any chart, customize the input parameters, and once you are ready to start monitoring, press the "Reset the start point" button and the utility till start monitoring the trades starting from that moment. If you want to reset to the initial point, simply press the "Reset the start point". When deleting the Stop&Close from the chart, the monitoring start point will also be reset, but when reloading, changing the input variables or closing the terminal, the starting point will be stored, so you need not worry about the VPS restarts or other problems.

Frank B
961
2017.04.04 11:10 
 

Works good

Version 1.3 - 2017.04.04
Added the ability to disable the stop-level (Stop Level = 0).
Fixed chart closing loop issue.
Version 1.2 - 2017.03.10
Fixed typos in menus.
Improved the algorithm and the speed of closing orders.
Added the ability to close by time.