Aroon Up & Down — ForexBestRobots edition 1.03
Modified 2026-12-05 from EarnForex pinned source.
MT5 original property version: 1.02. MT4 original has no version property.
Original credits: rafcamara; upgrade by Andriy Moraru / EarnForex; MT5 EarnForex.
Repository: https://github.com/EarnForex/Aroon-Up-Down
Pinned commit: 59409bca134aa242ecffd80245190e0ba83a3fc9
License: Apache License 2.0, unchanged; see LICENSE. No NOTICE in pinned tree.

Marked changes:
- Modern OnInit/OnCalculate entry points; same three inputs on both platforms.
- Require integer AroonPeriod 2..10000; defaults 14, false, false.
- Preserve exactly N High/Low observations, divisor N and most recent equal extreme.
- Full windows only; first N-1 and invalid-price windows are EMPTY_VALUE, not zero.
- Remove fixed 200-bar drawing delay; initialize growing warm-up buffers.
- Explicit chronological input/output indexing on both platforms.
- Notifications compare two closed source candles at the next available opening.
- Gate delivery with opening timestamps, including fixed-length rolling history.
- Silent first attachment/explicit reset; latest event only, no old-message queue.
- Failed mail attempts are not repeated every tick.
- SoundAlert calls Alert; sound depends on terminal settings, no PlaySound call.
- No chart arrows/objects, MTF input, push, DLL/includes or trading calls.
- Retain original credits and unchanged original source separately.

Source only: native MetaEditor compilation/runtime has NOT been verified.
Compile the matching MQ4/MQ5 in desktop MetaEditor and demo-test.
The external C++ harness models terminal APIs and is not native MetaTrader.
Patch is a unified diff of decoded UTF-8/LF text views; original bytes are unchanged.
Notifications contain symbol, timeframe, N and event times, no account IDs.
