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
Utility EA that sets a fixed stop-loss and take-profit on positions and pending orders matching your filters.
Open source, Apache License 2.0, by EarnForex.com. See licences
First release on this site.
Attach it to a chart, enable Algo Trading, set StopLoss/TakeProfit and their types (points or price level), then switch the EA on from the chart panel or set InputEnableExpert to true.
Set CurrentSymbolOnly, OrderTypeFilter, OnlyMagicNumber and OnlyWithComment so only the orders you intend are covered. To change an SL/TP that already exists, turn on OverwriteExistingSL or OverwriteExistingTP.
| Name | Default | Description |
|---|---|---|
| StopLoss | 200 | Stop-loss value; meaning depends on StopLossType: points from the open or current price, or an absolute price level. |
| StopLossType | SL_TYPE_POINTS | SL_TYPE_POINTS = in points, SL_TYPE_LEVEL = an absolute price, SL_TYPE_UNCHANGED = leave the SL as it is. |
| OverwriteExistingSL | false | false = keep an SL that already exists; true = overwrite it. |
| TakeProfit | 400 | Take-profit value; meaning depends on TakeProfitType: points, an absolute price, or a percentage of the SL distance. |
| TakeProfitType | TP_TYPE_POINTS | TP_TYPE_POINTS = in points, TP_TYPE_LEVEL = an absolute price, TP_TYPE_PERCENTAGE = percent of the SL distance, TP_TYPE_UNCHANGED = leave the TP as it is. |
| OverwriteExistingTP | false | false = keep a TP that already exists; true = overwrite it. |
| CurrentSymbolOnly | true | true = only the chart's symbol; false = every symbol in the account. |
| OrderTypeFilter | ALL_ORDERS | Which side to modify: ALL_ORDERS, ONLY_BUY or ONLY_SELL. |
| OnlyMagicNumber | false | true = only modify items whose magic number equals MagicNumber. |
| MagicNumber | 0 | Magic number to filter by (used when OnlyMagicNumber is true). |
| OnlyWithComment | false | true = only modify items whose comment exactly equals MatchingComment. |
| MatchingComment | Comment text that must match (used when OnlyWithComment is true). | |
| ApplyToPending | false | true = also modify pending orders, not just open positions. |
| PriceType | PRICE_TYPE_OPEN | Reference price for point-based SL/TP: PRICE_TYPE_OPEN = the trade's open price, PRICE_TYPE_CURRENT = the current price. |
| ProcessOnceOnly | true | true = set SL/TP once per position or order. |
| CheckIntervalSeconds | 1 | How often to scan, in seconds. |
| InputEnableExpert | false | Start with the EA active. Default is false; switch it on from the chart panel or set it to true. |
| ShowPanel | true | Show the on-chart control panel. |
| ExpertName | SLTP | Name used as the prefix of the panel's chart objects. |
| Xoff | 20 | Horizontal offset of the panel, in pixels. |
| Yoff | 20 | Vertical offset of the panel, in pixels. |
| ChartCorner | CORNER_LEFT_UPPER | Chart corner where the panel is placed. |
| FontSize | 10 | Panel font size. |
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.
This EA never opens orders. It watches open positions (and pending orders if selected) and sets a stop-loss and take-profit from your values: a number of points from the open or current price, an absolute price level, for TP a percentage of the SL distance, or leave the existing value alone.
By default it does not overwrite an SL/TP that is already set, and it handles each position once. It can filter by symbol, Buy/Sell side, magic number and comment. A chart panel turns it on and off, and it scans at the interval you set.
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 watches price and closes positions itself at a stop-loss or take-profit distance, without sending the levels to the server
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