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

TrailingTakeProfit - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

TrailingTakeProfit - expert for MetaTrader 5

This non-trading Expert Advisor is designed for simply tracking take-profit orders on open positions.

How it works: When opening a new position, the EA checks its take-profit order. If not, the EA sets a take profit order with the size specified in the EA parameters. Then, if the price moves beyond the distance specified in the settings, the EA starts moving the take profit position. Operation is similar to the simple stop trailing function.

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). You can also set the take profit to track in the loss area - if you do not select this mode, the take profit will not track in the loss area, and the stop loss will be at the breakeven distance from the opening price. The breakeven value can be specified in the EA parameters.

This EA has nine input parameters:

TrailingTakeProfit - expert for MetaTrader 5

Figure 1 Testing the trailing take profit of a long position. Take Profit is equal to 400 pips, Trailing Step = 10, Trailing only applies to the profit zone.


Attachment download

📎 trailingtakeprofit.mq5 (23.94 KB)

Source: MQL5 #19930

Verification code Refresh