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

TrailingStopAndTake - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

TrailingStopAndTake - expert for MetaTrader 5

This non-trading Expert Advisor is designed for simple tracking of stop-loss and take-profit orders for open positions.

How it works: When opening a new position, the EA checks its stop loss order. If a stop order is not found, the EA sets one at the distance specified in the EA parameters. Then, if the price moves beyond the distance specified in the settings, the EA starts moving the take profit and/or stop loss position.

You can set the position type - any/buy/sell, position symbol (any or a specified one), magic number (any or a specified one) or warehouse order (any or a specified one). It is also possible to set tracking in the loss area - if this mode is not selected, the stop order will not track in the loss area. The breakeven value can be specified in the EA parameters.

This EA has 12 input parameters:

TrailingStopAndTake - expert for MetaTrader 5

Figure 1 Initial stop loss = 600, initial take profit = 1200, TrailingStop = 300, take profit tracking is disabled, and loss area tracking is disabled.


Attachment download

📎trailingstopandtake.mq5 (38.19 KB)

Source: MQL5 #19963

Verification code Refresh