AW Recovery EA - Advisor designed to automate the process of recovering losses on the current symbol. It can be used in the presence of a current loss, as well as to accompany other advisers.
General Advisor Strategy Description
Advisor "AW Recovery EA" is used to restore losing positions on the trader's account.
The EA locks * a losing position, and then opens averaging * orders. The losing position is virtually divided into small parts, each of which is closed separately. Using partial closure * allows you to load less deposit and make the recovery process safer.
The EA includes an intelligent system for closing averaging orders. In this algorithm, the basket of averaging orders is not completely closed, as is usually the case. Only the very first and most recent of the averaging orders closes. This is done in order to less load the deposit. Since at each closing of averaging orders, part of the losing order is also closed. It is used if there is no need to close the entire basket, so the adviser can close only that part, which will reduce the total volume of the basket of averaging orders and reduce part of the losing position.
For example - If the number of averaging orders is more than 3, then the EA will not close all 3 at once, but will close only the very first one that it opened and the very last. The remaining orders will be closed later when the next averaging orders open. In addition to averaging orders, the EA will close in part from the losing position.
How the EA opens averaging orders
The EA opens averaging orders with a distance equal to "Step for average", the first averaging order is equal to the volume "Volume of average order", the following averaging orders will differ by the "Multiplier to volume" coefficient. A trader can choose the type of orders that the EA can use, which is important for working with a trend. Also in the input settings you can use an additional trend filter for averaging orders. The AW Trend Predictor indicator is used as a trend filter. The first averaging order will be opened with the "Step for average" distance from the order that the EA will restore. The next averaging order will be opened by the advisor if the previous one is at a loss by "Step for average" points. If a trend filter is used, then through the "Step for average" points, the EA will start waiting for a signal from the trend indicator to open a new averaging order.
How an Expert Advisor closes a losing position
A losing position is closed in parts. The EA performs partial closing of orders in order to recover the loss. For example, we have a losing position of 1 lot. When launched, the EA locks the position, virtually splits it into several parts and closes each of them separately. That is, an order with a volume of 1 lot can be divided into 10 parts with a volume of 0.10, each of which will be closed separately. Partial closure allows you to consume less account resources, leaves more free funds and does not need to open large volumes. It is due to the partial closing of a losing position that the loss recovery process can be safer and more stable.
To configure the part to close:
When determining the volume of a part for closing an order, one should take into account the volume of a long-term unprofitable order, as the most difficult to close. For correct operation at an average risk level, it is desirable to virtually divide a losing order into about 6-8 parts. That is, if a long-range order has a volume of 1 lot, then the closing part can be from 0.16 lots to 0.12 lots. In some cases, this number can be changed in one direction or another.
" Part to close from a loss-making position " = volume of a long-range losing order / 6 or 8.
By setting up averaging orders:
The volume of the first averaging order must be no less than the closing part. I usually recommend a 1: 1.5 ratio. This parameter can be changed based on the available volumes, distance and current volatility. You can check different odds in the strategy tester and check which level of aggressiveness is right for you.
" Volume of average order " = "Part to close from a loss-making position" * 1.5.
By setting the step between orders:
Step between averaging orders. If the step is too small, the number of averaging orders will increase, which may increase the drawdown. If the step is too large, this can greatly slow down the recovery process. To understand the golden mean, you can see the adviser's recommendations based on the current volatility of the instrument, as well as testing this step in the strategy tester.
It depends on the instrument that is used, as different instruments have different daily volatility. The task of the trader to determine the average daily volatility. To do this, use the "Average True Range" (ATR) indicator on the "D1" (Daily) timeframe with a period of "14". It is necessary to determine the average daily volatility, while eliminating the abnormal behavior of the indicator (strong spikes or too calm sections of the chart).
On the example of the EURUSD chart image, it can be seen that the average daily volatility is 600-700 points.
Based on the data obtained by analyzing the chart of the instrument, we consider the variable " Step for average":
For high-risk trading, we take a small step between orders, then many orders will open. Divide the daily average volatility by 4. (650/4 = 163 " Step for average" ).
In order to use average risks, we divide the average daily volatility by 3 (650/3 = 217 " Step for average" ).
For low risks, we divide this indicator by 2 (650/2 = 325 " Step for average" ).
Before starting the adviser, it is recommended to check the available settings in the strategy tester. For testing, you should run the EA in the "Visualization" mode.
If the "Visualization" checkbox is not visible, then try to stretch the window in height, at a low height the checkbox is hidden.
Choose the volume of the tested deposit similar to the available one.
The adviser should be started in power-on mode during a drawdown. To do this, set the variable " Type of the launch " = " Start at drawdown in money " in the input settings. The variable " Drawdown in money to start " will indicate which drawdown should be received in the deposit currency from processed orders in order for the EA to begin recovery.
Opening orders for their subsequent recovery:
It is advisable to use a similar volume or slightly larger than in a real situation.
Additional panel for testing
When starting the strategy tester, the EA opens an additional panel with which you can open orders. The EA will restore orders opened using this panel of the order, which will allow testing various situations. If necessary, the start of recovery can be paused using the buttons on the main panel. After open the volume necessary for testing and take a break.
This way you can test your settings and see if they are appropriate for your situation and your risk strategy.
Testing if "Start at drawdown in money" mode is selected in the "Type of the launch" variable
Open the required order volume using the panel. When the loss from these orders reaches the one specified in the "Drawdown in money to start" variable, the EA will start recovery.
Preparing a deposit for the launch of the adviser
About deposit replenishment:
During testing, the relevance of replenishing the balance may be revealed. The fact that in order to fully recover a loss requires the availability of free funds not only for opening averaging orders, but also for locking a position, it should be borne in mind. In some cases, replenishment of the balance may be relevant, in some - not.
About manual closing of drawdown part:
In some cases, before launching the adviser, an understanding of the relevance of manually closing part of orders may arise. In such cases, it is advisable to close part of the excess orders, for example, to reduce the difference between BUY and SELL orders, which will reduce the opening volume of a locking order.
About other advisors:
If the terminal has running advisers that may conflict with "AW Recovery EA", then it is better to disable them in advance. If you have other advisers, it is better not to use locking.
If the orders have such handlers as trailing stop enabled, then it is better to disable them as well.
Launch and port to VPS
During initialization, the adviser can lock the position.
If the adviser is launched in several places at the same time, you should limit its ability to trade in one of the terminals.
The possibility of duplication of locking orders, as well as averaging orders, can lead to an increase in the load on the deposit. It should be borne in mind the obligatory work of "AW Recovery EA" from only one place at a time.
When transferring the adviser to VPS, it should be noted that the settings are fixed only through the input settings menu. If some settings were applied in the input settings, and others were applied in the expert panel, the trading terminal will transfer data from the input settings to VPS without taking into account changes from the expert panel.
Upon exiting the standby mode, the adviser performs a certain amount of actions that are aimed at fixing the position in the current position and preparing it for further processing. Here is a list of these actions:
For example, an Expert Advisor using TakeProfit and StopLoss was included. During its work, " AW Recovery EA" ensures that the processed orders do not have external StopLoss and TakeProfit ; upon detection, they will be deleted. If on each tick another adviser will install them, and " AW Recovery EA" If they are deleted, then there is a possibility of limiting the operation of the account by the broker. Brokers monitor the maximum number of operations at a time and an abnormal excess of the allowable limit can cause the account to be limited for a couple of hours or your manager’s call from a brokerage company.
Disabling other advisors
When can I use AW Recovery with another advisor:
If locking is disabled, you can use AW Recovery together with other advisers. If the advisers have different MagicNumber or AW Recovery does not restore orders processed by other advisers, you can also use them together.
When you cannot use AW Recovery together with another adviser:
In cases when permanent auto-locking is enabled, it is necessary to disable other expert advisors, and it is also necessary to ensure that AW Recovery only works from one place at a time.
How AW Recovery disables other advisors:
Three options are available in the Disable another EAs at launch variable:
Full list of input settings with comments
No posts found