TzPivots — ForexBestRobots edition 1.02 — MT5
Source only: compile Indicators/TzPivots_ForexBestRobots.mq5 with F7 in the matching desktop MetaEditor.
Marked program is UTF-16LE with BOM for MetaEditor, like the upstream files.
No ready EX4/EX5, DLL or executable is included. Native MT4/MT5 compilation and
runtime were NOT tested. C++ tests of extracted session/formula logic are limited
to those functions and do not establish native chart rendering or broker sync.

INSTALL
1. Extract ZIP. MetaTrader > File > Open Data Folder > MQL5.
2. Copy Indicators there. Keep upstream as reference; do not install both copies.
3. Open source in the matching MetaEditor; F7; inspect all errors and warnings.
4. Refresh Navigator > Indicators and attach the compiled program to a demo
   Forex chart, H1 or lower with bars aligned to whole hours.
5. Set LocalTimeZone to the BROKER chart UTC offset, DestTimeZone to the chosen
   session UTC offset. Both are whole hours -14..+14; DST is MANUAL.
6. Set TradingHoursFrom < TradingHoursTo, within 0..24. End hour is excluded.
   The latest COMPLETED session is used. At a custom end hour, levels switch
   to the newly completed session; before then they use the previous one.
   Overnight 22..6 is invalid: choose an offset keeping the window in one date.
7. Use a UNIQUE ObjectPrefix for each instance, nonempty/no spaces/max40 chars.
   Existing names under that prefix cause initialization to fail. Failed init
   never deletes another instance's objects. Remove the indicator normally
   before reusing its prefix. Do not manually delete its instance lock.
8. Load older context. Empty dates are skipped; short Sunday sessions are not
   merged into Friday. Missing bars inside a session are not fabricated.
   After older history additions/corrections, reattach for a full refresh.

BEHAVIOR
32 functional inputs, same on MT4/MT5. Default full destination day 0..24.
ShowPivots=true; ShowMidPivot=true; optional groups=false; ShowLevelPrices=true.
ObjectPrefix default ForexBestRobots-TzPivots-. Width1..5, label offset0..10000,
ShiftDays0..10000. ShiftDays moves the anchor through observed destination dates.
Only ONE selected level set is shown, not an entire historical pivot series.
Update on a new chart bar or terminal history reset, not every tick. Sweet spots
use current Bid in steps of 50 terminal POINTS, not universally50 pips. Range
commentary also reports terminal points. No alerts, arrows, iCustom buffers,
orders, DLL imports or external WebRequest calls.

FORMULAS
H,L,C from completed reference; Q=H-L; P=round((H+L+C)/3,symbol digits).
R1=2P-L; S1=2P-H; R2=P+H-L; S2=P-H+L; R3=2P+H-2L; S3=2P-2H+L.
Classic results are rounded to symbol digits. Midpoints use adjacent classic levels.
Fibonacci: L-.618Q, L-.382Q, L+.382Q, L+.5Q, H-.382Q, H+.382Q, H+.618Q.
Camarilla H3=C+.27Q,H4=C+.55Q,L3=C-.27Q,L4=C-.55Q (.27, not .275).

ATTRIBUTION AND LICENSE
EarnForex.com; original MT4 copyright2008-2022, MT5 copyright2010-2022.
Based on an indicator by Shimodax. Apache2.0 full license in LICENSE.
Pinned source 86e2cbd984f2d419110b7c2aa459efee934e27ef
https://github.com/EarnForex/TzPivots
No NOTICE file exists in that pinned repository. Original code retained byte-for-byte.
Our changes are marked in source, CHANGES and patch. No endorsement implied.
CHECKSUMS.sha256 covers every other archive entry. INSTALL/ contains12 native notes.
Review: https://forexbestrobots.com/indicators/pivot-points-tzpivots-mt4-mt5.html
