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 Scripts | StopLossMove | MetaTrader Tool

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

Image for StopLossMove


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

Best MetaTrader Indicators + Profitable Expert Advisors