QQE — ForexBestRobots edition 1.04 — MT4
SOURCE ONLY. No compiled EX4/EX5. Native compilation, chart rendering, broker
history synchronization and notification delivery have NOT been verified.
Extract; MetaTrader > File > Open Data Folder > MQL4; copy Indicators.
Open Indicators/QQE_ForexBestRobots.mq4 in matching desktop MetaEditor, press F7, inspect all
errors/warnings, then attach to a demo Forex chart. No DLL/extra include needed.
Not installable directly in the MetaTrader mobile application or cTrader.
Modified source UTF-16LE BOM; unchanged upstream source bytes are retained.

CALCULATION
Close RSI14. Blue B=EMA(RSI14,SF), default SF5.
Change D=abs(B-current minus B-previous). E1=EMA(D,27); E2=EMA(E1,27).
Distance=4.236*E2. This is RSI change, not ATR in price points.
The yellow adaptive trail starts at the first valid RSI14 value. B starts there
too; E1 and E2 start at zero. Each following update uses alpha=2/(SF+1) and
alpha=2/28 for the change smoothers. If B<previous trail, candidate=B+distance;
when previous B also was below trail, cap candidate at previous trail if higher.
If B>previous trail, candidate=B-distance; when previous B also was above trail,
floor candidate at previous trail if lower. If B==previous trail keep trail.
Exclude max(SF,27) updates after the seed from displayed/event history.
Native RSI seed/feed and loaded source history can affect early readings.
This common seed is a documented change from original platform initialization.

EVENTS AND DEFAULTS
15 inputs on both platforms. SF 1..100000; AlertLevel integer 0..100, default50.
Both arrow families ON by default; popup/email/push OFF; alert family gates OFF.
Line and level crosses are independent: a>b now AND previous_a<previous_b for
up, opposite strict inequalities for down. Equality on either candle is no event.
The described line-then-50 trading idea is NOT enforced as a sequence by code.
Arrows use CLOSED SOURCE bars, never the developing source bar. They are placed
at the next source opening, when the event can first be observed. This differs
from upstream historical marker placement. Arrow prices are drawing positions
near that chart candle's open, not executions. History arrows are reconstructed.
First successful calculation and history resets are silent. Later alert events
are processed once per family per new source bar; failed delivery is not retried
each tick. Configure native terminal email/push first. No order placement.

TIMEFRAMES AND OBJECTS
UpperTimeframe: current or higher; lower rejected. Direct source RSI history,
no recursive iCustom copy. Lines mapped within an open higher candle can change;
past lower-chart positions may show FINAL higher values unavailable at that time.
Closed-source arrows wait until that higher candle completes. Corrected feeds/
older history can change history; reattach for a complete recalculation.
Program timestamps follow the broker, while our chart examples use UTC.
ObjectPrefix default ForexBestRobots-QQE-, unique, 1..40 characters, no spaces.
Duplicate/nested namespaces rejected. Failed init must not clean other instances.
Do not delete the hidden InstanceLock. Cleanup removes only owned arrows/lock.
MT5 RSI handle validated/released. Source arrays sized to source bars, not chart
capacity. Full rebuild on source count/open-time change, incremental forming-bar
updates otherwise. Long history/many MTF instances can slow the terminal.

LICENSE / SCOPE
EarnForex 2010–2022; based on Tim Hyder and Roman Ignatov. Apache-2.0 LICENSE.
https://github.com/EarnForex/QQE/tree/c7c5e12fdcf455988aabb38868f8e48b2668a88c
No NOTICE found in the pinned repository tree. Changes marked in source, patch
and CHANGES. No author endorsement implied. Numerical/event checks outside
MetaTrader do not replace F7 compilation and demo testing. Not a profit test.
CHECKSUMS.sha256 covers every other entry. INSTALL/ has 12 native instructions.
https://forexbestrobots.com/indicators/qqe-mt4-mt5.html
