MACD with Alert FBR edition1.03, 2026-12-03, ForexBestRobots.com.
Based on EarnForex1.02, commit df12997ef15b3741b2345fafef9949f41b08540d,
Apache2.0. Original copyright and attribution retained. Marked SOURCE ONLY.

Changes: explicit series order after binding; MT5 exact two-buffer temporary
copies, handle checks/release, no manually sized price/time arrays; sufficient
history and neighbouring-value bounds; invalid/empty reading guards; input
validation; incremental MT4 and history-reset handling; scan0 means available
history; overflow-safe warm-up; default instance prefix FBR-MACDWA.
Arrows mark the evaluated candle including Previous. Cleanup touches only
this instance's -ARWS- prefix and respects the shift. Unique names are needed
for multiple instances on a chart. Empty names are rejected.
Corrected misleading input comments for the four arrow-colour controls.

Retained: native iMACD calculations; strict zero and main/signal crossings;
zero-cross priority in ALL if both families qualify; notification state logic.
Defaults:12/26/9 Close, signal crossing, Current, histogram of MAIN (not OsMA),
scan500, arrows on. EnableNotify=false gates SendAlert=true; push/email false.
Email/push still include broker company, account name and account number.
There is no separate sound-file or notification cooldown input.

Compile MQ4/MQ5 in the matching MetaEditor. No EX4/EX5 is supplied for this
modified version. Native compilation/runtime, chart objects and delivery were
not tested by FBR. Mathematical/index models do not replace a demo test.
