OPEN-SOURCE SCRIPT
Güncellendi

Multi-Timeframe MA & VWAP Framework

362
Overview
The Multi-Timeframe MA & VWAP Framework is a highly customizable, all-in-one trend and volume tracking tool. Designed for professional and minimalist traders, this framework allows you to build the ultimate moving average ribbon without cluttering your charts.

Instead of stacking multiple indicators, this single script gives you access to 10 fully customizable moving averages, 3 true time-based Rolling VWAPs, and integrated SSL Hybrid baselines—all controllable via clean master toggles and right-edge labels.

🔑 Core Features
1. 10 Fully Customizable Moving Averages
Configure up to 10 independent MAs. For each line, you can select:

Type: SMA, EMA, WMA, VWMA, RMA, HMA, ALMA, DEMA, TEMA, and standard VWAP.
Timeframe: Native Multi-Timeframe (MTF) support. Plot 1H, 4H, 1D, or 1W MAs directly on your intraday chart.
Style: Line, Circles, Crosses, Stepline, or Area.
Color & Visibility: Individual toggles for every single MA.
2. Group Master Toggles
To keep your chart perfectly clean, MAs are grouped into three categories (1-4, 5-8, 9-10). Use the Master Toggles to instantly show or hide entire groups without changing individual settings.

3. True Rolling VWAP Engine
Standard VWAPs reset every session. This framework includes a custom-built True Rolling VWAP engine that uses arrays to track exact time windows.

Set a Multiplier and a Timeframe (e.g., 7x 1D for a 7-day Rolling VWAP, or 2x 4H for an 8-hour Rolling VWAP).
The engine dynamically prunes old volume data, ignoring weekends and chart gaps for mathematically accurate institutional volume tracking.
4. Integrated SSL Hybrid Baselines (MAs 9 & 10)
By selecting "SSL1" or "SSL2" for MA 9 and 10, you activate the SSL Hybrid baseline logic. This plots a Hull Moving Average (HMA) baseline with Keltner Channel bands. The baseline dynamically changes color (Bullish, Bearish, Neutral) based on price location, providing instant trend confirmation.

5. Smart Right-Edge Labels
Keep track of your MAs without guessing. The framework places tiny, clean labels on the right edge of the chart detailing the MA Type, Length, and Timeframe (e.g., EMA 50 4H). Label sizes are adjustable (Tiny, Small, Normal).

6. Optional Pair Fills
Enable translucent fills between paired MAs (1-2, 3-4, 5-6, etc.). The fill color dynamically changes based on which MA is currently higher, acting as a subtle visual cue for trend shifts and volume divergence.

🛠 How to Use This Framework
Start Clean: By default, MAs 1-4 are active. Use these for your primary trend (e.g., VWMA/SMA 50 combinations).
Add MTF Anchors: Enable MAs 5-8 and set their timeframes to higher periods (e.g., 4H, 1D, 1W) to see where higher-timeframe price action is respecting moving averages.
Activate SSL for Trend Confirmation: Turn on MA 9 or 10, set the type to SSL1/SSL2, and watch the baseline dynamically shift colors to confirm your trade direction.
Add Institutional Volume: Enable the Rolling VWAPs. A 1x 1D RVWAP gives you the standard daily anchor, while a 30x 1D RVWAP gives you a macro 30-day institutional average.
Declutter: If you only want to look at the SSL and a single EMA, uncheck the Master Toggles for the groups you don't need.
📌 Credits & Inspirations
This framework is an open-source compilation heavily modified and custom-coded into a unified suite. Special thanks to the original concepts:

Rolling VWAP concept: TradingView Official Rolling VWAP
VWMA/SMA Divergence logic: VWMA/SMA Breakout and Divergence Detector
SSL Hybrid baseline: SSL Hybrid by KivancOzbilgic
⚠️ Disclaimer
This script is provided for educational and analytical purposes only. It is not financial advice. Always test indicators on a paper trading account before incorporating them into a live trading strategy.
Sürüm Notları
adapted the default values

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.