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 moves the stop-loss to the entry price once profit reaches a set distance, with optional partial close
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 the EA does nothing until you press the button on the chart panel or set it to true.
DistanceFromOpen is in points (500 points equal 50 pips on a 5-digit symbol), and AdditionalProfit is in points too. PartialClosePercentage set to 0 turns the partial close off. The list of positions already partially closed is kept only in the EA's memory, so it is lost if the EA or the terminal restarts. Before using it on a live account, check the filters so you know exactly which positions the EA will pick up.
ShowBELines shows the trigger price lines, with colour, style, width and label font size options. Notifications work when EnableNotify is on and a channel is chosen.
| Name | Default | Description |
|---|---|---|
| DistanceFromOpen | 500 | Profit distance in points from the open price that triggers moving the stop-loss. |
| AdditionalProfit | 0 | Extra profit in points locked above the open price when the stop-loss moves. |
| AdjustForSwapsCommission | false | true = include swap and commission in the breakeven level. |
| PartialClosePercentage | 0 | Percentage of the position to close before moving the stop-loss (1-99). 0 = disabled. |
| 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 working as soon as the EA starts. false = wait for the panel button. |
| ShowBELines | false | true = show the breakeven trigger price lines on the chart. |
| BELineColor | clrGold | Colour of the trigger lines. |
| BELineStyle | STYLE_DASH | Line style of the trigger lines. |
| BELineWidth | 1 | Width of the trigger lines (1-5). |
| BELabelFontSize | 8 | Font size of the labels on the trigger lines. |
| EnableNotify | false | true = turn the notification feature on. |
| SendAlert | false | 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. |
| IndicatorName | MQLTA-MSBE | 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.
Move Stop to Breakeven moves the stop-loss of open positions to the entry price (plus extra profit set by AdditionalProfit, if any) once price has moved more than DistanceFromOpen points in profit. It moves only when the new stop-loss is better than the current one and not closer to the price than the broker's minimum stop distance. It opens no new trades and does not touch take-profit.
AdjustForSwapsCommission adds the position's swap and commission into the breakeven level. PartialClosePercentage closes that percentage of the position (1-99) before moving the stop-loss, once per position. The trigger price can be shown as lines on the chart.
Filters decide which positions are managed by symbol, buy or sell type, Magic Number and comment. There is a panel with an on/off button on the chart, 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 trails the stop-loss of open positions along a moving average, with an on/off button on the chart
Has alerts