Market Profile — ForexBestRobots edition 1.26 — MT4
SOURCE ONLY. No ready EX4/EX5. Native MQL compilation, terminal drawing,
MTF history synchronization, hotkeys, dragging, file persistence and actual
notification delivery NOT verified. Selected actual source functions were
executed through C++ with checked arrays and modeled APIs; not a native test.

INSTALL
Extract ZIP. Desktop MetaTrader > File > Open Data Folder > MQL4.
Copy Indicators/Market_Profile_ForexBestRobots.mq4 to Indicators. Keep upstream originals separately.
Open modified UTF-16LE BOM source in matching MetaEditor, press F7 and inspect
errors/warnings. No extra include or DLL. Refresh Navigator and attach to a
demo M30 chart with enough history. Not directly installable in mobile apps.

DEFAULTS / PROFILE
Daily,2sessions,TPOTimeframe=PERIOD_CURRENT,ValueAreaPercentage70.
92functional inputs on both platforms; MT4 adds text separators.
One TPO per selected candle whose Low<=grid price<=High, at most once per row.
No tick_volume/real-volume weights; no exact time-at-price or buyer/seller data.
POC is a maximum-count row, not a statistical median despite source label Median.
Ties: nearest grid midpoint, then upper row. Grow contiguous VA one row at a
time; higher adjacent count wins, equal counts upper first. Our edition uses
exact ceil(totalTPO*percentage/100), consistently in final/developing MT4/MT5.
Whole rows may overshoot.70percent is not a win rate.
Rows occupy one price step. VAL=lowest included row, VAH=highest row+step.
VAL text now matches the line. Grid rounding/iteration use integer indices.
PointMultiplier0 adapts to visible scale; changing zoom may change levels.
For five-decimal EURUSD:10points=0.00010,50points=0.00050. Manual non-power-of-ten
steps preserved, rounded up to symbol tick-size multiples. Coarser grid loses detail.
DisableHistogram keeps levels; reduce sessions, throttle updates or clean old
profiles if slow. More than2,000,000rows rejected, not a performance guarantee.

SESSIONS / TIME
Daily TPO M5..M30; Weekly M30..H4; Monthly H1..D1; Quarterly H4..D1;
Semiannual/Annual H4..W1; Intraday <=M30. Rectangle uses manual boundaries.
Higher TPO timeframe allowed; lower request falls back to chart. Whole chart
timeframe multiple required. Whole parent candles can straddle boundaries.
Historical parent values drawn across child candles are retrospective.
Current session and unfinished TPO change; evaluate closed source candles.
Broker clock; no automatic DST conversion. TimeShiftMinutes positive earlier,
negative later. Preset intraday windows00-06/06-12/12-18/18-00 are not auto London/NY.
Weekend normal/ignore/append; above D1 cannot distinguish separate weekend days.
Our website examples use real HistData Bid OHLC with fixed EST+5 conversion to UTC.
Its zero Volume field and reconstructed QuoteCount are NOT profile weights.
Final daily levels known only after session ends; no profit backtest.

CONTROLS / STORAGE / OWNERSHIP
Ctrl+1..8 select Daily,Weekly,Monthly,Quarterly,Semiannual,Annual,Intraday,Rectangle.
For Rectangle press r or use MPR0..MPR999, no underscore,max6characters. Whole TPO
candles used; price range clipped. These user rectangles may be shared by instances.
Default InstancePrefix FBR-MP. Unique1..12 ASCII letters/digits/hyphens; do not
delete hidden FBRInstanceLock. Short names reserve native object-name capacity.
Duplicate/conflicting namespaces rejected. Failed init cannot clean foreign objects.
Terminal session/visibility state: MQL4/Files/MP_Settings. Saved choice can
persist across reloads. __DATE__ means compile date, not a daily updating clock.
Hide button pauses normal updates/alert checks after the hidden profile is drawn.

ALERTS
All alert channels/arrows,level families and event switches default OFF.
Need one channel/arrows + one family + one event. Median/VA alerts require actual
ShowMedianRays/ShowValueAreaRays; SinglePrint events need SinglePrintRays.
CheckPreviousBar default: closed chart candles. CandleClose compares Close1 vs Close2
across level, prior strict side and new equality allowed. PriceBreak: wick reaches
level but closes back on prior side. GapCross: separated candle ranges.
Arrows sit on event candle; observed after close. Historical arrows retrospective.
Attach/reset first live pass silent. CheckCurrentBar uses unfinished quotes and can
repeat events. All its PriceBreak rays use the same previous quote in our edition.
Email/push require running configured terminal and connection. Messages include
symbol/timeframe, not account name/login. No orders, WebRequest or DLL.

LICENSE
Copyright2010-2026 EarnForex.com retained. Full Apache-2.0 LICENSE.
https://github.com/EarnForex/MarketProfile/tree/f819c3c78379cd5aa7394e8a7a13158411ced63c
No NOTICE in pinned tree. Changes marked in source, CHANGES and patch.
No endorsement implied. Original bytes unchanged. CHECKSUMS covers every other file.
INSTALL/ contains12 native instructions.
https://forexbestrobots.com/indicators/market-profile-mt4-mt5.html
