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.
This function calculates your lot size depending on definite conditions explained in input variables.Doctor EA
This Expert Advisor depends on Moving Average 400 to indicate trend and "slope-direction-line" indicator, it will be attached with EA.