Fractals Trailing Stop (Fractals-based stop-loss trailing EA)
Utility that moves the stop-loss of open positions to a recent Bill Williams Fractal level
Has alerts
A tool that watches price and closes positions itself at a stop-loss or take-profit distance, without sending the levels to the server
Open source, Apache License 2.0, by EarnForex.com. See licences
First release on this site.
Attach the EA to a chart and turn on Algo Trading. EnableMonitoringParam defaults to false, so the EA watches nothing until you press the button on the chart panel or set it to true.
SLDistance and TPDistance are in points, 500 each by default. Slippage is the accepted slippage when closing. With AsyncMode on, the EA does not retry a failed close request. Before using it on a live account, check the filters so you know exactly which positions the EA will pick up.
The terminal and the EA must stay running and connected to the internet. If the computer shuts down or the connection drops, no stop-loss protects the positions, so run it on a VPS. DisplayLines shows the SL/TP lines on the chart, with colour and label font options.
| Name | Default | Description |
|---|---|---|
| BuyRefPrice | PRICE_BID | Price compared against the SL/TP levels of buy positions (Bid or Ask). |
| SellRefPrice | PRICE_ASK | Price compared against the SL/TP levels of sell positions (Bid or Ask). |
| SLDistance | 500 | Stop-loss distance from the open price in points. 0 = not used. |
| TPDistance | 500 | Take-profit distance from the open price in points. 0 = not used. |
| Slippage | 10 | Maximum accepted slippage when closing, in points. |
| AsyncMode | false | true = send close requests asynchronously, without waiting for the result or retrying. |
| OnlyCurrentSymbol | true | true = manage only positions on the chart's symbol. false = include positions on every symbol in the account. |
| OnlyType | All | Position type to manage: all, buy only or sell only. |
| UseMagic | false | true = manage only positions whose Magic Number matches MagicNumber. |
| MagicNumber | 0 | Magic Number used as a filter (when UseMagic is true). 0 is what manually opened positions carry. |
| UseComment | false | true = manage only positions whose comment contains CommentFilter. |
| CommentFilter | Text that must appear in the position's comment (when UseComment is true). | |
| EnableMonitoringParam | false | true = start monitoring as soon as the EA starts. false = wait for the panel button. |
| EnableNotify | false | true = turn the notification feature on. |
| SendAlert | true | true = show a popup alert in the terminal. |
| SendApp | false | true = send a notification to the MetaTrader mobile app (set up your MetaQuotes ID first). |
| SendEmail | false | true = send an email (set up SMTP in the terminal first). |
| ShowPanel | true | true = show the control panel on the chart, with a button to switch the EA on and off. |
| ExpertName | MQLTA-GTPSL | Prefix for the names of the panel objects on the chart. |
| Xoff | 20 | Horizontal distance of the panel from the chart corner. |
| Yoff | 20 | Vertical distance of the panel from the chart corner. |
| ChartCorner | CORNER_LEFT_UPPER | Chart corner where the panel is placed. |
| FontSize | 10 | Font size of the panel. |
| DisplayLines | true | true = show the SL and TP lines of each position on the chart. |
| TPColor | clrGreen | Colour of the TP lines. |
| SLColor | clrSalmon | Colour of the SL lines. |
| LabelFont | Tahoma | Font of the line labels. |
| LabelSize | 8 | Font size of the line labels. |
Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.
Ghost SL & TP does not place a stop-loss or take-profit on the broker's server. It watches the price in the terminal and closes the position itself when price reaches SLDistance or TPDistance from the open price (in points). A distance of 0 turns off that side.
You can choose whether to compare Bid or Ask for buy and sell positions separately (by default buys use Bid and sells use Ask). There is an async mode that sends the close request without waiting for the result. SL and TP can be shown as horizontal lines on the chart.
Filters decide which positions are watched by symbol, buy or sell type, Magic Number and comment. There is a panel with a button to start or stop monitoring, and notifications when a position is closed.
Banners from the Exness partner programme

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.
Utility that moves the stop-loss of open positions to a recent Bill Williams Fractal level
Has alerts
A tool that trails the stop-loss of open positions along a moving average, with an on/off button on the chart
Has alerts
A tool that moves the stop-loss to the entry price once profit reaches a set distance, with optional partial close
Has alerts