The Expert Advisor closes all positions when the total profit in the account is reached, expressed as a percentage of the current balance, or when the total loss in the account increases above the specified percentage relative to the account balance. In addition, this advisor can also delete all orders and close the terminal so that after fixing profit or loss, no other advisor can trade.
The following parameters can be configured in the EA:
PercentProfit = 1.00 - Percentage of profit from the current account balance.
PercentLoss = 5.00 - Percentage of loss from the current account balance.
DeleteOrders = False - Delete orders.
CloseTerminal = False - Close the terminal.
ShowComment = True - Show comment.
NumberAccount = 0 - Trading account number.
UseSound = False - Use sound signal.
NameFileSound = "expert.wav" - The name of the sound file.
Slippage = 3 - Price slippage.
NumberOfTry = 5 - The number of trade attempts after an error.
PauseAfterError = 75 - Pause after error in seconds.
The following parameters can be configured in the EA:
PercentProfit = 1.00 - Percentage of profit from the current account balance.
PercentLoss = 5.00 - Percentage of loss from the current account balance.
DeleteOrders = False - Delete orders.
CloseTerminal = False - Close the terminal.
ShowComment = True - Show comment.
NumberAccount = 0 - Trading account number.
UseSound = False - Use sound signal.
NameFileSound = "expert.wav" - The name of the sound file.
Slippage = 3 - Price slippage.
NumberOfTry = 5 - The number of trade attempts after an error.
PauseAfterError = 75 - Pause after error in seconds.