Support and Resistance Lines - ForexBestRobots edition 1.04 / MT4
Marked Apache 2.0 derivative of EarnForex 1.03; original copyright retained.
No modified EX4 binary is included. SOURCE ONLY, compile in matching MetaEditor.
INSTALL: MetaTrader File -> Open Data Folder -> MQL4. Copy Indicators, Files,
Include into that directory. Open Support_Resistance_ForexBestRobots.mq4, Compile(F7), inspect errors, refresh
Navigator and test on a demo chart. upstream/ is unchanged reference, not installation.
Icon/include helpers are untouched correct-platform official files. No DLL required.
ForexBestRobots has NOT compiled or run this source in native MetaTrader.

DEFAULTS: source timeframe=current; accuracy MEDIUM=2; SafeDistance=50 POINTS;
MT4 MaxBars=500 versus MT5 MaxBarsExt=100, BarsToIgnore=0, MaxRange=0(no limit).
Native ATR100 and Fractals feed inclusive bins; level is arithmetic mean, not median.
Step=ATR100*1/2/3 rounded to symbol digits. Upper fractal wins if both exist.
Bins include both edges; one exact boundary observation can count in two bins.
Line width=min(fractal count,5), not a measured probability or trade score.
MaxRange is full width around live price; only fully contained bins survive.
BarsToIgnore moves the entire analysis window on both platforms, while ATR stays
source shift 0. New chart/source bars or history resets rebuild; distance updates live.
Fractals require future candles; recent centres may be provisional. Levels can move.
Independent figures use strict five-bar common-subset extrema and SMA true ranges,
not native plateau/tie rules, initialization, MTF runtime or tick-path certification.

NEAR/FAR: integer platform-point distances; ties choose resistance. Near<=threshold,
far > threshold; missing level is NO LEVEL FOUND, never safe/far. These are distance
labels, not trading safety or protection. 50 points=5 pips on five-digit EURUSD.
Lines on, zones off, panel on, arrows off. Resistance default green/support red.
Zones require DrawLinesEnabled; half-width=SafeDistance*Point around each level.
Use unique nonempty IndicatorName, 1-30 characters; cleanup only owned line/panel/arrow
prefixes. Analysis may refuse unavailable data, >10000 bins or >10000000 work units.

ALERTS: EnableNotify master=false, SendAlert popup=true, others=false, DANGER(near).
Popup:enable master; sound-only:master+SendSound, disable SendAlert.
DrawArrowEnabled also requires master; arrows can work with all delivery channels off.
First valid observed state is skipped, then state/level changes trigger attempts.
Same-level exit/reentry can notify on a later chart bar, not again within that bar.
Different levels may notify within one bar; arrows are limited to one per chart bar.
Failed delivery still consumes state. Email/push retain broker/account name/number.
No historical arrow replay, trading, order placement or stop management occurs.

EA BUFFERS: current index 0 only; historical slots cleared on rebuild, not a backtest.
LEVELS:0..3=four supports far-to-near (3 nearest),4..7=resistances near-to-far.
Missing slots=0. Exact price equality is included in nearest-distance search but
excluded from strict LEVELS slots. DISTANCES:0=valid far flag1/else0;1=above;2=below;
3=distance to resistance;4=distance to support;5..7=0. Missing distances=INT_MAX.
An EA must handle zero/missing fields; buffer0 is not a BUY/SELL direction.
No profit or execution-cost claim. Demo-test compiled behavior and delivery first.
