The Expert Advisor tries to take losing positions to profit. It locks positions.
It is important to configure minimum profit (the "Profit percentage" parameter) appropriate to your deposit and position volume ("Starting lot" and "Secondary lots" parameters).
input double NeedProfit = 0.001; // Profit percentage input double StartLot = 0.5; // Starting lot input double StepLot = 0.2; // Secondary lots input ushort InpStep = 5; // Steps between Locking input bool InpHelpMe = true; // Help me
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/19177
A trading system based on the Alligator indicator. If possible, the EA moves positions to breakeven and then enables trailing stop.HarVesteR
The Expert Advisor uses the following indicators: Moving Average Convergence/Divergence, MACD; Moving Average, MA; Average Directional Movement Index, ADX. It closes half of the profitable position.