Bollinger Squeeze Advanced - ForexBestRobots edition1.02 / MT4
Marked Apache2.0 derivative of EarnForex1.01. Original2023 copyright retained.
https://github.com/EarnForex/Bollinger-Squeeze-Advanced
Pinned244a858323ecad89a89f3bb341a0602c3e91f07a; no NOTICE at this revision.
Source-only: no modifiedEX4. ForexBestRobots has NOT compiled or run this MQL.
INSTALL: File > Open Data Folder > MQL4; copy Indicators there.
Open Bollinger_Squeeze_Advanced_ForexBestRobots.mq4 in matching MetaEditor, Compile(F7), inspect errors.
Refresh Navigator, attach on demo, inspect Experts/Journal and live iCustom reads.
No icon, include, DLL or account/broker registration needed. upstream/ is reference.

20 controls; all original names/defaults. Default DeMarker13 minus0.5; notifications
off (both families and all3channels false), TriggerCandle=Previous.
Fixed internal BB20/2, ATR20/1.5. R=2*StdDev(Close20,SMA)/(1.5*ATR20).
R<1 blue squeeze, R>=1 outside. Width ratio only: no band-centre containment test.
The separately downloadable classic Keltner formula must not replace this ATR.
ATR<=0/missing/invalid values clear plots; d=0 is valid raw0 but no visible bar.
Positive periods, MACDfast<slow, finite AlertBelowLevel<=AlertAboveLevel required.
Conservative complete warmup; actual native initialization may differ by platform.

Modes: Stochastic main(14,3,3,SMA,Low/High)-50; Close CCI50; Close RSI14-50;
MACD main EMA12-EMA26(Close), separate native SMA9 signal (the legacy input is
named MACDMACDEMAPeriod); Close Momentum14-100; WilliamsPR24+50; native ADX14
main uncentred/nonnegative (strength, NOT direction); DeMarker13-0.5.
Only the active mode's periods affect output. Different modes have different units.
MT5 Stochastic is intentionally aligned from old Close/Close to MT4 Low/High.
MACD exposed periods now really control main/signal. Shared horizontal guide is0.

MTF: PERIOD_CURRENT follows chart; lower selected timeframe is clamped to chart.
Timestamp source mapping, not a numeric timeframe ratio. Current source bucket
can revise all its projected lower-timeframe bars. TriggerCandle selects alerts
at SOURCE0(Current)/1(Previous), not plot locking; Previous does NOT freeze plots.
Final higher-timeframe candles projected backward are hindsight, not tick replay.
History corrections/reset can change readings; reattach after an unsignalled edit.

ALERTS: enable >=1family AND >=1channel, configure email/push in terminal.
First valid reading initializes state and sends nothing. Strict d>Above/d<Below;
equality/deadband keeps the last side. d=0 does not reset the last regime.
Each family suppresses repeats until an eligible opposite state; no cooldown or
per-bar lock. Both families may produce2messages, Current can alternate intrabar.
Delivery failure consumes state; reattach resets. No historical alert replay.
Messages use BSA, symbol and source timeframe; no account name or number.

BUFFER layout is platform-specific, unchanged from author. MT4:0 positive outside,
1 nonpositive outside,2positive blue,3nonpositive blue,4MACDsignal,5raw centred d.
MT5:0 signed outside,1 COLOURindex(0green/1red),2signed blue,3MACDsignal,4raw d.
Valid inactive histograms=0; unavailable data=EMPTY_VALUE; MACD signal=EMPTY_VALUE
outside MACD. Colour indexes are NOT trade direction. No buy/sell1/-1 buffer.
Check compiler/runtime and platform buffers on demo before integration in an EA.
Independent models/CSV/charts do not certify native runtime, costs or profitability.
