There are two main causes for automatic trade closures in MetaTrader 5:
1) A Stop-Out
2) A Stop Loss (SL) or a Take Profit (TP)
Stop Out: A stop out occurs when your account’s margin level reaches 20%, closing orders automatically to protect your balance. At FNmarkets, this is the default for all account types. When the margin level hits 20%, Stop Out will close the least profitable orders first until the margin level is above 20%.
Here is how your margin level is calculated:
Margin Level = (Equity/Margin) x 100%
Stop Loss (SL) and Take Profit (TP):
SL and TP are user-defined levels that automatically close trades when a specific loss or profit target is reached, ensuring effective risk management and profit-taking.
In MetaTrader 5, these levels can be set on new or existing orders, and trailing stops can adjust the SL dynamically as prices move, offering added flexibility and control.