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 trails the stop-loss of open positions along a moving average, with an on/off button on the chart
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. EnableTrailingParam defaults to false, so at start the EA moves nothing. Press the button on the chart panel to start trailing, or set EnableTrailingParam to true before use.
MAPeriod, MAMethod and MAAppliedPrice define the MA, and Shift picks which bar's MA value to use (0 = the current bar, whose value can change during the bar). Before using it on a live account, check OnlyCurrentSymbol, OnlyType, UseMagic and UseComment so you know exactly which positions the EA will pick up.
Notifications work when EnableNotify is on and one of SendAlert, SendApp or SendEmail is chosen. The source includes the bundled MQLTA Utils.mqh file at compile time. Press Esc on the chart to remove the EA.
| Name | Default | Description |
|---|---|---|
| MAPeriod | 25 | Moving average period. |
| MAShift | 0 | Shift of the MA line (number of bars). |
| MAMethod | MODE_SMA | MA calculation method (SMA, EMA, SMMA, LWMA). |
| MAAppliedPrice | PRICE_CLOSE | Price used for the MA (e.g. Close). |
| Shift | 0 | Which bar's MA value to use (0 = the current bar). |
| ProfitPoints | 0 | Start trailing when the position has this many points of profit. 0 = ignore profit. |
| 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). | |
| EnableTrailingParam | false | true = start trailing 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-FRTS | 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. |
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.
MA Trailing Stop moves the stop-loss of open positions to the value of a moving average. It opens no new trades and does not touch take-profit. It uses the MA you set (period, method, applied price and shift) on the chart's timeframe, and moves the stop-loss only in the direction that locks in more profit: up for buys, down for sells.
The MA value must be at least the broker's minimum stop distance away from the current price, otherwise the stop is not moved. Set ProfitPoints to start trailing only once a position has that many points of profit.
Filters decide which positions are managed: only the chart's symbol, buy or sell type, Magic Number and comment text. There is a panel on the chart with a button to start or stop trailing, and notifications when a stop-loss is moved.
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 moves the stop-loss to the entry price once profit reaches a set distance, with optional partial close
Has alerts