Trading Session Time — ForexBestRobots edition 1.06 — MT4
SOURCE ONLY. No ready EX4/EX5. Native MT4/MT5 compilation/runtime NOT verified.
Compile Indicators/Trading_Session_Time_ForexBestRobots.mq4 in matching desktop MetaEditor (F7), inspect errors
and warnings, then test on an intraday demo chart. C++ checks of extracted
logic do NOT establish MQL compilation, native drawing, broker sync or delivery.
Marked source is UTF-16LE with BOM for MetaEditor. No DLL/include required.

INSTALL
1. Extract ZIP. MetaTrader > File > Open Data Folder > MQL4.
2. Copy BOTH Indicators and Files there; icon must remain in Files.
3. Keep upstream separate as original reference; do not install both copies.
4. Open the modified source in MetaEditor, F7, review the compilation result.
5. Refresh Navigator > Indicators, attach the compiled program to a demo chart.
6. Set BROKER chart hours, weekdays and display mode. No automatic UTC/DST.
7. Use unique IndicatorName, nonempty/no spaces/max40 chars, with an independent
   namespace. Duplicate or nested namespaces rejected; failed init never cleans
   another instance. Do not manually remove the hidden InstanceLock.
8. Start with finite BarsToScan and notifications OFF. No custom desktop
   indicator can be installed directly in the mobile MetaTrader application.

MODES AND TIMES
DrawCandles=true has priority. Otherwise blank TimeLineEnd means vertical lines;
an explicit end means a price-range box. Blank-end candles/range labels use the
rest of that BROKER date. Overnight 2200..0600 ends next day; weekday=start date.
Times accept 0830, 830, 8:30, 13h50, 22.15 and surrounding whitespace. Invalid
2400 and identical explicit start/end rejected. Whole day 0000..2359 includes
the final minute; effective end is the next midnight. Ordinary ASCII digits.
A selected bar obeys start <= bar_open < end; all of its OHLC is used. For exact
minute windows choose fine/aligned bars. No intrabar interpolation. Intraday
only; D1 or higher rejected. Valid one-bar sessions supported.
ShowFutureSession projects vertical lines ONLY, up to30 calendar dates ahead,
never future prices, range boxes or candles. Not an exchange holiday calendar.

RANGE AND HISTORY
ShowRange=round((H-L)/Point), nearest terminal point. Five-digit EURUSD:
Point=0.00001 and10 points=1 pip. This is not profit, volume or a trade result.
Active ranges can expand; history corrections can change completed boxes.
BarsToScan=1000 default;0=all available. Sessions starting before scan window
omitted to avoid clipped ranges. Missing quotes not fabricated. Selected window
redrawn on every new bar/history reset; active session updates with ticks.
Zero/all-history may be expensive; use finite scans on slower terminals.
MT4 has28 functional inputs, MT5 has26; four Comment_ fields are separators.
CandleColorBullish/Bearish only MT4; MT5 uses Colors tab. LineThickness1..5
controls vertical lines; box borders fixed1. clrNONE hides border/fill.

NOTIFICATIONS
NotifyOnSessionStart=false and NotifyOnSessionEnd=false default. At least one
event AND a delivery channel must be enabled; SendAlert=true alone is passive.
End events require explicit TimeLineEnd. Initial load/history reset SILENT.
Check on NEW CHART BARS, using timestamps even at the terminal bar-count cap.
No timer; no quotes means no new-bar event. 09:30 on H1 may notify at10:00.
No catch-up across gaps>24h. Overnight end uses START weekday. Start/end have
separate deduplication; both can occur across a coarse bar. Failed delivery is
not retried on every tick. Configure email/push/sound in terminal settings.
Messages: indicator, symbol, timeframe, boundary time; no account identity.
No orders, DLL imports or external WebRequest calls. Keep desktop running.

LICENSE AND SOURCE
EarnForex.com, copyright2019–2026. Original notices retained.
Apache2.0 full license in LICENSE. Original bytes retained under upstream.
https://github.com/EarnForex/Trading-Session-Time/tree/81febd2ab6502ee9c15e9d0c2b54c049fa8c5678
No NOTICE exists in the pinned tree. Our changes are marked in source,
CHANGES and patch. No endorsement by original author is implied.
CHECKSUMS.sha256 covers every other archive entry. INSTALL contains12 native notes.
https://forexbestrobots.com/indicators/trading-session-time-mt4-mt5.html
