Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Modify Stop Loss or Take Profit - MetaTrader 4 Script | Trading Script Download - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

You can set your stop loss and take profit in pips based on the actual price, or you can set your stop loss and take profit at a specific price.

If you set SL or TP in pips, this takes precedence over price, so if you set both pips and price, the script will set SL and TP based on the pip setting.

If you only want to change Stop Loss or Take Profit, you can set Stop Loss or Take Profit in points or prices, other values ​​with 0 will be ignored and will not be changed in the established order.



Attachment download

📎 Modify_BUY-SL-TP.mq4 (2.84 KB)

📎 Modify_SELL-SL-TP.mq4 (2.85 KB)

Source: MQL5 #10835

Modify stop loss or take profit - MetaTrader 4 script | Trading script download - MT4/MT5 resource usage and screening suggestions

Modify stop loss or take profit - MetaTrader 4 script | Trading script download - MT4/MT5 resources are trading script related resources. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.

Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Focus on spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based on titles or short-term profit descriptions.

Verification code Refresh