This is a simple Expert Advisor for controlling drawdown of positions. It is attached to one chart and monitors all open positions. If the drawdown (in percent) of a position exceeds the value specified in the settings, the position is closed.
If position closure fails, a comment with an error code will be displayed on the chart where the EA is running.
It has only two parameters:
- Percent - percent of allowable drawdown in one position;
- Slippage - slippage during position closure.