Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | Locker

MetaTrader Experts, Indicators, Scripts and Libraries

The author of the idea: Vitaliy, the mq5 code author: barabashkakvn.

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
19177

Best MetaTrader Indicators + Profitable Expert Advisors