Termos de Referência
I'm looking for an EA to develop that can achieve the following.
Expert Advisor will help to manage an account where another EA using Martingale has created buy/sell trades in a direction that goes against the trend and, as a result, the cumulative total value of trades goes into a negative profit, while the martingale keep adding more entries and you can blow the bill. Your EA that you create will run on a second chart, within the same MT5 instance, and for this description, we will call it Manager.
The Manager should accept the input parameters and, once satisfied, will start a counter-hedging operation in the opposite direction to each operation opened against the trend in a percentage to be established, so to speak anti-martingale operations, essentially ez should lighten the martingale positions with partial positions to avoid blowing up the account in the short term, the ea taking into account all the operations closes them in positive.
The Manager will then use the logic of opening positions against the martingale number to be determined, so that the negative profit is not short in time and can move towards a certain break-even or profit amount. The Manager will release the counter trade based on a series of indicators that need to be read from a text file to identify trends that indicate whether the market has changed direction. This text file is created by a separate app running on Windows, so you don't need to encode it. The Manager will enter counter trades at each martingale opening, in a percentage to be established and will monitor the martingale trades again, continuously, the Manager will issue counter trades, until the transaction is closed. breakeven or profitable.
The Manager should redraw his TP/BE line on the chart every time the counter trade is released. The manager should also calculate the value of the spread for the counter trade to be included in the breakeven or take profit.
Only once the trades are closed, the Manager should come into operation from the 7/9 martingale.
The Manager should also allow me to manually activate the manager, regardless of whether the Min, Max, or Increment values are reached.
Please read the requirements and fully understand what I am looking for.