On this page
An observation marker is not the original Fractal centre
Fractals Alert reads native Bill Williams Fractals, then places an arrow at the candle where the chosen mode can observe the pattern. The original centre is earlier. Upper Fractals produce SELL=-1, lower Fractals BUY=1; these names classify the pattern, not an instruction to open a trade. If both sides exist at one centre, the upper side wins.
ForexBestRobots 1.03 is a marked Apache 2.0 derivative of EarnForex 1.02. It bounds the full source window, checks MT5 copies/handles, isolates arrow cleanup and keeps the signal buffer working with drawing disabled. Default instance name is ForexBestRobots-Fractals; other author defaults remain. MT4’s unused include was absent from the official archive and is removed here; MT5 keeps its matching helpers.
Centre shift, Current candidates and Previous confirmation
The source uses centre shift j=i+Shift+2, where i is the observation candle and Shift is 0 for CURRENT_CANDLE, 1 for CLOSED_CANDLE. Current therefore observes centre i+2; Previous observes centre i+3. There is no adjustable Fractal period, ATR offset or extra source-timeframe input.
For our strict five-bar illustration, an upper centre has High greater than the High of each of its two preceding and two following candles; a lower centre has Low smaller than all four neighbouring Lows. Native equal-price/plateau rules may differ. At observation i=0, Current includes the forming candle as the second right-hand candle: a candidate can disappear. Previous uses two closed right-hand candles and observes the same confirmed centre one candle later. This is confirmation delay, not a forecast.
The custom marker is on observation candle i, at its High for an upper/SELL event or Low for a lower/BUY event—not at the earlier Fractal price. Its live vertical anchor can move as that observation candle forms, even in Previous mode. Rebuilt historical markers use final OHLC; they do not prove a notification arrived then or that an entry was executable at the anchor.
16 functional inputs and four decorative headings
Both platforms expose 16 controls and four Comment separators. BarsToScan counts observation slots; 0 scans all available complete windows and can be expensive. This edition requires at least five available candles in Current or six in Previous. Arrow codes are validated within 33–255 and size within 1–5.
| Input | Default | Practical meaning |
|---|---|---|
IndicatorName | ForexBestRobots-Fractals | Unique instance name/owned-arrow prefix, ForexBestRobots-Fractals; 1–30 characters. Give each copy on the same chart a different name. |
CandleToCheck | CURRENT_CANDLE | CURRENT_CANDLE is default: centre i+2 can still be provisional at i=0. CLOSED_CANDLE uses centre i+3; affects buffer, drawing and notifications. |
BarsToScan | 500 | Maximum observation slots, 500. 0 uses all complete available windows; not a Fractal period or fixed performance promise. |
EnableNotify | false | Master notification switch, false. Drawing and buffer output do not require it. |
SendAlert | true | Popup channel, true, gated by the master. |
SendApp | true | Push channel, true, gated by the master; configure the terminal or turn it off for popup-only use. |
SendEmail | true | Email channel, true, gated by the master; configure the terminal or turn it off for popup-only use. |
AlertOnBuy | true | Allow BUY/lower notifications, true. Does not filter arrows or buffer values. |
AlertOnSell | true | Allow SELL/upper notifications, true. Does not filter arrows or buffer values. |
WaitTimeNotify | 5 | Current-mode wait, 5 seconds after initialization or the last attempted notification. Ignored by Previous, which uses its bar-time gate. 0 removes the Current delay. |
EnableDrawArrows | true | Show custom arrows, true. This edition still populates buffer 0 when drawing is false; notifications can also work without arrows. |
ArrowBuy | 241 | Lower/BUY arrow glyph, 241. Changes the symbol, not the pattern or anchor price. |
ArrowSell | 242 | Upper/SELL arrow glyph, 242. No trade or stop order is created. |
ArrowSize | 3 | Arrow size, 3; supported values 1–5. |
ArrowBuyColor | clrGreen | Lower/BUY marker colour, green; graphical only. |
ArrowSellColor | clrRed | Upper/SELL marker colour, red; graphical only. |
Real EUR/USD: observation delay and an invalidated candidate
These original figures use archived Yahoo Finance EURUSD=X H1 OHLC in UTC. An independent strict-five-bar model maps centres to observation candles. It does not certify every native plateau/tie rule. Current historical arrows below are completed-OHLC snapshots, not the first intrabar appearance. The special example compares an actual candle’s open-only price snapshot with its actual completed OHLC; no tick sequence is invented.



