Libraries: SL_Breakeven
Alexei, the EA description is quite minimal, what in Russian do these two lines do?
input int LevelBreakeven = 70; // Distance to travel in breakeven input int StopLoss_Pips = 30; // Distance from stop loss to price open
The inbuilt translator translates as follows
input int LevelBreakeven = 70; // Distance to breakeven input int StopLoss_Pips = 30; // Distance from stop loss to opening price
It means that if the price passes 70 pips towards profit in 5-digit quotes, the Stop Loss will be placed at a distance of 30 pips from the opening price in order to compensate for slippage. Actually, the code of the library was placed. And the Expert Advisor is only to demonstrate the use of this library.
SL_Breakeven:
The function for moving an open position to a breakeven.
Author: Alexey Viktorov