![]()
I have to say that something went wrong in this version. It was written as an advisor, but MQL defined it as a utility. So it doesn't work as expected here. If anyone needs this stop loss either to accompany manual trading or to integrate it into an advisor, write in private messages .
A smart trailing stop solves the problem of loss of profit, when the price changes direction before a take profit, and instead of profit, the trader often receives a loss.
This trailing stop "locks" the price when approaching the take profit and now the profit becomes inevitable.
Settings for the Pro version
Number of pips to take profit when trailing stop is enabled.
Indentation from the extremum for setting stop loss
Indicator parameters for further modification of the stop loss