Choppiness Index | CipherDecodedThe Choppiness Index is a multi-timeframe regime indicator that measures whether price action is trending or consolidating.
This recreation was inspired by the Choppiness Index chart from Checkonchain, with full credit to their team for the idea.
🔹 How It Works
CI = 100 * log10( SUM(ATR(1), n) / (highest(high, n) – lowest(low, n)) ) / log10(n)
Where:
n – lookback length (e.g. 14 days / 10 weeks / 10 months)
ATR(1) – true-range of each bar
SUM(ATR(1), n) – total true-range over n bars
highest(high, n) and lowest(low, n) – price range over n bars
Low values → strong trend
High values → sideways consolidation
Below is a simplified function used in the script for computing CI on any timeframe:
f_ci(_n) =>
_tr = ta.tr(true)
_sum = math.sum(_tr, _n)
_hh = ta.highest(high, _n)
_ll = ta.lowest(low, _n)
_rng = _hh - _ll
_rng > 0 ? 100 * math.log10(_sum / _rng) / math.log10(_n) : na
Consolidation Threshold — 50.0
Trend Threshold — 38.2
When Weekly CI < Trend Threshold, a trending zone (yellow) appears.
When Weekly CI > Consolidation Threshold, a consolidation zone (purple) appears.
Users can toggle either background independently.
🔹 Example Background Logic
bgcolor(isTrend and Trend ? color.new(#f3e459, 50) : na, title = "Trending", force_overlay = true)
bgcolor(isConsol and Cons ? color.new(#974aa5, 50) : na, title = "Consolidation", force_overlay = true)
🔹 Usage Tips
Observe the Weekly CI for regime context.
Combine with price structure or trend filters for signal confirmation.
Low CI values (< 38) indicate strong trend activity — the market may soon consolidate to reset.
High CI values (> 60) reflect sideways or range-bound conditions — the market is recharging before a potential new trend.
🔹 Disclaimer
This indicator is provided for educational purposes.
No trading outcomes are guaranteed.
This tool does not guarantee market turns or performance; it should be used as part of a broader system.
Use responsibly and perform your own testing.
🔹 Credits
Concept origin — Checkonchain Choppiness Index
インジケーターとストラテジー
20 EMA Undercut Bounce - M4v3r1ck💎 The "EMA Undercut Bounce" Bullish Scanner
This indicator is designed to identify high-conviction continuation patterns where price makes a temporary dip for liquidity before resuming a powerful, established uptrend. It specifically looks for a bullish rejection off the 20-period Exponential Moving Average (EMA).
🎯 Strategy Logic
The signal is generated only on the Daily (1D) timeframe when the following five precise conditions are met on the most recent completed bar:
1. Price Action (The Undercut Bounce)
• Undercut: The bar's low price must have touched or temporarily traded below the 20-Day EMA.
• Rejection: The bar's close price must have fully recovered and closed above the 20-Day EMA. This is the classic sign of strong buying pressure defending a key support level.
2. Strong Trend Hierarchy (The Bullish Stack)
The moving averages must be perfectly stacked, confirming a robust multi-timeframe uptrend structure:
• 10-Day EMA > 20-Day EMA
• 20-Day EMA > 50-Day SMA
• 50-Day SMA > 200-Day SMA
3. Momentum Confirmation (The Upward Slope)
Both the 10-Day EMA and the 20-Day EMA must be rising from the previous day. This ensures that the short-term trend momentum is positive, ruling out signals during flat or turning markets.
💡 How to Use This Indicator
1. Timeframe: Ensure your chart is set to the Daily (1D) timeframe for accurate results.
2. Signal: A Green Background highlight and an Up-Arrow below the bar mark a confirmed signal.
3. Alerts: Use the built-in alert condition to set up notifications for stocks on your watchlist, allowing you to catch these high-quality setups without constantly monitoring charts.
This script is ideal for trend-following traders looking to enter a position after a healthy shakeout and confirmation of continued bullish commitment.
Key LevelsKey levels marked out for the day.
Week, 4 hour, 1 hour, PM, and OR levels marked out for each session.
Z-Cum Delta 4U [ZuperView]Z-Cum Delta 4U is an order flow indicator that helps traders see through price action and determine whether aggressive buying or selling pressure is dominating the market.
By accumulating delta volume over time, it paints a clear picture of how control shifts between buyers and sellers.
📌 Key features
🔸 Market control transition
Z-Cum Delta 4U detects when market pressure is likely to shift from one side to the other.
Bullish reversal signal
When the histogram turns from red (negative) to green (positive), buyers have absorbed selling pressure.
This indicates accumulation at the bottom and offers a strong Buy opportunity.
Bearish reversal signal
When the histogram turns from green to red, selling pressure has overtaken buying pressure.
This often marks a market top and the start of a distribution phase, providing a reliable Sell opportunity.
🔸 Early momentum warnings
Traders usually don’t wait for the histogram to change color. They compare it with moving averages to identify early signs of momentum exhaustion, serving as an early warning of a potential reversal.
When the histogram reaches extreme positive or negative levels, it reflects strong momentum, making an immediate reversal unlikely.
Momentum weakening in an uptrend:
This is an early warning that the uptrend may be weakening before the histogram turns red.
Interpretation: Aggressive buying momentum is fading; upward strength is weakening.
Action: Tighten risk management, adjust stop-loss levels, or take partial profits to protect gains and prepare for a potential pullback.
Momentum weakening in a downtrend:
This is an early warning that the downtrend may be weakening before the histogram turns green.
Interpretation: Selling pressure is fading as buyers begin to absorb volume quietly.
Action: Close short positions, lock in profits, and prepare for potential long entries once a reversal confirmation appears.
🔸 Divergence detection
Divergence between price and the histogram of Z-Cum Delta 4U highlights a mismatch between price action and actual market pressure.
Positive divergence
Condition: Price forms a lower low, while the indicator forms a higher low.
Interpretation: Selling pressure is losing momentum while smart money accumulates – signaling a potential bullish reversal.
Negative divergence
Condition: Price forms a higher high, while the histogram forms a lower high.
Interpretation: Price is being pushed higher by weak or declining buying pressure – a potential bull trap warning of a sell-off.
🔸 Volume exhaustion and absorption
Z-Cum Delta 4U also helps identify final moves by dominant participants – often marking the end of a major trend.
Volume exhaustion
When the histogram spikes sharply to an extreme (positive or negative) and immediately reverses, it indicates that the last buyers or sellers have stepped in.
The market has run out of opposing liquidity, often leading to a sharp reversal.
Volume absorption
When the histogram rises or falls strongly near a key support or resistance level but the price fails to move further, it shows that large opposing orders are being absorbed.
Once absorption is complete, the price often breaks out decisively in the direction of the absorbing side.
In summary, the indicator enables traders to interpret smart money behavior through order flow dynamics.
By combining early warning signals (via the MA), divergence analysis, and volume absorption patterns, traders can move from reacting to price action to anticipating it – gaining a genuine strategic edge.
📌 Signal mechanism
These 3 signal types form an analytical framework for understanding market behavior, from confirming trend reversals and assessing momentum strength to detecting early reversal warnings.
🔸 Reversal signal
Based on the histogram color transitions, this signal represents a shift in control between buyers and sellers.
Bullish reversal signal
When the histogram changes from red to green.
→ Selling pressure has been absorbed, and aggressive buyers have regained control, confirming a likely bottom and a strong buy signal.
Bearish reversal signal
When the histogram changes from green to red.
→ Buying pressure is exhausted, and aggressive sellers dominate, confirming a likely top and a strong sell signal.
🔸 Momentum signal
This signal uses the indicator’s moving average as a benchmark to gauge the strength and sustainability of order flow.
Mechanism: Triggered when the histogram crosses its MA in the direction of the trend.
Meaning:
Uptrend: When the histogram rises above its MA → strong, sustained buying pressure from institutional activity.
Downtrend: When the histogram falls below its MA → dominant selling pressure drives continuation.
Action: Hold or scale into positions aligned with the trend, as the move is supported by persistent order flow.
🔸 Early reversal signal
This signal allows traders to optimize entry and exit points before a reversal occurs.
Mechanism:
Uptrend: When the histogram remains positive but declines and crosses below its MA.
Downtrend: When the histogram remains negative but rises and crosses above its MA.
Meaning: Momentum exhaustion in the dominant force (buyers in uptrends or sellers in downtrends). The color hasn’t flipped yet, but the intensity has weakened significantly.
Action:
Tighten stop-loss levels
Take partial profits
Prepare for a possible reversal signal
EMA 9 & 26 + Bollinger Bands — Auto AlertsHere’s a professional **TradingView description** you can use when publishing your new version of the indicator with alerts 👇
---
## 🟢 EMA 9 & 26 + Bollinger Bands — Auto Buy/Sell Alerts
This indicator combines **EMA crossover strategy** and **Bollinger Bands** to generate high-clarity **Buy/Sell signals** for any market (crypto, forex, stocks).
It also includes **automatic alerts** that notify you the moment a new signal appears — perfect for traders using 3-minute or 5-minute charts such as ETHUSDT, BTCUSDT, or other pairs.
---
### ⚙️ **Core Features**
* **EMA 9 & EMA 26 Crossover Logic**
* 💚 **BUY** when EMA 9 crosses above EMA 26 → start of bullish momentum
* ❤️ **SELL** when EMA 9 crosses below EMA 26 → start of bearish momentum
* **Bollinger Bands Overlay**
* Visualize volatility and spot potential breakout or retracement zones
* **Real-Time Alerts**
* Instant notification as soon as a BUY or SELL signal appears
* Works seamlessly on any timeframe (3m / 5m / 15m / 1h / 4h / 1D)
* **Color-Coded Labels**
* BUY = Aqua-Green (#00FFCC)
* SELL = Pink-Red (#FF007F)
---
### 🔔 **How to Set Up Alerts**
1. Add the indicator to your chart.
2. Choose your symbol (e.g., **ETHUSDT**) and timeframe (**3 min or 5 min**).
3. Click the **Alarm Clock ⏰ → Create Alert**.
4. Under **Condition**, select this indicator → choose **BUY Signal** or **SELL Signal**.
5. Choose “Once per bar” or “Once per bar close”.
6. Enable **App**, **Email**, or **Webhook** notifications.
---
### 💡 **Best Use**
* Ideal for **scalpers** and **short-term trend traders**
* Works on any liquid asset (crypto, forex, stocks, indices)
* Combine with **RSI**, **volume**, or **support/resistance** for stronger confirmation
---
### ⚠️ **Disclaimer**
This indicator is a **technical tool**, not financial advice. Always confirm signals with your own analysis and risk management strategy.
---
Would you like me to make a **short SEO-optimized summary** (under 250 characters) for the *TradingView Public Library card* — e.g. what shows under the title when people browse indicators?
Enhanced SMA RibbonThe "Enhanced SMA Ribbon" indicator, implemented in TradingView's Pine Script, is a technical analysis tool that overlays multiple Simple Moving Averages (SMAs) on a price chart to help traders identify trends, potential reversals, and the overall market direction. Here's a detailed explanation of what it does:
What It Does
Calculates Multiple SMAs:
The indicator calculates 13 SMAs with different periods: 5, 6, 8, 10, 15, 20, 30, 50, 75, 100, 150, 200, and 300 bars.
Each SMA is based on the closing price (close) of the chart's data, smoothing out price fluctuations over the specified number of periods to reveal underlying trends.
Creates a Ribbon Effect:
These SMAs are plotted as lines on the chart, forming a "ribbon" where the lines spread out or converge based on the price action.
Shorter-period SMAs (e.g., 5, 6, 8) react quickly to price changes, while longer-period SMAs (e.g., 200, 300) move more slowly, creating a visual gradient of trend strength.
Visualizes Trend Direction:
When the ribbon fans out and all SMAs slope upward (e.g., shorter SMAs above longer ones), it indicates a strong uptrend.
When the ribbon compresses and slopes downward (e.g., shorter SMAs below longer ones), it suggests a downtrend.
A flat or converging ribbon can signal a consolidation phase or potential reversal.
Uses Distinct Colors:
Each SMA is assigned a unique color using RGB values, transitioning from red (short-term, e.g., SMA 5) to gray (long-term, e.g., SMA 300). The colors are:
SMA 5: Red (#FF0000)
SMA 6: OrangeRed (#FF4500)
SMA 8: Orange (#FFA500)
SMA 10: Yellow (#FFFF00)
SMA 15: GreenYellow (#ADFF2F)
SMA 20: Green (#00FF00)
SMA 30: Cyan (#00FFFF)
SMA 50: DodgerBlue (#1E90FF)
SMA 75: Blue (#0000FF)
SMA 100: Purple (#800080)
SMA 150: Magenta (#FF00FF)
SMA 200: DarkTurquoise (#00CED1)
SMA 300: Gray (#808080)
This color gradient helps traders quickly distinguish between short-, medium-, and long-term trends.
Overlays on Price Chart:
The indicator is set to overlay=true, meaning it plots directly on the price chart (e.g., candlesticks or bars) rather than in a separate pane, allowing for direct comparison with price movements.
How Traders Use It
Trend Confirmation: A widening ribbon with upward-sloping SMAs confirms a bullish trend, while a narrowing ribbon with downward-sloping SMAs confirms a bearish trend.
Crossover Signals: Crossovers between shorter and longer SMAs (e.g., SMA 5 crossing SMA 50) can indicate potential buy or sell signals, though this requires additional logic (not included here).
Support and Resistance: Longer SMAs (e.g., 200, 300) often act as dynamic support or resistance levels.
Market Context: The ribbon provides a multi-timeframe view, combining short-term reactions with long-term trends, useful for swing traders or those analyzing market cycles.
Example Behavior
In an uptrend, the price might stay above the ribbon, with shorter SMAs (e.g., 5, 10) leading the upward movement, followed by longer SMAs (e.g., 200, 300) catching up.
In a downtrend, the price might fall below the ribbon, with shorter SMAs dropping first, creating a red-dominated lower section.
During consolidation, the SMAs might bunch together, forming a tight ribbon with minimal slope.
Limitations
The indicator can become cluttered on lower timeframes (e.g., 1-minute charts) due to the number of lines.
It’s a lagging indicator since SMAs are based on past data, so it’s best used with other tools (e.g., RSI, MACD) for confirmation.
BTC LL->HH Liquidity Sweep / BOS / Retest / 4H Bias v6_8BTC LL->HH Liquidity Sweep / BOS / Retest / 4H Bias v6_8
Grok's xAI Signal (GXS) Indicator for BTC V4Overview
The "Grok's xAI Signal (GXS) Indicator for BTC V4" is a custom technical analysis tool for TradingView, optimized for Bitcoin (BTC) charts. It overlays on the price pane and produces buy/sell signals via a "GXS Score" that integrates technical indicators, an on-chain proxy, and a trend regime filter. This indicator identifies bullish/bearish setups in trending markets while filtering out noise in ranging conditions.
As an indicator (not a strategy), it emphasizes visualization: EMAs, clouds, arrows with price labels, background colors, and an optional score table. No automated trades or backtests—focus on alerts and manual insights.
Core approach:
Composite scoring: Normalizes inputs from momentum (RSI, MACD), trend (EMAs, ADX), volatility (BB), and NVT proxy into a -1 to +1 score.
Regime filter: Signals only when ADX indicates a trend.
BTC-tuned: Uses volume/close for on-chain signals, leveraging crypto data.
Ideal for 1H, 4H, or 1D BTC/USD charts.
GXS Score: Reasoning and Composition
At the heart of the indicator is the GXS Score, a weighted composite designed to capture multifaceted market dynamics while prioritizing reliability in volatile assets like BTC. The reasoning stems from an xAI-inspired philosophy: blend diverse signals to mitigate individual indicator biases, emphasize technical momentum for short-term edges, incorporate on-chain fundamentals for longer-term context, and apply a regime filter to avoid over-trading in choppy conditions. This creates a robust, normalized score (-1 bearish to +1 bullish) that triggers signals only on crossovers in confirmed trends, reducing false positives.
The score is built hierarchically:
Technical Sub-Score (50% weight): Averages four normalized components (-1 to +1) for broad coverage:
RSI (momentum oscillator): +1 for oversold (deep value buys), -1 for overbought (exhaustion sells). Rationale: Captures mean-reversion extremes, crucial in BTC's boom-bust cycles.
MACD (trend momentum): +1 for bullish histogram/line crossover, -1 for bearish. Extra 10% boost in final score for its sensitivity to divergences, providing early reversal hints.
EMA Stack (trend alignment): +1 if price > fast EMA > slow EMA (bull stack), -1 otherwise. Justifies trend persistence without lag, filtering noise in sideways markets.
Bollinger Bands (volatility context): +0.5/-0.5 during squeezes (width <10%) if price above/below basis. Logic: Low volatility precedes breakouts; this adds directional bias to potential expansions, vital for BTC's explosive moves.
This 50% allocation reflects technicals' proven edge in price prediction, averaged to smooth outliers.
On-Chain Sub-Score (30% weight): +0.5 if NVT proxy (smoothed volume/price turnover) < 50-period SMA, -0.5 otherwise, scaled by regime. Why on-chain? BTC's value ties to network health; low NVT signals undervaluation (high utility relative to cap), countering hype-driven pumps. Scaled weighting acknowledges data limitations but adds fundamental depth.
Regime Boost (10% weight): Direct +0.1 from ADX > threshold (trending binary). Purpose: Amplifies scores in directional markets (ADX ~20+), where trends persist, while damping in ranges to prevent whipsaws—aligning with empirical evidence that most profits come from trends, not oscillations.
Final formula: 0.5 * tech_avg + 0.3 * onchain + 0.1 * regime + 0.1 * macd. Weights are empirically tuned: heavy on tech for reactivity, balanced with on-chain for sustainability, and regime/MACD for confirmation. This avoids over-reliance (e.g., no single indicator dominates) and promotes confluence, making signals more actionable than isolated crossovers.
Tips
Use 4H/1D for BTC to leverage trend strength; enable the score table for live tracking of GXS value against thresholds.
Adjust thresholds (e.g., +0.3/-0.3) or ADX to 25+ for fewer, higher-quality signals.
Customize visuals: Hide EMAs/clouds in volatile periods; use small arrows for clean charts; always enable price labels for entry precision.
Set up alerts early—combine with webhooks for automated bots; test on historical data to align with your risk tolerance.
For confluence, pair with volume spikes or external news; monitor regime shifts via the table to avoid ranging-market traps.
SPX / Silver (XAGUSD) RatioThis script visualizes the S&P 500 Index to Silver ratio (SPX/Silver) — a powerful tool for monitoring the relative strength of equities vs. precious metals over time.
📊 Use Case:
Helps traders assess macro sentiment shifts between risk-on (equities) and risk-off (commodities).
A rising ratio indicates equity outperformance vs Silver, often in growth-driven bull markets.
A falling ratio suggests Silver is outperforming — potentially due to inflation, geopolitical risk, or weakening equities.
⚙️ Data & Calculation:
SPX: SP:SPX (S&P 500 Index)
Silver: TVC:SILVER
Formula:
SPX / Silver
(Both are spot/index prices, updated on daily timeframe)
📈 Interpretation:
📈 Ratio Rising → SPX outperforming Silver → Risk-on sentiment
📉 Ratio Falling → Silver outperforming SPX → Possible flight to safety or inflation hedge
🧠 Ideal For:
Macro trend analysis
Intermarket strategy development
Asset rotation decision-making
Spotting Silver bottoms during SPX/Silver peak zones
Daily Pivot Points LEVELS S-RThis indicator plots daily pivot points based on the previous day’s high, low, and close. It displays the main pivot line, as well as the first levels of support (S1) and resistance (R1), with optional second levels (R2, S2) for additional reference. Ideal for
Fibo 68.2 / 32.1 (2 lignes)FIBO indicator that automatically plots two retracement lines (38.2 and 61.8).
RBD Advanced PinbarInputs / Settings
Detection parameters
lookback_period → How far back to compare wick sizes.
min_wick_ratio → Minimum wick length as % of total candle height.
max_body_ratio → Maximum body size as % of total candle height.
atr_multiplier → Ensures the pinbar candle’s total height is at least a multiple of the ATR (filters out small candles).
wick_size_multiplier → The wick must be at least X times larger than the biggest wick in recent candles.
Visual options
Toggle display of hammer / shooting star markers, labels, background highlights, and info table.
Customize colors and label size.
For each candle:
Calculates upper wick, lower wick, and body size in both absolute and percentage terms.
Checks if the total candle size is “large enough” using ATR.
Looks back lookback_period bars to find the largest historical upper and lower wick.
Compares current wick size to the past max wick (must exceed it by wick_size_multiplier).
Classifies the candle:
Hammer Pinbar (Bullish) if
Lower wick ≥ min_wick_ratio
Body ≤ max_body_ratio
Candle is big enough (ATR filter)
Lower wick is significantly longer than past wicks
Shooting Star (Bearish) if
Upper wick ≥ min_wick_ratio
Body ≤ max_body_ratio
Candle is big enough
Upper wick is significantly longer than past wicks
JOPA Channel (Dual-Volumed) v1 [JopAlgo]JOPA Channel (Dual-Volumed) v1
Short title: JOPAV1 • License: MPL-2.0 • Provider: JopAlgo
We have developed our own, first channel-based trading indicator and we’re making it available to all traders. The goal was a channel that breathes with the tape—built on a volume-weighted backbone—so the outcome stays lively instead of static. That led to the JOPA Channel.
All important features (at a glance)
In one line: A Rolling-VWAP channel whose width adapts with two volumes (RVOL + dollar-flow), adds order-flow asymmetry (OBV tilt) and regime awareness (Efficiency Ratio), and frames risk with outer containment bands from residual extremes—so you see fair value, momentum, and exhaustion in one view.
Feature list
Rolling VWAP centerline: Tracks where volume traded (fair value).
Dual-volume width: Bands expand/contract with relative volume and value traded (price×volume).
OBV tilt: Upper/lower widths skew toward the side actually pushing.
Regime adapter (ER): Tighter in trend, wider in chop—automatically.
Outer containment rails: Residual-extreme ceilings/floors, smoothed + margin.
20% / 80% guides: 20% light blue (discount), 80% light red (premium).
Squeeze dots (optional): Orange circles below candles during compression.
Non-repainting: Uses rolling sums and past-only math; no lookahead.
Default visual in this release
Containment rails + fill: ON (stepline, medium).
Inner Value rails + fill: Rails OFF (stepline, thin), fill ON (drawn only if rails are shown).
20% & 80% guides: ON (dashed, thin; 20% light blue, 80% light red).
Squeeze dots: OFF by default (orange circles when enabled).
What you see on the chart
RVWAP (centerline): Your compass for fair value.
Inner Value Bands (optional): Tight rails for breakouts and pullback timing.
Outer Containment Bands (default ON): High-confidence ceilings/floors for targets and fades.
20% / 80% guides: Quick read of “where in the channel” price is sitting.
Squeeze dots (optional): Volatility compression heads-up (no text labels).
Non-repainting note: The indicator does not revise closed bars. Forecast-Lock uses linear regression to extrapolate 1–3 bars ahead without using future data.
How to use it
Core reads (works on any timeframe)
Bias: Above a rising RVWAP → long bias; below a falling RVWAP → short bias.
Breakouts (momentum): Close beyond an Inner Value rail with RVOL ≥ threshold (alert provided).
Reversions (fades): Tag Outer Containment, stall, then close back inside → expect mean reversion toward RVWAP.
20/80 timing:
At/above 80% (light red) → premium/exhaustion risk; trim longs or consider fades if RVOL cools.
At/below 20% (light blue) → discount/exhaustion risk; trim shorts or consider longs if RVOL cools.
Squeeze clusters: When dots bunch up, expect a range break; use the Breakout alert as confirmation.
Playbooks by trading style
Day Trading (1–5m)
Setup: Keep the chart clean (Containment ON, Value rails OFF). Toggle Inner Value ON when hunting a breakout or timing a pullback.
Pullback Long: Dip to RVWAP / Lower Value with sub-threshold RVOL, then a close back above RVWAP → long.
Stop: Just beyond Lower Containment or the pullback swing.
Targets (1:1:1): ⅓ at RVWAP, ⅓ at Upper Value, ⅓ trail toward Upper Containment.
Breakout Long: After a squeeze cluster, take the Breakout Long alert (close > Upper Value, RVOL ≥ min). If no retest, demand the next bar holds outside.
Range Fade: Only when RVWAP is flat and dots cluster; short Upper Containment → RVWAP (mirror for longs at the lower rail).
Intraday (15m–1H)
HTF compass: Take bias from 4H.
Pullback Long: “Touch & reclaim” of RVWAP while RVOL cools; enter on the reclaim close or break of that candle’s high.
Breakout: Run Inner Value ON; act on Breakout alerts (RVOL gate ≈ 1.10–1.15 typical).
Avoid low-probability fades against the 4H slope unless RVWAP is flat.
Swing (4H–1D)
Continuation: In uptrends, buy pullbacks to RVWAP / Lower Value with sub-threshold RVOL; scale at Upper Containment.
Adds: Post-squeeze Breakout Long adds; trail on RVWAP or Lower Value.
Fades: Prefer when RVWAP flattens and price oscillates between containments.
Position (1D+)
Framework: Daily RVWAP slope + position within containment.
Add rule: Each reclaim of RVWAP after a dip is an add; trim into Upper Containment or near 80% light red.
Sizing: Containment distance is larger—size down and trail on RVWAP.
Inputs & Settings (complete)
Core
Source: Price input for RVWAP.
Rolling VWAP Length: Window of the centerline (higher = smoother).
Volume Baseline (RVOL): SMA window for relative volume.
Inner Value Bands (volatility-based width)
k·StdDev(residuals), k·ATR, k·MAD(residuals): Blend three measures into base width.
StdDev / ATR / MAD Lengths: Lookbacks for each.
Two-Volume Fusion
RVOL Exponent: How aggressively width responds to relative volume.
Dollar-Flow Gain: Adds push from price×volume (value traded).
Dollar-Flow Z-Window: Standardization window for dollar-flow.
Asymmetry (Order-Flow Tilt)
Enable Tilt (OBV): Lets flow skew upper/lower widths.
Tilt Strength (0..1): Gain applied to OBV slope z-score.
OBV Slope Z-Window: Window to standardize OBV slope.
Regime Adapter
Efficiency Ratio Lookback: Measures trend vs chop.
ER Width Min/Max: Maps ER into a width factor (tighter in trend, wider in chop).
Band Tracking (inner value rails)
Tracking Mode:
Base: Pure base rails.
Parallel-Lock: Smooth RVWAP & width; track in parallel.
Slope-Lock: Adds a fraction of recent slope (momentum-friendly).
Forecast-Lock: 1–3 bar extrapolation via linreg (non-repainting on closed bars).
Attach Strength (0..1): Blend tracked rails vs base rails.
Tracking Smooth Length: EMA smoothing of RVWAP and width.
Slope Influence / Forecast Lead Bars: Gains for the chosen mode.
Outer Containment Bands
Show Containment Bands: Master toggle (default ON).
Residual Extremes Lookback: Highest/lowest residual window.
Extreme Smoothing (EMA): Stability on extreme lines.
Margin vs inner width: Extra padding relative to smoothed inner width.
Squeeze & Alerts
Squeeze Window / Threshold: Width vs average; at/under threshold = dot (when enabled).
Min RVOL for Breakout: Required RVOL for breakout alerts.
Style (defaults in this release)
Inner Value rails: OFF (stepline, thin).
Inner & Containment fills: ON.
Containment rails: ON (stepline, medium).
20% / 80% guides: ON — 20% light blue, 80% light red, dashed, thin.
Squeeze dots: OFF by default (orange circles below candles when enabled).
Practical templates (copy/paste into a plan)
Momentum Breakout
Context: Squeeze cluster near RVWAP; Inner Value ON.
Trigger: Breakout Long (close > Upper Value & RVOL ≥ min).
Stop: Below Lower Value (tight) or below RVWAP (safer).
Targets (1:1:1): ⅓ Value → ⅓ Containment → ⅓ trail on RVWAP.
Pullback Continuation
Context: Uptrend; dip to RVWAP / Lower Value with cooling RVOL.
Trigger: Close back above RVWAP or break of reclaim candle’s high.
Stop: Just outside Lower Containment or pullback swing.
Targets: RVWAP → Upper Value → Upper Containment.
Containment Reversion (range)
Context: RVWAP flat; repeated containment tags.
Trigger: Stall at containment, then close back inside.
Stop: A step beyond that containment.
Target: RVWAP; runner only if RVOL stays muted.
Alerts included
DVWAP Breakout Long / Short (Value Bands)
Top Zone / Bottom Zone (20% / 80% guides)
Tip: On lower TFs, act on Breakout alerts with higher-TF bias (e.g., trade 5–15m in the direction of 1H/4H RVWAP slope/position).
Best practices
Let RVWAP be the compass; if unsure, wait until price picks a side.
Respect RVOL; low-RVOL breaks are prone to fail.
Use guides for timing, not certainty. Pair 20/80 zones with flow context.
Start with defaults; change one knob at a time.
Common pitfalls
Fading every containment touch → only fade when RVWAP is flat or RVOL cools.
Over-tuning inputs → the defaults are robust; small tweaks go a long way.
Fighting the higher timeframe on low TFs → expensive habit.
Footer — License & Publishing
License: Mozilla Public License 2.0 (MPL-2.0). You may modify and redistribute; keep this file under MPL and provide source for this file.
Originality: © 2025 JopAlgo. No third-party code reused; Pine built-ins and common formulas only.
Publishing: Keep this header/description intact when releasing on TradingView. Avoid promotional links in the public script text.
Lodon Session DivisionsLondon Session Divisions - Situational Analysis Mastery
Professional Breakout & Trend-Following Strategy Based on Tom Hougaard's Situational Analysis
🎯 WHAT IS THIS INDICATOR?
A sophisticated multi-timeframe breakout scanner designed for European trading sessions, implementing the powerful "Situational Analysis" methodology from renowned trader Tom Hougaard. This professional tool identifies high-probability breakout opportunities with comprehensive filter systems to ensure quality signals.
⭐ KEY FEATURES
🏛️ SESSION-BASED TRADING
- European Overnight Range
- London Pre-Open & First Breakouts
- Tokyo Box & London Launch Sessions
- Smart Session Detection with Auto-DST
🎯 ENHANCED CONDITIONS
- School Run Strategy (SRS) by Tom Hougaard
- Anti-SRS Filter for counter-trend opportunities
- Session-specific logic for optimal entry timing
🛡️ ADVANCED FILTER SYSTEMS
- Heiken Ashi Momentum Confirmation
- EMA 200 Trend Filter
- Ichimoku Baseline & Divergence
- RSI Threshold Filter
- ATR Volatility Filter
- Multi-timeframe Compatibility
⚡ SMART ALERTS & VISUALS
- Multi-timeframe Alert Confirmation
- Breakout Size Detection (Beyond/Within Range)
- Take Profit Levels with ATR Calculation
- Customizable Visual Markers
- Enhanced Alert Messages with Filter Status
📈 OPTIMIZED FOR
- GERMAN DAX ⚡
- OIL & GOLD 🛢️
- NIKKEI 🇯🇵
- US30 & NASDAQ 🇺🇸
- All Major Indices & Commodities
🔧 CORE STRATEGY PHILOSOPHY
This indicator embodies Tom Hougaard's Situational Analysis approach :
- Identify the Situation : Market context through session analysis
- Define the Action : Clear breakout levels and ranges
- Execute with Precision : Filtered, high-quality signals
- Manage the Trade : Built-in TP levels and size detection
🎨 CUSTOMIZATION OPTIONS
Session Management
- Toggle individual trading sessions
- Smart session auto-disable with SRS/Anti-SRS
- Customizable session times
Filter Controls
- Enable/disable all filter systems independently
- Adjustable timeframe for each filter
- Custom threshold settings
Visual Preferences
- Heiken Ashi overlay display
- Breakout marker styles and colors
- TP line customization
- Debug information panel
📊 HOW TO USE
1. SETUP : Apply to your preferred instrument (DAX, Oil, Gold, etc.)
2. CONFIGURE : Enable your preferred sessions and filters
3. MONITOR : Watch for breakout markers during active sessions
4. EXECUTE : Enter on confirmed breakouts with filter alignment
5. MANAGE : Use built-in TP levels or your own risk management
⚠️ RISK DISCLAIMER
This indicator is for educational and informational purposes only. Trading involves substantial risk and is not suitable for every investor. Always practice proper risk management and backtest strategies before live trading. Past performance is not indicative of future results.
🔒 TECHNICAL SPECIFICATIONS
- Platform : TradingView Pine Script v6
- Compatibility : All timeframes
- Markets : Forex, Indices, Commodities, Stocks
- Updates : Regular improvements and bug fixes
📞 SUPPORT & UPDATES
Regular updates based on user feedback and market changes. For suggestions or issues, please comment on the publication.
⭐ If this indicator helps your trading, please like and follow for more advanced tools! ⭐
Why Traders Love This Indicator:
✅ Comprehensive Filter System reduces false signals
✅ Session-Based Logic aligns with professional trading hours
✅ Multiple Timeframe Analysis for confirmation
✅ Customizable for Any Trading Style
✅ Professional-Grade Risk Management Tools
Boost your breakout trading profitability with institutional-grade session analysis!
PM Range Breaker [CHE] PM Range Breaker — Premarket bias with first-five range breaks, optional SWDEMA regime latch, and simple two-times-range targets
Summary
This indicator sets a once-per-day directional bias during New York premarket and then tracks a strict first-five-minutes range from the session open. After the first five complete, it marks clean breakouts and can project targets at two times the measured range. A second mode latches an EMA-based regime to inform the bias and optional background tinting. A compact panel reports live state, first-five levels, and rolling hit rates of both bias modes using a user-defined midday close for statistics.
Motivation: Why this design?
Intraday traders often get whipsawed by early noise or by fast flips in trend filters. This script commits to a bias at a single premarket minute and then waits for the market to present an objective structure: the first-five range. Breaks after that window are clearer and easier to manage. The alternative SWDEMA regime gives a slower, latched context for users who prefer a trend scaffold rather than a midpoint reference.
What’s different vs. standard approaches?
Baseline: Typical open-range-breakout lines or a single moving-average filter without daily commitment.
Architecture differences:
Bias decision at a fixed New York time using either a midpoint lookback (“Classic”) or a two-EMA regime latch (“SWDEMA”).
Strict five-minute window from session open; breakout shapes print only after that window.
Single-shot breakout direction per session (debounce) and optional two-times-range targets.
On-chart panel with hit rates using a configurable midday close for statistics.
Practical effect: Cleaner visuals, fewer repeated signals, and a traceable daily decision that can be evaluated over time.
How it works (technical)
Time handling uses New York session times for premarket decision, open, first-five end, and a midday statistics checkpoint.
Classic bias: A midpoint is computed from the highest and lowest over a user period; at the premarket minute, the bias is set long when the close is above the midpoint, short otherwise.
SWDEMA bias: Two EMAs define a regime score that requires price and trend agreement; when both agree on a confirmed bar, the regime latches. At the premarket minute, the daily bias is set from the current regime.
The first-five range captures high and low from open until the end minute, then freezes. Breakouts are detected after that window using close-based cross logic.
The script draws range lines and optional targets at two times the frozen range. A session break direction latch prevents duplicate break markers.
Statistics compare daily open and a configurable midday close to record if the chosen bias aligned with the move.
Optional elements include EMA lines, midpoint line, latched-regime background, and regime switch markers.
Data aggregation for day logic and the first-five window is sampled on one-minute data with explicit lookahead off. On charts above one minute, values update intra-bar until the underlying minute closes.
Parameter Guide
Premarket Start (NY) — Minute when the bias is decided — Default: 08:30 — Move earlier for more stability; later for recency.
Market Open (NY) — Session start used for the first-five window — Default: 09:30 — Align to instrument’s RTH if different.
First-5 End (NY) — End of the first-five window — Default: 09:35 — Extend slightly to capture wider opening ranges.
Day End (NY) for Stats — Midday checkpoint for hit rate — Default: 12:00 — Use a later time for a longer evaluation window.
Show First-5 Lines — Draw the frozen range lines — Default: On — Turn off if your chart is crowded.
Show Bias Background (Session) — Tint by daily bias during session — Default: On — Useful for directional context.
Show Break Shapes — Print breakout triangles — Default: On — Disable if you only want lines and alerts.
Show 2R Targets (Optional) — Plot targets at two times the range — Default: On — Switch off if you manage exits differently.
Line Length Right — Extension length of drawn lines — Default: 20 (bars) — Increase for slower timeframes.
High/Low Line Colors — Visual colors for range levels — Defaults: Green/Red — Adjust to your theme.
Long/Short Bias Colors — Background tints — Defaults: Green/Red with high transparency — Lower transparency for stronger emphasis.
Show Corner Panel — Enable the info panel — Default: On — Centralizes status and numbers.
Show Hit Rates in Panel — Include success rates — Default: On — Turn off to reduce panel rows.
Panel Position — Anchor on chart — Default: Top right — Move to avoid overlap.
Panel Size — Text size in panel — Default: Small — Increase on high-resolution displays.
Dark Panel — Dark theme for the panel — Default: On — Match your chart background.
Show EMA Lines — Plot blue and red EMAs — Default: Off — Enable for SWDEMA context.
Show Midpoint Line — Plot the midpoint — Default: Off — Useful for Classic mode visualization.
Midpoint Lookback Period — Bars for high-low midpoint — Default: 300 — Larger values stabilize; smaller values respond faster.
Midpoint Line Color — Color for midpoint — Default: Gray — A neutral line works best.
SWDEMA Lengths (Blue/Red) — Periods for the two EMAs — Defaults: 144 and 312 — Longer values reduce flips.
Sources (Blue/Red) — Price sources — Defaults: Close and HLC3 — Adjust if you prefer consistency.
Offsets (Blue/Red) — Pixel offsets for EMA plots — Defaults: zero — Use only for visual shift.
Show Latched Regime Background — Background by SWDEMA regime — Default: Off — Separate from session bias.
Latched Background Transparency — Opacity of regime background — Default: eighty-eight — Lower value for stronger tint.
Show Latch Switch Markers — Plot regime change markers — Default: Off — For auditing regime changes.
Bias Mode — Classic midpoint or SWDEMA latch — Default: Classic — Choose per your style.
Background Mode — Session bias or SWDEMA regime — Default: Session — Decide which background narrative you want.
Reading & Interpretation
Panel: Shows the active bias, first-five high and low, and a state that reads Building during the window, Ready once frozen, and Break arrows when a breakout occurs. Hit rates show the percentage of days where each bias mode aligned with the midday move.
Colors and shapes: Green background implies long bias; red implies short bias. Triangle markers denote the first valid breakout after the first-five window. Optional regime markers flag regime changes.
Lines: First-five high and low form the core structure. Optional targets mark a level at two times the frozen range from the breakout side.
Practical Workflows & Combinations
Trend following: Choose a bias mode. Wait for the first clean breakout after the first-five window in the direction of the bias. Confirm with structure such as higher highs and higher lows or lower highs and lower lows.
Exits and risk: Conservative users can trail behind the opposite side of the first-five range. Aggressive users can scale near the two-times-range target.
Multi-asset and multi-TF: Works well on intraday timeframes from one minute upward. For non-US sessions, adjust the time inputs to the instrument’s regular trading hours.
Behavior, Constraints & Performance
Repaint and confirmation: Bias and regime decisions use confirmed bars. Breakout signals evaluate on bar close at the chart timeframe. On higher timeframes, minute-based sources update within the live bar until the minute closes.
security and HTF: The script samples one-minute data. Lookahead is off. Values stabilize once the source minute closes.
Resources: `max_bars_back` is five thousand. Drawing objects and the panel update efficiently, with position extensions handled on the last bar.
Known limits: Midday statistics use the configured time, not the official daily close. Session logic assumes New York session timing. Targets are simple multiples of the first-five range and do not adapt to volatility beyond that structure.
Sensible Defaults & Quick Tuning
Start with Classic bias, midpoint lookback at three hundred, and all visuals on.
Too many flips in context → switch to SWDEMA mode or increase EMA lengths.
Breakouts feel noisy → extend the first-five end by a minute or two, or wait for a retest by your own rules.
Too sluggish → reduce midpoint lookback or shorten EMA lengths.
Chart cluttered → hide EMA or midpoint lines and keep only range levels and breakout shapes.
What this indicator is—and isn’t
This is a visualization and signal layer for session bias and first-five structure. It does not manage orders, position sizing, or risk. It is not predictive. Use it alongside market structure, execution rules, and independent risk controls.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Many thanks to LonesomeTheBlue
for the original work. I adapted the midpoint calculation for this script. www.tradingview.com
SMC + CRT Gold Flow PRO — Fixed RGB ColorsSCRIPT FOR GOLD. I used SMC + CRT strategies. I analyze in H4 timeframe and enter in m15 time frame.
IFVG (Inverted Fair Value Gap) Finder Detects standard Fair Value Gaps (3-candle definition) on any timeframe.
Tracks those FVG zones on the chart.
Marks Inverted Fair Value Gaps (IFVGs) when price breaches (invalidates) an FVG and later retests it from the other side.
Draws the zones and plots clear entry arrows when a retest is detected (so you can use them to enter trades).
Has alertconditions you can enable for automated alerts.
Tokyo Session DivisionsTokyo Session Divisions
Description:
Asia Range Breakout is a sophisticated, multi-filter trading tool designed to identify high-probability breakout opportunities during the core Asian trading session. By combining session-based range analysis with advanced confirmation filters like Heiken Ashi momentum, Ichimoku baseline trends, and EMA alignment, this indicator helps traders capture decisive moves while filtering out market noise.
Tired of false breakouts? This system provides a structured framework to trade the Sydney and Tokyo sessions with precision and confidence.
Key Features:
Multi-Session Range Tracking:
Monitors 6 distinct pre-defined Asian sessions (Sydney Box, Tokyo Pre-Open, Tokyo Launch, etc.).
Dynamically plots High and Low boundaries for each session (Teal for Highs, Red for Lows).
Individually toggleable sessions to focus on your preferred trading window.
Smart Alert & Signal System:
Generates alerts based on Heiken Ashi candle closings relative to session ranges.
Dual-Size Signals: Differentiates between "Large" breakouts (outside the range) and "Small" signals (within the range).
Configurable alert timeframe for confirmation candle closure.Built-in Sound Alerts for real-time notifications.
Advanced Confirmation Filters:
Heiken Ashi Momentum Filter: Ensures breakout candles have significant momentum, adjustable via a threshold multiplier.
EMA 200 Filter: Confirms the breakout's alignment with the broader trend.
Ichimoku Baseline (Kijun-sen) Filter: Uses a dynamic support/resistance level for additional confirmation.
Ichimoku Baseline Divergence Filter: A unique feature that requires the baseline's slope to match the breakout direction (Bullish for buys, Bearish for sells).
ATR Volatility Filter: (Optional) Ensures the breakout candle has sufficient range relative to recent market volatility.
Visual Enhancements:
Take-Profit Lines: Projects profit targets using ATR and connects consecutive alerts with a trendline.
Heiken Ashi Overlay: Displays smoothed Heiken Ashi candles directly on the main chart for cleaner trend visualization.
Divergence Trend Line: Visually plots the slope of the Ichimoku Baseline for quick trend assessment.
Session Background Highlighter: Shades the active sessions for easy time reference.
Comprehensive Debug Info Box: Provides real-time feedback on filter status, perfect for strategy validation and learning.
Usage Instructions & Tips:
1. Initial Setup:
Start simple! Apply the indicator to a 5-minute or 1-minute chart.
Recommended Instruments:
Forex: Major pairs like AUD/USD , USD/JPY or EUR/JPY.
Indices: `NAS100` (Nasdaq), `US30` (Dow Jones), `JP225` (Nikkei 225).
Commodities: `XAUUSD` (Gold).
Initially, enable only the Sydney Box (00:30 - 03:15 UTC) as it is the most robust session, then explore others.
2. Interpreting the Signals:
Large Green Arrow (Above Bar): A strong BUY signal. The Heiken Ashi candle closed above the session's High, and all enabled filters are confirmed.
Small Green Arrow (Above Bar): A moderate BUY signal. The candle closed bullishly but within the session range.
Large Red Arrow (Below Bar): A strong SELL signal. The Heiken Ashi candle closed below the session's Low, with filter confirmation.
Small Red Arrow (Below Bar): A moderate SELL signal. The candle closed bearishly but within the session range.
3. Optimizing Your Strategy:
Filter Tuning: The default filters are balanced. Adjust them based on your risk appetite:
Increase the Heiken Ashi Threshold (e.g., to 0.2) for fewer, but stronger signals.
Disable filters like ATR or Divergence if you find them too restrictive.
The Power of Divergence: The Ichimoku Divergence filter is a powerful trend-confirmation tool. Pay close attention to it for the highest-quality signals.
Use the Debug Box: Enable the "Show Debug Info Box" to see exactly why a signal did or did not trigger. This is invaluable for understanding the indicator's logic and avoiding bad trades.
4. Risk Management:
The TP Lines provide a logical profit target based on market volatility. Consider using them for setting take-profit orders.
Always use a stop-loss. A logical level is the opposite side of the session range (e.g., for a buy signal, place a stop below the session low).






















