Paparan MTF Bollinger BandsScript Description: MTF Bollinger Bands Display
1. Core Purpose
The main purpose of this script is to display two sets of Bollinger Bands (BB) from two different timeframes on a single chart. It is a visual analysis tool designed to help traders see the market from two perspectives simultaneously:
Short-Term Perspective (LTF): Current price action and volatility.
Long-Term Perspective (HTF): The broader trend and significant "value zones."
2. Key Features & Settings
The script is highly flexible, as nearly all elements can be modified through the Settings menu (⚙️ icon). It is divided into two main sections:
Section 1: Current Timeframe (LTF) Settings
BB Length (Length): Determines the period for the moving average (default: 20).
Standard Deviation (StdDev): Sets the width of the Bollinger Bands (default: 2.0).
Color: Allows you to change the color for this BB set (default: Blue).
Section 2: Higher Timeframe (HTF) Settings
Select Higher Timeframe (Timeframe): This is the most important setting. Here you can choose your reference timeframe, for example, "240" (4-Hour), "D" (Daily), or "W" (Weekly).
BB Length & StdDev: Similar to the LTF, you can set the BB parameters for the HTF independently.
Color & Line Thickness: You can change the color (default: Black) and also the line thickness to easily distinguish it from the current timeframe's BB.
3. How It Works
The script performs two parallel calculations:
LTF Calculation: It calculates the Bollinger Bands normally using the price data from the timeframe you are currently viewing on your chart (e.g., 15-Minute). The result is the blue lines that move smoothly with each candle.
HTF Calculation: This is the more complex part.
It uses the request.security() function to "request" the Bollinger Bands data from the higher timeframe (e.g., 4-Hour) that you have set.
To ensure the displayed data is accurate and does not "repaint," it fetches the BB values from the HTF candle that has already closed.
This means that the BB value from a single 4-hour candle will remain constant and be plotted as a flat line across all the 15-minute candles that fall within that 4-hour period.
4. What You See on the Chart (Visual Output)
When you add this script to a chart (for example, a 15-minute chart), you will see:
One set of blue Bollinger Bands that closely "hugs" the 15-minute price. This shows the short-term volatility.
Another set of thicker, black Bollinger Bands that appear 'stepped' or 'blocky'. These are the Bollinger Bands from the 4-hour timeframe. The "steps" indicate where the Upper, Middle, and Lower Band levels were for each 4-hour period.
Practical Uses:
Identifying the Trend: If the blue BB (LTF) is contained within the upper half of the black BB (HTF), it could indicate a pullback within a strong uptrend.
Dynamic Support & Resistance Zones: The black HTF bands can act as very strong long-term support or resistance zones. For example, if the price on a 15-minute chart drops to the H4 Lower Band, it might be a good buying zone.
Spotting Volatility Squeezes: You can see if both sets of Bollinger Bands are contracting simultaneously, signaling that a significant price move may be imminent.
In short, this script is a visual dashboard that allows you to make trading decisions on a lower timeframe with full awareness of the market context on a larger timeframe.
Bandas y canales
Supertrend + RSI + StochasticSuperTrend + RSI + Stochastic Entry System
A professional-grade trend-following indicator that combines SuperTrend direction detection with RSI and Stochastic confirmation filters to identify high-probability entry points.
What It Does
This indicator filters SuperTrend signals through multiple confirmation layers to reduce false signals and improve trade quality. Instead of taking every SuperTrend flip, it only signals when momentum indicators confirm the move.
How It Works
Entry Logic:
LONG: SuperTrend flips bullish + RSI above 40 + Stochastic above 30
SHORT: SuperTrend flips bearish + RSI below 60 + Stochastic below 70
The system uses "in-zone" confirmation rather than requiring exact crossovers, allowing for more practical real-time trading.
Key Features
1. RSI Bands (Visual Price Levels)
Converts RSI levels into actual price bands on your chart
Green band = RSI 40 level (long zone)
Red band = RSI 60 level (short zone)
Gray midline = neutral zone (RSI ~50)
2. Background Shading
Subtle green tint = All conditions aligned for long entry
Subtle red tint = All conditions aligned for short entry
Helps you anticipate signals before they trigger
3. Enhanced Signal Labels
Shows exact RSI and Stochastic values at signal trigger
Displays as: "Buy RSI:42 K:35"
Lets you assess signal strength
4. Flexible Filters
Toggle long/short signals independently
Enable/disable RSI filter
Enable/disable Stochastic filter
Show/hide RSI bands
Show/hide setup background shading
Settings
SuperTrend Parameters:
ATR Period (default: 10)
ATR Multiplier (default: 3.0)
Source (default: HL2)
RSI Filter:
RSI Length (default: 14)
Long Level (default: 40)
Short Level (default: 60)
Stochastic Filter:
Stochastic Length (default: 14)
Smoothing (default: 3)
Long Level (default: 30)
Short Level (default: 70)
Best Use Cases
Trending markets with clear directional bias
Medium to longer timeframes (10min+)
Works particularly well for long-only strategies in bullish markets
Ideal for swing trading and position trading
How to Trade
Wait for background to shade (setup building)
When signal appears, check RSI/Stochastic values on label
Stronger values = higher confidence trades
Exit on opposite signal or use your own risk management
Notes
All filters are optional and can be toggled off
Can be used as long-only or short-only by disabling one direction
Combines trend-following with momentum confirmation for higher win rates
Based on proven technical analysis principles
Remote bar rangeShows the price range for a certain period of bars back. For example, the range between 100 bars back and 50 bars back. The last 50 bars are not counted in this case.
Yearly Anchored VWSTD (Volume-Weighted StdDev Bands)This indicator calculates a Volume-Weighted Mean Band (VWMB) — similar in concept to an anchored VWAP — and measures standard deviation from the mean to visualize how far price has deviated from its volume-weighted equilibrium.
Each calendar year acts as an anchor period: the cumulative calculations reset automatically on January 1st, providing a fresh annual reference.
At any time, the middle yellow line represents the volume-weighted mean price (VWMP) since the start of the current year, while the surrounding ±1σ, ±2σ, and ±3σ bands show progressively stronger deviations from that mean, taking both price and volume into account.
DM Super Trend FlowDM Super Trend Flow — Single Line Explanation
The DM Super Trend Flow is a single-line trend indicator built from a carefully selected group of Exponential Moving Averages (EMAs) designed to capture smooth and reliable trend direction.
Instead of plotting multiple EMA lines, the indicator calculates several EMAs internally and then displays only the middle EMA — creating a clean, uncluttered chart while still reflecting the overall trend strength and alignment.
The line color automatically changes based on how all EMAs are aligned:
GREEN - Bullish Alignment → All EMAs are stacked upward, confirming strong upward momentum. (Line turns lime)
RED - Bearish Alignment → All EMAs are stacked downward, confirming strong downward momentum. (Line turns red)
GRAY - EMAs are mixed or flat, indicating sideways or transition phases. (Line turns gray)
This single dynamic line gives you a clear visual of overall market direction — showing when the trend is fully aligned, weakening, or shifting — without the clutter of multiple overlapping averages.
Momentum Bubbles v5.8Momentum Bubbles uses advanced momentum, volume and CVD data to map and plot Bookmap style bubbles directly on your trading chart, High propulsion candles align with large deep colored bubbles with trending range is opaque and only changing color to orange as a waring of pullbacks.
5 MAs + Composite Gradient + Multi Sensitivity + HybridIndicator Description
🔹 Core Structure
• The indicator plots five moving averages (MAs), each fully customizable: you can choose the type (SMA, EMA, WMA, HMA, RMA, VWMA), the length, the color, and the transparency.
• On top of them, it calculates a Composite line, which is simply the average of all five MAs.
🔹 Colors and Lines
• Each MA is drawn in the color you select, with adjustable transparency.
• The Composite line is dynamically colored: it shifts from red when the slope is strongly negative (downtrend) to green when the slope is strongly positive (uptrend), with smooth gradients in between.
• The line thickness of the Composite changes automatically: thin when the slope is weak, thick when the slope is strong.
🔹 Shading
• Light shading is drawn between MA1 ↔ MA5 and MA2 ↔ MA4.
• The shading color follows the Composite’s gradient, so the background tint reflects the current trend strength and direction.
🔹 Buy/Sell Signals
• A green BUY arrow appears below a candle when the price crosses above the Composite with enough strength.
• A red SELL arrow appears above a candle when the price crosses below the Composite with enough strength.
• The “enough strength” part is controlled by a sensitivity threshold.
🔹 Sensitivity Modes
You can choose how the threshold is calculated:
1. Dynamic TF – Sensitivity adapts to the timeframe:
• 1 minute → 0.2%
• 1 hour → 0.5%
• 1 day → 1%
2. ATR – Threshold is based on a multiple of the Average True Range.
3. StdDev – Threshold is based on a multiple of the standard deviation of price.
4. Hybrid – Requires both Dynamic TF and ATR conditions to be satisfied.
The Result
• You get a visually clear chart: faint customizable MAs, a Composite line that changes color and thickness with the trend, and shaded zones that reinforce the direction.
• You also get smart trading signals: filtered BUY/SELL arrows that adapt to volatility, timeframe, or both.
• The whole system is modular and flexible: you can tune every MA, every sensitivity mode, and every visual element.
OPEN MULTITIMEFRAMEIntroduction: The indicator's name and its main purpose (e.g., "A comprehensive multi-timeframe indicator that displays trends based on the Open price and Chikou Span signals...").
Features: A list of the key features included in the indicator (e.g., Multi-Timeframe Dashboard, Moving Averages on Open price, volume-based candle coloring, trading sessions...).
How to Use: Instructions on how to read signals from the dashboard, the meaning of the plotted lines, or how to combine signals for trading.
[Booggo] Smoothed Trend Follow Strategy (Backtest-Only)Market volatility demands a sophisticated approach that goes beyond simple entry/exit rules. This strategy is a next-generation trend-following system designed to follow the market's major currents while dynamically managing the risk of each trade to maximize stability and preserve profits.
Key Features:
Intelligent Risk Engine: Automatically adjusts risk based on recent trading performance.
Volatility-Based Position Sizing: It detects low-volatility periods where the market is consolidating energy, allowing for proactive position adjustments ahead of potential trend breakouts.
Robust Asset Protection: Fundamentally prevents dangerous over-betting, even during drawdowns, to ensure stable asset management.
Advanced Noise Filtering: Filters out short-term market noise through a sophisticated smoothing logic, focusing on the essential movements of reliable trends.
This strategy offers more than just signal generation; it provides an answer to the critical question of "how to ride a trend while effectively managing risk." We encourage you to verify its strengths firsthand through comprehensive backtesting.
시장의 변동성은 단순한 진입/청산 규칙을 넘어서는 정교한 접근을 요구합니다. 본 전략은 시장의 큰 흐름을 따르면서도, 각 거래의 리스크를 동적으로 관리하여 안정성을 극대화하고 수익을 보존하도록 설계된 차세대 추세 추종 시스템입니다.
주요 특징:
지능형 리스크 엔진: 최근 거래 성과를 바탕으로 리스크를 자동 조절합니다.
변동성 기반 포지션 조절: 시장이 에너지를 응축하는 저변동성 구간을 감지하여, 잠재적인 추세 확장을 앞두고 선제적으로 포지션을 조절하는 기능이 탑재되어 있습니다.
안정적인 자산 보호 기준: 드로우다운 상황에서도 위험한 과대 베팅을 원천적으로 방지하고 자산을 안정적으로 관리합니다.
고급 노이즈 필터링: 정교한 Smoothing 로직을 통해 시장의 단기적인 소음을 걸러내고, 신뢰도 높은 추세의 본질적인 움직임에 집중합니다.
이 전략은 단순한 시그널 생성을 넘어, '어떻게 리스크를 관리하며 추세를 탈 것인가'에 대한 하나의 해답을 제시합니다. 충분한 백테스트를 통해 그 강점을 직접 확인해 보시기 바랍니다.
Telegram ID : @booggo83
Quick Reversal Strategy - Bash Modrs//@version=5
indicator("Quick Reversal Strategy - Bash Modrs", overlay=true)
// === Moving Averages ===
ema9 = ta.ema(close, 9)
ema21 = ta.ema(close, 21)
// === RSI ===
rsi = ta.rsi(close, 14)
// === Bollinger Bands ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + dev * 2
lower = basis - dev * 2
// === Volume ===
vol = volume
vol_avg = ta.sma(volume, 20)
vol_color = vol > vol_avg ? color.new(color.green, 0) : color.new(color.red, 0)
// === Plot Indicators ===
plot(ema9, color=color.yellow, linewidth=2, title="EMA 9")
plot(ema21, color=color.orange, linewidth=2, title="EMA 21")
plot(basis, color=color.blue, title="BB Basis")
plot(upper, color=color.new(color.blue, 50))
plot(lower, color=color.new(color.blue, 50))
plot(vol, color=vol_color, style=plot.style_columns, title="Volume")
// === Entry Conditions ===
longCond = ta.crossover(ema9, ema21) and rsi > 40 and rsi < 60
shortCond = ta.crossunder(ema9, ema21) and rsi > 40 and rsi < 60
// === Alerts ===
alertcondition(longCond, title="Buy Signal", message="🟢 Buy Signal - Quick Reversal Strategy")
alertcondition(shortCond, title="Sell Signal", message="🔴 Sell Signal - Quick Reversal Strategy")
// === Plot Signals on Chart ===
plotshape(longCond, title="Buy", location=location.belowbar, color=color.new(color.green, 0), style=shape.triangleup, size=size.large)
plotshape(shortCond, title="Sell", location=location.abovebar, color=color.new(color.red, 0), style=shape.triangledown, size=size.large)
DARVAS BOX V5 Darvas Box indicator from Pine Script v3 to v5 with these improvements:
Triangle breakout signals (green up, red down)
Toggle option to show/hide signals
Breakout detection logic that tracks when price exits the box
Alert conditions for both upside and downside breakouts
Color Options:
Customize all visual elements to match your preferences:
Adjustable colors for top and bottom box lines
Custom colors for bullish and bearish breakout triangles
Flexible styling to fit any chart theme"
XAUUSD M15 Supply & Demand + Entry/SL/TP + Alerts//@version=5
indicator("XAUUSD M15 Supply & Demand + Entry/SL/TP + Alerts", overlay=true)
// ======================
// 🔹 Demand Zones
// ======================
demand1_top = 3682
demand1_bottom = 3678
box.new(left=bar_index-50, top=demand1_top, right=bar_index+50, bottom=demand1_bottom,
bgcolor=color.new(color.green, 85), border_color=color.green)
demand2_top = 3665
demand2_bottom = 3660
box.new(left=bar_index-50, top=demand2_top, right=bar_index+50, bottom=demand2_bottom,
bgcolor=color.new(color.green, 85), border_color=color.green)
// ======================
// 🔺 Supply Zones
// ======================
supply1_top = 3695
supply1_bottom = 3690
box.new(left=bar_index-50, top=supply1_top, right=bar_index+50, bottom=supply1_bottom,
bgcolor=color.new(color.red, 85), border_color=color.red)
supply2_top = 3712
supply2_bottom = 3708
box.new(left=bar_index-50, top=supply2_top, right=bar_index+50, bottom=supply2_bottom,
bgcolor=color.new(color.red, 85), border_color=color.red)
// ======================
// 📍 Levels
// ======================
entry_price = 3680
sl_price = 3661
tp1_price = 3692
tp2_price = 3710
// ======================
// 🏷️ Labels
// ======================
label.new(bar_index, entry_price, text="ENTRY BUY 3680 ±2",
style=label.style_label_up, color=color.green, textcolor=color.white)
label.new(bar_index, sl_price, text="STOP LOSS 3661",
style=label.style_label_down, color=color.red, textcolor=color.white)
label.new(bar_index, tp1_price, text="TP1 3692-3695",
style=label.style_label_down, color=color.blue, textcolor=color.white)
label.new(bar_index, tp2_price, text="TP2 3708-3712",
style=label.style_label_down, color=color.blue, textcolor=color.white)
// ======================
// 🔔 Alerts
// ======================
// Entry Zone
inEntry = (low <= demand1_top and high >= demand1_bottom)
alertcondition(inEntry, title="Entry Zone Hit", message="XAUUSD masuk ENTRY BUY zone (3680±2)")
// Stop Loss
hitSL = (low <= sl_price)
alertcondition(hitSL, title="Stop Loss Hit", message="XAUUSD STOP LOSS kena di 3661 ❌")
// Take Profit 1
hitTP1 = (high >= tp1_price and high <= supply1_top)
alertcondition(hitTP1, title="TP1 Hit", message="XAUUSD TP1 tercapai ✅ (3692-3695)")
// Take Profit 2
hitTP2 = (high >= tp2_price and high <= supply2_top)
alertcondition(hitTP2, title="TP2 Hit", message="XAUUSD TP2 tercapai 🎯 (3708-3712)")
Ghost Signal — MTF EMA/VWAP Confluence SystemGhost Signal — MTF EMA/VWAP Confluence System
Purpose
Ghost Signal is an intraday trend-entry tool that tries to do one thing well: only fire when multiple, independent edges agree. It looks for pullbacks to the EMA-20 or clean trend-continuations, then gates those raw triggers behind VWAP/Anchored-VWAP alignment, higher-timeframe structure, momentum, spacing (anti-chop), volume and ATR context. The goal is fewer, higher-quality entries that avoid “death-by-a-thousand scalps” in chop.
What it plots
EMA 20/50/200 for trend structure and spacing (no-braid filter).
VWAP (session) and optional Anchored VWAP (Daily/Weekly/Monthly).
ENTRY labels when all filters pass.
A compact status table: HTF score (M/W/D/4H/15/5), VWAP/AVWAP arrows, EMA regime, slopes %, ATR%, spacing %, and distance from EMA-50.
How signals are built
Raw triggers (on chart TF or a lower “signal TF” for intrabar precision):
PB20: trend pullback that crosses back through EMA-20.
TC: trend-continuation when price holds the side of EMA-20 with limited gap.
Confluence filters (must pass):
EMA regime & slopes: 20>50>200 for longs (reverse for shorts) with minimum slope on EMA-20/50.
VWAP/AVWAP alignment: price must be above both for longs / below for shorts, with a configurable margin.
HTF structure score: combines M/W/D/4H/15/5 states and penalizes corrections.
Anti-chop spacing: minimum separation between 20↔50 and 50↔200.
Context: volume ≥ SMA×mult, ATR% ≥ floor, max distance from EMA-50 to avoid late chases.
Optional breakout: close > prior high (long) / < prior low (short).
Time lockouts: exclude known messy windows (open/close, FX rollover, etc.).
Adaptive slope (optional): slopes auto-tighten/loosen with market heat (ATR% & relative volume).
How to use
Works on 1–5m best; designed for futures, stocks, FX, and crypto.
Use the status table to confirm context (HTF score, VWAP arrows, slopes/ATR/spacing).
Pair with your own risk model; common templates: stop ≈ 1.5–2× ATR, TP ≈ 1.2–1.8R or an ATR trail.
Turn the Signal TF to “1” on 3m/5m charts if you want intrabar PB20 detection.
Why it helps
Ghost Signal tries to stack institutional anchors (VWAP/AVWAP), higher-timeframe bias, and momentum/structure so you participate in moves with real sponsorship—and sit out the braid.
Notes & limits
No indicator removes risk. Expect fewer signals on range days, slippage around news, and thinner markets to require stricter volume/spacing. Past results don’t guarantee future returns.
Asia Risk MonitorAsia Risk Monitor for all those monitoring the financial situation in the US, looking for a clue of a move to the down or upside.
First week of the yearA very simple indicator that marks a channel on the candlestick for the first week of the year.
The channel can serve as an entry/exit point with a medium and long term focus.
Note: This indicator should be observed exclusively on the weekly timeframe.
TeamBull FuturesThe TeamBull Futures indicator plots key London Session and New York ORB (Opening Range Breakout) levels for intraday futures and forex trading.
London Session (03:00–09:29 ET) – Automatically tracks and plots the session’s high and low, updating in real time and extending both levels until 5:00 PM ET for clear intraday reference.
New York ORB (09:30–09:45 ET) – Marks the high, low, and 50% midpoint of the U.S. market’s opening range, visible only for the current trading day and removed after 5:00 PM ET.
This tool helps traders identify major liquidity zones and intraday breakout areas across global market sessions with clean, time-synced precision.
VWAP Diario (línea negra en precio)It's just the 1D VWAP average line. It's used to determine when you're entering a bullish or bearish daily structure.
SuperTrend Dual RMAThis enhanced ATR SuperTrend indicator combines dual volume-weighted RMAs with the Average True Range (ATR) to deliver smoother and more reliable trend signals.
It identifies bullish and bearish phases using a blue-rose color scheme, providing clear visual cues for entries and exits.
Features:
Dual RMA baseline for smooth, volume-sensitive trend calculation
ATR multiplier-driven upper and lower bands
Filled bands to highlight volatility zones
Bar coloring for trend confirmation
Hikaru BandsHikaru Bands is a volatility indicator designed to provide a view of market dynamics. Unlike traditional banding tools like Bollinger Bands, which rely solely on standard deviation, Hikaru Bands incorporate a Composite Volatility Index (UVI). This index is built from a customizable blend of up to ten different technical indicators, including momentum, trend, and risk metrics.
Core Concept & Calculation
The script first calculates the values of up to ten different technical indicators, which you can enable or disable individually. These include RSI, CCI, Sharpe Ratio, Omega Ratio, Z-Score, Rate of Change (ROC), and more. Each selected indicator's output is then normalized into a percentile rank (a scale of 0-100) to ensure they can be compared and combined effectively. Finally, the normalized values are weighted and averaged to create a single Universal Volatility Index (UVI). A high UVI suggests strong bullish momentum and volatility/overbought, while a low UVI suggests strong bearish momentum/oversold.
How to Use & Interpretation
Interpreting the bands is intuitive and provides multiple layers of analysis:
Extreme Bands (Outer Bands): When the price touches or exceeds these bands, it suggests a potential exhaustion point or a climax in the current trend. These are often areas to watch for potential reversals or pullbacks.
Warning Bands: These act as an early signal that momentum is becoming stretched. Price action within this zone indicates a strong trend that may be approaching overbought or oversold territory.
Neutral Bands: The area between these bands and the basis line represents typical price action. When the price remains within this zone, it often signals a consolidating or ranging market.
Features & Customization
This script offers extensive customization to tailor the indicator to your specific needs and analysis style:
Modular Component Selection: Individually enable or disable any of the ten underlying indicators to build your own custom UVI. You can also adjust the weight of each component to give more importance to the indicators you trust most.
Detailed Parameter Control: Fine-tune the settings for each individual indicator, such as the period for RSI, the lookback for the Sharpe Ratio, or the fast/slow lengths for the EMA Spread.
Visuals: Comes with eight built-in color schemes (including Classic, Neon, and Ocean) to match your chart's aesthetic.
Band Smoothing: Apply an optional smoothing filter to the bands and the basis line to reduce noise and focus on the underlying trend.
Disclaimer
This tool is designed for technical analysis and should not be used as a standalone signal for trading. The effectiveness of the bands depends on the selected components and market conditions. Always use this indicator in conjunction with other forms of analysis and a robust risk management strategy.
PDH/PDL + PMH/PML Breakout Table + Alerts + 🔔PDH/PDL now come exclusively from the previous day's RTH (9:30–4:00 PM ET) — they no longer include premarket. This avoids the confusion we encountered.
PMH/PML are calculated only during the premarket period (4:00–9:30 AM ET) of the current day.
Employment emojis: 🟢 (upward breakout for PDH/PMH), 🔴 (downward breakout for PDL/PML), ⚪ (no breakout).
The table displays three columns: Level | Status | Price. If you'd like the table to have a different size/position/color, just adjust it quickly.
Dual Anchored VWAP (v6) by MrTiffDual Anchored VWAP
//@version=6
indicator("Dual Anchored VWAP (v6, fixed)", overlay=true)
// ---------- Inputs: AVWAP #1 (buyers)
useAVWAP1 = input.bool(true, "Show AVWAP #1 (buyers)")
tz1 = input.string("Etc/UTC", "Timezone #1")
y1 = input.int(2024, "Year #1")
m1 = input.int(9, "Month #1", 1, 12)
d1 = input.int(1, "Day #1", 1, 31)
h1 = input.int(13, "Hour #1", 0, 23)
min1 = input.int(30, "Minute #1",0, 59)
col1 = input.color(color.new(color.teal, 0), "Color #1")
width1 = input.int(2, "Width #1", minval=1, maxval=5)
// ---------- Inputs: AVWAP #2 (sellers)
useAVWAP2 = input.bool(true, "Show AVWAP #2 (sellers)")
tz2 = input.string("Etc/UTC", "Timezone #2")
y2 = input.int(2024, "Year #2")
m2 = input.int(10, "Month #2", 1, 12)
d2 = input.int(8, "Day #2", 1, 31)
h2 = input.int(15, "Hour #2", 0, 23)
min2 = input.int(30, "Minute #2",0, 59)
col2 = input.color(color.new(color.orange, 0), "Color #2")
width2 = input.int(2, "Width #2", minval=1, maxval=5)
// ---------- Other settings
src = input.source(ohlc4, "Price source (VWAP uses weighted avg)")
showBands = input.bool(false, "Show simple 1σ bands (approx)")
// ---------- Build anchor timestamps from parts
anchor1 = timestamp(tz1, y1, m1, d1, h1, min1)
anchor2 = timestamp(tz2, y2, m2, d2, h2, min2)
// ---------- Function: AVWAP from an anchor (no session reset)
avwapFrom(anchorTime) =>
cond = time >= anchorTime
cumPV = ta.cum(cond ? (src * volume) : 0.0)
cumV = ta.cum(cond ? volume : 0.0)
vw = cumV > 0 ? (cumPV / cumV) : na
vw
// ---------- Compute AVWAPs
vwap1 = useAVWAP1 ? avwapFrom(anchor1) : na
vwap2 = useAVWAP2 ? avwapFrom(anchor2) : na
// ---------- Plot AVWAPs
plot(vwap1, title="AVWAP #1", color=col1, linewidth=width1)
plot(vwap2, title="AVWAP #2", color=col2, linewidth=width2)
// ---------- Optional σ bands (proxy; not true VWAP σ)
sigma(v) => ta.stdev(close - v, 100)
// Compute the stdevs only when needed, otherwise na
s1 = (showBands and not na(vwap1)) ? sigma(vwap1) : na
s2 = (showBands and not na(vwap2)) ? sigma(vwap2) : na
// Build band series (or na if disabled)
vwap1_up = not na(s1) ? vwap1 + s1 : na
vwap1_dn = not na(s1) ? vwap1 - s1 : na
vwap2_up = not na(s2) ? vwap2 + s2 : na
vwap2_dn = not na(s2) ? vwap2 - s2 : na
// Plot at global scope (valid in Pine)
plot(vwap1_up, title="AVWAP #1 +1σ", color=color.new(col1, 60))
plot(vwap1_dn, title="AVWAP #1 -1σ", color=color.new(col1, 60))
plot(vwap2_up, title="AVWAP #2 +1σ", color=color.new(col2, 60))
plot(vwap2_dn, title="AVWAP #2 -1σ", color=color.new(col2, 60))
// ---------- Alerts
alertcondition(ta.cross(close, vwap1), "Cross AVWAP #1", "Price crossed AVWAP #1")
alertcondition(ta.cross(close, vwap2), "Cross AVWAP #2", "Price crossed AVWAP #2")
Doble Keltner ChannelTwo Keltner channels with different configurations. This will allow you to visualize volatility confluences and potential reversal zones.
Configuration
Ema period 1 = 50
Ema period 2 = 50
Multiplier 1 = 2.75
Multiplier 2 = 3.75