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 Script | Modify stop loss or take profit

MetaTrader Experts, Indicators, Scripts and Libraries

You can set SL and TP in pips from the actual price, or set SL and TP at specific price.

If you set SL or TP in pips it is preferred before price, so if you set pips and price together the script will set SL and TP according to the pip settings.

If you want to change only SL or only TP you set only SL or only TP in pip or price, other values with 0 will be ignored and not changed in opened orders.

10835

Best MetaTrader Indicators + Profitable Expert Advisors