Fractals Alert - ForexBestRobots edition 1.03 / MT5
Marked Apache 2.0 derivative of EarnForex 1.02. Original copyright retained.
SOURCE ONLY: no modified EX5; compile in the matching MetaEditor.
INSTALL: File -> Open Data Folder -> MQL5. Copy Indicators, Files and Include there.
Open Fractals_Alert_ForexBestRobots.mq5, Compile(F7), inspect errors, refresh Navigator, test on demo.
MT4 does not need Include: its unused include was missing from official ZIP and
has been removed from our derivative. MT5 includes both official helpers.
Icon and supplied helpers are exact official/pinned bytes. No DLL required.
upstream/ is original reference source, not the installation target.
ForexBestRobots has NOT compiled or executed this source in native MetaTrader.

DEFAULTS: CandleToCheck=CURRENT_CANDLE, BarsToScan=500 (0=all complete windows).
16 functional controls plus 4 decorative Comment headings. The instance name is
ForexBestRobots-Fractals, unique, 1-30 characters. All other author defaults remain.
Current uses centre i+2; Previous uses i+3. A centre needs two older and two newer
candles. At i=0 Current includes the forming candle, so its candidate can disappear;
Previous uses a closed right-hand window and is one observation candle later.
Upper Fractal takes precedence and outputs -1; lower outputs 1; missing outputs 0.
Native Fractals plateau/tie behavior, broker history and corrections can differ
from our strict-five-bar common-subset illustrations. No native certification.

MARKERS: on the OBSERVATION candle i, not centre i+Shift+2. Anchor is that
observation candle High for sell/upper or Low for buy/lower, not fractal price,
entry, stop or ATR offset. The current anchor can move even in Previous mode.
Arrows default on, green 241 / red 242, size 3. Codes 33-255 / size 1-5 supported here.
Buffer 0 populated independently of arrow drawing;1/-1/0, not price values.
AlertOnBuy/AlertOnSell filter notifications only; both directions remain in
arrows and buffer. BarsToScan controls observation slots; 0 can be expensive.
Full-window bounds leave at least5 candles(Current) or6(Previous).
Only this instance's -ARWS- objects are removed; different copies need names.

ALERTS: master EnableNotify=false; SendAlert/SendApp/SendEmail all TRUE.
For popup only enable master, turn off SendApp/SendEmail; these need terminal
configuration and retain broker company/account name/number in messages.
Current: wait 5 seconds from init/last ATTEMPT; WaitTimeNotify=0 removes the delay.
Previous: chart-bar opening time must exceed last attempt/init server time;
WaitTimeNotify does not apply there. Gates run before examining/resetting neutral.
After gates, neutral resets last direction; repeated same direction is suppressed.
Direction filters reject without updating state. Failed delivery still advances
time/direction. There is no first-successful-calculation skip or bulk history replay.
Current may notify an already present latest candidate after initial wait;
Previous waits for a later chart bar. Reattaching reinitializes state.
Arrows can display without notifications, and notifications without arrows.
No sound input, trade placement or stop/order management.

REAL-DATA FIGURES: archived Yahoo EURUSDH1 UTC; model uses strict five-bar extrema.
Current end-of-candle snapshots do not reconstruct first intrabar arrival.
The invalidation example compares an actual candle's open-only price snapshot
with its actual completed OHLC. It is not a tick replay or invented price path.
Historical objects are reconstructed final-OHLC observations, not proof of alerts
delivered at those times or of executable entries, costs or profitability.
