OPEN-SOURCE SCRIPT
[ggarritano] MTF Zones + Context Table + POC.

This indicator maps Premium, Equilibrium and Discount zones across up to 8 configurable timeframes, based on the most recent swing range (pivot high/low) and extends the zones forward in real time. It also includes a Context Table that summarizes, per timeframe:
Current Zone (Premium / Equilibrium / Discount + mid areas)
% Position inside the swing range (-100 to +100)
Context (Discount / Neutral / Premium) derived from the % value
Distance to the nearest pivot (Stop (pts))
Distance to the next relevant zone (Target (pts))
Additionally, the script can plot:
Previous period levels: PDH/PDL, PWH/PWL, PMH/PML
Pivot POC (Approx.) per timeframe (optional and independent from zone plotting)
⚠️ POC note: Pine Script does not provide true volume-at-price data. The “Pivot POC” here is an approximation built by accumulating candle volume into price bins inside the active pivot range (HLC3 mode is lighter; Spread mode is more profile-like but heavier).
Use the timeframe toggles to control what you plot and what appears in the table, and adjust Pivot Length + Neutral Band to fit your market and style.
Current Zone (Premium / Equilibrium / Discount + mid areas)
% Position inside the swing range (-100 to +100)
Context (Discount / Neutral / Premium) derived from the % value
Distance to the nearest pivot (Stop (pts))
Distance to the next relevant zone (Target (pts))
Additionally, the script can plot:
Previous period levels: PDH/PDL, PWH/PWL, PMH/PML
Pivot POC (Approx.) per timeframe (optional and independent from zone plotting)
⚠️ POC note: Pine Script does not provide true volume-at-price data. The “Pivot POC” here is an approximation built by accumulating candle volume into price bins inside the active pivot range (HLC3 mode is lighter; Spread mode is more profile-like but heavier).
Use the timeframe toggles to control what you plot and what appears in the table, and adjust Pivot Length + Neutral Band to fit your market and style.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.