Kalman Hull Bands For Loop | RakoQuant Kalman Hull Bands For Loop | RakoQuant
RakoQuant | Kalman Hull Bands For Loop is a trend-following breakout + regime tool built to keep you on the right side of the market with clean structure and minimal noise. It combines a Kalman Filter (noise reduction), a Hull Moving Average baseline (responsive trend anchor), and a standard deviation envelope computed via a for-loop (robust rail bands) to define actionable bullish and bearish regimes.
What it does
This indicator builds a dynamic “rail system” around price:
Kalman Filtered Source → reduces measurement noise in the input series.
Hull Baseline (HMA) → fast trend baseline built on the Kalman-filtered source.
Deviation Bands (“Rails”) → upper/lower rails based on a loop-calculated standard deviation.
Regime Breakout Logic → trend regime flips only when price breaks out beyond the rails:
Bullish regime when close crosses above the upper rail
Bearish regime when close crosses below the lower rail
Once a regime is established, the tool highlights the active rail in bright neon and fades the inactive rail (optional), giving you a clear “trend corridor” and a strong visual state.
Key Features
1) Kalman Noise Filtering (R & Q)
The Kalman filter smooths the selected source using:
R (Measurement Noise) – how noisy you assume the observations are
Q (Process Noise) – how quickly the model is allowed to adapt
This helps reduce chop without turning the indicator into a laggy moving average.
2) Hull Baseline (fast + smooth)
The baseline is a Hull Moving Average applied to the Kalman-filtered source:
responsive in trend,
cleaner during transitions,
ideal for breakout regime detection.
3) Deviation Envelope with Two Modes
Deviation rails are calculated using a for-loop standard deviation (population stdev), with two choices:
Residual vs Baseline (default): deviation of (src - baseline)
→ focuses on “distance from fair value” instead of raw price volatility
Raw Source: deviation of the source itself
→ classic volatility envelope behavior
Then bands are formed by:
upper = baseline + mult * sd
lower = baseline - mult * sd
4) Regime Rails + Candle Painting (RakoQuant Neon)
Bull regime: active lower rail plotted in Neon Aqua
Bear regime: active upper rail plotted in Neon Magenta
Candles are painted to match the current state (optional)
Inactive rails can be shown faintly for context.
5) Alerts for Breakouts
Built-in alerts trigger exactly on regime flips:
Bull Breakout (close crosses above upper rail)
Bear Breakout (close crosses below lower rail)
How to Use It
Trend-following approach
Stay with the active regime until a breakout flip occurs.
In bull regime, the lower rail behaves like an adaptive trend support guide.
In bear regime, the upper rail behaves like an adaptive trend resistance guide.
Breakout confirmation
Use the breakout as a confirmation layer with your other confluences:
take longs only after a bull breakout,
take shorts only after a bear breakout,
filter mean-reversion trades by the regime state.
Inputs Summary
Source: select what the model tracks (default: high)
Kalman: R / Q controls smoothing vs responsiveness
Baseline: Hull length
Deviation: loop length, mode (Residual vs Baseline / Raw Source), multiplier
Visuals: candle painting, baseline visibility, inactive rails
Disclaimer
Backtests are based on historical data and are not indicative of future performance.
:
Bollinger Bands (BB)
VWAP BB Breakout + DMI MomentumI decided to code a single indicator that has some of my most used indicators.
I encourage that you have read up on VWAP, Bollinger Bands, ADX/DMI to understand how they function.
VWAP + Bollinger 1σ Breakout + DMI/ADX Scalping Strategy (NASDAQ)
This strategy is designed for single-chart, intraday scalping on the NASDAQ, focusing on volatility expansion in the direction of market control. It avoids higher-timeframe confirmation to eliminate lag and reacts only when price shows acceptance and momentum.
Core Concepts
VWAP defines market control and trade direction
Bollinger Bands (20, 1σ) identify early volatility expansion
DMI/ADX (10 / 5) confirms directional momentum and strength
The strategy trades breakouts that are supported by both bias and momentum, filtering out low-quality moves and chop.
Trade Rules
Long Setup
Price is above VWAP
Candle closes above the upper Bollinger 1σ band
+DI > –DI
ADX rising or above strength threshold
Short Setup
Price is below VWAP
Candle closes below the lower Bollinger 1σ band
–DI > +DI
ADX rising or above strength threshold
Trades are taken only on candle close to confirm acceptance.
Risk & Trade Management
Trades are avoided near VWAP to reduce chop
Stops are placed just inside the Bollinger 20 SMA or beyond the breakout candle
Partial profits can be taken at the 2σ band
Exits are considered when ADX flattens or DMI flips
Market Conditions
Best suited for:
High-liquidity sessions (NY open and main session)
Trending or expanding volatility environments
Avoid during:
Flat VWAP conditions
Bollinger Band compression
Low ADX / range-bound markets
Strategy Philosophy
This is a reactive momentum strategy, not predictive.
It waits for price to prove direction and strength, then participates in the move rather than anticipating it.
Band Walk Detector TENKYO [BASIC]1. Abstract: The Computational Resolution of Cognitive Latency
This publication presents the findings of the "TENKYO" Research Project , focusing on the algorithmic detection of high-probability volatility breakouts ("Band Walks") on the 15-minute timeframe.
Problem Statement: Manual trading suffers from a critical "Cognitive Latency Gap." A trader cannot simultaneously process multi-dimensional variables—volatility expansion rates (derivative of variance), candle morphology (price rejection ratios), and time-weighted liquidity cycles—within the millisecond timeframe required for optimal execution.
Solution: This script is not a discretionary indicator but a Hard-Coded Decision Support System . It automates the verification of market conditions using a "Piecewise Constant Parameter Model," offloading the computational burden from the human operator to the CPU.
Note: This is a research release for the verification of the TENKYO logic, not a commercial product.
2. Theoretical Framework & Methodology
The architecture of this script rejects the standard "Stationary Volatility Assumption" (the idea that market behavior is consistent throughout the day). Instead, it adopts a Time-Segmented Heteroskedasticity Model.
A. Temporal Segmentation Logic (The Session Filter)
Global forex markets exhibit distinct liquidity profiles based on the active session (London, New York, Tokyo/Sydney). A standard deviation ($\sigma$) that signals a breakout in the Asian session is often mere noise in the London session.To solve this, the script partitions the trading day into four distinct phases ($S_1, S_2, S_3, S_4$) and applies a Dynamic Parameter Matrix:
・ Logic: $P(t) = \{ \text{Length}_i, \text{Mult}_i, \text{Threshold}_i \}$ where $t \in S_i$
・ Implementation: The script contains an extensive if-else structure that automatically swaps the Lookback Period and Deviation Multiplier based on the timestamp. This allows the algorithm to "tighten" or "loosen" its sensitivity relative to expected market volume.
B. Synthetic Execution Modeling (Bid/Ask Simulation)
TradingView's default variables (close, high, low) represent mid-market data, which fails to account for the spread cost inherent in execution.
・Correction: This algorithm internally calculates synthetic Bid and Ask prices using a defined spread factor ($\Delta$).
・Formula:
$$P_{Ask} = P_{Mid} + (\Delta / 2), \quad P_{Bid} = P_{Mid} - (\Delta / 2)$$
3. Algorithmic Core: The "TENKYO" Logic
The script identifies a "Band Walk" only when three independent layers of logic align perfectly.
Layer 1: The Volatility Impulse (Expansion)
The primary trigger is not merely price crossing a band, but the acceleration of the Band Width.
・Condition: The algorithm monitors the differential of the Upper and Lower bands. A signal is generated only if the expansion velocity exceeds a predefined Pips threshold (bwGrow_px) specifically tuned for the current session $S_i$.
Layer 2: Morphological Rejection Filtering (Wick Analysis)
To filter out "Mean Reversion Traps" (False Breakouts), the script analyzes the morphology of the signal candle using a Wick-to-Body Ratio test.
・The Trap: A candle that breaks the band but closes with a long rejection wick indicates exhausted momentum.
・The Filter: Let $R_{wb} = \text{Body} / \text{RejectionWick}$. If $R_{wb} < \text{Threshold}_{Si}$,, the signal is suppressed.This mathematical filter prevents the user from entering trades where the market sentiment has already reversed within the candle's duration.Layer
3: The "Scramble" State (Momentum Continuity)
The script introduces a unique state machine called "Scramble."
・Purpose: To detect re-entry opportunities during a high-momentum trend.
・Mechanism: If the market enters an "Endure" state (a pause in expansion) but validates specific continuity conditions (price remains within the $2\sigma$ corridor without violating the trend vector), the algorithm flags a "Scramble" signal. This effectively distinguishes between a "Trend Reversal" and a "Trend Pause."
4. Operational Features & Visual Guide
This tool is designed to serve as a rigorous "Filter" for manual trading.
・The "Mushy" Zone: Visualized by a gray fill between bands. This represents a low-kurtosis, mean-reverting market state where trend-following strategies are statistically disadvantageous. The algorithm disables all signals in this zone.
・Secure & Breakeven Visualization: The script projects potential exit points based on Maximum Favorable Excursion (MFE) logic calculated from the entry bar's synthetic price. This assists the user in objective trade management.
・Hard-Coded Optimization: Users will notice that many parameters are locked or preset. This is intentional. These values are derived from extensive backtesting on EURUSD and JPY pairs and serve as the "Control" variables for this research.
5. Conclusion
The Band Walk Detector TENKYO is a comprehensive logical framework that integrates time, volatility, and morphology. It denies the simplistic "one-size-fits-all" approach of standard indicators in favor of a granular, session-adaptive model. It provides the trader with a computationally verified "Go/No-Go" signal, bridging the gap between human intuition and algorithmic precision.
BBW Advanced (Percentiles & Regime)Bollinger BandWidth Advanced (Percentiles & Regime)
Description
This indicator is an advanced implementation of Bollinger BandWidth (BBW) focused on volatility regimes, not trade signals.
Unlike the standard BBW, which relies on fixed thresholds or recent highs/lows, this version uses statistical percentiles and normalization to adapt automatically to different assets and timeframes.
Its purpose is to identify abnormal volatility compression and expansion and, more importantly, the transitions between regimes.
Key Improvements Over Standard BBW
1. Percentile-based thresholds
Instead of arbitrary levels, BBW is evaluated relative to its own historical distribution:
Low percentile (e.g. 5th) → extreme compression
High percentile (e.g. 95th) → extreme expansion
This makes the indicator adaptive and statistically meaningful across markets.
2. Volatility normalization
BBW is normalized by its own historical mean, allowing comparison across:
Different instruments
Different timeframes
A normalized value around 1 represents “normal” volatility for that market.
3. Regime classification instead of signals
The indicator does not generate buy/sell signals.
It classifies the market into volatility regimes and highlights regime transitions, which must be interpreted together with price structure.
How to Interpret the Indicator
Blue Line – BBW
Raw Bollinger BandWidth value.
Represents relative volatility only. Not a trading trigger.
Green Line – Low Percentile (Extreme Compression)
Marks statistically rare low-volatility conditions.
Price is compressed; energy is building, but direction is unknown.
Red Line – High Percentile (Extreme Expansion)
Marks unusually high volatility.
Often associated with breakouts, trends, or late-stage moves.
Orange Line – Normalized BBW
Shows current volatility relative to its historical average:
Below ~0.7 → very low volatility
Around 1.0 → normal volatility
Above ~1.5 → unusually high volatility
Background Colors
Green background → BBW is below the low percentile (extreme compression)
Red background → BBW is above the high percentile (extreme expansion)
Background colors indicate market state, not entries.
Practical Use
Extreme compression highlights environments where breakouts may develop, but does not predict direction
The most useful moment is the exit from compression, when volatility starts expanding again
Always combine with price action, structure, and context
BBW should be treated as a condition filter, never as a standalone strategy
Important Notes
This indicator measures volatility only, not trend or bias
Compression does not guarantee a breakout
Expansion does not guarantee continuation
Misuse as a signal generator will lead to poor results
Bollinger BandWidth With AlertsBollinger BandWidth (BBW) + Compression/Exhaustion Alerts
This indicator plots Bollinger BandWidth (BBW) to help you identify volatility regimes: when the market is compressing (coiling) vs expanding (in price discovery).
What it shows
BBW (Blue): Current Bollinger BandWidth as a % of the basis (SMA).
Highest Expansion (Red): The highest BBW value over the last N bars (lookback).
Lowest Contraction (Green): The lowest BBW value over the last N bars (lookback).
Key Features
✅ Compression Detection
Triggers when BBW is near the Lowest Contraction line (volatility squeeze / balance phase).
✅ Exhaustion / Peak Expansion Detection
Triggers when BBW is near the Highest Expansion line (strong expansion / potential late-stage move).
✅ Configurable “Near Zone” Thresholds
Use:
Near Lowest Contraction (%) → how close BBW must be above the contraction extreme
Near Highest Expansion (%) → how close BBW must be below the expansion extreme
Alerts Included
BBW Compression (Near Lowest Contraction)
BBW Exhaustion (Near Highest Expansion)
Alerts are designed to be used with “Once per bar close” to avoid noise during bar formation.
How to use (simple)
Compression alert (C): Start watching for breakout / value setups (market is coiling).
Exhaustion alert (E): Be cautious chasing moves; watch for transitions or rebalancing.
Inputs
BB Length, Source, StdDev
Expansion/Contraction lookback length (hidden by default)
Near-zone thresholds for compression/exhaustion alerts
Bollinger Bands on the RSIThe indicator uses Bollinger Bands on the RSI.
Users can customize the RSI length and the Bollinger Bands length. The Bollinger Bands standard deviation can also be adjusted separately for more flexibility and convenience.
In the Settings menu, you can find Trend Confirmation, which can be turned on or off depending on your preference. Trend Confirmation is used to reduce noise on the chart and is calculated using the bar before the trend.
How the indicator can be used
1) As an RSI + EMA-style trend tool (trend following)
When the Bollinger Bands standard deviation is set low, the bands behave similarly to an EMA, so the indicator can be used in trending markets.
2) For mean reversion
When the RSI length is set high and the standard deviation is set high, the indicator can be used in mean-reverting markets.
3) As a regime indicator (to some extent)
With the right calibration, it can likely be used as a regime indicator as well.
There are many more use cases you can discover.
Have fun exploring.
Konigs | Bollinger Band Mean Reversion (Session Filter)Core Idea:
In sideways markets, price tends to revert to the mean (the middle band).
Strategy:
Buy when price touches or moves below the lower band.
Sell when price reaches or exceeds the upper band.
Exit at the middle band (20-period moving average).
Confirm with: RSI/Stochastic or candle patterns for reversal at the bands.
Only works with low-volatility instruments:
EURCHF
Filter certain time to avoid unexpected volatility
Cloud Donchian + Keltner + Bollinger**XAUUSD M1 - Upper, Middle & Lower Combination Clouds**
This indicator combines three widely used volatility channels — Donchian, Keltner, and Bollinger Bands — into a single, clear cloud overlay optimized for the XAUUSD 1-minute chart.
**What it does:**
- Calculates upper, middle, and lower volatility zones by combining the three channels.
- The **Upper Cloud** shows the potential upper price boundary based on the highest highs of the combined indicators.
- The **Lower Cloud** shows the potential lower price boundary from the lowest lows of the combined indicators.
- The **Middle Cloud** fills the area between the upper cloud’s bottom and lower cloud’s top, colored dynamically: green for rising trends and red for falling trends.
- Visible lines highlight the upper and lower cloud boundaries for precise reference.
**Why it’s useful:**
- Helps traders identify support and resistance zones based on multiple volatility measures.
- The dynamic middle cloud coloring provides intuitive visual cues on trend direction and strength.
- Designed specifically for scalpers and short-term traders focused on fast-moving gold markets (XAUUSD, 1-minute timeframe).
- Fully customizable input parameters allow users to adjust channel lengths and sensitivities to fit their trading style.
**Inputs:**
- Donchian channel length
- Keltner channel EMA length and ATR multiplier
- Bollinger Bands length and multiplier
- Customizable cloud colors and line colors
**Usage notes:**
- This is a tool to support decision-making — it should be used in conjunction with other analysis techniques.
- It does not provide explicit buy or sell signals but highlights key volatility zones and trend shifts.
- Performance depends on market conditions; backtest results do not guarantee future outcomes.
- The indicator is open-source and configurable to fit individual preferences.
**Important:**
- No guaranteed profits — trade responsibly.
- Always combine this tool with sound risk management.
Shiva Zone Indicator (True Consolidation Detection)---
# ⭐ **1. Script Title**
**Shiva Zone Indicator — True Consolidation Detection**
This will appear in the indicator marketplace and search.
---
# ⭐ **2. Short Description (shown in search list)**
**Automatically detects true consolidation zones using shrinking-range logic, avoiding oversized ranges and highlighting high-probability breakout zones.**
---
# ⭐ **3. Full Description (for the Publishing Page)**
Copy–paste the entire block below into the “Description” section while publishing:
---
## 🔱 **Shiva Zone Indicator — True Consolidation Detection**
The **Shiva Zone Indicator** identifies true consolidation phases in any market using a powerful shrinking-range algorithm. Instead of relying on fixed ranges or ATR compression alone, this model detects **micro-consolidation** by comparing tightening volatility windows, ensuring only **high-quality, compact zones** are plotted.
Most consolidation indicators produce long, extended boxes.
**Shiva Zone does not.**
It only marks consolidation when price tightens *locally*, making it ideal for breakout traders.
---
## 🔍 **How the Indicator Works**
A *Shiva Zone* is detected when:
* The recent price range is **shrinking** compared to the previous one
* Volatility compresses naturally
* Price stays within a narrow percentage threshold
* Expansion stops the zone (no endless boxes)
This ensures consolidation is identified **precisely where traders need it**, not over hundreds of candles.
When consolidation ends, volatility expansion triggers a zone closure.
Breakouts above or below the box can lead to explosive moves.
---
## ⚡ **Included Alerts**
The indicator includes 4 powerful, actionable alerts:
1. **Shiva Zone Started** – A new consolidation zone is forming
2. **Shiva Zone Ended** – Volatility begins expanding
3. **Bullish Breakout** – Price breaks above the Shiva Zone
4. **Bearish Breakout** – Price breaks below the Shiva Zone
These alerts make it easy to automate breakout entries or monitor compression zones across markets.
---
## 🎯 **Best Use Cases**
* Breakout Trading
* Scalping
* Intraday Structure Trading
* Swing Breakout Analysis
* Compression / Expansion Mapping
* Multi-Timeframe Structure Tracking
Works perfectly on **Forex, Indices, Crypto, Commodities, and Stocks**.
---
## 📌 **Recommended Settings**
* Lookback: **8–20**
* Max % Range: **0.4–0.8**
* Minimum Bars Inside Zone: **4–6**
Shorter settings → more sensitive
Longer settings → stronger zones
---
## 🧠 **Why It's Called “Shiva Zone”**
In market mythology:
* **Brahma** = Creation of momentum
* **Vishnu** = Sustaining the trend
* **Shiva** = Compression before transformation
The **Shiva Zone** is the phase where the market contracts its energy before a structural shift or breakout.
---
## ⚠️ **Disclaimer**
This indicator is for educational purposes only and not financial advice.
Always conduct your own analysis.
---
# ⭐ **4. Suggested Tags**
Use these exact tags on TradingView for best reach:
```
consolidation
price-action
volatility
range
breakout
compression
supply-and-demand
forex
scalping
trend-analysis
```
---
# ⭐ **5. Script Category**
Choose one:
### Recommended:
➡ **Technical Indicators → Volatility**
or
➡ **Technical Indicators → Price Action**
---
# ⭐ **6. Icon / Cover Image Suggestions**
(Create or upload manually — TradingView requires an image)
Theme suggestions:
* Clean minimalistic yellow/orange box with text **“Shiva Zone Indicator”**
* A sample chart screenshot showing a tight consolidation zone
* A symbolic icon of contraction/expansion inspired by Shiva (simple geometry, not religious imagery)
---
# ⭐ **7. Developer Credits (Optional)**
Created by **Dr. Sudhir Khollam**
Astrologer & Market Analyst
Creator of the SALSA© Method
---
Brahma Creation Field (SALSA Edition)
# ⭐ **1. INDICATOR TITLE**
Use a clear, branded, professional name:
### **Brahma Creation Field (BCF) — SALSA© Market Imbalance Indicator**
---
# ⭐ **2. SHORT DESCRIPTION (appears in search results)**
**Identifies Brahma Creation Fields (BCFs) using SALSA© Market Logic. A rewritten, original imbalance tool inspired by displacement zones, with Creation Strength Line (CSL), integrity breaks, and optional actionable alerts.**
---
# ⭐ **3. FULL DESCRIPTION (for the script page)**
### **TradingView-Ready**
---
## **Brahma Creation Field (BCF) — SALSA© Edition**
The **Brahma Creation Field (BCF)** Indicator is an *original* SALSA©-based imbalance model designed to identify areas where price rapidly expands with strong intent and leaves behind a “Creation Field.”
This indicator is an entirely proprietary rewrite based on **Vedic + SALSA© Interpretation of Market Birth**, and does **not reuse or copy** any external code. It is not affiliated with or derived from any other indicator.
---
## 🔱 **What Is a Brahma Creation Field (BCF)?**
In SALSA© Market Dynamics:
* **Brahma** = Creation
* **Vishnu** = Continuation
* **Shiva** = Transformation (destruction/reset)
A **BCF** is the *birth moment* of a new price narrative —
a zone created when price displaces strongly enough to leave a gap between the candle and the candle two bars earlier.
This is interpreted as:
* **Bullish BCF** → A strong upward creation event
* **Bearish BCF** → A strong downward creation event
These “Creation Fields” often act as **reaction points, continuation areas, or reversal zones**.
---
## 🔰 **Key Features**
### **✔ Automatic Detection of Brahma Creation Fields**
Identifies both bullish and bearish creation zones using clean imbalance structure.
### **✔ Creation Strength Line (CSL)**
A midline through the BCF used to confirm strength, bias, and equilibrium.
### **✔ Integrity Break Logic**
When price invalidates the BCF, the zone fades and becomes inactive.
### **✔ Real-Time Updates**
BCFs extend automatically as long as they are active.
### **✔ Alerts Included**
* Bullish BCF Formed
* Bearish BCF Formed
* BCF Integrity Broken
* Price Inside Active BCF
* CSL Cross (Midline Cross)
### **✔ 100% Original Codebase**
Fresh, clean Pine Script v6 logic reflecting SALSA© philosophy.
---
## 🔬 **Use Cases**
* Forecasting continuation after displacement
* Identifying strong zones of liquidity imbalance
* Spotting trend birth points
* Assessing whether narrative pressure is bullish or bearish
* Establishing intraday bias
* Creating entry/exit signals
* Building automated strategies
---
## ⚠ **License Notice**
This indicator is an **original work** created for TradingView,
based on **SALSA© Market Theory**.
You may NOT resell or rehost the code without explicit permission.
If you adapt this script, please give proper credit.
---
## 🙏 **Credits / Attribution**
The concepts here are influenced by general imbalance and displacement theory in trading.
The code itself is **100% original**, written entirely from scratch.
---
# ⭐ **4. TAGS TO USE (Very Important for Visibility)**
Add exactly these tags in TradingView:
* **imbalance**
* **fvg**
* **liquidity**
* **supplydemand**
* **trend**
* **intraday**
* **bias**
* **zones**
* **supportresistance**
* **marketstructure**
* **smartmoney**
These tags rank extremely well.
---
# ⭐ **5. CATEGORIES**
Choose:
✔ **“Technical”**
✔ **“Indicators”**
✔ **“Price Action”** (optional but recommended)
---
# ⭐ **6. LICENSE**
Choose:
### **© Copyright — Open for Personal Use**
or
### **Custom License**
Recommended text:
> This script is © protected.
>
> You may use it freely on TradingView for personal analysis,
> but you may NOT redistribute, publish variations, or sell this code.
---
# ⭐ **7. OPTIONAL – AUTHOR BIO**
Include:
> Dr. Sudhir Khollam
> SALSA© Market Dynamics • Vedic + Financial Astrology
> Creator of the SALSA© Method, Astro SALSA© Pro, and SALSA© Prediction Cards
---
# ⭐ **8. WHAT TO PUT IN “EXTERNAL SOURCE” SECTION**
This is optional, but if you want to be completely transparent:
```
This indicator is a fresh, original rewrite created from scratch.
It does not contain or reuse code from any third-party indicator.
Conceptually inspired by classical imbalance/displacement logic,
translated into a SALSA© creation-phase model.
```
---
# ⭐ **9. SCREENSHOT GUIDELINES (Important for Approval)**
Use a chart showing:
✔ At least one Bullish BCF
✔ At least one Bearish BCF
✔ CSL line clearly visible
✔ Integrity break (if possible)
✔ Clean chart (no clutter)
✔ Label arrows added manually (optional)
Upload **3 screenshots**, TradingView always prefers multi-angle examples.
---
# ⭐ **10. SEO-OPTIMIZED SUMMARY (for search engines)**
**SALSA© BCF Indicator is an imbalance-based price action tool that highlights Brahma Creation Fields — the birth of market intent. Featuring CSL midlines, integrity break detection, real-time zone extension, and a full alert suite. Ideal for traders using smart money concepts, FVGs, SMC, or Vedic-based price analysis.**
---
# ⭐ **11. PUBLISHING CHECKLIST**
### ✔ Code compiles
### ✔ Description added
### ✔ Screenshot added
### ✔ Tags added
### ✔ License selected
### ✔ Public or Protected selected
### ✔ Test alerts
### ✔ Save + Publish
---
BB Re-entry HUD1) What this script does
This indicator is an BB Re-entry HUD
Core idea:
Price sweeps outside BB (often liquidity wick sweep)
Re-enters back inside BB within 1–2 bars
Multiple ELITE++ filters reduce fake signals
HUD scores follow-through strength (trend & momentum confirmation)
2) ELITE++ Re-entry Signal Logic
A BUY/SELL signal is triggered when:
One of the previous 1–2 bars moved outside BB (wick or close, selectable)
Current bar re-enters BB (optionally requires close inside)
Optional filters confirm signal quality:
Outside depth minimum (% of BB width)
Candle direction confirmation (Buy=green, Sell=red)
Re-entry close crosses previous candle 50%
Zone filter near BB edges
Touch filter: wick touches the band
Squeeze → Expand regime requirement
Cooldown to avoid rapid repeat signals
3) Trade Power HUD (0–5 Scoring)
After a signal, HUD evaluates either on the next bar (recommended) or the same bar.
Score components (1 point each):
Structure: short-term structure aligns with direction
Impulse Body: body > average body
Volume: volume > volume MA
BB Trend + Expand: price on trend side + BB width expanding
RSI + ATR: RSI threshold + ATR expanding
Interpretation:
4–5/5 = STRONG → Hold / Trail
2–3/5 = MID → Take partial / be cautious
0–1/5 = WEAK → Higher chance of fakeout
4) How to use (practical)
Enable BB plots and arrows
Wait for BUY/SELL signal
Check HUD score:
4–5: higher follow-through probability
2–3: quick TP / reduced size
0–1: skip or wait for better confirmation
Works well on 5m–15m (intraday) and 1H (smoother swings).
5) Notes
This is not a standalone holy grail—best used with support/resistance and market structure context.
Volatile news periods may produce multiple band breaks—use squeeze/cooldown filters accordingly.
Squeeze ChannelSqueeze Channel
Volatility compression is one of the most reliable precursors to significant price movement. When markets consolidate, energy builds—like a coiled spring waiting to release. This indicator detects these compression phases using the classic squeeze methodology, then captures the consolidation range as a tradeable channel. The tighter the squeeze, the more potential energy stored for the eventual breakout.
What makes this approach effective is the combination of volatility-based timing with price structure. Rather than blindly trading every squeeze release, the indicator defines clear breakout levels based on the actual swing highs and lows formed during compression. This creates objective entry triggers while the squeeze intensity gradient (yellow → red) helps gauge the quality of the setup before committing.
How It Works
Squeeze Detection
The indicator identifies periods of volatility compression when Bollinger Bands contract inside Keltner Channels. A 5-color gradient (yellow → orange → red) visualizes squeeze intensity in real-time—the tighter the squeeze, the closer to red.
Channel Formation
When a squeeze begins, the indicator captures a swing high/low channel:
- Lookback : Grabs the highest high and lowest low over the past N bars
- Lookforward : Allows the channel to expand if price exceeds bounds in the first few bars
- Lock : Once the expansion window closes, the channel locks in place
The channel persists until price breaks out, regardless of whether the squeeze has ended.
Signal Types
Primary Signals
Bullish Breakout | 🔼 Teal Triangle | Close above channel high
Bearish Breakout | 🔽 Red Triangle | Close below channel low
Failed Breakout Reversals
When enabled, the indicator watches for failed breakouts—price breaks one direction then reverses through the opposite channel bound.
Bull Reversal | 💎 Cyan Diamond | Failed bear breakout, reclaims above
Bear Reversal | 💎 Magenta Diamond | Failed bull breakout, breaks below
Extended S/R Retest Signals
After a breakout, channel levels are stored as support/resistance for future retests. These levels remain invisible until price approaches within a user-defined ATR distance.
S/R Bull Breakout | 🔼 Faded Triangle | Breaks above extended resistance
S/R Bear Breakout | 🔽 Faded Triangle | Breaks below extended support
S/R Bull Reversal | 💎 Faded Diamond | Reclaims extended support
S/R Bear Reversal | 💎 Faded Diamond | Rejected at extended resistance
Settings
Squeeze Detection
- Bollinger Length (default: 12) — Shorter length = tighter bands, easier squeeze entry
- Bollinger Multiplier (default: 2.0)
- Keltner Length (default: 20)
- Keltner ATR Multiplier (default: 2.0) — Higher = wider channel, easier squeeze entry
Channel Settings
- Swing Lookback Bars (default: 5) — Bars to look back for initial channel
- Swing Lookforward Bars** (default: 3) — Bars to allow channel expansion
Reversal Detection
- Enable Failed Breakout Reversal — Toggle reversal signals on/off
- Reversal Watch Bars (default: 7) — How long to watch for failed breakout
Extended S/R
- Show Extended S/R Levels — Display historical channel levels
- Enable S/R Retest Signals — Toggle retest signals on/off
- Extended Level Bars (default: 50) — How long levels remain active
- S/R Signal Delay Bars (default: 5) — Delay before retest signals activate (filters noise)
- ATR Proximity Threshold (default: 1.0) — Distance for level visibility
- ATR Length (default: 14)
Visual Guide
- Colored dots = Active squeeze channel (gradient shows intensity)
- Fuchsia dots = Channel waiting for breakout (squeeze ended)
- Faded teal/red dots = Extended S/R levels (appear on proximity)
- Triangles = Breakout signals
- Diamonds = Reversal signals (failed breakouts)
Bollinger Aurora Velocity [Pineify]Pineify - Bollinger Aurora Velocity
The Bollinger Aurora Velocity is an enhanced volatility and trend analysis indicator that transforms the classic Bollinger Bands into a visually stunning, multi-dimensional trading tool. By combining standard deviation bands with historical extreme tracking and dynamic momentum coloring, this indicator provides traders with deeper insights into volatility cycles, squeeze conditions, and trend strength all in one overlay.
Key Features
Classic Bollinger Bands with customizable period and standard deviation multiplier
Nebula Memory Cloud tracking historical band extremes for volatility context
Volatility Squeeze Detection with visual dot indicators on the basis line
Gradient-based candle coloring reflecting normalized price position
Multi-layer aurora gradient fills for intuitive visual analysis
How It Works
The indicator begins with a standard Bollinger Bands calculation using a simple moving average as the basis line, with upper and lower bands placed at a user-defined multiple of standard deviation. This core structure measures price volatility and identifies overbought/oversold conditions.
The Nebula Memory Cloud extends beyond traditional bands by tracking the highest point of the upper band and lowest point of the lower band over a configurable lookback period. This creates an outer envelope showing the maximum volatility expansion in recent history.
Trading Ideas and Insights
The Volatility Squeeze is a powerful concept where contracting Bollinger Bands often precede significant price breakouts. This indicator detects squeezes by comparing the current band width to its 100-period simple moving average. When the current range falls below this average, yellow dots appear on the basis line, alerting traders to potential explosive moves ahead.
When squeeze dots appear and the outer nebula cloud shows significant distance from the current bands, it suggests volatility is at a historical low relative to recent extremes—a setup often followed by strong directional moves.
How Multiple Indicators Work Together
Bollinger Bands establish the primary volatility envelope and mean-reversion zones
The Nebula Cloud provides historical context, showing how current volatility compares to recent extremes
Squeeze Detection identifies compression phases using relative bandwidth analysis
Normalized Scoring translates price position into a 0-100 scale for gradient coloring
Unique Aspects
Unlike standard Bollinger Bands indicators, the Aurora Velocity creates a heat-map effect on price bars. The normalized score calculates where price sits within the bands as a percentage, then applies a smooth gradient from bearish to bullish colors. This allows traders to instantly perceive momentum strength—saturated bullish colors near the upper band indicate strong upward pressure, while saturated bearish colors near the lower band signal selling dominance.
The aurora-style gradient fills between band layers create visual depth, making it easy to distinguish the core volatility zone from the historical extreme boundaries.
How to Use
Monitor candle colors for momentum direction—bright green indicates bullish positioning, bright red signals bearish pressure
Watch for yellow squeeze dots on the basis line as early warning for potential breakouts
Use the outer nebula cloud to assess if current volatility is testing historical extremes
Set alerts for price breakouts above the upper band or below the lower band
Combine squeeze conditions with the nebula cloud width to gauge breakout potential
Customization
Base Period - Controls Bollinger Bands calculation length (default: 20)
Standard Deviation Multiplier - Adjusts band width from the basis (default: 2.0)
Price Source - Select the price input for calculations (default: close)
Nebula Memory Length - Lookback period for tracking historical extremes (default: 50)
Color Settings - Customize bullish and bearish gradient colors
Conclusion
The Bollinger Aurora Velocity elevates traditional Bollinger Bands analysis by adding historical volatility context through the Nebula Cloud, precise squeeze detection for breakout anticipation, and intuitive momentum visualization through gradient candle coloring. This combination helps traders identify not just where price is relative to volatility bands, but how that volatility compares to recent history and when compression may lead to expansion.
Compression-to-Expansion Early Warning (CEEWS)The Compression → Expansion Early Warning System (CEEWS) is a volatility-structure and market-timing indicator designed to identify periods of statistical price compression and to signal when that compression transitions into directional expansion. Rather than predicting direction in advance, CEEWS focuses on detecting when price action becomes tightly constrained and then confirms when stored energy begins to release.
CEEWS quantifies compression using a composite of volatility contraction, range tightening, candle overlap, and reference-level convergence, producing a normalized Build score (0–100) that reflects the degree of latent price pressure. Elevated Build values indicate that the market is coiled and increasingly susceptible to movement, while expansion signals occur only when volatility begins to expand and price breaks from its recent range.
The indicator is intended as a timing and transition tool, not a standalone trend or directional system. CEEWS is most effective when paired with broader regime or trend-health indicators and is particularly well suited for index funds and highly liquid markets, where prolonged consolidation phases often precede sharp directional moves. Its primary purpose is to help traders identify when the market is likely to move, not to forecast where it will go.
TrintityTrendIntroducing TrinityTrend
A multi-signal indicator combining:
Candle TrendStrength
SuperTrend logic
TTM Squeeze detection
Built for clarity, momentum, and volatility awareness—across any timeframe.
TrendStrength Mode
Candle coloring reflects directional conviction.
Strong uptrend
Strong downtrend
Neutral or indecisive
Helps traders stay with momentum and avoid chop.
SuperTrend Overlay
SuperTrend Logic Dynamic trailing stop based on volatility.
🟩 Price above = bullish bias
🟥 Price below = bearish bias
Great for swing entries and exits.
TTM Squeeze Detection
TTM Squeeze Mode Detects compression zones before breakout.
Squeeze on = buildup (You can change the color of this)
Pairs well with TrendStrength for timing entries.
Multi-Timeframe Versatility
Multi-Timeframe Ready:
Intraday scalping
Daily swing setups
Weekly macro bias
Toggle modes to match your strategy
RSI & BB Oversold Scalper with MACD Confirmation [DotGain]RSI & BB Oversold Scalper with MACD Confirmation
The RSI & BB Oversold Scalper is a mean reversion / dip-buying indicator designed for traders who want to combine oversold conditions with momentum confirmation .
It uses a multi-step logic: first detect an oversold setup, then wait for a MACD confirmation within a defined time window before issuing a buy signal.
---
Core Concept
1. Detect an oversold setup using Bollinger Bands %b, RSI and an optional DSS filter
2. Keep the setup active for a limited number of candles
3. Trigger the entry using a MACD bullish crossover
4. Reset after entry to avoid multiple signals from the same setup
---
Buy Signal Logic
A buy signal is generated when the following conditions are met:
1. Oversold Setup (filters can be enabled/disabled individually)
• Bollinger Bands %b Oversold (Lookback-based)
The price has traded below the lower Bollinger Band at least once within the last `lookbackBB` candles.
• RSI Oversold (Lookback-based)
The RSI has dropped below 30 at least once within the last `lookbackRSI` candles.
• DSS (Double Smoothed Stochastic) Reversal Filter
A bullish crossover of the DSS line above its signal line while the DSS value is below 20 , indicating a potential momentum reversal from oversold conditions.
Note:
BB %b and RSI are lookback filters , while the DSS condition is a single-bar crossover event .
---
2. MACD Confirmation (Entry Timing)
After the setup becomes active, the indicator waits for a bullish MACD crossover (`MACD line crosses above Signal line`) within a user-defined time window (`validWindow` candles).
If the MACD confirmation occurs within this window, a buy signal is printed.
If the window expires without confirmation, the setup is discarded automatically.
---
Reset Logic
• After a buy signal, the setup is reset immediately
• Only one signal is allowed per setup
• No late entries after the time window expires
---
Inputs & Customization
• Enable or disable BB, RSI and DSS filters individually
• Adjust lookback periods to control how recent oversold conditions must be
• Tune the MACD confirmation window to balance early vs. conservative entries
Smaller windows = faster, more aggressive entries
Larger windows = fewer but more confirmed signals
Recommended Markets & Timeframes
• Cryptocurrencies, Forex, Indices, liquid stocks
• Best suited for 1m – 15m scalping
• Also usable on 15m – 1h for slower mean-reversion trades
Visuals
• Buy signals are displayed as labels below the price candles
Important Notes
• This indicator is a signal and timing tool , not a complete trading system
• Always combine with higher-timeframe trend, support/resistance or volume analysis
• Backtesting and paper trading are strongly recommended
Disclaimer:
This "RSI & BB Oversold Scalper with MACD Confirmation" (Oversold Scalper) indicator is provided for informational and educational purposes only. It does not, and should not be construed as, financial, investment, or trading advice.
The signal generated by this tool (Green) is the result of a specific set of algorithmic conditions. They are not a direct recommendation to buy or sell any asset. The indicator's purpose is to highlight possible weakness in the markets, not to provide infallible trade signals.
All trading and investing in financial markets involves a substantial risk of loss. You can lose all of your invested capital.
Past performance is not indicative of future results. Even an indicator designed to filter out "chop" may produce false, lagging, or losing signals. Markets can remain unpredictable longer than you can remain solvent.
The creator DotGain assumes no liability for any financial losses or damages you may incur, directly or indirectly, as a result of using this indicator or the information it provides.
You are solely responsible for your own trading and investment decisions. Always conduct your own research (DYOR), validate signals with other methods, and consider your personal risk tolerance before entering any trade.
RSI Bollinger Band and Trend Confidence Gauge█ RSI BB Trend Confidence Gauge (ADX/DMI)
Cross-checks Trend + Momentum + Strength in real time so you focus on VERIFIED conditions.
Most of us have been there: you see a move starting, you jump in, and the market immediately turns into a sideways chop-fest that eats your stop. This is a simple dashboard that forces the market to “prove itself” before you put capital at risk.
█ WHAT MAKES THIS DIFFERENT?
Most indicators are “Yes/No” machines — they fire signals anytime two lines cross, even when the market is weak, noisy, or range-bound. This script is a Quality Filter .
Instead of asking “Is price moving?”, it asks: “Is the move backed by alignment, momentum, and strength?”
VERIFIED only appears when all three agree, helping you avoid low-probability chop and “no-trade” consolidation zones.
█ QUICK START
• UP + VERIFIED + High ➔ “A-Tier” state; favor pullbacks or continuation.
• DOWN + VERIFIED + High ➔ bearish control is real; avoid dip-buying.
• Conflict (gray) ➔ indicators disagree; step aside and wait for alignment.
• R or B markers ➔ overextension warnings; don’t chase into extremes.
█ THE "ANTI-CHOP" ENGINE
Trading is probability, not guessing. This script uses a 3-stage logic gate to verify conditions:
• 1) The Trend (HMA 13/34): Hull Moving Averages provide a fast, smooth regime filter. If fast vs. slow isn’t clean, the regime isn’t ready.
• 2) The Fuel (RSI 50): A trend without momentum is a trap. UP/DOWN only prints when RSI confirms.
• 3) The Proof (ADX/DMI): Final gate. VERIFIED only appears when ADX ≥ 22 and DI+/DI- agrees . If strength isn’t there, stay sidelined.
█ VISUALS YOU'LL ACTUALLY USE
• Live Dashboard: Bottom-center snapshot of RSI, Direction (UP/DOWN/Conflict), VERIFIED status, and Confidence tier (Low/Med/High).
• Exhaustion Markers: Orange icons when price is extended: "R" for RSI extremes and "B" for Bollinger Band hits. These flag caution zones.
• Trend Ribbon: Zero-line bias bar: Lime (bullish), Red (bearish), Gray (conflict/chop risk).
█ SETTINGS
• Action ADX Minimum (default 22): Want stricter verification? Try 25. Want earlier signals? Try 20 (higher noise/risk).
Disclaimer: Educational tool only. Not financial advice. Past performance does not guarantee future results. Always use strict risk management.
BB6-MTF-OverlayBB6-MTF-Overlay (Multi-Bollinger Bands, MTF, Overlay)
BB6-MTF-Overlay is a Bollinger Bands overlay indicator that lets you display up to 6 independent BB sets on a single chart, with full MTF (higher timeframe) support.
It’s designed for fast multi-timeframe context—so you can see where price is relative to higher-timeframe BB levels (middle / ±1σ / ±2σ / ±3σ) while trading your current timeframe.
Key Features
Up to 6 Bollinger Band sets displayed simultaneously (overlay)
Per BB set: choose Local (current TF) or MTF (higher TF via security)
Per BB set: Gaps ON/OFF
ON: values may appear only at HTF update points (discontinuous)
OFF: HTF values are filled across lower TF bars (step-like)
Per BB set: Confirmed Bars Mode ON/OFF
ON: uses confirmed HTF values (minimizes repainting)
OFF: follows the in-progress HTF bar (useful for discretionary trading)
Per BB set: toggle visibility for Middle / ±σ1 / ±σ2 / ±σ3 independently
Custom sigma multipliers (e.g., 1.5σ, 0.6σ) for fine tuning
Separate switches for Calculation ON/OFF and Display ON/OFF
Turn off calculations to reduce load, or hide plots only
Typical Use Cases
Use higher timeframe (4H/D/W) BB middle and ±1σ as “structure walls” while executing on lower timeframe
Combine real-time tracking (e.g., 15m BB with Confirmed OFF) with stable HTF anchors (e.g., Daily/Weekly with Confirmed ON)
Keep ±2σ/±3σ OFF by default and enable them only when you need to check range expansion or extremes
Default Preset (Initial Settings)
BB1: 15m MTF (Confirmed Bars Mode OFF)
BB2: 4H MTF (Confirmed Bars Mode OFF)
BB3: Daily MTF (Confirmed Bars Mode ON)
BB4: Weekly MTF (Confirmed Bars Mode ON)
BB5: Monthly MTF (Confirmed Bars Mode ON)
BB6: Calculation OFF / Display OFF
For all active BB sets: σ1 ON by default, σ2 & σ3 OFF by default
Notes
With MTF + Confirmed OFF, band values will move until the higher timeframe bar closes (intended for discretionary use).
If the chart looks too busy, disable unused BB sets or turn off σ2/σ3.
📌 BB6-MTF-Overlay(ボリンジャーバンド6本・MTF対応・Overlay)
BB6-MTF-Overlay は、最大6セットのボリンジャーバンドを同時にチャート上へ重ねて表示できる、MTF(上位足参照)対応のBollinger Bandsインジケーターです。
🕒 15分/4時間/日足/週足/月足など、複数時間軸のボリンジャーを1つのチャートで確認できるため、環境認識(上位足の位置関係)+現在足の判断をスムーズに行えます。
✨ 主な特徴
📈 最大6本のボリンジャーバンドを同時表示(Overlay)
🔁 各BBごとに Local(現在足) / MTF(上位足) を選択可能
🧩 各BBごとに ギャップON/OFF(上位足更新点のみ表示/階段状に埋める表示)を切替
✅ 各BBごとに 確定足モードON/OFF
ON:上位足確定値(リペイント最小)
OFF:進行中の上位足にも追随(裁量補助向け)
🎚️ 各BBごとに ミドル/±σ1/±σ2/±σ3 を個別に表示ON/OFF
🔧 σ値は自由入力(例:1.5σ、0.6σ など微調整可)
⚙️ 計算ON/OFFと表示ON/OFFを分離
表示だけ消す/計算ごと止めて軽くする、の両方に対応
🧠 想定する使い方(例)
🧱 上位足(4H/日足/週足)のミドル・±1σを「壁」として見て、今の足(5分/15分)での反発・抜けを判断
🏃 「15分BB(確定足OFF)」でリアルタイム追随しつつ、「日足/週足(確定足ON)」で大局の位置を固定して確認
🔍 σ2・σ3は普段OFF、必要なときだけONにしてレンジ幅・伸び代を確認
🧾 デフォルト設定(初期状態)
1️⃣ BB1:15分MTF(確定足モードOFF)
2️⃣ BB2:4時間MTF(確定足モードOFF)
3️⃣ BB3:日足MTF(確定足モードON)
4️⃣ BB4:週足MTF(確定足モードON)
5️⃣ BB5:月足MTF(確定足モードON)
6️⃣ BB6:計算OFF/表示OFF
🎛️ 初期表示は全BB共通で「1σのみON(2σ・3σはOFF)」
⚠️ 注意事項
🔄 MTFで「確定足モードOFF(追随)」を使用する場合、上位足が確定するまで値が動くため、見え方が変化します(裁量補助向け)。
🧹 表示本数が増えるとチャートが混み合うため、必要なBBだけ表示ONにする運用がおすすめです。
Percentile-Based BB% Trend - MattesOverview
The Percentile-Based BB% Trend is a robust momentum oscillator that reimagines the classic Bollinger %B indicator using percentile-based bands and median absolute deviation (MAD). Instead of relying on a simple moving average and standard deviation (which can be heavily influenced by outliers), this version builds dynamic bands from the 25th and 75th percentiles of price, creating a noise-resistant framework for measuring where the current price sits relative to its recent distribution.
How It’s Calculated
Percentile Smoothing : 25th percentile (lower boundary) and 75th percentile (upper boundary) of the selected source.
Basis Line : Midpoint between the 25th and 75th percentiles as a robust central measure.
Robust Volatility : Median Absolute Deviation (MAD) multiplied by a user-defined factor to set band width.
PBB% Value : (Price - Lower Band) / (Band Width), then shifted so the midline is at 0.
Trend Line : Light EMA smoothing applied to the raw value and displayed as colored columns.
How It Differs From Traditional %B
Uses 25th/75th percentiles + MAD instead of SMA + standard deviation → far less sensitive to outliers.
More adaptive to real-world skewed price distributions.
Stronger noise filtering while staying responsive to genuine momentum.
Why It’s Useful
Reduced false signals in choppy or spiky markets
Clear view of momentum strength and price extension
Persistent readings above/below 0 indicate sustained bullish/bearish control
Excellent as a trend-strength filter across all asset classes and timeframes
Application Examples
Trend Confirmation – Midline (0) crossovers confirm direction when paired with trend-following tools.
Overextension Warnings – Extreme readings signal potential exhaustion.
Momentum Filtering – Avoid entries when oscillator shows weak or overstretched conditions.
Divergence Hunting – Spot price making new highs/lows while oscillator fails to confirm.
Great inventions require greate care!
Not a Standalone Strategy: This indicator is designed as a complementary tool and should always be combined with other forms of analysis (price action, volume, higher-timeframe trend, or additional indicators).Potential Lags in Explosive Moves: The robust calculations and smoothing can slightly delay signals during very strong trends.Parameter Sensitivity: Optimal length and multiplier vary by market and timeframe — backtesting is essential.No indicator guarantees profits; past performance is not indicative of future results.
This indicator builds directly on the foundation of the Percentile-Based Bollinger Bands - Mattes, extending its robust methodology into oscillator form for deeper momentum analysis.Shoutout to all my Masterclass Brothers and L4 Gs!
BB + RSI Div + Volume + VWAP (4H Perp Short Alert) - SafeThis Indicator use Bollinger Band + RSI Div + Volumne + VWAP for shorting Mid and Small Cap token in 4H timeframe
Bollinger BandWidth (Session-Adjusted)Description
This indicator is a session-adjusted version of Bollinger BandWidth (BBW), specifically designed for instruments with limited trading hours, such as European stock indices (e.g., FTSE MIB, DAX, CAC, which trades from 09:00 to 17:30 CET — 8.5 hours) or individual stocks.
Standard Bollinger BandWidth on intraday charts can be distorted because calculations include non-trading periods (flat prices overnight), leading to inaccurate volatility readings.This script dynamically adjusts the Bollinger Bands calculation to approximate daily periods based on the actual trading session length, ensuring the BBW reflects true market volatility during active hours.
Key Features
Session-Adjusted Bollinger Bands:
The lookback period (default 20 days) is converted into an equivalent number of intraday candles based on your chart's timeframe and the session duration. This makes the indicator suitable for intraday timeframes (e.g., 5min, 15min, 1H) on limited-session assets.
Bollinger BandWidth (BBW) as Percentage:
Plots (Upper Band - Lower Band) / Middle Band * 100, a relative measure of volatility (higher values = wider bands = higher volatility).
Dynamic Expansion and Contraction Levels:
Red line: Highest BBW over the selected expansion lookback period (default 25 days) — highlights peak volatility levels.
Green line: Lowest BBW over the selected contraction lookback period (default 25 days) — highlights extreme squeezes (low volatility).
Fully customizable inputs for session hours, BB parameters, and dynamic level periods.
How It Works
Session Adjustment: Input session duration (default 8.5 hours).
The script calculates approximate candles per trading day for your current chart timeframe.
Bollinger Bands are computed using length * candlesPerDay bars, simulating a true multi-day calculation within intraday data.
BBW Calculation:
Basis: Simple Moving Average (SMA).
Deviation: Multiplier × Standard Deviation.
BBW = (2 × Deviation / Basis) × 100.
Dynamic Lines:
Expansion line uses the same session-adjusted period for highest BBW.
Contraction line uses the lowest BBW.
Usage and Trading Ideas
Bollinger BandWidth is a powerful volatility indicator popularized by John Bollinger. Low BBW values indicate band contraction ("Squeeze") — periods of low volatility often followed by strong breakouts. High BBW values indicate expansion — trending or volatile phases that may exhaust and lead to consolidation.
Squeeze Setup:
Watch for BBW dropping toward or below the dynamic low (green) line. This signals potential impending volatility expansion and breakout opportunities.
Expansion Confirmation:
BBW rising above the dynamic high (red) line suggests strong volatility — useful for trend-following or avoiding counter-trend trades.
Combine with price action (e.g., break of support/resistance), volume, or momentum indicators (RSI, MACD) for directional bias.
Ideal for intraday or swing trading on European indices, stocks, or other limited-session instruments where standard BBW would be misleading.
This adjustment makes the indicator more accurate on lower timeframes compared to built-in versions, providing cleaner volatility signals aligned with real trading sessions.
Enjoy the script — feedback welcome!
BBands + Overbought/Oversold MarkersAdvanced Bollinger Bands indicator with overbought/oversold signals, automatic squeeze detection, and multi-timeframe (MTF) capabilities.
Retains all functions of the original Bollinger Bands indicator from TradingView with a few added features:
Overbought/Oversold Markers: Visual signals when price opens and closes outside the bands
🔴 Red Highlight & Arrow → Price opens & closes above the upper BB (potential overbought/excess momentum).
🟢 Green Highlight & Arrow → Price opens & closes below the lower BB (potential oversold/reversal).
Squeeze Detection: Automatically highlights when bandwidth reaches its lowest point (narrowest BB width) in the lookback period, signalling potential breakout zones
Multi-Timeframe Bands: Display Bollinger Bands from any timeframe on your current chart (e.g., weekly bands on a daily chart), including markers and squeeze zones
Dual Rendering MTF Modes: Choose between traditional plots (unlimited history) or smooth line drawing (~125-165 MTF bars of history)
Built-in Alerts: Set alerts for overbought conditions, oversold conditions, squeeze detection, or any combination
Fully Customizable: Adjust MA type (SMA/EMA/RMA/WMA/VWMA), standard deviation multiplier, colors, and marker styles
Perfect for: Swing traders, MTF analysis, volatility-based entries, and identifying consolidation/expansion cycles.
Offset Bollinger Bandsbollinger band offset by 10 period. Appied on daily time frame for entry and exit






