Quote-provider OHLC are not identified broker-specific Bid/Ask execution prices. The second CSV has separate open/completed phases; only the last candle becomes an open-only OHLC snapshot in the open phase. Earlier OHLC remain actual data. Spreads, fills, returns and first tick arrival were not measured. Scroll horizontally on narrow screens.
Download observation and snapshot illustration data (CSV) · 1Download observation and snapshot illustration data (CSV) · 2
Master gate, three enabled channels and direction memory
EnableNotify=false; SendAlert, SendApp and SendEmail are all true. Turning on the master enables attempts on all three selected channels. For popup only, disable SendApp and SendEmail. Push/email need terminal configuration and retain broker company, account name and account number in messages. There is no separate sound input.
The source initializes its last-notification time to server TimeCurrent(). Current waits WaitTimeNotify seconds from initialization or the last attempt; 0 removes that delay. Previous instead requires the current chart-bar opening time to exceed the saved notification time, so it waits for a later chart bar after attachment and allows at most one attempt per bar. WaitTimeNotify does not control Previous. There is no separate first-successful-calculation skip: Current may notify an already present latest candidate after the initial wait.
After the time gate passes, neutral resets last direction. A repeated same direction is suppressed; an eligible opposite attempt changes it. A neutral observed during the gate does not reset it. AlertOnBuy/AlertOnSell reject only notifications without advancing state; failed delivery still advances time/direction. Drawing may work with notifications off, and notifications with drawing off. Reattaching resets this memory; historical arrows are not bulk-replayed as alerts.
Compile with the dependencies for the chosen platform
Choose MQ4 for desktop MT4 or MQ5 for MT5. These modified ZIPs are source-only, without a ready modified EX4/EX5. MT4 needs Indicators and Files; MT5 also needs Include.
- Download and extract the matching platform ZIP.
- In MetaTrader: File → Open Data Folder → MQL4 or MQL5.
- Copy Indicators and Files there; for MT5 also copy Include. Do not mix platform helpers; upstream is unchanged reference source.
- Open Fractals_Alert_ForexBestRobots.mq4 or .mq5 in the matching MetaEditor, Compile with F7 and inspect errors.
- Refresh Navigator → Indicators, attach to demo with a unique IndicatorName, then inspect current/historical buffer reads, arrows and Experts/Journal before enabling channels.
ForexBestRobots has not compiled or executed these sources in MetaTrader. Independent OHLC, index and notification models do not replace native testing of Fractals, handles, objects, EA reads or delivery. Test the compiled program on demo first.
Download Fractals Alert ForexBestRobots edition free
Each ZIP contains marked modified source, untouched original reference source, the matching icon and supplied helpers, full Apache 2.0 license, change log, patch, instructions and SHA-256 checksums. Downloading needs no registration or broker account.
ForexBestRobots 1.03 identifies our derivative of EarnForex 1.02. Original copyrights remain and modifications are marked. Original source/icon and supplied dependencies match the official platform archive byte for byte. Compile the modified source; the author’s original compiled binary does not represent these changes.
Free source ZIP · ForexBestRobots 1.03 · Compile in MetaEditor
Provisional candidates, historical reconstruction and buffer semantics
Current can change before the observation candle closes. Previous uses an older closed right-hand window, but history corrections can still change calculations and the current arrow’s High/Low anchor may move. A delayed pattern alone does not establish a reversal, a stop distance or profitable trading.
EA buffer 0 contains 1 for lower/BUY, -1 for upper/SELL and 0 for neutral. These are direction codes, not price levels. This edition writes it independently of EnableDrawArrows and AlertOnBuy/AlertOnSell. Older slots outside the complete scanned window are cleared on rebuild. Values on observation candles differ from native Fractal-centre buffers; handle the chosen mode and current provisional state when reading via iCustom().
The edition guards complete source/index windows, refuses incomplete MT5 copies, releases the handle and removes only its own -ARWS- objects. BarsToScan=0 may create many historical objects. Independent strict-five-bar and source-state models do not execute MQL or certify native plateau rules, runtime, tick paths, EA integration, delivery, costs or profitability.
Frequently asked questions
Why is the alert arrow later than the original Fractal?
It marks observation candle i, while the centre is i+2 in Current or i+3 in Previous. It is deliberately not drawn back at the earlier centre.
Does Previous guarantee that nothing ever moves?
It uses two closed right-hand candles, reducing the provisional-pattern issue. The observation candle’s High/Low anchor can still move, and corrected history can change readings. Native execution is untested.
Why do I get no notifications although arrows appear?
The master defaults false. Current also waits 5 seconds and remembers direction; Previous has a bar-time gate. Enable/configure the desired channels; all three channel defaults are true.
Do AlertOnBuy and AlertOnSell hide arrows?
No. They filter notifications only. Both directions remain in arrows and in buffer 0; drawing itself has a separate switch.
Can an EA read the indicator with arrows disabled?
Yes, this edition populates buffer 0 independently: 1/-1/0 at observation candles. Compile the source/dependencies and verify native iCustom() reads on demo; ForexBestRobots has not performed native compilation or execution.
Sources and scope of the review
Original source, license, icon and supplied includes are pinned to an EarnForex revision. The review distinguishes original rules, marked repairs and independent strict-five-bar illustrations. Numerical model agreement does not certify native MetaTrader behavior.