OPEN-SOURCE SCRIPT
Aggiornato

Multi-Tool VWAP + EMAs (Multi-Timeframe) + Key Levels

22 525
Description
This indicator combines several commonly used technical analysis tools into a single script, especially useful for traders using the free version of TradingView or anyone looking to reduce the number of indicators on their chart.

The goal is to provide clear visual references for trend, structure, and key levels—without generating buy/sell signals or automated trading functions.

Included Features

1. VWAP (session-anchored)

  • []Source: HLC3
    []Purple line, thickness 2
  • Useful as a reference for daily institutional average price.


2. EMAs of the current timeframe

  • []EMA 200 (red, thickness 3)
    []EMA 9 (green, thickness 1)

    These EMAs help visualize long-term trend and short-term momentum.


3. Dynamic EMAs (MTF – Multi-Timeframe)
The indicator displays the 200 EMA from higher timeframes as dynamic horizontal levels:

  • []5 minutes
    []15 minutes
    []30 minutes
    []1 hour
    []4 hours
    []1 day


Each level includes a descriptive label such as “15 min EMA 200”.

These EMAs serve as reference points for potential support/resistance areas coming from higher timeframes.

4. Automatic Key Levels
The indicator plots several important price levels:

Previous day:

PDH (Previous Day High)

PDL (Previous Day Low)

Previous Day 50% Fibonacci level

Pre-market (04:00–09:30 exchange time):

PMH (Pre-Market High)

PML (Pre-Market Low)

Current session:

Open (session opening price)

Previous Close (prior day’s closing price)

Purpose and Scope
This script is designed to provide basic visual reference points to support discretionary analysis.
It does not generate signals or trading suggestions, and it is not intended to predict future price movements.

How to Use It

  1. []Enable or disable each block in the Inputs section according to your analysis style.
    []Observe how the levels, EMAs, and VWAP interact with market structure.
  2. Use it as a visual complement to your personal technical analysis.


Limitations

  • []This indicator is not a trading system and does not guarantee results.
    []It does not include alerts, backtesting, or entry/exit logic.
  • Some values (such as PMH/PML) depend on the symbol’s exchange trading hours.


Pine Script®


Credits
Designed as an educational and analytical tool for traders seeking to simplify their charts without losing key information.
Note di rilascio
Description
This indicator combines several commonly used technical analysis tools into a single script, especially useful for traders using the free version of TradingView or anyone looking to reduce the number of indicators on their chart.

The goal is to provide clear visual references for trend, structure, and key levels—without generating buy/sell signals or automated trading functions.

Included Features

1. VWAP (session-anchored)
-Source: HLC3
- Purple line, thickness 2
-Useful as a reference for daily institutional average price.


2. EMAs of the current timeframe
- Long EMA, 200 (red, thickness 3)
- Short EMA, 9 (green, thickness 1)

These EMAs help visualize long-term trend and short-term momentum.


3. Dynamic EMAs (MTF – Multi-Timeframe)
The indicator displays the 200 EMA from higher timeframes as dynamic horizontal levels:
- 5 minutes
- 15 minutes
- 30 minutes
- 1 hour
- 4 hours
- 1 day


Each level includes a descriptive label such as “15 min EMA 200”.

These EMAs serve as reference points for potential support/resistance areas coming from higher timeframes.

4. Automatic Key Levels
The indicator plots several important price levels:

Previous day:
- PDH (Previous Day High)
- PDL (Previous Day Low)
- Previous Day 50% Fibonacci level

Previous session:
Pre-market (04:00–09:30 exchange time):

- PMH (Pre-Market High)
-PML (Pre-Market Low)

Current session:
- Open (session opening price)
- Previous Close (prior day’s closing price)

Purpose and Scope
This script is designed to provide basic visual reference points to support discretionary analysis. It does not generate signals or trading suggestions, and it is not intended to predict future price movements.

How to Use It
  • Enable or disable each block in the Inputs section according to your analysis style.
  • Observe how the levels, EMAs, and VWAP interact with market structure.
  • Use it as a visual complement to your personal technical analysis.


Limitations
  • This indicator is not a trading system and does not guarantee results.
  • It does not include alerts, backtesting, or entry/exit logic.
  • Some values (such as PMH/PML) depend on the symbol’s exchange trading hours.
Note di rilascio
Description
This indicator combines several commonly used technical analysis tools into a single script, especially useful for traders using the free version of TradingView or anyone looking to reduce the number of indicators on their chart.

