Ghost SL & TP is a free expert advisor (EA) for MetaTrader platform (MT4 and MT5). You can hide your stop-loss and take-profit with this expert advisor. Risk management through stop-loss and take-profit is very important to be profitable. Although stop-loss hunting is largely a myth — no reputable broker would cook their charts to get your stop-loss — there are legitimate reasons for traders to avoid attaching explicit stop-loss or take-profit to their trades. Be it a preference for market orders to stop orders or a need to hide the actual levels on trade trackers. One way to achieve this is to use a hidden stop-loss and take-profit EA for MetaTrader. Below, you will learn how to keep your stop and target hidden.
Hidden Stop-Loss and Take-Profit EA
There are two ways to avoid revealing your stop-loss (or your take-profit):
- Have your stop-loss in mind and trigger it manually when the price hits it.
- Use an expert advisor that monitors the price and triggers the closure of the order when the hidden stop-loss is hit.
Ghost SL and TP EA is an expert advisor, which can help you set stop-loss and take-profit values for your positions while keeping them secret from everyone else.
The stop-loss and take-profit are not saved in the MetaTrader order information but are only visible to the EA.
This way, neither broker nor any other observers will be aware of the stop-loss and take-profit levels used by you until they are triggered.
You can configure this expert advisor using quite a few options. At the same time, it is quite easy-to-use.
Ghost SL and TP EA features
Ghost stop-loss and take-profit EA has several important features that will help you achieve your trading goals.
Hidden stop-loss and take-profit
The stop-loss and take-profit values that you set via its input parameters are not transferred to your broker's server.
You define the stop-loss and take-profit as a distance (in points) from the trade's open price.
Filtering options
You can select to apply the stop-loss and take-profit by magic number, so that they will be applied only to the matching positions. Additionally, you can filter positions by their commentary and by trade direction.
This allows to have all your positions managed by the same rules. You can even choose to manage trades in other symbols, but you have to be careful as the same SL/TP distance may not be appropriate for all trading instruments.
Auto close
When the stop-loss or take-profit is hit, the EA will close the position automatically.
Notifications
You can enable notifications to get alerted via email, mobile notification, or a platform popup when a position is closed.
Warning!
This expert advisor won't replace existing stop-loss and take-profit levels on trades, so if you have some SL and TP values already set on your positions, you might want to remove them before using this expert advisor.
Download Ghost SL & TP EA for MT4
You can download the Ghost SL & TP EA for MT4 using the link below and install it by following the presented instructions.
➥ MQLTA MT4 Ghost Take Profit And Stop LossThe installation is very easy to perform; the same is the use. Once you run the expert advisor, you can set all the necessary input parameters.
MT4 Ghost SL & TP EA installation
To install the Ghost SL & TP EA for MT4, please follow the instructions below:
- Download the expert advisor archive file.
- Open the MetaTrader 4 data folder (via File→Open Data Folder).
- Open the MQL4 Folder.
- Copy all the folders from the archive directly to the MQL4 folder.
- Restart MetaTrader 4 or refresh the expert advisors list by right-clicking the Navigator subwindow of the platform and choosing Refresh.
Or you can read a more detailed instruction on how to perform the installation.
Please make sure you tick the Allow live trading checkbox on the Common tab when attaching the EA:
You should also tick the Allow automated trading checkbox in the MT4 platform's menu Tools→Options→Expert Advisors. Otherwise, it won't be able to modify orders:
Download Ghost SL & TP EA for MT5
The MT5 version of Ghost SL & TP EA is available for download here:
➥ MQLTA MT5 Ghost Take Profit And Stop LossMT5 Ghost SL & TP EA installation
To install the Ghost SL & TP EA for MT5, please follow the instructions below:
- Download the expert advisor archive file.
- Open the MetaTrader 5 data folder (via File→Open Data Folder).
- Open the MQL5 Folder.
- Copy all the folders from the archive directly to the MQL5 folder.
- Restart MetaTrader 5 or refresh the expert advisors list by right-clicking the Navigator subwindow of the platform and choosing Refresh.
Please make sure you enable Allow Algo Trading on the Common tab when attaching the EA:
It is also necessary to tick the Allow algorithmic trading checkbox in the MT5 platform's menu Tools→Options→Expert Advisors:
Input parameters
The Ghost Take Profit And Stop Loss expert advisor has multiple input parameters that you can change based on your own preferences:
- Reference price for Buy orders: either Bid or Ask to use when adding/subtracting SL/TP distance for Buy orders.
- Reference price for Sell orders: either Ask or Bid to use when subtracting/adding SL/TP distance for Sell orders.
- Slippage: slippage tolerance for SL/TP execution.
- Async mode (MT5 only): can be enabled for a faster but not less guaranteed order closing when there are many positions to close at a time.
- Apply to current symbol only: if true, only trades in the current chart's symbol are concerned. Otherwise, the EA will attempt to monitor trades in all symbols. You should be very careful when setting this parameter to false as different symbols normally require different SL/TP values.
- Apply to: select which types of orders to work with.
- Filter by magic number: if true, the EA will monitor only the orders with a specific magic number.
- Magic number: specify the magic number in case the above is true.
- Filter by comment: if true, the EA will monitor only the orders with a specific comment.
- Comment: specify the comment if the above is true.
- Enable Monitoring: if true, the EA will start in active mode and will be monitoring (and closing if necessary) your trades immediately.
- Enable notifications feature: if true, the EA will send notifications upon closing a trade.
- Send alert notifications: if true, the EA will issue native on-screen alerts.
- Send notifications to mobile: if true, the EA will send push-notifications to your mobile device.
- Send notifications via email: if true, the EA will send emails when it closes a position.
- Show graphical panel: if true, a graphical panel will appear on the chart to control the expert advisor.
- Display lines: if true, the EA will display its ghost SL and TP lines on the chart. Works only for trades in the current chart's symbol.
Discussion
Do you have any suggestions or questions regarding this expert advisor? You can always discuss Ghost SL & TP EA with other traders and coders on our forum.
Changelog
1.04 — 2025-06-25
- Added an MT5 version of this expert advisor.
- Added optional lines that display the current price values of the hidden stop-loss and take-profit levels.
- Added panel scaling for Hi-DPI screens.
- Added an input parameter to select a chart corner for the panel to appear in.
- Added an option to enable monitoring of trades in other symbols.
- Changed how the disabled autotrading is detected and reported.
- Refactored the source code and improved its performance.