RSI with Alert — FBR edition1.08, 2026-12-03
Modified by ForexBestRobots.com, based on EarnForex1.07, Apache License2.0.
Original copyright and notices retained. Revision:
dba5ddadea887a977360cffbc44bad2e69af5c62

Changes from the original:
- Set series order AFTER binding; MT5 uses a temporary copy and explicit
  newest-first transfer, required-history and exact-copy-count checks.
- Bound signal and target scans to available valid RSI values; handle first
  calculation, partial scans, current-bar updates and history resets.
  Stop an excursion at invalid/empty readings rather than treating them as
  target visits. Arrow-age cleanup includes the Previous-mode shift.
- Default IndicatorName is FBR-RSIWA. Cleanup touches only its own -ARWS-
  prefix. Empty name is rejected and cannot trigger blanket object deletion.
- Place arrows on the evaluated candle (including Previous); remove/update
  that candle's own arrow before recalculation. Other drawings are preserved.
- Validate period, thresholds, scan length, cooldown, targets and arrow size.
- MT5 checks and releases its iRSI handle. MT4 gains the level color/style
  inputs already available in the upstream MT5 version (25 functional inputs).

The strict threshold, target-excursion, custom horizontal-line and notification
direction/cooldown logic is retained. Email/push messages still contain broker
company, account name and account number. All notifications are globally OFF
by default (EnableNotify=false), despite SendAlert=true.
Default CandleToCheck=Current: forming values/arrows may change or disappear.

SOURCE ONLY: compile in matching MetaEditor. No EX4/EX5 is provided and no
native compilation/runtime test is claimed. Python formula/index/logic models
do not replace a terminal/demo test. Original source is under upstream/.
