the consultant closes only the positions in which the profit in the currency of the deposit has exceeded a fixed value. Which positions to close, purchases or sales, and also on which trading instruments, can be configured using the external advisor parameters:
In Expert Advisor, you can configure the following settings:
NumberAccount = 0 - Number of the trading account. If 0 (zero), the expert advisor's job is allowed on any trading account.
• symbol = "" - A trading tool. The following values are allowed: "" - any trading instrument, "0" - only the current instrument and any value from the market analysis (EURUSD, GBPUSD, etc.).
• Operation = -1 - Trading operation. Valid values are: -1 - any exchange operation, 0 - OP_BUY, 1 - OP_SELL.
• Profit = 50 - Profit in the currency of the deposit.
• MagicNumber = 0 - Item ID.
• ShowComment = True - Shows the values of the external parameters of the expert advisor in the comment.