The goal is to provide clear visual references for trend, structure, and key levels—without generating buy/sell signals or automated trading functions.

Pine Script®

Included Features

1. VWAP (session-anchored)
Source: HLC3
  • Purple line, thickness 2
  • Useful as a reference for daily institutional average price.


2. EMAs of the current timeframe

  • EMA 200 (red, thickness 3)
  • EMA 9 (green, thickness 1)


These EMAs help visualize long-term trend and short-term momentum.


3. Dynamic EMAs (MTF – Multi-Timeframe)

The indicator displays the 200 EMA from higher timeframes as dynamic horizontal levels:
  • 5 minutes
  • 15 minutes
  • 30 minutes
  • 1 hour
  • 4 hours
  • 1 day


Each level includes a descriptive label such as “15 min EMA 200”.

These EMAs serve as reference points for potential support/resistance areas coming from higher timeframes.

4. Automatic Key Levels

The indicator plots several important price levels:

Previous day:

  • PDH (Previous Day High)
  • PDL (Previous Day Low)
  • Previous Day 50% Fibonacci level


Previous session (04:00–09:30 exchange time):

  • PMH (Pre-Market High)
  • PML (Pre-Market Low)


Current session:

  • Open (session opening price)
  • Previous Close (prior day’s closing price)


Purpose and Scope

This script is designed to provide basic visual reference points to support discretionary analysis.
It does not generate signals or trading suggestions, and it is not intended to predict future price movements.

Pine Script®

How to Use It

  • Enable or disable each block in the Inputs section according to your analysis style.
  • Observe how the levels, EMAs, and VWAP interact with market structure.
  • Observe gap percentage as market opens.
  • Use it as a visual complement to your personal technical analysis.


Pine Script®

