Pivot Points for MT4 & MT5: TzPivots Free Download
Free source ZIP · ForexBestRobots edition 1.02 · Compile in MetaEditor

Choose the source ZIP for desktop MT4 or MT5. Each includes the marked MQ4 or MQ5 program, the unchanged original in upstream, Apache 2.0 license, original author notices, a change log, a patch, checksums and installation notes in all 12 site languages.

There is no ready EX4 or EX5 in these packages. We reviewed the source and checked its session-selection function and classic formulas outside MetaTrader, but did not compile or run this derivative in native MT4/MT5. Compile it in the matching MetaEditor and verify it on a demo chart.

1. Download and extract the ZIP for your desktop platform.
2. In MetaTrader choose File → Open Data Folder, then MQL4 or MQL5.
3. Copy the ZIP’s Indicators folder into that platform folder. Keep upstream as a reference copy.
4. Open TzPivots_ForexBestRobots.mq4 or .mq5 in the matching MetaEditor and press F7. Inspect errors and warnings.
5. Refresh Navigator → Indicators and attach the compiled indicator to an H1 or lower demo Forex chart.
6. Set broker/session offsets, hours and a unique ObjectPrefix; load sufficient history and compare the displayed reference prices.

No DLL imports or additional include files are required. Custom desktop indicators cannot be installed directly in the MetaTrader mobile app.

LocalTimeZone is the UTC offset of the broker’s chart timestamps, not your computer clock. DestTimeZone is the fixed UTC offset used to define the session. Destination time = server time − (LocalTimeZone−DestTimeZone) × 3600 seconds. For a UTC+2 server and a UTC+1 session, 10:00 server time becomes 09:00 session time.

TradingHoursFrom is inclusive and TradingHoursTo is exclusive in destination time. The default 0–24 uses a full destination day. Edition 1.02 selects the most recent completed session containing available bars. For a shorter session, the levels switch after its end; before then they use the preceding completed session. A session crossing midnight cannot be entered as 22–6: choose an offset that puts the window inside one destination date.

Offsets are whole hours from −14 to +14. There is no automatic daylight-saving calendar. Update the settings when the chosen server or session offset changes, and verify the broker’s history when comparing seasons. Empty dates are skipped; a short Sunday session is used separately if it contains eligible bars, not automatically merged with Friday.

ShiftDays=0 selects the latest context. A positive value moves the anchor back by that many destination dates present in the chart history, then finds the completed reference session for that anchor. The indicator displays one selected set of levels; it does not draw a full historical pivot series.

The calculation uses the chart’s available OHLC bars. Missing bars, different broker feeds, symbol precision, server offsets and short weekend sessions can change H, L and C. Edition 1.02 withholds levels when the required reference context is missing; it does not manufacture a complete session from absent quotes.

The source updates on a new chart candle or a terminal history-reset request. Commentary and sweet spots therefore do not refresh on every tick. After loading or correcting older history, reattach the indicator if a full refresh is needed. Corrected reference history can change levels; current-session extremes are not used in its classic pivot formula.

The figures use final indicative OHLC. They do not model live Bid, spreads, commissions, slippage, stops or profitability. C++ checks of extracted source logic do not verify native compilation, platform object rendering or broker data synchronization.
