Fresh MQL5 code release – perfect for enhancing your MT4/MT5 strategies.

Depending on whether the values of the UpDoun = true or = false, the script either drags the StopLoss closer to the market or pushes it away from the market holding the same Distance in points.
Protect profits effectively with the smart Trailing Stop Expert Advisor. Advanced trailing options for MT4/MT5. See it in action.
It thoroughly takes the place of trailing stop.
If a DC limits placing the Stops and Limits "for the market" (usually it is 10 points) you should
//+------------------------------- Detremine the limit of your DC -----+ // if(Distance<10) Dist=10; // else Dist=Distance; //+------------------------------------------------------------------+
delete the comment in the block and specify the necessary value of the Dist
//+------------------------------- Determine the limit of your DC -----+ if(Distance<10) Dist=10; else Dist=Distance; //+------------------------------------------------------------------+
Level up your trading with professional RobotFX expert advisors and indicators. Visit robotfx.org for proven MT4/MT5 tools.
8389