ICT Killzones & HTF Candles"This is the code that I copied from LuxAlgo and Fadizeiden for the convenience of transactions. Thank you to the authors for making the source code open, allowing someone without programming expertise like me to use it. Sincerely grateful!"
อินดิเคเตอร์และกลยุทธ์
Anchored VWAP with Std Dev Bands### Anchored VWAP with 8 Standard Deviations Indicator
This powerful and flexible Pine Script indicator allows you to precisely analyze market dynamics using an Anchored VWAP combined with up to eight customizable standard deviation bands. By anchoring the VWAP to a specific bar of your choosing, you can gain a clear reference point tailored exactly to your trading strategy, enabling detailed price action analysis around critical market events.
#### Key Features:
- **Interactive Anchor Selection:** When adding the indicator to your chart, TradingView prompts you to select the exact bar from which to anchor the VWAP calculation, allowing pinpoint accuracy and flexibility.
- **Customizable Standard Deviations:** Define up to 8 individual standard deviation levels via intuitive inputs, ensuring the indicator adapts seamlessly to your analytical needs.
- **Source Flexibility:** Easily adjust the data source used for VWAP calculation—whether closing price, high, low, or any other price input available—giving you full control over the indicator's calculation.
- **Clear Visual Representation:** The anchored VWAP is prominently plotted in blue, while upper standard deviations are displayed in progressively stronger shades of green, and lower deviations in shades of red, making trend analysis clear and intuitive.
### Usage Recommendations:
Ideal for traders employing mean reversion strategies, trend-following systems, or looking for clear support and resistance levels based on institutional benchmarks. Perfectly suited for intraday traders, swing traders, and long-term investors seeking precise volume-weighted insights.
Enhance your analysis and trading precision today with the Anchored VWAP with 8 Standard Deviations Indicator.
EMA IndicatorThis indicator is optimized for traders seeking an edge in volatile markets, offering early entries on high-volume days like Tuesdays, where institutional activity is at its peak. It aligns with a systematic trading approach, minimizing subjectivity while maximizing consistency.
Volume Histogram with % Change by sirohi2706@gmail.comThis Pine Script indicator visualizes the Volume Delta using a histogram and provides percentage change labels for each bar. It helps traders analyze buying and selling pressure effectively by measuring the difference between up-volume and down-volume over a chosen timeframe.
🔍 Key Features:
✅ Histogram Representation:
The indicator displays Volume Delta as a color-coded histogram.
Green bars indicate higher buying pressure, while red bars indicate higher selling pressure.
✅ Percentage Change Calculation:
Calculates the absolute percentage change in Volume Delta compared to the previous bar.
The percent change label appears above each histogram bar.
Green text for positive changes and red text for negative changes.
✅ Custom Timeframe Support:
Users can enable custom timeframes to fine-tune Volume Delta calculations.
If a custom timeframe is not selected, the indicator auto-adjusts based on the chart timeframe.
✅ Error Handling & Robustness:
Handles missing volume data safely.
Prevents division errors by ensuring previous values are properly checked before calculations.
✅ Zero Line Reference:
A horizontal zero line provides a reference point to quickly identify shifts in buying/selling momentum.
🔗 How to Use:
1️⃣ Add the indicator to your TradingView chart.
2️⃣ Enable/disable the custom timeframe option as needed.
3️⃣ Analyze Volume Delta bars for market trends:
Stronger green bars → Buying dominance.
Stronger red bars → Selling dominance.
4️⃣ Observe percentage change labels to detect shifts in momentum.
📈 Use Cases:
📊 Day Traders & Scalpers: Identify short-term buy/sell dominance.
📊 Swing Traders: Detect volume-based trend shifts.
📊 Technical Analysts: Combine with other volume indicators for confirmation.
By - Akshat Sirohi
Email - sirohi2706 gmail.com
Buy me a coffee -
BTC - bc1qpeeu3vjrm9dn2y42sl926374y5cvdhfn5k7kxm
ADX by langshenExplanation of the Code in TradingView
This Pine Script™ code is designed to create a custom indicator called "ADX with Custom Line by langshen". It combines the Average Directional Index (ADX) with additional features like a custom horizontal line, background highlighting, and alert conditions. Below is a detailed explanation of the code:
Indicator Overview
Name: ADX with Custom Line by langshen
Short Title: ADX+Line
Overlay: No (displayed in a separate pane below the chart)
Key Features
ADX Calculation:
The ADX, +DI, and -DI are calculated using the ta.dmi function.
Users can adjust the ADX Length and ADX Smoothing parameters.
Custom Horizontal Line:
A horizontal line is drawn at a user-defined value (default: 30).
Users can customize the line's color, width, and style (solid, dotted, or dashed).
Background Highlighting:
The background is highlighted with a purple color when the ADX value is above the custom horizontal line.
The transparency of the background highlight can be adjusted.
Alert Conditions:
Alerts are triggered when the ADX crosses above or crosses below the custom horizontal line.
RSI Reversal Alerts📌 สิ่งที่โค้ดนี้ทำ:
✅ ใช้ RSI 14 และสามารถเปลี่ยนค่าได้
✅ แจ้งเตือนทันทีที่สัญญาณเกิดขึ้น
✅ แสดง เส้น RSI, Overbought (52) และ Oversold (48) บนกราฟ
✅ เพิ่มลูกศร บอกจุดเข้าออก
Sessions UND momentumMomentum based indicator anticipating mean reversions & shifts in momentum based on the harmonic ruleset of RSI, Bollinger Bands, Volume, Moving Averages, Trend continuation and break of trend.
Scalp trade Al/Sat Sinyalleri [wolcanoa]Bu indikatör, 15 dakikalık grafiklerde kısa vadeli al–sat sinyalleri oluşturmak üzere tasarlanmıştır. Temelde iki teknik gösterge kullanır:
EMA Kesişimi:
9 periyotluk (kısa) EMA ile 21 periyotluk (uzun) EMA'nın kesişimine bakar.
Al Sinyali: Kısa EMA, uzun EMA'yı yukarı keserse,
Sat Sinyali: Kısa EMA, uzun EMA'yı aşağı keserse.
RSI Filtresi:
14 periyotluk RSI kullanılarak,
Al sinyali için RSI 50’nin üzerinde,
Sat sinyali için RSI 50’nin altında olmalıdır.
Grafik üzerinde, EMA'lar çizilir ve sinyal koşulları sağlandığında "AL" ve "SAT" etiketleri gösterilir. Bu indikatör, 15 dakikalık zaman diliminde kısa vadeli trend değişimlerini yakalamak isteyen yatırımcılar için uygundur.
TMA StrategyThe **TMA Strategy** is a trend-following strategy that leverages **Smoothed Moving Averages (SMMA)** and **candlestick patterns** to identify high-probability trading opportunities. It is designed for traders who want to capture strong trends while minimizing noise from short-term fluctuations.
**Key Features:**
✔ **Multiple Smoothed Moving Averages (SMMA):** Uses 21, 50, 100, and 200-period SMMAs to identify market trends and key support/resistance zones.
✔ **Candlestick Pattern Confirmation:** Incorporates **3-line strike** and **engulfing candle** patterns to confirm trade entries.
✔ **Dynamic Trend Filter:** A **2-period EMA** ensures that trades align with the dominant trend, reducing false signals.
✔ **Customizable Session Filter:** Allows users to enable/disable trading within specific market sessions (New York, London, Tokyo, etc.), ensuring trades are executed only during high-liquidity hours.
✔ **Risk Management:** Uses predefined exit conditions based on EMA/SMMA crossovers to lock in profits and minimize losses.
**Trading Logic:**
📌 **Long Entry:**
- Bullish Engulfing or 3-Line Strike pattern appears.
- Price is above the 200 SMMA.
- 2 EMA confirms an uptrend.
- Trade executes if session filter allows.
📌 **Short Entry:**
- Bearish Engulfing or 3-Line Strike pattern appears.
- Price is below the 200 SMMA.
- 2 EMA confirms a downtrend.
- Trade executes if session filter allows.
📌 **Exit Conditions:**
- Long trades exit when EMA(2) crosses **below** SMMA(200).
- Short trades exit when EMA(2) crosses **above** SMMA(200).
**Ideal Markets & Timeframes:**
✅ Best suited for **Forex, Stocks, and Crypto** markets.
✅ Works well on **higher timeframes (15m, 1H, 4H, Daily)** for stronger trend confirmation.
📢 **Disclaimer:**
This strategy is for educational purposes only. Backtest results do not guarantee future performance. Always use proper risk management and test in a demo account before live trading.
🚀 **Try the TMA Strategy now and enhance your trend-following approach!**
EMA: Technical Analysis Tool - PanelAnalysis Tool
PANEL
EMA
9/21
8/20
50
RSI
Psar
Macd
Can turn off/on whatever you find useful
Gold Scalping (Fix Labels)Warning : this strategy is actual drugs, dont do it unless you are litteraly under any drug
this strategy actually have potential on gold 1 minute, with some special parameter, i am able to consistently have a gain with some very special value. i don't know how my code work but i assure you it's working, dm me on """" orso.gvc """"" on instagram to get the value!
Smart Money Flow: BOS & CHoCH🚀 Unlock the Power of Institutional Trading! This Smart Money Concept (SMC) indicator helps you spot key Break of Structure (BOS) and Change of Character (CHoCH) levels—giving you insight into trend shifts, liquidity grabs, and market flow.
✅ BOS (Break of Structure) – Confirms trend continuation 📈📉
✅ CHoCH (Change of Character) – Identifies potential reversals 🔄
✅ Works on Any Timeframe – 5m, 15m, 1H, 4H & more ⏳
✅ Simple Yet Powerful – Perfect for Smart Money traders 💰
💡 Use it to track institutional moves, ride trends, and avoid retail traps!
📊 Best for: Scalping, Swing Trading, and Institutional Flow Analysis.
Buy/Sell StrategyStrategy Description:
This strategy combines technical analysis with short-term buy and sell signals to help you optimize profits. To enhance your results, it's essential to incorporate additional technical indicators, such as moving averages, for better profitability.
ID 10 Second BarsEnters numbers 1, 3 and 5 under the appropriate bars on the 10 second chart and permits you to adjust the colors of each number.
Wyckoff Pro Trader//@version=6
indicator("Wyckoff Pro Trader", overlay=true)
// Input Parameters
length = input(20, title="Bollinger Bands Length")
src = close
mult = input(2.0, title="Bollinger Bands Multiplier")
emaLength = input(50, title="EMA Length")
macdFast = input(12, title="MACD Fast Length")
macdSlow = input(26, title="MACD Slow Length")
macdSignal = input(9, title="MACD Signal Smoothing")
rsilength = input(14, title="RSI Length")
thresholdLow = input(30, title="RSI Oversold Level")
thresholdHigh = input(70, title="RSI Overbought Level")
volumeThreshold = input(1.5, title="Volume Spike Multiplier")
retestBars = input(5, title="Retest Confirmation Bars")
// Bollinger Bands Calculation
basis = ta.sma(src, length)
deviation = mult * ta.stdev(src, length)
upperBand = basis + deviation
lowerBand = basis - deviation
// Exponential Moving Averages
ema50 = ta.ema(close, emaLength)
ema200 = ta.ema(close, 200)
// MACD Calculation
= ta.macd(close, macdFast, macdSlow, macdSignal)
macdCrossUp = ta.crossover(macdLine, signalLine)
macdCrossDown = ta.crossunder(macdLine, signalLine)
// RSI Calculation
rsi = ta.rsi(close, rsilength)
// Volume Analysis
volMa = ta.sma(volume, 20)
volumeSpike = volume > (volMa * volumeThreshold)
// Liquidity Grab Detection
lowestLow = ta.lowest(low, 10)
hasLiquidityGrab = low < lowerBand and rsi < thresholdLow and macdCrossUp and volumeSpike
// Wyckoff Accumulation Detection (Spring Phase)
isSpring = low == lowestLow and close > lowerBand and macdCrossUp and volumeSpike
// Wyckoff Distribution Detection (Upthrust Phase)
highestHigh = ta.highest(high, 20)
isUpthrust = high == highestHigh and close < upperBand and macdCrossDown and volumeSpike
// Confirmation of Trend Direction
bullishConfirmation = close > ema50 and ema50 > ema200
bearishConfirmation = close < ema50 and ema50 < ema200
// Retest Condition (Price revisits the breakout level within retestBars)
retestBuy = ta.barssince(hasLiquidityGrab or isSpring) <= retestBars and close > ema50
retestSell = ta.barssince(isUpthrust) <= retestBars and close < ema50
// Buy & Sell Conditions (Only after retest confirmation)
buySignal = retestBuy and bullishConfirmation
sellSignal = retestSell and bearishConfirmation
// Plot Signals
plotshape(buySignal, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal")
plotshape(sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal")
// Plot EMA and Bollinger Bands
plot(ema50, color=color.blue, title="EMA 50")
plot(ema200, color=color.orange, title="EMA 200")
plot(upperBand, color=color.gray, title="Upper Bollinger Band")
plot(lowerBand, color=color.gray, title="Lower Bollinger Band")
// Debugging Labels for Liquidity Grabs
if hasLiquidityGrab
label.new(bar_index, low, "LG", color=color.blue, textcolor=color.white, size=size.tiny)
if isSpring
label.new(bar_index, low, "Spring", color=color.green, textcolor=color.white, size=size.tiny)
if isUpthrust
label.new(bar_index, high, "Upthrust", color=color.red, textcolor=color.white, size=size.tiny)
Orta Vadeli Trend Sürme Stratejisi//@version=5
strategy("Orta Vadeli Trend Sürme Stratejisi", overlay=true, initial_capital=100000, default_qty_type=strategy.percent_of_equity, default_qty_value=1, commission_type=strategy.commission.percent, commission_value=0.1, calc_on_order_fills=true, calc_on_every_tick=true)
// *****************************************************************************
// 1. İşlem Dönemi: Son 6 Ay
// timenow milisaniye cinsinden güncel zamanı verir. 6 ay ≈ 15778800000 ms (ortalama 6x30.44 gün)
sixMonthsAgo = timenow - 15778800000
allowedTrade = time >= sixMonthsAgo // Sadece son 6 ay içindeki barlarda işlem yap
// *****************************************************************************
// 2. Teknik Göstergeler ve Parametre Ayarları
// RSI Ayarları
rsiLength = input.int(14, "RSI Periyodu")
rsiOverbought = input.int(70, "RSI Aşırı Alım Eşiği")
rsiOversold = input.int(30, "RSI Aşırı Satım Eşiği")
rsiValue = ta.rsi(close, rsiLength)
// MACD Ayarları
macdFast = input.int(12, "MACD Hızlı EMA")
macdSlow = input.int(26, "MACD Yavaş EMA")
macdSignal = input.int(9, "MACD Sinyal Periyodu")
= ta.macd(close, macdFast, macdSlow, macdSignal)
// Bollinger Bantları
bbLength = input.int(20, "Bollinger Periyodu")
bbStdDev = input.float(2.0, "Bollinger Standart Sapma")
bbBasis = ta.sma(close, bbLength)
bbDev = bbStdDev * ta.stdev(close, bbLength)
upperBB = bbBasis + bbDev
lowerBB = bbBasis - bbDev
// Hareketli Ortalamalar (EMA) – Trendin takibi için
emaShort = ta.ema(close, 20)
emaLong = ta.ema(close, 50)
// Çok Zamanlı Trend Analizi: Haftalık ve Aylık EMA (20 periyot)
emaWeekly = request.security(syminfo.tickerid, "W", ta.ema(close, 20))
emaMonthly = request.security(syminfo.tickerid, "M", ta.ema(close, 20))
// ADX (Trend Gücü) - adxSmoothing parametresi eklenmiştir.
adxPeriod = input.int(14, "ADX Periyodu")
adxSmoothing = input.int(14, "ADX Smoothing Periyodu")
adxThreshold = input.int(25, "ADX Eşik Değeri")
= ta.dmi(adxPeriod, adxSmoothing)
// Parabolic SAR (Trend değişim noktası tespiti)
psarStart = input.float(0.02, "PSAR Başlangıç")
psarIncrement = input.float(0.02, "PSAR Artış")
psarMax = input.float(0.2, "PSAR Maksimum")
psarValue = ta.sar(psarStart, psarIncrement, psarMax)
// Stochastic Osilatör
stochKLength = input.int(14, "Stochastic %K Periyodu")
stochDLength = input.int(3, "Stochastic %D Periyodu")
stochK = ta.stoch(close, high, low, stochKLength)
stochD = ta.sma(stochK, stochDLength)
// *****************************************************************************
// 3. Piyasa Trend Analizi
// Genel trend, günlük, haftalık ve aylık EMA değerleri üzerinden yorumlanır.
trendUp = (close > emaShort) and (close > emaLong) and (close > emaWeekly) and (close > emaMonthly)
trendDown = (close < emaShort) and (close < emaLong) and (close < emaWeekly) and (close < emaMonthly)
// *****************************************************************************
// 4. Giriş ve Çıkış Sinyalleri
// Alım: Yukarı yönlü trend, MACD’nin yukarı kesişimi, ADX’in güçlü trend sinyali ve fiyatın PSAR’ın üzerinde oluşması
// Satım: Aşağı yönlü trend, MACD’nin aşağı kesişimi, ADX’in güçlü trend sinyali ve fiyatın PSAR’ın altında oluşması
longCondition = allowedTrade and trendUp and ta.crossover(macdLine, signalLine) and (adxValue > adxThreshold) and (rsiValue < rsiOverbought) and (close > psarValue)
shortCondition = allowedTrade and trendDown and ta.crossunder(macdLine, signalLine) and (adxValue > adxThreshold) and (rsiValue > rsiOversold) and (close < psarValue)
// *****************************************************************************
// 5. Risk Yönetimi ve Pozisyon Büyüklüğü
// ATR tabanlı stop loss ve take profit
atrPeriod = input.int(14, "ATR Periyodu")
atrMultiplierSL = input.float(2.0, "ATR Stop Loss Çarpanı")
atrMultiplierTP = input.float(3.0, "ATR Take Profit Çarpanı")
atrValue = ta.atr(atrPeriod)
// İşlem girişlerinde, pozisyon açıldıktan sonra otomatik olarak stop loss ve take profit seviyeleri belirlenir.
if (longCondition)
strategy.entry("Long", strategy.long)
strategy.exit("Long Exit", "Long", stop = close - atrMultiplierSL * atrValue, limit = close + atrMultiplierTP * atrValue)
if (shortCondition)
strategy.entry("Short", strategy.short)
strategy.exit("Short Exit", "Short", stop = close + atrMultiplierSL * atrValue, limit = close - atrMultiplierTP * atrValue)
// *****************************************************************************
// 6. Grafiksel Gösterimler ve Raporlama
plot(emaShort, color=color.blue, title="EMA 20")
plot(emaLong, color=color.orange, title="EMA 50")
plot(psarValue, style=plot.style_circles, color=color.red, title="Parabolic SAR")
plot(bbBasis, color=color.gray, title="BB Temel (SMA)")
plot(upperBB, color=color.green, title="BB Üst Bant")
plot(lowerBB, color=color.green, title="BB Alt Bant")
// *****************************************************************************
// 7. Notlar ve Açıklamalar
// - Bu strateji, son 6 ayı kapsayacak şekilde filtreleme yapmaktadır.
// - Giriş/çıkış sinyalleri, trendin güçlü olduğu durumları hedefleyip, çoklu teknik gösterge kombinasyonu ile teyit edilmektedir.
// - Risk yönetimi, ATR tabanlı dinamik stop loss ve take profit seviyeleri ile sağlanmaktadır.
// - Stratejiyi çalıştırmadan önce, farklı zaman dilimlerinde ve semboller üzerinde optimizasyon yapmanız önerilir.
ST -Dashboard Volume MTF , [Sese04]User Guide: ST - Dashboard Volume MTF
Introduction
This script displays a multi-timeframe (MTF) volume dashboard, tracking buy and sell volumes and the moving averages of volume. It is designed for traders using ICT (Inner Circle Trader) and SMC (Smart Money Concepts) to quickly visualize market dynamics across multiple timeframes.
Settings and Features
📌 User Inputs
Customizable settings allow traders to adjust the dashboard display and volume moving averages.
Volume Display per Timeframe
show_vol_1m: Show volume for 1-minute chart.
show_vol_5m: Show volume for 5-minute chart.
show_vol_15m: Show volume for 15-minute chart.
show_vol_1h: Show volume for 1-hour chart.
show_vol_4h: Show volume for 4-hour chart.
show_vol_1d: Show volume for 1-day chart.
Volume Moving Average Settings
ma_length_short: Length of the short-term moving average (default 5 periods).
ma_length_long: Length of the long-term moving average (default 14 periods).
Dashboard Customization
dashboard_position: Dashboard position (Bottom Right, Bottom Left, Top Right, Top Left).
text_color: Text color for the dashboard.
text_size: Text size (small, normal, large).
How the Script Works
🔹 1. Calculating Buy and Sell Volume
The calculate_buy_sell function separates buy and sell volume based on the candle's open and close price:
If the closing price is higher than the opening price → Buy volume 📈.
If the closing price is lower or equal to the opening price → Sell volume 📉.
🔹 2. Retrieving Volume Data Across Multiple Timeframes
The function get_volumes collects buy and sell volume data for different timeframes using request.security().
The available timeframes are: 1m, 5m, 15m, 1h, 4h, and 1d.
🔹 3. Calculating Volume Moving Averages
The script uses ta.sma() to compute moving averages for volume trends:
ma_vol_short: Short-term moving average (e.g., 5 periods).
ma_vol_long: Long-term moving average (e.g., 14 periods).
🔹 4. Creating and Displaying the Dashboard
A table (table.new()) is generated at the last bar (barstate.islast) to display the volume data:
A title “📊 Volume Dashboard (Buy vs Sell)” in purple.
Column headers:
TIMEFRAME (e.g., 1M, 5M, 15M, 1H, 4H, 1D).
BUY VOLUME (dark blue).
SELL VOLUME (dark red).
Buy and Sell Volume values are displayed in their respective cells for easy reading.
How to Use This Script on TradingView?
Adding the Script
Open TradingView.
Go to Pine Editor and paste the script.
Click "Add to Chart".
Configuring the Settings
Open the indicator settings.
Enable/disable the desired timeframes.
Adjust the moving average lengths if necessary.
Interpreting the Data
Increasing buy volume across timeframes may indicate bullish momentum.
Rising sell volume suggests a bearish reversal.
Crossovers of volume moving averages can help detect market shifts.
Conclusion
This script is a powerful tool for analyzing volume dynamics across multiple timeframes. It provides a quick overview of the balance between buyers and sellers, essential for ICT scalping and liquidity-based trading.
🚀 Pro Tip: Combine this dashboard with other SMC indicators (engulfing candles, pivot points) to refine your trading decisions.
Bollinger Squeeze IndicatorThis indicator is designed to visually capture periods of low volatility, known as "squeezes." It integrates fully customizable Bollinger Bands and Keltner Channels computations to detect when the Bollinger Bands are completely within the Keltner Channels—signaling a potential breakout. When a squeeze is detected, a dot is plotted at level 0 in green (or a user-defined squeeze color), while non-squeeze periods appear in gray (or a user-selected alternative). Users can adjust key parameters including the period, standard deviation multiplier, moving average type, and even the dot size and colors, making it a versatile tool for identifying shifts in market momentum.
WMA 20, 50, 100, 200WMA (Weighted Moving Average) assigns greater weight to recent prices to smooth out trends while reacting faster to price changes.
WMA 20: Short-term trend indicator, reacts quickly to price changes.
WMA 50: Medium-term trend indicator, used to confirm short-term trends.
WMA 100: Long-term trend indicator, provides stronger trend confirmation.
WMA 200: Very long-term trend indicator, often used to identify major market trends and support/resistance levels.
ZenAlgo - LevelsThis script combines multiple anchored Volume-Weighted Average Price (VWAP) calculations into a single tool, providing a continuous record of past VWAP levels and highlighting when price has tested them. Typically, VWAP indicators show only the current VWAP for a single anchor period, requiring you to either keep re-anchoring manually or juggle multiple instances of different VWAP tools for each timeframe. By contrast, this script automatically tracks both the ongoing VWAP and previously completed VWAP values, along with real-time detection of “tests” (when price crosses a particular VWAP level). It’s especially valuable for traders who want to see how price has interacted with VWAP over several sessions, weeks, or months—without switching between separate indicators or manually setting anchors.
Below is a comprehensive explanation of each component, why multiple VWAP lines working together can be more informative than a single line, and how to adjust the script for various markets and trading styles:
Primary VWAP vs. Historical VWAP Lines - Standard VWAP indicators typically focus on the current line only. This script also calculates a primary VWAP, but it “locks in” each completed VWAP value when a new time anchor is detected (e.g., new weekly bar, new monthly bar, new session). As a result, you retain an ongoing history of VWAP lines for every completed anchored period. This is more powerful than manually setting up multiple VWAP tools—one for each desired timeframe—because everything is handled in a single script. You avoid chart clutter and the risk of forgetting to reset your manual VWAP at the correct bar.
Why Combine Multiple Anchored VWAP Lines in One Script? - Viewing several anchored VWAP lines together offers synergy . You see not only the current VWAP but also previous ones from different sessions or months, all within the same chart pane. This synergy becomes apparent if multiple historical VWAP lines cluster near the same price level, indicating a potentially significant zone of volume-based support or resistance. Handling this manually would involve repeatedly setting separate VWAP indicators, each reset at specific points, which is time-consuming and prone to error. In this script, the process is automated: as soon as the anchor changes, a completed VWAP line is stored so you can observe how price eventually reacts to it, repeatedly or not at all.
Automated “Test” Detection - Once a historical VWAP line is set, the script tracks when price crosses it in subsequent bars. If the high and low of a bar span that line, the script marks it in red (both the line and its label). It also keeps a counter of how many times each line has been tested. This method goes beyond a simple visual approach by quantifying the retests. Because all these lines are created and managed in one place, you don’t have to manually label the lines or check them one by one.
Advantages Over Manually Setting Multiple VWAPs
You save screen space: Instead of layering several VWAP indicators, each with unique settings, this single script plots them all on one overlay.
Automation: When a new anchor period begins, the script “closes out” the old VWAP and starts a new one. You never need to remember to reset it manually.
Retest Visualization: The script not only draws each line but also changes color and updates the label automatically if a line gets tested. Doing this by hand would be labor-intensive.
Unified Parameters: All settings (e.g., array size, max distance, test count limit) apply uniformly. You can manage them from one place, instead of configuring multiple separate tools.
Extended Insight with Multiple VWAP Lines
Since VWAP reflects the volume-weighted average price for each chosen period, historical lines can show zones where the market had a fair-value consensus in previous intervals. When the script preserves these lines, you see potential support/resistance areas more distinctly. If, for instance, price continually pivots around an old VWAP line, that may reveal a strong volume-based level. With several older VWAP lines on the chart, you gain an immediate sense of where these volume-derived averages have appeared and how price reacted over time. This wider perspective often proves more revealing than a single “current” VWAP line that does not reflect previous anchor sessions.
Handling of Illiquid Markets and Volume Limitations
VWAP is inherently tied to volume data, so its reliability decreases if volume reporting is missing or if the asset trades with very low liquidity. In such cases, a single large trade might momentarily skew the VWAP, resulting in “false” test signals when the high/low range intersects an abnormal price swing. If you suspect the data is incomplete or the market is unusually thin, it’s wise to confirm the validity of these VWAP lines before using them for any decision-making. Additionally, unusual market conditions—like after-hours trading or sudden high-volatility events—may cause VWAP to shift quickly, setting up multiple lines in a short time.
Key User-Configurable Settings
Hide VWAP on Day timeframe and above : Lets you disable the primary VWAP plot on daily or higher timeframes for a cleaner view.
Anchor Period : Select from Session, Week, Month, Quarter, Year, Decade or Century. Controls how frequently the script resets and preserves the VWAP line.
Offset : Moves the current VWAP line by a specified number of bars if you need a shifted perspective.
Max Array Size : Caps how many past VWAP lines the script will remember. Prevents clutter if you’re charting very long histories.
Max Distance : Defines how far back (in bar index units) a line is kept. If a line’s start bar is older than this threshold, it’s removed, keeping the chart uncluttered.
Max Red Labels : Limits the number of tested (red) VWAP lines that appear. If price tests a large number of old lines, only the newest red labels remain once you hit the set limit.
Workflow Overview
As soon as a new anchor period begins (e.g., a new weekly candle if “Week” is chosen), the script ends the current VWAP and stores that final value in its internal arrays.
It creates a dotted line and label representing the completed VWAP, and keeps track of whether it has been tested or not.
Subsequent bars may then cross that line. If a bar’s high/low includes the line’s value, it’s flagged as tested, labeled red, and a test counter increases.
As new anchored periods come, old lines remain visible—unless they fall outside your maxDistance or you exceed the maximum stored line count.
Real-World Benefits
Combining multiple VWAP lines—ranging, for example, from session-based lines for intraday perspectives to monthly or quarterly lines for broader context—provides a layered view of the volume-based fair price. This can help you quickly spot zones where price repeatedly intersects old VWAPs, potentially highlighting where bulls or bears took action historically. Because this script automates the management of all these lines and flags their retests, it removes a great deal of repetitive manual work that would typically accompany multiple, separate VWAP indicators set to different anchors.
Limitations & Practical Use
As with any volume-related tool, the script depends on reliable volume data. Assets trading on smaller venues or during illiquid periods may produce spurious signals. The script does not signal buy or sell decisions; rather, it helps visually map out where volume-weighted averages from previous periods might still be relevant to market behavior. Always combine the insight from these historical VWAP lines with your existing analytical approach or other technical and fundamental tools you use.
Conclusion
This script unifies past and present VWAP lines into one overlay, automatically detecting new anchor resets, storing the final VWAP values, and indicating whenever old lines are retested by price. It offers synergy through the simultaneous display of multiple historical VWAP lines, making it quicker and easier to detect potential support/resistance zones and better reflect changing market volumes over time. You no longer need to manually create, configure, or reset multiple VWAP indicators. Instead, the script handles all aspects of line creation, retest detection, and clutter management, giving you a robust framework to observe how historical VWAP data aligns with current price action.
By understanding the significance of multiple anchored VWAP lines, you can assess market structure from multiple angles in a single view. As always, ensure you confirm the reliability of the volume data for your particular asset and use these lines in conjunction with other analyses to form a well-rounded perspective on current market behavior.
Double Bollinger Bands ModifiableThe "Double Bollinger Bands" indicator plots two sets of Bollinger Bands on your chart, each with its own customizable multiplier. It calculates a simple moving average (SMA) and the standard deviation over a user-defined period. Then, it applies two different multipliers to the standard deviation to create two separate bands:
- First Set:
Uses a higher multiplier (default is 3.0) to create wider bands. This set highlights broader price volatility and is useful for identifying significant breakouts or reversals.
- Second Set:
Uses a lower multiplier (default is 0.5) to form tighter bands around the moving average. This set is useful for detecting periods of low volatility or consolidation. Additionally, you can choose to fill the area between these bands with a customizable color, providing a clear visual cue of the price’s proximity to the average.
How to Use the Indicator
1. Adjust the Period:
Change the period setting to determine over how many bars the SMA and standard deviation are calculated. This affects the sensitivity of the bands to recent price changes.
2. Customize Multipliers:
Modify the multipliers for both sets of bands. A higher multiplier will produce wider bands, while a lower multiplier will keep them closer to the moving average.
3. Enable/Disable Fill:
Toggle the fill option to visually emphasize the space between the lower and upper bands of the second set. This filled area helps in quickly assessing the current price action relative to a narrow volatility range.
4. Interpret the Bands:
- When prices move outside the first set of bands, it may indicate strong momentum or a potential reversal.
- The tight second set of bands can signal periods of consolidation, which might precede a breakout.
Overall, this indicator is a versatile tool for traders who want to analyze market volatility and identify potential trading opportunities through the interplay of wide and narrow Bollinger Bands.