Skip to content
Forex Indicator System Thailand
Back to marketplace
UtilityUtility

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

Fractals Trailing Stop (Fractals-based stop-loss trailing EA) on an MT5 chart
Example on an MT5 chart

Download this EA for free

Download right away. Nothing to fill in.

Version
1.04
Published
11/21/2026
File size
66 KB

Open source, Apache License 2.0, by EarnForex.com. See licences

Version history

  1. 1.04Current11/21/2026 · 66 KB

    First release on this site.

How to use

Drag the EA onto a chart and enable Algo Trading. Trailing is off by default (EnableTrailingParam is false): click the button on the chart panel to turn it on, or set the input to true from the start. Fractals are read on the timeframe of the chart the EA is on.

Set the filters to match the positions you want before turning trailing on. By default it adjusts every position of the chart symbol, whether opened manually or by another EA. If no Fractal is found in the scanned bars the EA changes nothing and writes a message to the log.

Parameters

NameDefaultDescription
BarsToScan10Number of recent bars scanned for a Fractal (10 means the last ten bars).
FractalToUse1Which Fractal to use, counting back from the latest (1 is the first one found).
ProfitPoints0Minimum profit in points before trailing starts. 0 ignores profit.
OnlyCurrentSymboltrueAdjust only positions of the chart symbol. If off, positions of every symbol in the account are adjusted.
OnlyTypeAllWhich position type to adjust: all, buy only or sell only.
UseMagicfalseFilter positions by magic number. If on, only positions matching MagicNumber are adjusted.
MagicNumber0Magic number used for filtering (applies when UseMagic is on). 0 matches manually opened positions.
UseCommentfalseFilter positions by comment. If on, only positions whose comment contains CommentFilter are adjusted.
CommentFilterText that must appear in the position comment (applies when UseComment is on).
EnableTrailingParamfalseEnable the trailing stop from the start. Off by default; you have to click the button on the chart to turn it on.
EnableNotifyfalseTurn on notifications when the EA moves a stop-loss. Off by default. SendAlert, SendApp and SendEmail only apply when this is on.
SendAlerttrueNotify with an MT5 popup alert.
SendAppfalseSend a push notification to the MT5 mobile app (MetaQuotes ID must be set up first).
SendEmailfalseSend an email notification (email must be set up in MT5 first).
ShowPaneltrueShow the control panel on the chart (button to turn trailing on or off).
ExpertNameMQLTA-FRTSEA name used to name chart objects and in notification text.
Xoff20Horizontal offset of the control panel, in pixels.
Yoff20Vertical offset of the control panel, in pixels.

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.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Experts folder.
  4. Right-click Expert Advisors in the Navigator window and choose Refresh (or restart MT5).
  5. Drag it onto a chart, adjust the Inputs, turn on Allow Algo Trading, then click OK.

Description

This EA does not open new trades. It moves the stop-loss of positions that are already open to a recent Fractal level: buy positions use the lower Fractal and sell positions use the upper Fractal, on the timeframe of the chart the EA is attached to.

You choose how many bars to scan (BarsToScan) and which Fractal to use (FractalToUse). The stop-loss only moves in the favourable direction, and it is not set when the Fractal level is closer to price than the broker stop level allows. The take-profit is left untouched.

A button on the chart turns trailing on and off, and positions can be filtered by symbol, type, magic number and comment.

Banners from the Exness partner programme

Exness banner: gold spreads*

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.