BreakEven&TrailingStop – library MetaTrader 4

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.

📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks