CUSUM Volatility BreakoutCUSUM Volatility Breakout A statistical trend-detection and volatility-breakout indicator that identifies subtle momentum shifts earlier than traditional tools.
OVERVIEW
The CUSUM control chart is a statistical tool designed to detect small, gradual shifts from a target value. In trading, it helps identify the early stages of a trend, giving traders a heads-up before momentum becomes obvious on standard price charts. By spotting these subtle movements, the CUSUM Volatility Breakout indicator (CUSUM VB) can highlight potential breakout opportunities earlier than traditional indicators. In other words, a statistical trend detection & breakout indicator.
Copyright © 2025 CoinOperator
HOW IT WORKS
CUSUM VB uses a combination of differenced price series, volume normalization, and dynamic control limits:
CUSUM Principle: Tracks cumulative deviations of price from a zero reference. Signals occur when cumulative deviations exceed a control limit shown on the chart and clears any enabled filters.
Adaptive Volatility: H adjusts automatically based on short- vs long-term ATR ratios, allowing faster detection during volatile periods and reduced false signals in calm markets.
Volume Weighting (optional): Amplifies price CUSUM values during high-volume bars to prioritize market participation strength.
ATR Confirmation (optional): Ensures breakouts are accompanied by expanded volatility.
Bollinger Band Squeeze Integration (optional): Confirms trend breakouts by detecting volatility contraction and release shown on the chart as triangles.
Signals:
Arrows on the price chart mark the bars where trades are actually filled, based on conditions detected on the prior signal bar.
Long Entry: Confirmed positive CUSUM breach (price & volume) with BB breakout (signal bar).
Short Entry: Confirmed negative CUSUM breach (price & volume) with BB breakout (signal bar).
Exit Signals: Triggered automatically by opposite-side signals.
Alerts, when created, fire on the bars where fills occur.
CHART COMPONENTS
CUSUM Upper Price (CU Price) and CUSUM Lower Price (CL Price) are green/red circles for confirmed signals.
● Rapid upward accumulation of CU Price indicates a developing bullish trend.
● Rapid downward accumulation of CL Price indicates a developing bearish trend.
Decision/Control limits (UCL/LCL, red)
Zero line (reference for the differenced price series baseline)
Optional BB triangles and volume CUSUM
SETUP AND CONFIGURATION
Differenced Price Series
Differenced Price Length and Lag
Increase differencing lag or window length → Increases variance of residuals → Wider control limits (UCL/LCL) → Slower to trigger.
Decrease lag or window → Tighter limits, more responsive to short-term regime shifts.
CUSUM Parameters
Volume-Weighted CUSUM
NOTE : Uses price length if 'Confirm Price with Volume' is disabled, otherwise will use volume length.
Amplifies CUSUM price responses during high-volume bars and reduces them during low-volume bars. This links trend detection to market participation strength.
Volume-Weighted CUSUM doesn’t replace price confirmation with volume; it modulates it by volume intensity, amplifying price signals when participation is strong and suppressing them when weak.
Recommended when analyzing assets with consistent volume patterns (e.g., stocks, major futures).
Disable for low-liquidity or irregular-volume instruments (e.g., crypto pairs, small-cap stocks).
ATR Confirmation
Enable this feature to confirm CUSUM signals only when price deviations are accompanied by higher-than-normal volatility. The indicator compares current ATR to a smoothed ATR to detect volatility expansion. This helps distinguish true breakouts from low-volatility noise and reduces false signals during quiet periods.
Adjust the ATR lookback length, smoothing length, and expansion factor to control sensitivity. Rule of thumb:
ATR Length ≈ 0.5 × differenced price length to 1.5 × differenced price length gives balanced sensitivity.
ATR Smoothing 5–10 bars.
ATR Expansion 5% to 50%.
CUSUM Input Mode
Select how CUSUM processes differenced price and log-normalized volume — either directly (Txfrm Data) or as deviations from a short-term EMA baseline (Residuals):
Txfrm Data = transformed input: differenced price & log-normalized volume as input for CUSUM (larger swings, more frequent control limit breaches)
Residuals = deviation from short-term EMA baseline (smaller swings, fewer control limit breaches, but higher signal quality).
Residual EMA Length: Defines how quickly the residual baseline adapts to recent differenced price moves. Shorter = more reactive; longer = smoother baseline. Keep EMA length moderate; over-smoothing can distort timing.
Control Sensitivity (K)
Increase K → Less sensitive → CUSUM accumulates slower → Fewer signals, captures only major trends.
Decrease K → More sensitive → CUSUM accumulates faster → More signals, captures minor swings too.
Reset Mode : Method of resetting CUSUM values.
Immediate Reset: Reset both immediately after any signal breach. Traditional SPC.
Opposite-Side Reset: Reset only the opposite side when a valid signal fires. Best for ongoing trend tracking.
Decay Reset: Gradually reduce CUSUM values toward zero with a decay factor each bar. Maintains trend memory but allows slow “forgetting.”
Threshold Reset: Reset only if CUSUM returns below a small threshold (10 % of H). Filters noise without full wipe.
No Reset / Continuous: Never reset; instead track running totals. Long-term cumulative bias measurement.
Conflict Handling : Method of handling conflicting signals.
Ignore Both: Discards both when overlap occurs.
Prioritize Latest: Chooses the direction implied by the most recent close.
Prioritize Stronger: Compares absolute magnitudes of CU Price vs CL Price.
Average Resolve: Looks at the difference; small overlap → ignore, otherwise pick direction by sign.
Sequential Confirm: Requires N consecutive same-direction signals before confirmation.
Volume Parameters (Optional)
Amplification Factor
Adjusts volume sensitivity and effectively rescales the log series of volume to a comparable magnitude with price changes.
Since price and volume are normalized in a compatible way, the amplification factor is used instead of independent K and H values for volume.
Bollinger Bands (Optional)
Lookback Synchronization
BB Lookback (for CUSUM): Number of bars that define a window for the BB signal to look back for the CUSUM signal.
CUSUM Lookback (for BB): Number of bars that define a window for the CUSUM signal to look back for the BB signal.
Both can be enabled for stricter alignment.
Relationship Between K, H, ARL₀ and ARL₁
H (max) is usually the only H you need to adjust. With everything else being constant, increasing either K or H (max) generally increases both ARL₀ and ARL₁ : higher thresholds reduce false alarms but slow detection, and lower thresholds do the opposite.
Increase Min Target ARL ratio →
ARL₀ increases (safer, fewer false alarms)
ARL₁ decreases or stays small (faster detection)
Control limits slightly expand to achieve separation
Strategy becomes more selective and stable
Decrease Min Target ARL ratio →
ARL₀ decreases (more false alarms tolerated)
ARL₁ increases (slower detection tolerated)
Control limits tighten
Strategy becomes more sensitive but lower quality
The ARL Ratio of ARL₀ / ARL₁ is typically between 3 and 8. This implies you want your ARL₀ (false-alarm interval) ≈ 'Min Target ARL ratio' × differenced price length window.
Example:
"Min Target ARL ratio = 4.0"
⇒ implies you want your ARL₀ (false-alarm interval) ≈ 4 × differenced price length.
Assume price length = 50 (typical differencing window).
ARL ratio = 4.0 → target ARL = 4 × 50 = 200 bars.
● On a 6-hour chart (≈4 bars/day) → ~50 days between expected false alarms (on average).
● On a daily chart → ~200 trading days between false alarms (very conservative).
ARL ratio = 8.0 → target ARL = 400 bars → twice as infrequent signals vs ratio=4.
ARL ratio = 2.0 → target ARL = 100 bars → about half the inter-signal interval.
Another way to think about it: probability of a false alarm on any bar ≈ 1 / target ARL. If you want ~1% of bars producing alarms, target ARL ≈ 100.
QUICK START
Start with the defaults.
Set price series → length/order/lag
Configure CUSUM thresholds → K, H min/max
1. Adjust the price differencing lag/window.
2. Verify that it captures real price inflection points without overreacting to bar noise.
Enable optional filters → Volume, ATR, BB
The optional Bollinger Bands squeeze usually works best if used with CUSUM Input Mode = Txfrm Data.
Monitor CUSUM chart → CU Price, CL Price, thresholds, zero line
Act on signals → data window / chart triangles
Adjust sensitivity → H (max), K, lengths
Monitor ARL ratio and CUSUM behavior for fine-tuning
Note : When you’ve finalized the length, lag, and order of the Price Difference, as well as the Ln(Vol) Series of “Confirm Price with Volume” if enabled, then pass both through the Augmented Dickey–Fuller (ADF) mean reversion test to ensure they are stationary, i.e., mean reverting. You can find a ready-made indicator for such use at . Many thanks to tbtkg for this indicator.
SUMMARY
CUSUM VB combines CUSUM statistical control, volatility-adaptive thresholds, volume weighting, and optional BB breakout confirmation to provide robust, actionable signals across a wide variety of trading instruments.
Why traders use it : Fast detection of shifts, reduced false alarms, versatile across markets.
Ideal for : Futures (continuous contracts), forex, crypto, stocks, ETFs, and commodity/index CFDs, especially where:
● Price and volume data exist
● Breakouts and volatility shifts are tradable
● There’s enough liquidity for meaningful signals
Visualization : Upper/lower CUSUM circles, UCL/LCL thresholds, optional highlight traded background, optional volume and BB overlays on the chart, optional entry/exit labels on the price chart, as well as entry/exit signals in the data window.
Alerts : For entry/exit labels when trades are actually filled.
CUSUM VB is designed for traders who want statistically grounded trend detection with configurable sensitivity, visual clarity, and multi-market versatility.
DISCLAIMER
This software and documentation are provided “as is” without any warranties of any kind, express or implied. CoinOperator assumes no responsibility or liability for any errors, omissions, or losses arising from the use or interpretation of this software or its outputs. Trading and investing carry inherent risks, and users are solely responsible for their own decisions and results.
Bandes et canaux
VWAP roller autoBrief Description
VWAP Roller Auto is a TradingView Pine Script indicator that combines a rolling (resetting) Volume Weighted Average Price (VWAP) with dozens of dynamic support/resistance levels derived from Gann's Square of 9 principles. The VWAP resets periodically (automatically or manually) starting from a user-defined session open time, and the Gann levels "roll" with it, creating an adaptive grid of potential price reaction zones. It's designed for intraday trading and overlays directly on the price chart.
Key Features
Rolling VWAP with Custom Session Start
VWAP calculation restarts at configurable session open (default 8:30 CST, using proper Chicago timezone handling).
Auto-Adaptive Period Selection
Automatically chooses the VWAP reset period (from 2 min up to 48 hours) based on current volatility (ATR + realized range). Targets a user-defined spacing (~0.08% by default) between consecutive VWAPs to keep the grid relevant to market conditions. Falls back to manual period if disabled.
Gann Square of 9 Levels
Generates ~8 pairs of resistance (R) and support (S) levels above/below the current rolling VWAP using octave-based increments.
Two increment modes:
Points mode — fixed point steps that double octavely (e.g., 0.305, 0.610, 1.22, 2.44, etc.).
Percent mode — percentage steps scaled so the middle octave aligns near 0.025% for finer resolution on lower-priced assets.
Visual Enhancements
Colored fills between key level groups (e.g., inner ±0.25 octave in blue, ±1–2 octave zones in gray, higher extremes in yellow/red).
Labels on the right side marking important zones ("low", "normal", "high", "3/4 - ps1", "extreme - ps2").
Central VWAP line (customizable color and offset).
Table showing current period length and whether auto mode is active.
Non-Timeframe Friendly
Works on range bars, Renko, etc., using fallback settings when timeframe is non-standard.
Use Cases
Intraday Support/Resistance Trading
Treat the rolling VWAP as fair value and use the Gann-derived levels as dynamic zones for potential reversals, breakouts, or mean reversion.
Scalping and Day Trading
Auto-period ensures the grid spacing matches current volatility — tighter levels in quiet markets, wider in volatile ones — ideal for futures (ES, NQ), crypto, or forex.
Zone-Based Entries/Exits Buy near labeled support zones (e.g., "low" or "normal" volatility bottoms) when price trades below VWAP.
Sell/short near resistance zones in overbought conditions.
Watch for hits of "extreme" zones (±8 octave) as potential strong reversal signals.
Confluence Tool
Combine with order flow, volume profile, or other indicators; the colored fills highlight "value areas" similar to market profile concepts but anchored to a rolling VWAP.
In short, VWAP Roller Auto provides a sophisticated, self-adjusting Gann-inspired grid that moves with the market's fair value, helping traders identify high-probability reaction zones throughout the trading session.
Adaptive MTF Momentum█ WHAT MAKES THIS INDICATOR DIFFERENT
This indicator solves a common problem: lower timeframe noise causing false signals. Instead of using fixed settings, it dynamically selects which higher timeframes to monitor based on your current chart.
The core methodology combines three analysis layers that must ALL agree before generating a signal:
1. Multi-timeframe trend alignment (direction filter)
2. Momentum exhaustion detection (timing filter)
3. Volume and structure confirmation (validation filter)
This triple-confirmation approach significantly reduces false signals compared to single-indicator strategies.
█ METHODOLOGY EXPLAINED
Layer 1: Adaptive Timeframe Selection
The indicator automatically builds a timeframe chain based on your chart:
| Your Chart | Monitors |
|------------|----------|
| 5 minute | 30m + 1H + 4H |
| 15 minute | 1H + 4H + Daily |
| 30 minute | 2H + 8H + Daily |
For each higher timeframe, it calculates EMA crossovers (8/21/50) to determine trend direction. The "alignment score" (0-3) shows how many timeframes agree.
Why this matters: A 5m buy signal is more reliable when 30m, 1H, AND 4H all show bullish structure.
Layer 2: Momentum Timing
Once trend direction is confirmed, the indicator waits for optimal entry timing using:
- RSI (14): Identifies oversold (<30) and overbought (>70) conditions
- Stochastic (14,3,3): Confirms momentum shift via K/D crossovers
- MACD (12,26,9): Validates momentum direction change
A "momentum score" combines these readings. Signals only fire when momentum aligns with the higher timeframe trend.
The logic: In an uptrend, we want to buy when momentum is oversold and turning up. In a downtrend, we want to sell when momentum is overbought and turning down.
Layer 3: Validation Filters
Before any signal appears, these conditions must pass:
- Volume Filter: Current volume must exceed 1.2x the 20-period average. This confirms institutional participation.
- VWAP Filter: For longs, price should be above VWAP. For shorts, below VWAP. This ensures we trade with intraday flow.
- Structure Filter: Requires a recent break of swing high (for longs) or swing low (for shorts). This confirms price is actually moving in our direction.
- ATR Filter: Volatility must be above 50% of its 50-period average. This avoids low-volatility chop.
█ SIGNAL CLASSIFICATION
The indicator categorizes signals by entry type:
REV (Reversal): Momentum reaches extreme (RSI oversold/overbought) while higher timeframes maintain trend. Best for catching pullbacks in trends.
CONT (Continuation): Price pulls back to the 21 EMA in a strong trend, then momentum turns. Best for adding to existing positions.
BRK (Breakout): Price breaks structure level with volume spike. Best for catching new moves early.
█ QUALITY SCORE CALCULATION
Each signal receives a Q1-Q5 rating based on:
- HTF alignment score (0-3 points)
- Momentum score (0-3 points)
- Volume spike present (+1 point)
Higher scores indicate more filters aligned. Q4-Q5 signals have the highest probability.
█ RISK MANAGEMENT
TP/SL levels are calculated using ATR(14):
- Stop Loss: 1.2 x ATR from entry
- TP1: 1.8 x ATR (partial exit)
- TP2: 3.0 x ATR (full exit)
This provides approximately 1.5:1 to 2.5:1 reward-to-risk ratio.
█ HOW TO USE
1. Apply to 5m, 15m, or 30m chart
2. Enable "Auto-Adapt" mode (recommended)
3. Wait for signals with Q3 or higher rating
4. Check dashboard confirms trend alignment
5. Enter with suggested TP/SL levels
Settings Guide:
- Sensitivity: "Conservative" = fewer but higher quality signals
- Sensitivity: "Aggressive" = more signals, lower threshold
- Cooldown: Increase to 10-15 if signals appear too frequently
█ DASHBOARD READINGS
- HTF: Shows active timeframe chain
- Trend: Bull/Bear + alignment score (aim for +2 or +3)
- RSI/Stoch: Current value or OS/OB status
- Vol: "SPIKE" when above threshold
- VWAP: Arrow shows price position relative to VWAP
█ LIMITATIONS
- Works best in trending markets; avoid during ranging/choppy conditions
- Designed for intraday timeframes (5m-30m); not optimized for higher timeframes
- Signals are not guarantees; always use proper risk management
- Past performance does not indicate future results
█ ALERTS AVAILABLE
- Long / Short: Any signal
- HQ Long / HQ Short: Q4+ signals only (recommended)
- Any: All signals combined
Nested MA Envelopes HarmonicThe Nested MA Envelopes Harmonic is a custom TradingView Pine Script indicator that overlays a series of nested envelopes around exponentially increasing simple moving averages (SMAs). These SMAs use lengths that double successively (e.g., 25, 50, 100, 200, up to 3200, starting from a user-defined power-of-2 base). Each envelope is offset by deviations that follow a harmonic/octave structure (multipliers of ×1, ×2, ×4, ×8, ×16, ×32, ×64, ×128).The deviation can be set in fixed points or as a true percentage of price, with an optional auto-calibration mode that dynamically adjusts the multiplier based on historical price behavior and ATR to target a specified percentage of bars staying within the innermost envelope. The envelopes feature customizable colors, shaded zones between levels, touch counters, cycle number labels on band touches (with cooldown), and optional centering.This creates a visually layered "harmonic" channel system resembling octave bands, helping identify multi-scale support/resistance zones.
Use CaseTraders use this indicator to visualize price action across multiple time scales simultaneously, treating the nested bands as harmonic levels of volatility or mean reversion zones. Inner envelopes (levels 1–3) capture short-term fluctuations and potential overbought/oversold conditions.
Outer envelopes (levels 6–8) act as major support/resistance during strong trends or reversals.
The cycle labels mark significant touches of higher-level bands (e.g., a "7" or "8" label signals rare extreme extensions, often preceding reversals). It suits mean-reversion strategies (buy near lower bands, sell near upper), trend confirmation (price hugging mid-levels), or breakout alerts when price pierces outer zones. The auto mode adapts to changing volatility, making it versatile for stocks, forex, crypto, or futures on various timeframes.
Personal use - set on your favorite instrument and set to auto mode. Make note of the level picked in bottom right corner. Then switch to manual mode and use the same multiplier that auto used to get you in the right sizing ballpark. The goal is to capture 95% of pricing within the smallest envelope. The what you will see is you can quantify various tops and bottoms. A 1st order (hitting the top/bottom of the smallest envelope) hit is not as important as a 2nd or 3rd order hit. Generally 1st order is informational and 2-5 is actionable. 6-8 would be a unicorn and you should act accordingly. You can use points or % for the spacing.
LTF Distribution Analyzer█ OVERVIEW
LTF Distribution Analyzer reveals the hidden price distribution and order flow within each candle by sampling lower timeframe data. It visualizes where prices concentrated, how volume was distributed between buyers and sellers, and identifies divergences between price action and actual market participation.
Unlike traditional candlesticks showing only OHLC, this indicator exposes the statistical structure of price movement using quartile-based visualization combined with delta analysis.
█ CONCEPTS
The indicator is built on two core concepts:
1 — Statistical Price Distribution
Each candle contains many lower timeframe bars. By analyzing these bars, we calculate:
• Q1 (25th percentile) - 25% of prices traded below this level
• Q3 (75th percentile) - 75% of prices traded below this level
• Median - The middle price value
• IQR (Interquartile Range) - The Q3-Q1 spread containing 50% of all prices
2 — Volume Delta Analysis
Delta measures buying vs selling pressure:
• Delta = Buy Volume − Sell Volume
• Positive delta = More aggressive buying
• Negative delta = More aggressive selling
• Delta Ratio normalizes this as a percentage
█ HOW IT WORKS
The indicator fetches lower timeframe data using request.security_lower_tf() and processes it to create a statistical summary:
Step 1: Timeframe Calculation
• Auto mode: Chart timeframe ÷ Auto Divisor = LTF
• Example: 1H chart ÷ 1000 = ~3.6 second sampling
• Manual mode: User-specified timeframe
Step 2: Data Collection
• Collects all close prices from LTF bars within current candle
• Aggregates volume by candle direction (bullish/bearish)
Step 3: Statistical Analysis
• Calculates quartiles (Q1, Q3), median, and boundaries
• Identifies outliers using 1.5× and 3× IQR fences
• Finds Volume POC (price with highest volume)
Step 4: Delta Calculation
• Sums buy volume (from bullish LTF bars)
• Sums sell volume (from bearish LTF bars)
• Computes delta ratio for color determination
█ VISUAL ELEMENTS
┌─────────────────────────────────────────┐
│ ▲ Extreme outlier (3× IQR) │
│ △ Mild outlier (1.5× IQR) │
│ ─ Upper whisker cap │
│ ┊ Whisker line (dashed) │
│ ▄ IQR Box (Q1 to Q3 range) │
│ ━ Volume POC (highest volume) │
│ ● Median (green=bull, red=bear) │
│ ┊ Whisker line (dashed) │
│ ─ Lower whisker cap │
│ ▽ Mild outlier │
│ ▼ Extreme outlier │
└─────────────────────────────────────────┘
█ COLOR SYSTEM
Colors indicate the relationship between candle direction and order flow:
🟢 TEAL (Positive Flow)
Bullish candle + Positive delta
→ Strong buying confirmation
→ Trend continuation signal
🔴 RED (Negative Flow)
Bearish candle + Negative delta
→ Strong selling confirmation
→ Trend continuation signal
🟠 ORANGE (Mixed Signal A)
Bullish candle + Negative delta
→ Price up but sellers dominated
→ Potential weakness/reversal warning
🔵 BLUE (Mixed Signal B)
Bearish candle + Positive delta
→ Price down but buyers dominated
→ Potential accumulation/reversal signal
█ SETTINGS
Timeframe Settings
• LTF Mode — Auto or Manual selection
• Manual Timeframe — Specific LTF when in Manual mode
• Auto Divisor — Higher = finer granularity (default: 1000)
• Allow Sub-Minute — Requires Premium subscription
Visual Style
• Positive/Negative Flow colors — Customize the 4 flow colors
• Box Transparency — Opacity of the quartile box (0-100%)
Statistics Display
• Show Statistics Panel — Toggle on-chart stats table
• Show Timeframe Badge — Toggle LTF indicator badge
• Panel Position — Choose corner placement
• Panel Size — Text size selection
█ HOW TO USE
1. Divergence Detection
Look for color mismatches:
• Orange bars in uptrend = weakness, potential reversal
• Blue bars in downtrend = strength, potential reversal
• Multiple consecutive divergent bars strengthen signal
• Wait for confirmation before entry
2. Volume POC Trading
• POC marks where most volume traded
• POC clusters at similar levels = strong S/R zone
• Price often returns to POC before continuing
• Use POC for entry/exit targeting
3. Trend Confirmation
• Consecutive teal = strong uptrend
• Consecutive red = strong downtrend
• Median position shows intrabar momentum
• Wide boxes indicate high volatility
4. Outlier Analysis
• Extreme markers (▲▼) often mark stop hunts
• Consider fading extremes at key levels
• Mild markers (△▽) = areas to watch
█ RECOMMENDED SETTINGS
For different chart timeframes:
│ Chart TF │ Auto Divisor │ Resulting LTF │
├──────────┼──────────────┼───────────────┤
│ 15M │ 1500 │ ~1M │
│ 1H │ 1000 │ ~3-4s │
│ 4H │ 600 │ ~24s │
│ Daily │ 500 │ ~2-3M │
Tip: Check the TF badge to confirm active sampling timeframe.
█ BEST PRACTICES
Do:
✓ Use "Bars" chart style for cleanest display
✓ Combine with support/resistance analysis
✓ Wait for confirmation bars
✓ Note POC clusters across multiple bars
✓ Adjust divisor based on your timeframe
Avoid:
✗ Trading single bar signals alone
✗ Using during low volume periods
✗ Trading immediately after news releases
✗ Ignoring overall market context
█ LIMITATIONS
• Requires adequate market liquidity for reliable signals
• Sub-minute timeframes need Premium subscription
• Historical data depth depends on TradingView's data availability
• Delta calculation assumes volume direction matches candle direction
█ NOTES
This indicator works best on liquid markets (forex majors, major indices, popular stocks/crypto) where volume data is meaningful.
The gray dotted vertical line marks where LTF data becomes available - bars before this line won't display the indicator.
For questions or suggestions, leave a comment below.
Wedge Green SquadWedge GS automatically detects confirmed swing highs and lows and draws clean wedge trendlines directly from the true pivot bars. The indicator uses non-repainting pivots and extends the lines forward to highlight contracting price structures, potential breakouts, and compression zones.
Designed for traders who value structure over noise, it works best on higher timeframes and pairs naturally with support, resistance, and volume analysis. This tool focuses on clarity and reliability, not prediction.
False Breakdown Long Confirm (dropthoughcashin)// =============================================================================
// EN — Script Introduction
// Name: False Breakdown Long Confirm (dropthoughcashin)
// Timeframe: Designed for 5-minute charts (works on other TFs but tuned for 5m)
//
// What this script does:
// This indicator detects a “false breakdown” (liquidity sweep) below a support
// level, followed by a reclaim and a retest-hold confirmation. When confirmed,
// it prints a label and triggers the alert condition: dropthoughcashin.
//
// Core logic (3 steps):
// 1) Define the support level (Key Level):
// - Pivot mode: uses the latest confirmed pivot low as support.
// - Manual mode: uses your manually entered support level.
// 2) False breakdown + reclaim:
// - Price sweeps below support (low < support),
// - The sweep must be shallow (limited by ATR multiple or fixed points),
// - Then price reclaims: close back above the support.
// 3) Retest-hold confirmation (within N bars after reclaim):
// - Price retests near the support (low <= support + tolerance),
// - And closes at/above the support (hold),
// - If confirmed within the window, signal triggers once.
//
// Key parameters:
// - Max Penetration: filters out “deep breakdowns” you do NOT want.
// - Retest tolerance: how close price must retest the support.
// - Confirm within N bars: time limit to confirm after reclaim.
//
// Notes / Limitations:
// - Pivot support is lagging by design (pivot is confirmed after pLen bars).
// - This is a signal/alert tool, not a full trading strategy.
// =============================================================================
//
// 中文 — 脚本介绍
// 名称:False Breakdown Long Confirm(dropthoughcashin)
// 周期:主要为 5分钟K 设计(其他周期也能用,但默认参数以 5m 优化)
//
// 脚本作用:
// 本指标用于识别“假跌破(扫流动性/扫止损)”形态:价格先刺破支撑位,随后快速收回
// 并在短时间内回踩踩住,形成做多确认。确认后会在图上打标签,并触发提醒条件:
// dropthoughcashin。
//
// 核心逻辑(3步):
// 1) 定义支撑位(Key Level):
// - Pivot 模式:用最近确认的 pivot low(局部低点)作为支撑。
// - Manual 模式:用你手动输入的固定支撑价位。
// 2) 假跌破 + 收回(reclaim):
// - 价格最低点刺破支撑(low < 支撑),
// - 但下穿幅度必须“浅”(用 ATR 倍数或固定点数限制),
// - 随后收盘重新站回支撑上方(close > 支撑)。
// 3) 回踩踩住确认(retest-hold):
// - 在收回之后的 N 根K内,价格回踩到支撑附近(low <= 支撑 + 容忍),
// - 且收盘守住支撑(close >= 支撑),
// - 满足则触发一次信号与提醒。
//
// 关键参数说明:
// - Max Penetration(最大下穿深度):过滤掉“下穿太深”的破位,避免误触发。
// - Retest tolerance(回踩容忍范围):定义回踩要贴近支撑到什么程度。
// - Confirm within N bars(确认窗口):收回后限定多少根K内必须完成回踩确认。
//
// 注意事项:
// - Pivot 支撑位天然滞后(需要 pLen 根K确认后才成立),属于“稳但晚”的设计。
// - 该脚本是信号/提醒工具,不是完整的交易策略(不包含止损止盈与仓位管理)。
VolumeValueArea (Double Ref Back)Description :
Overview This indicator is designed for traders who rely on Auction Market Theory and want to identify the market's true Fair Value with precision. It combines two independent Volume Profile instances into a single tool, allowing you to analyze market structure across multiple timeframes simultaneously (e.g., Daily and 4-Hour).
The unique feature of this script is the "Reference Back" logic. Instead of only seeing the current session's profile, you can project the Value Area (VA) and Point of Control (POC) from n periods ago onto the current session. This allows you to immediately see how price reacts to previous areas of high liquidity.
Key Features
Dual Profile Instances: Run two separate profiles (e.g., Profile 1 on 'Daily' and Profile 2 on '4 Hour') within one indicator to find confluence.
Historical Referencing (Offset): Display the levels of past sessions on the current chart.
Offset 0: Shows the developing levels of the current session.
Offset 1: Projects the finished levels of the previous session onto the current price action.
Active Line Projection: Automatically projects the relevant POC and Value Area lines into the future (infinite extension) for the currently active session, making it easy to spot upcoming support and resistance.
Stateless Session Precision: Uses a robust calculation method to ensure session breaks (like the 4-Hour starts) are mathematically precise, regardless of exchange timestamps.
Full Visual Control: Customize line styles (Solid, Dashed, Dotted), widths, and colors for POC, VAH, and VAL independently.
How to Use: Finding Fair Value Clusters
The primary goal of this script is to visualize where "Fair Value" overlaps across different timeframes. This is often called Clustering.
Setup Confluence: Set Profile 1 to a higher timeframe (e.g., Daily) and Profile 2 to a lower timeframe (e.g., 4 Hour or 1 Hour).
Analyze the Context: Set the Reference Back to 1. This allows you to trade the current session while seeing the key levels established in the previous session.
Identify Clusters: Look for areas where the Daily POC/Value Area aligns closely with the H4 POC/Value Area.
Strong Support/Resistance: When a Daily VAH aligns with a 4H POC, it creates a "Cluster" of interest.
Acceptance vs. Rejection: If price moves away from a cluster and creates a new value area, the market is seeking a new fair value. If it rotates around the cluster, fair value is established.
Settings Guide
Session Type: Choose between Daily, Weekly, Monthly, 4 Hour, 1 Hour, etc.
Reference Back (n Periods): Determines which past session's levels are drawn on the current bars. 0 = Current, 1 = Previous, 2 = The one before that.
Resolution: The granularity of the volume profile (higher = more precise).
Extend Active: If enabled, the lines for the current calculation period will extend infinitely to the right until a new session begins.
Styles: Configure independent line styles to visually distinguish between Profile 1 (e.g., solid lines) and Profile 2 (e.g., dashed lines).
Risk Disclaimer This tool is for chart analysis and educational purposes only. Past volume nodes do not guarantee future price reactions. Always manage your risk responsibly.
Top 10 Bullish Wedge ScannerThe script does a check of all stocks and gives the top 10 list of stocks with bullish wedge formed on daily timeframe.
Daily Percentage Oscillator### Daily Percentage Oscillator – Indicator Description
The **Daily Percentage Oscillator** transforms intraday price action into a clean, normalized percentage-based view, using the previous trading day's closing price as the fixed 0% baseline. Each new trading day automatically resets the axis to that prior close, allowing you to visualize true daily price oscillation without the distortion of absolute price levels or cumulative trends.
Key features:
- **Percentage-based OHLC display**: All bars or candlesticks represent percentage change from the previous day’s close, creating a consistent oscillation around the 0% line.
- **Daily reset**: The baseline updates every session, making it ideal for intraday traders focusing on relative strength, mean reversion, or daily momentum patterns.
- **Toggle between bars and candlesticks**: Choose your preferred visual style.
- **Simple Moving Average (SMA)**: Optional SMA applied directly to the percentage close values (default 20-period, fully customizable).
- **Daily-resetting VWAP**: Volume-Weighted Average Price calculated on the percentage series, resetting at the start of each trading day for precise intraday anchoring.
- **Clean presentation**: No clutter from scale labels or status line values — only the essential visuals appear in the pane.
This indicator is particularly useful for:
- Comparing intraday momentum across different assets or timeframes on equal footing.
- Identifying overbought/oversold conditions relative to the prior close.
- Enhancing mean-reversion and range-bound trading strategies.
- Overlaying percentage-based anchors (SMA, VWAP) that respect the daily session structure.
Works on any intraday timeframe (1m, 5m, 15m, etc.) and is designed to stay lightweight and responsive. Perfect for day traders and scalpers seeking a clearer, more intuitive view of daily price behavior.
MACD Backtesting IndicatorThis Pine Script v5 indicator replicates TradingView's standard MACD with full backtesting capabilities. Traders can adjust all parameters (12,26,9 defaults) through inputs and see real-time performance metrics in the table. Buy/sell signals appear as labeled arrows, matching classic MACD crossover strategy while providing visual backtest results for strategy evaluation.
Stack Detector Stack Detector, which is showing how the ma moves as a chart goes by.
It help you the power of the waves
Volume Weighted Average Pricendicator(title="Volume Weighted Average Price", shorttitle="VWAP", overlay=true, timeframe="", timeframe_gaps=true)
hideonDWM = input(false, title="Hide VWAP on 1D or Above", group="VWAP Settings", display = display.data_window)
var anchor = input.string(defval = "Session", title="Anchor Period",
options= , group="VWAP Settings")
src = input(title = "Source", defval = hlc3, group="VWAP Settings", display = display.data_window)
offset = input.int(0, title="Offset", group="VWAP Settings", minval=0, display = display.data_window)
BANDS_GROUP = "Bands Settings"
CALC_MODE_TOOLTIP = "Determines the units used to calculate the distance of the bands. When 'Percentage' is selected, a multiplier of 1 means 1%."
calcModeInput = input.string("Standard Deviation", "Bands Calculation Mode", options = , group = BANDS_GROUP, tooltip = CALC_MODE_TOOLTIP, display = display.data_window)
showBand_1 = input(true, title = "", group = BANDS_GROUP, inline = "band_1", display = display.data_window)
bandMult_1 = input.float(1.0, title = "Bands Multiplier #1", group = BANDS_GROUP, inline = "band_1", step = 0.5, minval=0, display = display.data_window, active = showBand_1)
showBand_2 = input(false, title = "", group = BANDS_GROUP, inline = "band_2", display = display.data_window)
bandMult_2 = input.float(2.0, title = "Bands Multiplier #2", group = BANDS_GROUP, inline = "band_2", step = 0.5, minval=0, display = display.data_window, active = showBand_2)
showBand_3 = input(false, title = "", group = BANDS_GROUP, inline = "band_3", display = display.data_window)
bandMult_3 = input.float(3.0, title = "Bands Multiplier #3", group = BANDS_GROUP, inline = "band_3", step = 0.5, minval=0, display = display.data_window, active = showBand_3)
cumVolume = ta.cum(volume)
if barstate.islast and cumVolume == 0
runtime.error("No volume is provided by the data vendor.")
isNewPeriod = switch anchor
"Earnings" =>
new_earnings_actual = request.earnings(syminfo.tickerid, earnings.actual, barmerge.gaps_on, barmerge.lookahead_on, ignore_invalid_symbol=true)
new_earnings_standardized = request.earnings(syminfo.tickerid, earnings.standardized, barmerge.gaps_on, barmerge.lookahead_on, ignore_invalid_symbol=true)
not na(new_earnings_actual) or not na(new_earnings_standardized)
"Dividends" =>
new_dividends = request.dividends(syminfo.tickerid, dividends.gross, barmerge.gaps_on, barmerge.lookahead_on, ignore_invalid_symbol=true)
not na(new_dividends)
"Splits" =>
new_split = request.splits(syminfo.tickerid, splits.denominator, barmerge.gaps_on, barmerge.lookahead_on, ignore_invalid_symbol=true)
not na(new_split)
"Session" => timeframe.change("D")
"Week" => timeframe.change("W")
"Month" => timeframe.change("M")
"Quarter" => timeframe.change("3M")
"Year" => timeframe.change("12M")
"Decade" => timeframe.change("12M") and year % 10 == 0
"Century" => timeframe.change("12M") and year % 100 == 0
=> false
isEsdAnchor = anchor == "Earnings" or anchor == "Dividends" or anchor == "Splits"
if na(src ) and not isEsdAnchor
isNewPeriod := true
float vwapValue = na
float upperBandValue1 = na
float lowerBandValue1 = na
float upperBandValue2 = na
float lowerBandValue2 = na
float upperBandValue3 = na
float lowerBandValue3 = na
if not (hideonDWM and timeframe.isdwm)
= ta.vwap(src, isNewPeriod, 1)
vwapValue := _vwap
stdevAbs = _stdevUpper - _vwap
bandBasis = calcModeInput == "Standard Deviation" ? stdevAbs : _vwap * 0.01
upperBandValue1 := _vwap + bandBasis * bandMult_1
lowerBandValue1 := _vwap - bandBasis * bandMult_1
upperBandValue2 := _vwap + bandBasis * bandMult_2
lowerBandValue2 := _vwap - bandBasis * bandMult_2
upperBandValue3 := _vwap + bandBasis * bandMult_3
lowerBandValue3 := _vwap - bandBasis * bandMult_3
plot(vwapValue, title = "VWAP", color = #2962FF, offset = offset)
displayBand1 = showBand_1 ? display.all : display.none
upperBand_1 = plot(upperBandValue1, title="Upper Band #1", color = color.green, offset = offset, display = displayBand1, editable = showBand_1)
lowerBand_1 = plot(lowerBandValue1, title="Lower Band #1", color = color.green, offset = offset, display = displayBand1, editable = showBand_1)
fill(upperBand_1, lowerBand_1, title="Bands Fill #1", color = color.new(color.green, 95), display = displayBand1, editable = showBand_1)
displayBand2 = showBand_2 ? display.all : display.none
upperBand_2 = plot(upperBandValue2, title="Upper Band #2", color = color.olive, offset = offset, display = displayBand2, editable = showBand_2)
lowerBand_2 = plot(lowerBandValue2, title="Lower Band #2", color = color.olive, offset = offset, display = displayBand2, editable = showBand_2)
fill(upperBand_2, lowerBand_2, title="Bands Fill #2", color = color.new(color.olive, 95), display = displayBand2, editable = showBand_2)
displayBand3 = showBand_3 ? display.all : display.none
upperBand_3 = plot(upperBandValue3, title="Upper Band #3", color = color.teal, offset = offset, display = displayBand3, editable = showBand_3)
lowerBand_3 = plot(lowerBandValue3, title="Lower Band #3", color = color.teal, offset = offset, display = displayBand3, editable = showBand_3)
fill(upperBand_3, lowerBand_3, title="Bands Fill #3", color = color.new(color.teal, 95), display = displayBand3, editable = showBand_3)
Williams Volatility Channel (Full Range Breakout)Overview
This indicator implements a volatility breakout system inspired by legendary trader Larry Williams. It plots daily breakout levels calculated as the previous day’s close ± the full previous day’s range (high – low). These levels act as extreme volatility expansion thresholds:
- Upper Level: Previous close + previous day’s range
- Lower Level: Previous close – previous day’s range
A price move beyond these levels signals a strong directional breakout driven by expanded volatility — a classic Larry Williams concept for identifying potential trend continuation or acceleration days.
This version uses the full prior range (multiplier = 1.0), making it more aggressive than Williams’ original examples (which often used smaller fractions like 0.25–0.5 × range). It is particularly useful on instruments with clear daily sessions and visible overnight gaps or volatility spikes.
Key Features
Daily breakout levels plotted as horizontal lines that update at the start of each new trading day.
Optional semi-transparent fill between upper and lower levels for better visual channel perception.
Subtle background shading on the first bar of each new day and new week for easier time orientation.
Configurable colors and visibility toggles.
Generic session duration input (informational only) to help estimate candles per day on non-standard markets (e.g., European indices ≈ 8.5h, US stocks ≈ 6.5h, crypto ≈ 24h).
How to Use the Indicator
Breakout Signals
Bullish Breakout: Price closes or sustains above the Upper Level → potential strong upward momentum. Consider long entries or adding to existing longs.
Bearish Breakout: Price closes or sustains below the Lower Level → potential strong downward momentum. Consider short entries or adding to existing shorts.
These breakouts often occur on news events, earnings, or when the market “wakes up” after low-volatility periods.
Trend Confirmation
Use the direction of the breakout to confirm the prevailing trend: In an uptrend, focus primarily on upside breakouts.
In a downtrend, focus primarily on downside breakouts.
Breakouts against the trend can signal potential reversals (use with caution and additional confirmation).
Support & Resistance
Once price has broken a level, that level often flips role: A broken Upper Level can act as support on pullbacks.
A broken Lower Level can act as resistance on bounces.
Risk Management
Place stops beyond the opposite level or use ATR-based stops.
Consider partial profit-taking at 1× or 2× the prior day’s range from entry.
Best Markets & Timeframes
Works well on: Stock indices (DAX, FTSE MIB, CAC, S&P 500 futures, etc.)
Individual stocks
Commodities and futures with defined daily sessions
Cryptocurrencies (adjust session hours to 24 for continuous markets)
Recommended intraday timeframes: 5–60 minutes. On higher timeframes (4H, daily), the levels still appear but are less frequently tested intraday.
Important Notes
This is a trend-following / momentum tool, not a mean-reversion or gap-fading strategy (unlike Larry Williams’ famous “OOPS” pattern).
False breakouts can occur in low-volatility or ranging markets — always use additional confluence (volume, trend filters, higher-timeframe context).
The session duration input is informational and allows definition of how many candles per day should be used in the calculation.
This indicator provides a clean, visually intuitive way to spot high-volatility breakout opportunities based on one of Larry Williams’ timeless volatility concepts. Add it to your charts and combine it with your existing trading system for enhanced entry timing on strong momentum days.
Triple EMA + Key Levels [Scalping-Algo]TITLE: Triple EMA Day Trading System with Multi-Timeframe Support/Resistance Levels
DESCRIPTION:
📊 Overview
This indicator combines trend-following EMAs with key historical price levels to create a complete day trading toolkit. It helps traders identify trend direction while highlighting important support and resistance zones from multiple timeframes.
🎯 Purpose & Trading Application
Day traders often need to quickly assess:
1. Current trend direction (using EMAs)
2. Key price levels where reversals or breakouts may occur
This indicator solves both needs in one tool, reducing chart clutter from multiple indicators.
📈 How It Works
TREND IDENTIFICATION (EMAs):
- EMA 13 (Yellow): Fast EMA for short-term momentum and entry timing
- EMA 48 (Purple): Medium EMA for intraday trend direction
- EMA 200 (Red): Slow EMA for overall trend bias
Trading Logic:
- When price is above all 3 EMAs = Strong bullish bias
- When price is below all 3 EMAs = Strong bearish bias
- EMA crossovers signal potential trend changes
- The 13/48 crossover is particularly useful for intraday entries
SUPPORT & RESISTANCE LEVELS:
- Previous Day High/Low (Green, Solid): Most recent daily range - high probability reaction zones
- 2-Day High/Low (Blue, Dashed): Extended lookback for stronger levels
- Previous Week High/Low (Orange, Dotted): Major institutional levels
Why These Levels Matter:
Previous day and weekly highs/lows are watched by many traders and algorithms. Price often:
- Reverses at these levels (support/resistance)
- Accelerates through them (breakout trades)
🔧 How To Use
FOR TREND TRADING:
1. Identify bias using EMA stack (all 3 aligned = strong trend)
2. Look for pullbacks to EMA 13 or 48 for entries
3. Use key levels as profit targets
FOR REVERSAL TRADING:
1. Watch for price approaching previous day/week levels
2. Look for rejection candles at these levels
3. Use EMA 13 break as confirmation
FOR BREAKOUT TRADING:
1. Identify consolidation near key levels
2. Enter on break of level with volume
3. Use opposite level as target
⚙️ Settings
All parameters are fixed for simplicity:
- EMAs: 13, 48, 200 periods
- Levels: Previous Day, 2-Day, Previous Week
- All lines thickness: 2
📝 Notes
- Best used on intraday timeframes (1min to 1hour)
- Levels update automatically each day/week
- Labels on right side identify each level (PDH, PDL, 2DH, 2DL, PWH, PWL)
---
TAGS: ema, daytrading, support, resistance, levels, intraday, trend, scalping, swingtrading
Levels(5/15 ORB;Previous day Low/High and Previous week low/highIt marks 5/15 Opening range candles high and low. Also Previous week and previous day. Very helpful to filter out RS/RW stocks and in general to see chop chop range vs clean trend day.
TTM Squeeze Screener FriendlyTTM Squeeze indicator optimized for use with TradingView Pine Screener — computes squeeze on/just‑on/release and momentum on the chart symbol (60m default).
8x EMA + Labels + Trend + Volume Arrows + Developing VAH/VALThis indicator is a comprehensive trend, structure, and momentum tool designed for intraday and swing traders.
It combines multi-timeframe EMAs, dynamic EMA labels, developing Value Area High/Low, and volume-based entry signals into a single clean overlay.
Smart Money Signals - Minimal v5 (No VWAP, Manual CMF) - RajeevSmart Money Signals - Minimal v5 (No VWAP, Manual CMF) - Rajeev
SM Triple Zone: Daily / PM / ORB with AlertsTitle: SM Triple Zone: Daily / PM / ORB with Alerts
Description: This indicator is designed for intraday traders who focus on high-probability session levels. It visualizes three critical zones without cluttering your chart with historical data:
Daily Zone: Highlights the Previous Day High (PDH), Low (PDL), and Midpoint, anchored to the 9:30 AM NY Open.
Pre-Market Zone: Identifies the High and Low of the 04:00–09:30 AM pre-market session.
ORB Zone: Sets a 5-minute Opening Range Breakout zone (customizable) to capture early morning volatility.
Key Features:
Y-Axis Price Labels: All major levels are pinned to the price scale for quick reference.
Fully Customizable: Independent settings for line thickness, style (Solid/Dashed), and colors for every zone.
Master Alerts: Includes "Master Bullish" and "Master Bearish" alerts to notify you of breakouts from any of the three zones with a single alert setup.






















