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
EA that sends an order at a scheduled time, once or daily, with flexible SL/TP and lot sizing
Open source, Apache License 2.0, by EarnForex.com. See licences
First release on this site.
Install the EA in MetaTrader 5 and drag it onto the chart of the symbol you want to send the order on. Turn Algo Trading on and set OrderTime to a future time (the default is the compile time, which has already passed, so the EA reports a wrong input and does nothing), or turn on DailyMode and set DailyTime in HH:MM:SS format.
Choose OrderType, the entry (Entry, or EntryDistancePoints for pending orders), the SL/TP and the lot size. By default there is no SL/TP and MaxSpread is 3 points, which is very low; if the spread is higher the EA will not send the order and will not retry unless RetryUntilMaxSpread is on.
At the set time the EA makes a single attempt (up to Retries tries). If it fails it does not try again until the EA is reloaded or the next DailyMode cycle. Try it on a demo account first.
| Name | Default | Description |
|---|---|---|
| OrderTime | __DATETIME__ | Date and time at which the order is sent (in the selected time type). The source default is the compile time (__DATETIME__); you must set a future time yourself. |
| OrderType | BETTER_ORDER_TYPE_BUY | Order type: Buy, Sell, Buy Limit, Sell Limit, Buy Stop, Sell Stop, Buy Stop Limit or Sell Stop Limit. |
| Entry | 0 | Entry price (for pending orders). Leave at 0 when using EntryDistancePoints or for a market order. |
| EntryDistancePoints | 0 | Distance in points from the current price to the entry of a pending order (not supported for Stop Limit). |
| StopPrice | 0 | Stop price for Stop Limit orders. |
| SLType | SLTP_TYPE_PRICELEVEL | How the stop-loss is given: price level, distance in points from entry, ATR multiple, or number of spreads. |
| StopLoss | 0 | Stop-loss value according to SLType. 0 means no stop-loss. |
| TPType | SLTP_TYPE_PRICELEVEL | How the take-profit is given: price level, distance in points from entry, ATR multiple, or number of spreads. |
| TakeProfit | 0 | Take-profit value according to TPType. 0 means no take-profit. |
| TimeType | TIME_TYPE_SERVER | Time reference for OrderTime and DailyTime: the machine's local time or the broker server time. |
| Expires | 0 | Expiry date and time of a pending order. 0 means no expiry. |
| Retries | 10 | Number of times to try sending the order before counting it as failed. |
| MaxDifference | 0 | Maximum difference in points between the given price and the market price; if exceeded the order is not sent. 0 disables the check. |
| MaxSpread | 3 | Maximum spread in points allowed for sending. The default of 3 is very low. 0 disables the check. |
| RetryUntilMaxSpread | false | If the spread exceeds MaxSpread, wait and retry until it falls below the limit. |
| Slippage | 30 | Maximum accepted price deviation in points. |
| ATR_Timeframe | PERIOD_CURRENT | ATR timeframe, used when SL/TP are given as an ATR multiple. |
| ATR_Period | 14 | ATR period, used when SL/TP are given as an ATR multiple. |
| UsePriceCheck | false | Send the order only if the PriceSymbol price condition holds at the trigger time. |
| PriceSymbol | Symbol used for the price condition. Empty means the chart symbol. | |
| AboveOrBelow | LESSTHAN | Direction of the price condition: price must be less than or equal to (<=), or greater than or equal to (>=), Price. |
| Price | 0 | Price level compared in the price condition. |
| DailyMode | false | Send the order on every selected day at DailyTime instead of once at OrderTime. |
| DailyTime | 18:34:00 | Time of day to send the order in daily mode, in HH:MM:SS format. |
| Monday | true | Send on Monday (daily mode). |
| Tuesday | true | Send on Tuesday (daily mode). |
| Wednesday | true | Send on Wednesday (daily mode). |
| Thursday | true | Send on Thursday (daily mode). |
| Friday | true | Send on Friday (daily mode). |
| Saturday | false | Send on Saturday (daily mode). |
| Sunday | false | Send on Sunday (daily mode). |
| CalculatePositionSize | false | Compute the lot size from risk and stop-loss distance instead of a fixed size (a stop-loss is required). |
| FixedPositionSize | 0.01 | Fixed lot size, used when CalculatePositionSize is off. |
| Risk | 1 | Risk per order as a percentage of the base amount (when the lot is computed). |
| MoneyRisk | 0 | Risk per order as an amount in account currency, used when UseMoneyInsteadOfPercentage is on. |
| UseMoneyInsteadOfPercentage | false | Use a money amount (MoneyRisk) instead of a percentage (Risk) for the lot calculation. |
| UseEquityInsteadOfBalance | false | Use equity instead of balance as the base for the risk percentage. |
| FixedBalance | 0 | If above 0, this value is used as the base amount for the lot calculation instead of the real one. |
| AlertsOnSuccess | false | Alert when the order is sent successfully. |
| AlertsOnFailure | false | Alert when sending fails or a filter blocks the order. |
| EnableNativeAlerts | false | Show a pop-up Alert in MetaTrader. |
| EnableEmailAlerts | false | Send an e-mail alert (e-mail must be configured in the terminal). |
| EnablePushAlerts | false | Send a push notification to the MetaTrader mobile app. |
| Magic | 20220913 | Magic number attached to the orders the EA sends. |
| OrderCommentary | TimedOrder | Comment text attached to the order. |
| Silent | false | Do not show status text on the chart. |
| Logging | true | Write errors and events to a log file. |
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.
An EA that opens an order at a scheduled time on the symbol of the chart it is attached to. It supports market and pending orders (Limit, Stop, Stop Limit), sent once at OrderTime or every day at DailyTime on the weekdays you choose. You can use server time or local time.
The entry can be an exact price or a distance in points from the current price. Stop-loss and take-profit can each be given four ways: a price level, a distance in points from the entry, an ATR multiple, or a number of spreads. Lot size can be fixed, or computed from a risk percentage of balance/equity or from a money amount (a stop-loss is then required).
Pre-send filters include a maximum spread (MaxSpread), the difference between the market price and the set price, and a price condition on any symbol (above or below a level). If sending fails it retries up to Retries times. It shows status on the chart, writes a log file, and can alert through Alert, e-mail and push.
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