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 4 Libraries | BreakEven&TrailingStop

MetaTrader Experts, Indicators, Scripts and Libraries

This library has two functions: BreakEven & TrailingStop.

BreakEven: this is a function to make StopLoss==OrderOpenPrice( ) when the condition is met: the difference between price and OrderOpenPrice is more than BreakEven (defined as an input variable).

TrailingStop: this is a function to make StopLoss moving after price by a definite number of points defined as an input variable (TrailingStop) and it's condition is the price moving in the right way and the difference between price and OrderOpenPrice is more than TrailingStop.

15301

Best MetaTrader Indicators + Profitable Expert Advisors