2 - Switching Autotrading OFF and ON automatically
Expert Advisors always run only when autotrading is switched on in MT4. Without switching on autotrading, no automatic actions or processes will take place in an account.
As a trader, you can take advantage of this functionality by turning off autotrading when the risk in the account increases and/or when you feel that the risk is getting too high.
Of course, even if autotrading is turned off, all open positions remain in the market and if the price continues to move against you in the wrong direction, the drawdown will still continue to increase.
However, many trading bots always work with the time frames of the charts when opening new positions and open a new, additional position every minute, every 5 minutes, or every 15 minutes or every hour, for example, in order to drive trading and be able to make profits. If the number of maximum open parallel positions is not limited, this will created a lot of risk in certain market situations.
This risk is turned off when autotrading is turned off, because the trading bot can then no longer open a new position. This prevents the risk from being increased further and further by adding new positions.
As a rule, depending on the traded instrument, the market turns again at some point, the price often returns to the former value and trading can then be continued without losses.
Since we know all trading data (equity, balance and drawdown) in the Profit-Management bot as described before and transmit it to the monitoring, we can now of course use this data to influence the position of the autotrading.
The Profit-Management EA interprets the drawdown value as an absolute dollar value, for example 113 USD, but also as a percentage, relative value, related to the actual account size (balance), for example 5%, if the drawdown is at 125 USD and the corresponding account has 2,500 USD in balance.
This allows the trader to configure different strategies. Fixed values are set, for example, if you want all accounts to behave in the same way, regardless of how much money is in the accounts.
However, many people always think in terms of percentages in trading, so of course it is also possible to say that autotrading should be switched OFF when a certain value of my account size has been reached as risk, for example 3%. In an account of $2,000 size this would then happen at a drawdown of $60. In a $5,000 account, not until $150.
This trigger now exists twice in the current Profit-Management-Bot version. Once the autotrading is turned off when the set risk value is reached, regardless of whether a fixed dollar value, or a percentage account value is reached.
Likewise, there is a second trigger value for turning autotrading automatically back on again, when the risk has decreased due to changing rates and falls below the set trigger value.
Then the control bot switches the autotrading automatically on again, new positions are opened again or existing positions are sold.
It is important to understand that this alone can set different strategy aspects. For example, you can switch off autotrading at 5%, but only switch it on again at 3%. Thus one ensures that the market has really calmed down somewhat, before the Trading EA is to resume its trading.
Of course you can also set the values absolutely equal, for example to 100 USD. This gives the trading bot a working capital of 100 dollars with which it should produce results in the market. When the risk rises above 100 dollars, autotrading is turned off, when the drawdown falls below 100 dollars, it is turned on again.
This can cause the system or account to "toggle" around this point for hours, i.e. autotrading automatically OFF again and again, and then automatically ON again shortly after. This keeps the risk in balance.
Very important to understand here is that the "Autotrading OFF" switch is the main switch of the system. When the system is set to Autotrading OFF, no automatic functionalities are running at all.
So if you want to automate or have automated something else continuously, it will not work that way, because Autotrading OFF means OFF FOR EVERYTHING.
Overall, however, in our opinion, it is a very interesting control option, because it allows you to already significantly limit the risk in a first stage, without starting a heding process, or especially without selling one or more positions at a loss, in order to reduce the risk in the account.
This also gives the possibility to trade longer periods without direct observation, because the system reliably switches off at a predefined value and also closes again. So as a trader, I don't have to worry so much about the trading bot running amok in a trend breakout, opening one position after another and causing lasting damage to the account.
Last note: Of course, Autotrading OFF does not replace setting stops. In our opinion, this belongs in a second, further "line of defense" behind turning off autotrading if you are using it.