[Limitations

  • This indicator is not a trading system and does not guarantee results.
  • It does not include alerts, backtesting, or entry/exit logic.
  • Some values (such as PMH/PML) depend on the symbol’s exchange trading hours.

Note di rilascio
Included Features

1. VWAP (session-anchored)
Source: HLC3
  • Purple line, thickness 2
  • Useful as a reference for daily institutional average price.


2. EMAs of the current timeframe
  • Short EMA: EMA 9 (green, thickness 1)
  • Medium EMA: EMA 50 (blue, thickness 1)
  • Long EMA: EMA 200 (red, thickness 3)



These EMAs help visualize long-term trend and short-term momentum.


3. Dynamic EMAs (MTF – Multi-Timeframe)

The indicator displays the 200 EMA from higher timeframes as dynamic horizontal levels:
  • 5 minutes
  • 15 minutes
  • 30 minutes
  • 1 hour
  • 4 hours
  • 1 day


Each level includes a descriptive label such as “15 min EMA 200”.

These EMAs serve as reference points for potential support/resistance areas coming from higher timeframes.


4. Automatic Key Levels

The indicator plots several important price levels:

Previous day:


  • PDH (Previous Day High)
  • PDL (Previous Day Low)
  • Previous Day 50% Fibonacci level



Previous session (04:00–09:30 exchange time):

  • PMH (Pre-Market High)
  • PML (Pre-Market Low)


Current session:

  • Open (session opening price)
  • Previous Close (prior day’s closing price)



Purpose and Scope

  • This script is designed to provide basic visual reference points to support discretionary analysis.
  • It does not generate signals or trading suggestions, and it is not intended to predict future price movements.


How to Use It

  • Enable or disable each block in the Inputs section according to your analysis style.
  • Observe how the levels, EMAs, and VWAP interact with market structure.
  • Observe gap percentage as market opens.
  • Use it as a visual complement to your personal technical analysis.


Please contact me for support if you need it.
Note di rilascio
[Dic/12/25]
- Added the possibility to toggle EMAs independently
- Added a probability zone for the gap and Fibo golden zone
Note di rilascio
[Dec/18/25]
- Added non conventional EMA 200s. Now including: 30 min, 2 hours and 3 hours.
- Added the possibility of making each EMA optional

Upcoming:
I'm thinking in going to version 2 with these changes:

What do you think? let me know what you think.
- "n" amount of automatic EMAs above and below the price. I'm thinking of showing "closest" EMAs automatically
- Coloring support and resistance EMAs different. I'm thinking on coloring EMAs above the price on one color and EMAs below the price on a different color.

What do you think of making this indicator a 'context-aware EMA engine'?
Note di rilascio
📌 Release Notes — v1.9

New in v1.9

  • Added EMA 21

- New optional EMA 21 (orange) has been added to the main EMA set.
- Complements EMA 9, EMA 50 and EMA 200 for short-term structure and pullback context.
- Useful for visually identifying EMA 9 / EMA 21 crosses as momentum confluence (no signals generated).

Improved EMA hierarchy

Main EMA stack now includes:

- EMA 9 (short-term momentum)
- EMA 21 (short-term structure)
- EMA 50 (intraday bias)
- EMA 200 (macro regime)

Each EMA can be enabled or disabled independently.

  • No changes to existing logic

- VWAP, multi-timeframe EMA 200 levels, key price levels, gap visualization and probability zone remain unchanged.
- No alerts, signals, or automated logic were added.

General

  • This update is focused on improving visual context and chart readability.
  • The script remains a discretionary analysis tool and does not provide trading signals or predictions.
Note di rilascio
ChangeLog
  • EMA colors are now user-configurable via Inputs for improved flexibility.

Thanks for using this indicator. Follow me for more.

Note di rilascio
🔧 v1.9.2 — Stability & Key Levels Restore
This update focuses on restoring stability and visual consistency without introducing new features.

Fixed
- Restored all Key Levels that were missing in previous builds:
  • Previous Day High (PDH)
  • Previous Day Low (PDL)
  • Yesterday Close (RTH close)
  • Pre-Market High (PMH)
  • Pre-Market Low (PML)
  • Opening Price (09:30 NY)
  • Previous Day Fibo 50%


- Key Levels are now drawn using persistent objects:
  • No duplication across days
  • No accumulation of historical levels


- Labels are again aligned to the right of the chart, away from price action, matching the original layout.

Unchanged
  • VWAP (session anchored)
  • EMA stack (9 / 21 / 50 / 200)
  • Multi-Timeframe EMA 200 dynamic levels
  • Gap measurement, gap level and probability zone
  • Inputs, offsets, colors and general chart layout


Notes
  • This version is intended as a stability restore.
  • No trading signals, alerts, or automation are included.
  • Designed strictly as a discretionary visual analysis tool.
Note di rilascio
📦 Release Notes — v1.9 FIX + Historical Open/Close
✅ What’s New

1. Historical Opening Price (RTH) + Yesterday Close (RTH)
You can now see historical session-based levels:

  • Blue = Daily Opening Price (RTH)
  • Aqua = Previous Day Close (RTH)


These levels:
  • Are drawn per session
  • Extend only during that specific regular trading session
  • Do not create backward chart noise


Maintain clean visual structure

2. Corrected “Yesterday Close” Source (Major Fix)
Yesterday’s Close is now calculated strictly from the Regular Trading Session (4:00 PM close).

This fixes:

Gap % inconsistencies
  • Mismatched close levels vs other institutional indicators
  • Incorrect values caused by extended hours data
  • Gap calculations now align properly with RTH data.


3. Historical Depth Control
New setting:
“How many days back” → Control how many historical Open/Close session levels are displayed.
Keeps the chart clean and performance optimized.


🔧 Stability & Compatibility
- No changes to existing layout behavior.
- Right-side labels remain unchanged.
- No accumulation or object noise.

Fully compatible with:
  • VWAP
  • EMA 9 / 21 / 50 / 200
  • Dynamic MTF EMA 200
  • PDH / PDL / PMH / PML
  • Gap logic



🔜 Next Phase Consideration
I’m considering making the next major version (v2.0) Premium / Invite-Only.

Reasoning:
- Protect intellectual edge.
- Maintain quality control.
- Deliver higher-level tools without public limitations.
- Keep a stable “Community Branch” and a separate advanced “Pro Branch”.

More details coming soon.

If you are using this tool daily:
These Open and Close levels are powerful liquidity references.
Use them wisely.
Note di rilascio
📦 Release Notes — v1.9.1
Multi-Tool: VWAP + EMAs + Key Levels

🆕 New Feature
Historical Opening Price & Yesterday Close (RTH Sessions)


- Added historical session-based levels:
- Blue line = Regular Session Open
- Aqua line = Previous Day Regular Session Close
- Lines are drawn per session and only extend during that session, preventing chart clutter.
- Users can control how many past sessions are displayed with “How many days back”.
- These levels act as key liquidity and institutional reference levels.


🔧 Major Fix
Yesterday Close calculation corrected

- Yesterday’s Close is now based strictly on the Regular Trading Session close (4:00 PM).
- This fixes:
- Incorrect Gap %
- Misaligned close levels vs other professional indicators
- Errors caused by Extended Hours data

Gap calculations are now fully aligned with RTH data.


🛠 Bug Fix
Fixed runtime error (array out of bounds)


Resolved an issue that could cause a runtime error when Historical Open/Close was disabled.
Improved array cleanup logic to prevent index errors on script initialization.


⚙️ Stability
- No changes to chart layout.
- No changes to right-side labels.
- No object accumulation.
- Compatible with all existing features:
- VWAP
- EMA 9 / 21 / 50 / 200
- Dynamic MTF EMA 200
- PDH / PDL / PMH / PML
- Gap logic
- Fibo 50%


🔜 Looking Ahead
I am currently considering making the next major version (v2.0) Premium / Invite-Only.

The goal would be to:

- Continue improving the tool
- Add more advanced institutional-style levels and logic
- Maintain a clean and stable version for the public
- Offer a more advanced version for serious users

More updates coming soon.


If you use this tool regularly, remember:
Open and Previous Close are not just lines — they are liquidity levels.

Note di rilascio
🔹 Release Notes — v2.0 (POC + Stability Update)
This update introduces a major enhancement to the indicator while restoring full stability and consistency across all components.

✅ New Features
• Session POC (Point of Control)

- Added Premarket POC and NY Session POC
- Lightweight volume-based approximation (optimized for performance)
- Acts as a dynamic liquidity and equilibrium reference
- Fully optional and independently configurable


🔧 Improvements & Fixes
• VWAP & EMAs restored
- Fixed discrepancies with VWAP and EMA calculations
- Now fully aligned with standard TradingView behavior

• Key Levels stability restored
- PDH, PDL, PMH, PML, Opening Price, and Yesterday Close working correctly again
- Levels dynamically adjust with chart scaling and zoom

• Historical Open & Close (fixed)
- Restored session-based historical levels
- Each session now displays clean, non-extended segments
- Improved accuracy using regular session data

• Yesterday Close correction
- Now uses regular session close instead of extended hours
- Fixes gap calculation inconsistencies

• Gap logic stabilized
- Gap % now accurately reflects Opening vs Yesterday Close
- Improved reliability across all timeframes

• Performance improvements
- Reduced object conflicts and rendering issues
- Improved array handling to prevent runtime errors

⚠️ Notes
- This version is considered a new stable baseline
- All previous visual inconsistencies and scaling issues have been resolved
- The indicator now behaves consistently across different chart types and timeframes

🔮 Coming Next
Future versions may include:

- Advanced liquidity mapping
- Smarter level clustering (confluence detection)
- Additional session-based analytics

The next major version is being considered as a Premium / Invite-Only release, focused on higher-level execution tools and institutional context.
Note di rilascio
🔹 Release Notes
v2.0.1 – Visual Customization Update


Added full color customization for:

- VWAP
- EMAs (9, 21, 50, 200)
- Dynamic EMA 200 levels
- Key Levels (PDH, PDL, PMH, PML, Open, Close, Fibo)
- POC levels (Premarket & NY Session)
- Added global label size control (Tiny → Huge)
- Improved visual flexibility without altering core logic or behavior

Note di rilascio
🔹 Release Notes — v2.2 (Volume Profile Accuracy Update)
This update significantly improves the accuracy of all Volume Profile–based levels while preserving the existing structure and performance.

About Volume Profile
In a nutshell, Volume Profile tells you where the price is in its confort zone. You want to trae outside of the confort zone to capture more directional moves specially if you use Options or Futures.

✅ Improvements
• Enhanced Previous Day Volume Profile (VAH / VAL / POC)
- Volume is now distributed across each candle’s full high–low range
- Replaces previous close-based allocation (major accuracy upgrade)
- Results are now much closer to TradingView’s Fixed Range Volume Profile

• Improved Intraday POC (Premarket & NY Session)
- Upgraded volume distribution logic for both sessions
- Better alignment with real market volume behavior
- More reliable intraday reference levels

🧠 What changed (under the hood)
- Moved from:
- Single-price volume assignment (close-based)
- To:
- Range-based volume distribution across bins

This provides a more realistic approximation of how volume is actually traded within each candle.

🎯 Result
- VAH / VAL levels now behave more like true reaction zones
- POC levels are more stable and meaningful
- Overall structure is closer to institutional-grade volume profiling

⚠️ Notes
- This is still a lightweight approximation (Pine Script limitation)
- Exact replication of TradingView’s Volume Profile is not possible
- Focus is on consistency and practical trading relevance, not perfect matching

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.