Download Trailing Take Profit for MetaTrader 5

Trailing Take Profit

Trailing Take Profit

This tool for MetaTrader 5 is specifically engineered to streamline your trading operations. This Expert Advisor serves as automated trading software. It is utilized to monitor financial markets and execute trades based on predefined algorithmic rules, enabling precise position management without the need for constant manual oversight.

MT5 expert Pack 📂

How to Setup and Use Trailing Take Profit

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

Description & Settings


This non-trading Expert Advisor is designed for the simple trailing of take profit orders of open positions.
The EA only works on hedging accounts.
Principle of operation: when a new position is opened, the EA checks its take profit order. If there is none, the EA sets a take profit order at the size specified in the EA parameters. Then the EA starts to move the position take profit, if the price moves farther than the distance specified in the settings. Actions are similar to a simple stop loss trailing function.
You can set position type - any/buy/sell, the position symbol (any or the specified one), the magic number (any or the specified one) or the position ticket (any or the specified one). It is also possible to set the take profit trailing in the losing area - if this mode is not selected, take profit will not be trailed in the losing area, and will stop at the breakeven distance from the position open price. The breakeven value can be specified in the EA parameters.
To check the trailing operation in all modes, the EA can open positions on each new bar. This mode can only be applied in the Strategy Tester.
The EA has nine input parameters:

Take Profit size in points
- take profit value in points. It is also used for TrailingTake as a distance between the stop order and the price;

Positions type
- the type of positions to trail;

Positions symbol ("" - any symbol)
- the symbol of the positions to trail (an empty value means all symbols);

Positions magic number (0 - any magic)
- the magic number of positions to trail;

Position ticket (0 - all tickets)
- the ticket of positions to trail;

Trailing step
- if the price moves away from the position take profit at a distance greater than the step, take profit will be modified so as to have the size specified in
Take Profit size in points
;

Trailing in the unprofitable zone
- enable or disable trailing in the losing area. If disabled, take profit will not be set in the loss zone;

Breakeven in points
- breakeven value. A losing area starts below this value;

Spread multiplier
- spread multiplier for calculating a correct distance for stop orders. For Stop Loss and Take Profit orders (as well as pending orders), there is a minimum allowed distance for placing such orders -
StopLevel
. I.e. Stop Loss and Take Profit (as well as pending orders) cannot be placed closer than this distance to the price. If
StopLevel
is zero, it does not mean its absence, it only means that
StopLevel
is floating. In this case, the minimum distance is usually equal to spread*, but sometimes even the double spread is not enough. So, this parameter allows specifying a custom multiplier for the spread used to calculate the minimum distance for placing stop orders.
Fig.1 Testing take profit trailing of a Buy position. Take profit is equal to 400 points, trailing step = 10, trailing is only applied in the profitable zone.

You May Also Like

RobotFX does not own any of the code provided on this platform. All tools are freely available on the internet; we simply index and re-offer them for download. We are not responsible for any financial losses that may occur. Trading responsibilities rely solely on the traders downloading and using the displayed Expert Advisors, indicators, and scripts. These tools are provided for educational purposes only and may require modification or optimization to align with a trader's specific strategy or needs.
© ROBOTFX - Best MetaTrader Expert Advisors & Indicators