Bollinger Sweeps & Dynamic Trendline Matrix PROBollinger Sweeps & Dynamic Trendline Matrix PRO
Bollinger Sweeps & Dynamic Trendline Matrix PRO is a modern, high definition technical analysis indicator optimized specifically for clean charting and high visibility across both light and dark themes. It seamlessly combines customized Bollinger Band volatility tracking, liquidity sweep detection, high confluence trendlines, market structure analysis, and outer neon glowing candlesticks.
Key Features Overview
1. Optimized Bollinger Bands Engine
Features lightweight, low opacity Bollinger Bands with fully customizable length, multiplier, line styles (Solid, Dashed, Dotted), line thickness, and transparency controls.
2. Bollinger Liquidity Sweeps (ITH & ITL Badges)
Identifies liquidity sweep points where price action pierces or touches the outer bands and sharply reverses, marking valid Intermediate Term Highs (ITH) and Intermediate Term Lows (ITL).
3. High Confluence Auto Trendlines
Draws precise trendlines anchored strictly across high confluence swing points, avoiding clutter. Includes full customization for line style, thickness, and color.
4. True Outer Neon Glowing Candlesticks
Uses multi layered rendering to project an outer glowing halo around price candlesticks, making trend direction pop cleanly on white or dark backgrounds.
5. Clean Split Line Market Structure Signals
Detects Break of Structure (BOS) and Change of Character (CHoCH) levels. Structure lines split cleanly around centered text labels with an automatic gap for maximum chart legibility.
6. Triangle Pattern Consolidation Engine
Detects volatility squeezes and marks triangle breakout and breakdown confirmations right as volatility expands.
Settings Overview
Bollinger Bands Settings
- Show Bollinger Bands Engine: Toggle display of bands.
- Band Transparency & Thickness: Adjust opacity and line width.
Bollinger Sweep Settings
- Show BB Sweep Pivots: Toggle ITH and ITL liquidity badges.
Smart Trendline Settings
- Show Smart Trendlines: Toggle trendline overlays.
- Custom Styles: Adjust line style (Solid, Dashed, Dotted), thickness, and colors.
Market Structure Settings
- Show BOS & CHoCH Signals: Toggle structure lines and labels.
Outer Glow Settings
- Enable Outer Glowing Theme: Toggle multi layered candlestick halo effects.
Disclaimer
This script is built strictly for educational, analytical, and charting enhancement purposes. It does not provide financial advice, automated trade signals, or guaranteed results. Always practice strict risk management. Indicator

MAs BB Lines_wt [WynTrader]MAs BB Lines --- Published : 2026-08-08
This indicator draws on the classical moving-average-and-Bollinger-Bands framework commonly taught by many specialist authors, to combine an 18-day Bollinger Band setting with a set of key moving averages (21, 50, 100, 200) to read trend direction, volatility, and potential support/resistance zones together. This script builds on that same general approach with a fully customizable, five-MA overlay and an added forward-projection layer.
Features:
📊 5 Independent Moving Averages
Each MA has its own length and type (SMA, EMA, RMA, VWMA, HMA), fully customizable to fit any trading style.
- MA1 (default: 8 EMA) — plotted as stepline for fast reaction visibility
- MA2 (default: 21 SMA), - MA3 (default: 50 SMA), - MA4 (default: 100 SMA) and - MA5 (default: 200 SMA)
📈 Bollinger Bands
Middle line 18-period, 2.0 deviation bands (basis, upper, lower) to frame volatility and price extremes around the trend structure.
🔮 Forward Projection Lines
Dashed projection lines extend from end of lines into future bars, based on each MA's recent slope (lookback-configurable). This gives traders a visual read on where each average is heading if current momentum persists.
- Lookback period: 3–10 bars (controls slope sensitivity)
- Forward projection length: 5–30 bars
- Projections can be toggled on/off
How to use it:
Watch for convergence or crossing of the moving averages and their projected paths — these often mark potential inflection points. Use the Bollinger Bands to gauge whether price is stretched relative to trend. Combine short-term (MA1) and long-term (MA5) MA slopes to confirm trend direction and strength.
Notes:
- Overlay indicator, works on any timeframe and instrument
- All moving average types and lengths are fully adjustable in settings
- Projection lines are visual guides based on recent slope, not predictive signals — always confirm with price action and other analysis
- Conceptual framework inspired by moving-average/Bollinger-Band methods commonly taught by several specialist authors and used by many professionals to identify support and resistance pivots. Indicator

DNSE VN301!, Bollinger Bands Break Out Strategy "Bollinger Bands Breakout with SMA Trend Filter" is a volatility breakout strategy designed to capture strong directional price movements when price breaks outside its recent trading range. The strategy uses Bollinger Bands, constructed from an SMA(20) and two standard deviations, to identify bullish breakouts when price closes above the upper band and bearish breakouts when price closes below the lower band.
To improve signal quality, the strategy incorporates an optional SMA(200) trend filter, allowing Long trades only when the SMA is rising and Short trades only when it is falling. By combining volatility-based breakout signals with long-term trend confirmation, the strategy seeks to reduce false breakouts during ranging markets while participating in sustained intraday trends. It also includes configurable stop loss, take profit, trading session filters, automatic end-of-day position closure, and trend reversal exits for disciplined risk management.
Strategy settings and configuration:
Chart timeframe: recommended 5-minute chart
Position size: 3 contracts
Bollinger Bands length: 20
Bollinger Bands multiplier: 2.0
SMA length: 200
Stop loss: 10 points
Take profit: disabled
SMA trend filter: On / Off
Take profit: On / Off
Time filter: On / Off
Trading session: 09:00 – 14:30
Trade direction: Long / Short / Both
Default script settings:
The strategy calculates Bollinger Bands using the SMA(20) of the closing price. The upper and lower bands are created by adding or subtracting two standard deviations around the middle line.
When volatility increases, the Bollinger Bands expand. When the market is quiet or moving sideways, the bands contract.
When the closing price breaks above the upper Bollinger Band, buying pressure may be taking control. When the closing price breaks below the lower Bollinger Band, selling pressure may be taking control.
When the SMA(200) trend filter is enabled, the script only allows Long trades when SMA(200) is rising and only allows Short trades when SMA(200) is falling. When the SMA filter is disabled, the strategy can trade both directions based only on Bollinger Bands breakout signals.
Users can add the built-in Bollinger Bands indicator on PulseWire with Length 20 and Multiplier 2.0 to visually monitor the signal on the price chart.
Entry and exit rules:
Long entry:
Closing price > upper Bollinger Band
AND SMA(200) is rising, if the SMA filter is enabled
AND the signal appears during the trading session
AND trade direction allows Long entries
Long exit:
Stop loss: 10 points from entry price
Take profit: disabled by default
Closing price touches or breaks below the lower Bollinger Band
SMA(200) turns downward, if the SMA filter is enabled
Reversal when a valid Short signal appears
Automatic position close at the end of the trading session
Short entry:
Closing price < lower Bollinger Band
AND SMA(200) is falling, if the SMA filter is enabled
AND the signal appears during the trading session
AND trade direction allows Short entries
Short exit:
Stop loss: 10 points from entry price
Take profit: disabled by default
Closing price touches or breaks above the upper Bollinger Band
SMA(200) turns upward, if the SMA filter is enabled
Reversal when a valid Long signal appears
Automatic position close at the end of the trading session
Risk disclaimer:
Futures trading involves a high level of risk and prices can move sharply. This script is provided for reference, research, and backtesting purposes only. Users should fully understand derivatives trading, their own risk tolerance, and the strategy logic before applying it to live trading.
All investment decisions are the responsibility of the user. phaisinh.online is not responsible for any losses arising from the use of this strategy in real trading. Past performance does not guarantee future results.
____________________________________________________________________
"Bollinger Bands Breakout với Bộ lọc Xu hướng SMA" là một chiến lược giao dịch theo xu hướng dựa trên sự bứt phá của biến động giá, được thiết kế nhằm nắm bắt các chuyển động mạnh theo một hướng khi giá vượt ra khỏi vùng dao động gần nhất. Chiến lược sử dụng Bollinger Bands, được xây dựng từ SMA(20) và 2 độ lệch chuẩn, để xác định tín hiệu mua khi giá đóng cửa vượt lên trên dải trên và tín hiệu bán khi giá đóng cửa xuống dưới dải dưới.
Để nâng cao chất lượng tín hiệu, chiến lược tích hợp bộ lọc xu hướng SMA(200) (có thể bật hoặc tắt), chỉ cho phép mở vị thế Long khi SMA đang dốc lên và vị thế Short khi SMA đang dốc xuống. Bằng cách kết hợp tín hiệu bứt phá theo biến động của Bollinger Bands với xác nhận xu hướng dài hạn, chiến lược hướng tới việc giảm thiểu các tín hiệu phá vỡ giả trong giai đoạn thị trường đi ngang, đồng thời tận dụng các xu hướng intraday kéo dài. Ngoài ra, chiến lược còn bao gồm các tùy chọn Stop Loss, Take Profit, bộ lọc khung thời gian giao dịch, cơ chế tự động đóng toàn bộ vị thế khi kết thúc phiên, cùng với điều kiện thoát lệnh khi xu hướng SMA đảo chiều, nhằm đảm bảo quản trị rủi ro một cách chặt chẽ và có kỷ luật.
Cài đặt & cấu hình chiến lược:
Biểu đồ: khuyến nghị khung 5 phút
Khối lượng giao dịch: 3 hợp đồng
Chu kỳ Bollinger Bands: 20
Hệ số nhân Bollinger Bands: 2.0
Chu kỳ SMA: 200
Cắt lỗ: 10 điểm
Chốt lời: tắt
Bộ lọc xu hướng SMA: Bật / Tắt
Dùng chốt lời: Bật / Tắt
Bộ lọc giờ: Bật / Tắt
Khung giờ giao dịch: 09:00 – 14:30
Chiều giao dịch: Mua / Bán / Cả hai
Cài đặt mặc định của script:
Chiến lược tính toán Bollinger Bands dựa trên đường SMA(20) của giá đóng cửa. Dải trên và dải dưới được tạo bằng cách cộng hoặc trừ hai độ lệch chuẩn quanh đường giữa.
Khi biến động tăng mạnh, hai dải Bollinger Bands sẽ mở rộng. Khi thị trường đi ngang hoặc biến động thấp, hai dải sẽ co hẹp lại.
Khi giá đóng cửa vượt lên trên dải trên Bollinger Bands, lực mua có thể đang chiếm ưu thế. Khi giá đóng cửa phá xuống dưới dải dưới Bollinger Bands, lực bán có thể đang chiếm ưu thế.
Khi bật bộ lọc xu hướng SMA(200), script chỉ cho phép lệnh Mua khi SMA(200) dốc lên và chỉ cho phép lệnh Bán khi SMA(200) dốc xuống. Khi tắt bộ lọc SMA, chiến lược có thể giao dịch cả hai chiều chỉ dựa trên tín hiệu breakout của Bollinger Bands.
Người dùng có thể thêm chỉ báo Bollinger Bands có sẵn trên PulseWire với tham số Length 20 và Multiplier 2.0 để quan sát tín hiệu trực quan trên biểu đồ giá.
Điều kiện vào và thoát lệnh:
Vào lệnh Mua:
Giá đóng cửa > dải trên Bollinger Bands
VÀ SMA(200) dốc lên, nếu bật bộ lọc SMA
VÀ tín hiệu xuất hiện trong khung giờ giao dịch
VÀ chiều giao dịch cho phép lệnh Mua
Thoát lệnh Mua:
Cắt lỗ: 10 điểm từ giá vào lệnh
Chốt lời: không dùng theo mặc định
Giá đóng cửa chạm hoặc phá xuống dải dưới Bollinger Bands
SMA(200) đảo chiều xuống, nếu bật bộ lọc SMA
Đảo chiều khi xuất hiện tín hiệu Bán hợp lệ
Tự động đóng lệnh khi hết khung giờ giao dịch
Vào lệnh Bán:
Giá đóng cửa < dải dưới Bollinger Bands
VÀ SMA(200) dốc xuống, nếu bật bộ lọc SMA
VÀ tín hiệu xuất hiện trong khung giờ giao dịch
VÀ chiều giao dịch cho phép lệnh Bán
Thoát lệnh Bán:
Cắt lỗ: 10 điểm từ giá vào lệnh
Chốt lời: không dùng theo mặc định
Giá đóng cửa chạm hoặc phá lên dải trên Bollinger Bands
SMA(200) đảo chiều lên, nếu bật bộ lọc SMA
Đảo chiều khi xuất hiện tín hiệu Mua hợp lệ
Tự động đóng lệnh khi hết khung giờ giao dịch
Tuyên bố rủi ro:
Giao dịch hợp đồng tương lai có mức độ rủi ro cao và giá có thể biến động mạnh. Script này chỉ phục vụ mục đích tham khảo, nghiên cứu và kiểm thử. Người dùng cần hiểu rõ giao dịch phái sinh, khẩu vị rủi ro cá nhân và logic của chiến lược trước khi áp dụng vào giao dịch thực tế.
Mọi quyết định đầu tư thuộc trách nhiệm của người dùng. phaisinh.online không chịu trách nhiệm cho bất kỳ khoản lỗ nào phát sinh từ việc sử dụng chiến lược này trong giao dịch thực tế. Hiệu quả trong quá khứ không đảm bảo kết quả trong tương lai.
Strategy

Institutional SMC & Order Flow Matrix PROInstitutional SMC & Order Flow Matrix PRO
Institutional SMC & Order Flow Matrix PRO is a clean, modern, and highly versatile technical charting tool engineered for traders practicing Smart Money Concepts and Order Flow Trading. Built with a focus on visual clarity, it eliminates unnecessary chart clutter by utilizing auto mitigating execution zones, swing anchored market structure lines, and an intelligent trend heatmap.
Key Features Overview
1. Precision Anchored Market Structure
Tracks Break of Structure and Change of Character signals with extreme precision. Lines originate directly from actual swing high or low pivot prices, while structure text labels sit neatly in the center of lines to prevent candle overlap.
2. Smart Auto Mitigating Order Block Zones
Automatically maps active institutional order blocks and imbalance execution zones. Mitigated zones automatically vanish from your chart once price fills the imbalance, keeping your workspace clean and professional.
3. Institutional Candle Heatmap
Features dynamic candlestick coloring driven by macro structural pivots. Bullish trend phases render in clean vibrant green, bearish phases in deep red, and high momentum displacement candles highlight in glowing gold.
4. Major Intermediate Term High and Low Badges
Automatically detects macro structural extremes. Displays solid red Intermediate Term High badges at major resistance tops and green Intermediate Term Low badges at major support bottoms.
5. Complete Manual Customization Suite
Includes comprehensive user settings for every element. Customize line styles, line thickness, border widths, box transparency, text alignment, text colors, and font sizes.
How to Use
Step 1: Identify Macro Trend Bias
Observe the Institutional Candle Heatmap theme to quickly determine current directional order flow.
Step 2: Monitor Centered Structure Signals
Look for precise Break of Structure lines and Change of Character signals anchored directly from swing points.
Step 3: Spot Gold Displacement Candles
Identify gold highlighted expansion candles that create fresh institutional order blocks.
Step 4: Trade Active Execution Zones
Utilize unmitigated bullish and bearish order block zones for high probability entries.
Settings Overview
Market Structure Settings
- Show Market Structure: Toggle structural line displays.
- Line Style and Thickness: Choose between Solid, Dashed, or Dotted lines with adjustable width.
Order Block Zone Settings
- Show Active Order Blocks: Toggle order block rectangles.
- Zone Fill Transparency: Adjust fill opacity from 0 to 100.
- Zone Text Settings: Customize display text, text alignment, font size, and text color.
Major Pivot Settings
- Show Major ITH / ITL Badges: Toggle visibility of macro pivot badges.
- Sensitivity: Adjust pivot lookback sensitivity.
Candle Heatmap Settings
- Enable Trend Candle Heatmap: Toggle dynamic trend candles and gold displacement highlights.
Disclaimer
This indicator is built strictly for educational, analytical, and charting enhancement purposes. It does not provide financial advice, trade recommendations, or guaranteed results. Always apply proper risk management principles. Indicator

RSI MACD + Bollinger Bands & VWAP Toolkit [OT]This indicator combines RSI, MACD, Bollinger Bands, VWAP, and a simple momentum status table into one clean toolkit.
It is designed to help traders check momentum, volatility, and intraday price position without adding multiple separate indicators to the chart.
Main features:
- RSI with 70 / 50 / 30 reference levels
- Normalized MACD histogram in the RSI panel
- Optional MACD signal lines
- Bollinger Bands displayed on the main chart
- Session VWAP displayed on the main chart
- Momentum background based on RSI, MACD, and VWAP conditions
- Status table showing Bias, Score, RSI, MACD, and Volatility
Default settings:
- RSI: 14 period
- MACD: 12 / 26 / 9
- Bollinger Bands: 20 period, 2 standard deviations
- VWAP: Session VWAP, hidden on daily or higher timeframes by default
- Momentum Score: 0 to 3 based on RSI position, MACD signal, and MACD histogram
This indicator does not generate automatic buy or sell signals. It is intended as a visual reference tool for trend, momentum, volatility, and market condition analysis. Please use it together with your own strategy, risk management, and other forms of analysis.
이 지표는 RSI, MACD, 볼린저 밴드, VWAP, 모멘텀 상태표를 하나로 합친 깔끔한 트레이딩 툴킷입니다.
여러 개의 지표를 따로 추가하지 않아도 모멘텀, 변동성, 장중 가격 위치를 한 화면에서 확인할 수 있도록 제작했습니다.
주요 기능:
- RSI 70 / 50 / 30 기준선
- RSI 패널 안에 정규화된 MACD 히스토그램 표시
- 선택 가능한 MACD 시그널 라인
- 메인 차트 위 볼린저 밴드 표시
- 메인 차트 위 세션 VWAP 표시
- RSI, MACD, VWAP 조건을 기반으로 한 모멘텀 배경색
- Bias, Score, RSI, MACD, Volatility 상태표 제공
기본 설정:
- RSI: 14 기간
- MACD: 12 / 26 / 9
- Bollinger Bands: 20 기간, 표준편차 2
- VWAP: 세션 VWAP, 기본적으로 일봉 이상에서는 숨김
- Momentum Score: RSI 위치, MACD 시그널, MACD 히스토그램 기준으로 0~3점 표시
이 지표는 자동 매수/매도 신호를 제공하지 않습니다. 추세, 모멘텀, 변동성, 시장 상태를 시각적으로 참고하기 위한 도구이며, 본인의 전략과 리스크 관리, 다른 분석과 함께 사용하는 것을 권장합니다. Indicator

Indicator

Indicator

Bolinger Bands Range RSI Oscillator [ChartPrime]🔶 OVERVIEW
Traditional oscillators live in a separate sub-window beneath your price chart, forcing you to constantly split your focus between market structure and momentum data. The BB Range RSI Oscillator solves this by projecting Relative Strength Index momentum directly onto an adaptive Bollinger Bands channel right on your main chart layout.
This indicator normalizes standard RSI readings and maps them directly into price coordinates, letting you track momentum extremes, zone expansions, and automated structural divergences directly over the candles.
🔶 HOW IT WORKS
The indicator executes its structural calculations through a multi-tier transformation pipeline:
Adaptive Channel Matrix: The engine computes a moving average basis and applies a standard deviation multiplier to project upper and lower outer boundaries, alongside half-deviation warning lines, framing the primary price canvas.
Normalized RSI Mapping: Instead of rendering a separate panel, raw RSI values are normalized on a standardized scale and mapped directly relative to the middle basis and band width, translating momentum oscillations into exact price-level coordinates.
Dynamic Transparency Engine: The core oscillator line features a dynamic fade factor based on its distance from the center, shifting opacities to visually emphasize when momentum is pushing toward outer band extremes.
Automated Pivot Divergence Logic: The script evaluates pivot points on the mapped oscillator coordinates against price highs and lows. It measures exact bar spacing intervals to flag regular and prime momentum divergences.
🔶 KEY FEATURES
On-Chart Core Oscillator: Plots a fluid momentum curve directly onto the price candles, complete with an optional smoothing signal line to track trend momentum changes.
Dynamic Zone Shading: Automatically fills the upper and lower channel boundaries with custom color fills when the oscillator breaks past half-deviation or outer band extremes.
Automated Divergence Callouts: Pins custom signal badges (+ Bull, Bull, Bear, + Bear) directly onto historical pivot points when structural momentum divergences are detected.
Customizable Palette & Layout: Full user control over band lengths, RSI lookbacks, divergence parameters, and accent color schemes to fit your preferred charting setup.
🔶 TRADING APPLICATIONS
Extreme Band Rejection Entries: When the core oscillator pushes outside the outer Bollinger Band boundaries and flashes zone shading, look for price action reversal confirmations to catch institutional exhaustion moves.
Momentum Divergence Reversals: Utilize the automated Bullish and Bearish divergence tags to spot hidden shifts in market pressure. A regular or prime divergence near outer bands often signals an impending trend reversal.
Signal Line Crossovers: Enable the signal line to track short-term momentum shifts relative to the core mapped oscillator, giving you clean cross-over execution triggers.
🔶 SETTINGS
Bollinger Bands Settings (Length / Multiplier): Controls the lookback window and standard deviation width of the primary channel boundaries.
RSI Oscillator Settings (Period Length / Signal Line): Adjusts the sensitivity of the underlying momentum engine and configures the optional signal line length and styling.
Divergence Settings (Pivot Lookbacks / Min-Max Bars): Fine-tunes the strictness and spacing constraints used by the pivot detection engine to filter out noise.
🔶 CONCLUSION
The BB Range RSI Oscillator unifies volatility bands and momentum oscillators into a single, cohesive on-chart tool. By mapping RSI directly to price structure, it gives you a clean, distraction-free environment for spotting momentum extremes and institutional divergence setups. Indicator

RSI + Bollinger BandsRSI + Bollinger Bands — RSIBB
RSIBB combines the Relative Strength Index with Bollinger Bands by projecting RSI momentum directly into price space. Instead of displaying RSI in a separate oscillator pane, this indicator places the RSI Flow alongside price and the Bollinger Band structure, allowing momentum, volatility, and price action to be evaluated together on a single chart.
How It Works
The RSI Flow is centered around the Bollinger Band basis:
RSI 50 aligns with the Bollinger Band basis.
The upper RSI threshold, set to 70 by default, aligns with the primary Upper Band.
The lower RSI threshold, set to 30 by default, aligns with the primary Lower Band.
RSI values beyond the selected thresholds extend into the outer momentum and volatility zones.
The yellow RSI Flow line represents projected RSI momentum. The white RSI Flow-Base line applies EMA smoothing to the projected RSI Flow, making momentum shifts and potential crosses easier to identify.
Bollinger Band Settings
The Bollinger Band system includes adjustable:
Length
Source
Basis moving-average type
Standard-deviation multiplier
Extended-band multiplier
Extended-band visibility
Supported basis moving averages include:
SMA
EMA
SMMA/RMA
WMA
VWMA
The optional Extended Bands highlight areas where momentum and price have moved beyond the primary Bollinger Band range.
RSI Settings
The RSI system includes adjustable:
RSI length
RSI source
Upper RSI threshold
Lower RSI threshold
EMA smoothing length
The default thresholds are 70 and 30, but they can be changed to make the projection more or less sensitive.
Interpretation
When the RSI Flow moves above the basis, momentum is positioned on the bullish side of its range. When it moves below the basis, momentum is positioned on the bearish side.
Movement near or beyond the primary bands indicates that RSI has reached or exceeded its selected upper or lower threshold. The extended zones can help identify stronger momentum expansion, volatility extremes, and possible exhaustion areas.
Crosses between the RSI Flow and its smoothed Flow-Base may help visualize changes in momentum direction. These signals should be evaluated alongside market structure, trend, volatility, and other forms of confirmation.
RSIBB does not provide automatic trade entries or guarantee reversals at the bands. It is designed as a visual analysis tool that places RSI momentum and Bollinger Band behavior into one unified price-chart display.
This indicator is intended for informational and educational purposes only and does not constitute financial advice. Indicator

SHK CCI 6 MA BOLLINGER BANDS RSI DUAL DIVERGENCE
SHK CCI 6 MA BOLLINGER BANDS RSI DUAL DIVERGENCE
A dual-oscillator divergence engine that runs CCI and RSI side-by-side in the same pane, cross-confirms divergence signals between them, and wraps the CCI line in an adaptive Bollinger Band for volatility context.
What it does
This indicator plots three things in one pane:
CCI (Commodity Channel Index), colored by trend state and filtered through a selectable signal moving average
RSI (Relative Strength Index), colored by 50-midline bias
A Bollinger Band envelope around the CCI line for spotting volatility expansion/contraction
On top of that, it independently scans both CCI and RSI for regular bullish/bearish divergence against price, and flags the bars where both oscillators agree — a higher-confidence signal than either alone.
How the signal engine works
CCI = (source − SMA(source)) / (0.015 × mean deviation), using HLC3 by default
Signal MA: the CCI line is compared against a moving average of itself to determine trend bias (CCI ≥ MA = bullish tint, CCI < MA = bearish tint). Choose from six MA types: SMA, EMA, ALMA, DEMA, QEMA, DWMA
DEMA/QEMA/DWMA are custom-built (not native to Pine) — DEMA is a double-smoothed EMA, QEMA is a quadruple-nested EMA, DWMA is a double-smoothed WMA. Higher smoothing = fewer whipsaws, more lag
RSI runs on its own independent length setting (separate from the CCI length), so you can tune sensitivity for each oscillator without them fighting each other
Divergence detection uses pivot highs/lows on both CCI and RSI, checked against price action within a configurable bar-distance window (so old, stale pivots don't get matched against fresh ones)
CCI Bollinger Bands: a standard basis ± multiplier × standard deviation envelope calculated on either the raw CCI value or the Signal MA (your choice), letting you see when CCI is stretching outside its normal range
How to read the chart
Element What it means
CCI line color Green/teal shades = CCI above its Signal MA (bullish bias); red/pink shades = CCI below (bearish bias). Deeper/brighter shade = also above/below the zero line, i.e. stronger confluence
Signal MA line Green when the underlying Heikin-Ashi candle is bullish, red when bearish
RSI line Blue above 50, orange below 50
Purple bands around CCI Bollinger envelope — CCI pushing outside the bands signals unusually strong momentum for the current length setting
Fill between CCI and Signal MA Green fill = CCI trending above MA, red fill = CCI trending below
White dashed lines (OB/OS) Customizable overbought/oversold reference levels for CCI (defaults: +100 / −200)
White solid line at 35 Fixed RSI reference level
Labels — how to identify each signal
"C" (aqua, pointing up) — CCI regular bullish divergence: price makes a lower low, CCI makes a higher low
"C" (orange, pointing down) — CCI regular bearish divergence: price makes a higher high, CCI makes a lower high
"R" (green, pointing up) — RSI regular bullish divergence
"R" (red, pointing down) — RSI regular bearish divergence
"D" (lime, larger, pointing up) — Dual confirmation: CCI and RSI both show bullish divergence on the same swing — the strongest bullish signal this script produces
"D" (red, larger, pointing down) — Dual confirmation bearish — the strongest bearish signal this script produces
The "D" labels are the ones to weight most heavily; the standalone "C"/"R" labels are useful context but are single-oscillator signals and appear more frequently.
Inputs, grouped as they appear in settings
CCI Settings — CCI length, source, Signal MA type, Signal MA length
RSI Settings — RSI length (independent of CCI length)
MA Params — ALMA offset/sigma (only relevant if Signal MA Type = ALMA)
Levels — Overbought/Oversold reference lines for CCI
Features — toggle divergence detection on/off entirely
Bollinger Bands - CCI — show/hide, length, multiplier, and whether the band wraps the raw CCI value or the Signal MA
Divergence — pivot lookback (left/right bars) and min/max bar distance between pivots used to validate a divergence
Suggested use
Use the "D" dual-confirmation labels as your primary trigger, and the individual "C"/"R" labels as early warning / confluence-building context
Widen the CCI Bollinger Band multiplier on choppier instruments to reduce noise; tighten it on trending instruments to catch momentum extremes earlier
Try DEMA/QEMA/DWMA as the Signal MA type if you find the default ALMA too reactive or too laggy for your timeframe — each trades off responsiveness against whipsaw filtering differently
Works on any timeframe and instrument; divergence-based tools generally perform best combined with a higher-timeframe trend filter or support/resistance context rather than in isolation
Notes
This is a visual/analytical tool, not a standalone buy/sell signal generator — treat divergence as one input among several in your decision process, not a mechanical trigger
Divergence signals are confirmed only after the right-side pivot lookback bars have closed, so labels appear with a small lag by design (this avoids repainting on the pivot itself)
Disclaimer
This script is for educational and informational purposes only and does not constitute financial advice. It is not a recommendation to buy or sell any security or instrument. Trading and investing involve substantial risk of loss and are not suitable for every investor. Past performance, including any backtested or simulated results, is not indicative of future results.
Always analyze the indicator's behavior across different market conditions and backtest thoroughly on your own instruments and timeframes before using it in live trading. Trade at your own risk — you are solely responsible for your own trading decisions. Indicator

Reversion Guard | RSI + Bollinger Band [Customizable]What This Strategy Does
This strategy looks for mean-reversion setups by requiring two independent signals to agree: price must be stretched beyond a Bollinger Band, and RSI must confirm oversold/overbought momentum at the same time. Using both together filters out the common false signal where price touches a band during a strong trend but RSI shows no real exhaustion: a scenario where band-only or RSI-only entries tend to get caught offside.
This is built as a transparent, fully configurable framework rather than a fixed system: every filter below defaults to off, so you can test each one's individual contribution to your specific needs.
Core Entry Logic
Long: price closes below the lower Bollinger Band while RSI is simultaneously oversold
Short: price closes above the upper Bollinger Band while RSI is simultaneously overbought
Optional bar-close confirmation prevents intrabar repainting, so backtest signals match what you'd actually see live
Exit Modes (selectable)
Middle-band reversion (exit once price returns to the average)
Opposite-band ride (hold for the full mean-reversion swing)
RSI-50 momentum normalization (exit once momentum resets, independent of price location)
Optional Filters
Trend filter (EMA) — restricts trades to align with the broader trend direction. Meaningfully reduces losses on trending instruments, at the cost of fewer signals — recommended for volatile, trend-prone names.
Volatility squeeze filter — avoids entering during abnormally low-volatility compression, which historically tends to precede breakouts rather than reversions.
Risk Management
ATR-based stop-loss that scales to each instrument's own volatility, rather than a fixed % or dollar distance
Risk-based position sizing when the stop is active (define % of equity risked per trade; share size is derived from the stop distance)
Fixed % of equity fallback sizing when the stop is disabled, so exposure is always bounded by an explicit, visible setting
Built-in commission and slippage assumptions in the strategy settings, so backtest results reflect realistic trading costs rather than a frictionless best-case
Visual Aids
Band and midline plotting with shaded expected range
Background color intensity reflects a composite "signal strength" score (how far price has stretched beyond the band, combined with how extreme RSI is) - visual
Strategy

EMA + BB Pullback Strategy (Long & Short)Title: Trend-Aligned Bollinger Pullback Strategy
Description:
This is a comprehensive, fully customizable trend-pullback strategy built in Pine Script v6.0. It is designed to capture mean-reversion opportunities within an established trend. Instead of trading breakouts, this strategy waits for momentum to establish itself, and then targets temporary price extremes (pullbacks) to secure optimal entries.
It combines the momentum-tracking power of Dual EMAs with the volatility bands of Bollinger Bands, bundled with a robust suite of risk management and filtering options.
Core Strategy Logic
This strategy operates on the principle of buying the dip in an uptrend, and selling the rip in a downtrend.
1. Trend Alignment (EMAs)
The baseline momentum is determined by a fast and slow Exponential Moving Average.
Bullish Momentum: Fast EMA (14) is above the Slow EMA (34).
Bearish Momentum: Fast EMA (14) is below the Slow EMA (34).
2. The Pullback Entry (Bollinger Bands)
Once the trend is established, the strategy waits for price to overextend against the trend.
Long Entry: The candle's Low must pierce the Lower Bollinger Band, signaling an oversold dip in an uptrend.
Short Entry: The candle's High must pierce the Upper Bollinger Band, signaling an overbought spike in a downtrend.
3. Dynamic & Fixed Exits
The strategy features an advanced Take Profit engine. Because pullbacks can be volatile, you can customize how the strategy secures profits:
Fixed Stop Loss: Hardcoded at 3% (fully adjustable) to protect against trend reversals.
Take Profit Method: Choose between three distinct exit models directly from the settings:
Middle Band Only: Exits dynamically when price mean-reverts back to the Bollinger Band basis (20 SMA).
Fixed % Only: Exits purely on a mathematical target (default 5%).
Whichever Occurs First: The script automatically calculates both the fixed percentage and the dynamic Middle Band price, placing a limit order at whichever is closest to the entry price to secure profits as quickly as possible.
Fully Customizable Features
Every aspect of this script is modifiable via the PulseWire settings menu, allowing you to adapt it to different timeframes and asset classes:
Directional Toggles: Choose to trade Long only, Short only, or Both.
Confirmation Candle Filter: When enabled, the strategy won't just blindly buy a dip. It will wait for the current candle to close green (for longs) or red (for shorts) before executing, confirming that buyers/sellers are stepping back in.
Master Trend Filter (200 EMA): A built-in macro filter. When enabled, Longs will only execute if price is above the 200 EMA, and Shorts will only execute if price is below the 200 EMA.
Custom Parameters: Adjust EMA lengths, Bollinger Band lengths and standard deviations, and all Risk Management percentages to fit your backtesting needs.
++++++++++++++++++++++++++++++++++++++++++++++
⚠️ RISK WARNING & LEGAL DISCLAIMER ⚠️
DO NOT blindly deploy this strategy with real capital.
This Pine Script is provided for educational and backtesting purposes only and does not constitute financial, investment, or trading advice.
Backtesting is not reality: Historical performance does not guarantee future results. Backtests do not perfectly account for live market variables such as slippage, spread widening, liquidity issues, and exchange fees, all of which can turn a profitable backtest into a losing live strategy.
Automated Risk: Algorithmic trading carries a high level of risk. Market conditions change continuously, and a strategy that performs well in a ranging market may suffer severe drawdowns in a trending or highly volatile market.
Your Responsibility: You are solely responsible for your own trades, your money, and your risk management. The author assumes absolutely no liability for any financial losses incurred from using this script.
Best Practice: Always thoroughly forward-test any new script on a Paper Trading / Demo account for an extended period across multiple market conditions before ever considering risking real money. Use this tool as a baseline to study mechanics and build your own robust trading system.
++++++++++++++++++++++++++++++++++++++++++++++ Strategy

Indicator

SMI + Bollinger Bands## SMI + Bollinger Bands
SMI + Bollinger Bands is an overlay indicator that projects the Stochastic Momentum Index directly into the price space defined by Bollinger Bands.
Traditional SMI indicators are displayed in a separate oscillator pane. This script instead transforms the SMI value into a price-relative flow line, allowing momentum, volatility, and price structure to be viewed together on the main chart.
### Core concept
The indicator calculates two related systems:
1. A standard Bollinger Band structure based on a configurable moving average and standard deviation.
2. A double-smoothed Stochastic Momentum Index calculated from the relationship between the closing price and its recent high-low range.
The SMI is then normalized using the selected SMI Threshold and projected around the Bollinger basis:
* An SMI value equal to the positive threshold aligns with the primary upper Bollinger Band.
* An SMI value equal to the negative threshold aligns with the primary lower Bollinger Band.
* Values between the thresholds appear inside the primary Bollinger range.
* Momentum exceeding the threshold can extend beyond the primary bands and into the optional extended-band zones.
This projection makes it possible to compare momentum behavior directly with current price and volatility rather than interpreting an oscillator in a separate pane.
### Plotted elements
**Bollinger basis**
The center line of the Bollinger structure. The moving-average type can be selected from SMA, EMA, SMMA/RMA, WMA, or VWMA.
**Primary Bollinger Bands**
The upper and lower volatility boundaries calculated from the selected standard-deviation multiplier.
**Extended Bollinger Bands**
Optional outer volatility zones using a separately configurable standard-deviation multiplier. These areas can help visualize unusually extended price or momentum conditions.
**SMI Flow**
The yellow line represents the projected Stochastic Momentum Index. Its position shows where momentum currently sits relative to the Bollinger structure.
**SMI Flow-Base**
The white line is an EMA-smoothed version of the projected SMI Flow. It provides a slower reference line that can be used to observe momentum direction, compression, expansion, and crossings.
### Inputs
**Bollinger Band settings**
* Length: Lookback period used for the Bollinger basis and standard deviation.
* Basis MA Type: Moving-average calculation used for the basis.
* Source: Price source used for the Bollinger calculations.
* StdDev: Multiplier used for the primary Bollinger Bands.
* Extended StdDev: Multiplier used for the optional outer bands.
* Use Extended Bands: Enables or disables the extended volatility zones.
**SMI settings**
* %K Length: Lookback period used to determine the recent high-low momentum range.
* %D Length: Double-EMA smoothing applied during the SMI calculation.
* EMA Length: Smoothing applied to the projected SMI Flow-Base line.
* SMI Threshold: Defines which positive and negative SMI values align with the primary upper and lower Bollinger Bands.
### General interpretation
The indicator is intended as a visual analysis framework rather than a standalone entry system.
Traders may use it to study:
* Momentum changes relative to volatility.
* SMI Flow and Flow-Base crossings.
* Momentum expansion beyond the primary bands.
* Momentum rejection from extended zones.
* Divergence between price movement and projected momentum.
* Compression around the Bollinger basis.
* Confluence with trend, structure, volume, support, resistance, or other analysis.
A movement outside a band does not automatically indicate a reversal. Strong trends can remain extended, and crossings can occur repeatedly during sideways or volatile conditions. Market context and risk management remain necessary.
### Calculation behavior
This script does not use future data, lookahead calculations, or higher-timeframe requests. Values on the active candle may continue changing as the candle’s high, low, and close update. Historical values are finalized after their respective candles close.
### Disclaimer
This indicator is provided for research, education, and chart analysis. It does not provide guaranteed trade signals, financial advice, or predictions of future market performance. Users are responsible for independently evaluating all trading decisions and managing their own risk.
Indicator

Buy/Sell Signals [WynTrader]Buy/Sell Signals
Hello dear Friend
Here is my Buy/Sell Signals indicator that may help you easily run a Buy/Sell backtest Strategy, seeing, at a glance, performance results.
█ OVERVIEW
This indicator identifies trend changes and generates Buy/Sell signals as accurately as possible. Its strength lies in the results Table, which lets you evaluate signal performance directly on the chart — compared to a simple Buy & Hold strategy — without running a full backtest.
█ CONCEPTS
This Buy/Sell Signals , compared to other tools that detect trend shifts, is simple, easy to use, and demonstrates its efficiency on its own, at a glance.
The Table results allow you to quickly evaluate signal performance, both on their own and compared to a Buy & Hold strategy. The Table calculations are fully s ynchronized with the visible chart (WYSIWYG – What You See Is What You Get). You can also scroll the chart across different date ranges to see how a stock or product performs under various market conditions.
You can adjust the variables to suit your goals. The design is simple, with clear parameters and instant readability of Buy/Sell Signals on the chart and in the Table results, without complex interpretation needed.
A Table shows the effectiveness of the signals on the current visible chart, providing immediate, realistic feedback performance. The Buy & Hold strategy results are also included for comparison with the Buy/Sell swing strategy. The Buy & Hold results start from the first Buy signal to ensure a fair comparison. Changing the parameters instantly updates the Table, giving a quick, immediate performance check.
█ FILTERS (Buy/Sell parameters)
This indicator generates Buy/Sell signals using optional and adjustable filters:
- Bollinger Bands Lookback Trend Filter
- High-Low vs Candle Range Threshold %
- Distance from Fast and Slow MAs Threshold %
Results are displayed in a Table on the chart, based on the currently visible start and end dates.
█ TABLE RESULTS (Buy/Sell signals performance)
The Results Calculation presented in the Table is based on the Current Chart Visible Range . The Table shows the:
- Calculation Results of the Buy and Sell Signals activated on the chart
- Number of Trades (Signals)
- Winning Points
- Win Rate %
The Buy & Hold calculation starts at the first Buy encountered.
█ CAUTION
The Graal Indicator, even with AI, doesn't exist yet — maybe one day, but not now — depending on the chart product, volatility, probabilities, and unpredictable market behaviour. Don't rely on this tool to make trade decision, it's only a tool to, maybe, help assess a change of trend.
Seeing Buy/Sell signals on a chart is appealing, but assessing their performance in a Table makes it even more convincing — and without running a full backtest, you get a clear overview of performance immediately.
█ WYNTRADER
My name is WynTrader. I cumulate 24 years of experience. In 2001, I took an intensive technical analysis course taught by an exceptional friend, Cyril, who taught me everything I know.
After testing thousands of PulseWire indicators over these 24 years, I've found none to be 100% accurate all the time. This Buy/Sell Signals indicator may outperform some others but is still not perfect. So, just be aware, and don't be fooled by this tool.
Enjoy!
WynTrader Indicator

Modern Bollinger Bands [GBB]Modern Bollinger Bands
I rebuilt Bollinger Bands. Not because the original is bad, John Bollinger's work has held up for forty years, but because the defaults everyone uses were designed for daily stock charts in the 1980s and we're putting them on crypto perps at 3am.
WHAT'S WRONG WITH THE CLASSIC
Five things, in my view.
The window is always 20 bars. Doesn't matter if the market is in a fast news week or a dead summer range, you get the same 20.
The bands assume returns follow a bell curve. Asset returns have fat tails, so price pokes outside a two sigma band far more often than the theory says it should.
A band touch has no meaning on its own. In a range, fading the touch works okay. In a trend, price walks down the band and runs over every single fade. The classic gives you nothing to tell those two situations apart, and that's the flaw that costs people real money.
The SMA basis is slow. Equal weight on every bar means the middle line describes the market as it was roughly ten bars ago.
And band width isn't comparable to anything. What counts as narrow on one chart means nothing on another, so squeeze thresholds end up being eyeballed.
WHAT I CHANGED
The length adapts. An Ehlers homodyne discriminator measures the dominant cycle in price and the window becomes half of it, between 10 and 50 bars. When there's no measurable cycle because the market is trending too hard, the length freezes at the last good value instead of guessing.
The basis is a KAMA instead of SMA. It speeds up when price is actually going somewhere and almost stops updating in chop.
The bands are percentile bands, not sigma bands. 97.5th and 2.5th percentile of the real deviations around the basis, nearest rank, over a longer window. Your market's actual tails, not a textbook bell curve.
I added a regime filter: Kaufman efficiency ratio, percentile ranked against the last 252 bars, with 70/55 hysteresis so it doesn't flip flop on the boundary. Blue bands are RANGE, orange bands are TREND, and the signals respect the color.
And the squeeze is a score from 0 to 100. Percentile rank of band width against the last year of bars. A score of 8 reads the same on every symbol and every timeframe.
THE SIGNALS
Three types, that only trigger on candle close, so there is nothing repainted.
Singal1: Blue triangles. The classic fade, but only where it belongs. Price closes outside a band, the next bar closes back inside, and the regime is RANGE. In TREND this signal simply doesn't exist.
Singal2: Orange circles. Trend pullback. Price dips into a zone around the basis, then closes back in the trend direction. TREND only and with the trend only. One thing about the chart markers: in a long trend this setup can fire on several nearby bars, so the chart draws the first circle of a cluster and skips the repeats for a few bars, so the chart does not get too cluttered.
Signal3: Diamonds. Squeeze release after at least 5 bars of squeeze, then the squeeze ends and price closes outside a band on that same bar. Important: While this is the most intuitive setup of the three and it's the one my testing supports least. Release events showed the same forward 20 bar volatility as typical bars from the same hours. Volume confirmation didn't help either, I tested that separately. The diamonds mark a real event, compression ended and price left the bands, but whether that's worth anything is a question my data answered with no. I included the signal and alert for it anyway, because I know many of you will want it.
SETTINGS
Everything above is a toggle. The groups match the settings dialog, so here's what each one actually does and when you'd touch it.
Adaptive length: Length mode switches between Adaptive and Fixed. Adaptive is the point of this indicator. Fixed with the default of 20 exists for two reasons: reproducing the classic, and for people who want to trust their own number. The fixed length input only matters in Fixed mode.
Basis / bands: Basis picks KAMA or SMA for the middle line, bands picks Robust (percentile) or Stdev (classic sigma). Set Fixed 20 plus SMA plus Stdev and you have exact 1980s Bollinger Bands, that combination is deliberately supported. The stdev multiplier (2.0) only applies in Stdev mode. The robust percentiles (97.5 and 2.5) set where the bands sit in the deviation distribution, pull them toward 95/5 if you want more touches and more signals, push them out if you want only the extremes. The robust window multiplier and floor control how much history the percentile estimate uses, 4 times the adaptive length with a floor of 80 bars by default. Shorter windows react faster to volatility shifts but the tail estimates get noisy, I would leave these alone unless you know why you're changing them. KAMA fast and slow (2 and 30) are the standard Kaufman speeds, the basis moves between a 2 period and a 30 period EMA depending on how efficient the move is.
Regime / squeeze: KER length (20) is the window for the efficiency ratio itself. The percentile rank window (252) is what "recent history" means for both the regime and the squeeze score, about one year of daily bars, about ten days on 1h. TREND enter (70) and TREND exit (55) are the hysteresis levels: the market has to rank above the 70th percentile in efficiency to be called TREND and drop back below the 55th to be called RANGE again. Widen the gap and the regime switches less often but later, narrow it and you get earlier calls with more flip flops. These defaults sat on a flat plateau in sensitivity testing, meaning nearby values gave nearly identical results, so there's no magic in 70/55, but there's also nothing to gain from tuning them. Squeeze threshold (20) defines squeeze as band width below the 20th percentile, and min bars in squeeze (5) stops one bar dips from counting as compression.
Signals: One input, the S2 touch fraction (0.25). It sets how close to the basis a pullback has to come, measured as a fraction of the band halfwidth. Smaller means stricter pullbacks and fewer S2 signals.
Display: Clean display preset strips everything down to the three lines, no fill, no markers, no panel. The info panel (regime, KER percentile, adaptive length with its frozen flag, squeeze score, last signal) is off by default, turn it on when you want to see what the indicator is "thinking". Signal markers and the squeeze heat on the band fill can be switched off separately. The S2 marker debounce (5) is the cosmetic cluster filter from the signals section, set it to 0 if you want every circle drawn.
Parity: You can ignore this group for trading. It pins the computation start to a fixed timestamp so every value on the chart can be reproduced bar for bar against a Python reference implementation. It's how the validation was done and it stays in so anyone can check my work.
ALERTS
Six per signal alerts plus the combined JSON one with symbol, timeframe, signal, regime, squeeze score and band levels. Once per confirmed bar close, built for webhook bots.
No indicator prints money, this one included. It tells you regime, structure and volatility state, with the evidence behind each part published, nulls and all. Trade safe. Indicator

Indicator

Reversion Setup - Bollinger Bands + RSI Live Dashboard📊 REVERSION SETUP — Bollinger Bands + Live RSI Dashboard
A focused mean-reversion tool combining Bollinger Bands with a real-time
RSI dashboard — built to spot potential reversal zones without cluttering
your chart or burning extra indicator slots.
✅ Bollinger Bands — fully configurable (period, deviation, source, color)
✅ Live RSI Dashboard — current RSI value, overbought/oversold levels,
and real-time alert status, shown in a clean table instead of a
separate pane
🎯 WHY THIS COMBO
Bollinger Bands highlight when price stretches to a statistical extreme,
while the RSI dashboard confirms whether momentum actually backs up that
move. When price tags a band AND RSI flags overbought/oversold at the
same time, that's your reversion signal — two confirmations, one chart.
🔧 FULLY CONFIGURABLE
— Adjust Bollinger period, deviation, source, and color
— Set your own RSI period and overbought/oversold levels
— Adjust dashboard text size
💡 HOW IT WORKS
The RSI dashboard updates live as new candles form, showing:
— Current RSI value
— Upper/Lower band levels
— Alert status (Overbought ↑ / Oversold ↓ / Neutral →)
🔗 PAIRS WELL WITH
Check out my Trend Setup (EMA 50/100/200 + RSI Dashboard) for the
trend-following counterpart to this mean-reversion tool.
💬 Suggestions for the next setup? Drop a comment below — more tools
coming based on community feedback.
If this helped your charts, a like goes a long way 🙏 Indicator

RSI Pattern Matcher & Forward ProjectionRSI Pattern Matcher & Forward Projection is an advanced RSI-based analysis tool
that combines historical pattern matching, statistical forward projection,
Bollinger Bands, and an EMA overlay — all applied directly on the RSI panel.
Instead of using RSI as a simple overbought/oversold indicator, this script
treats the RSI as a pattern signal. It scans hundreds of historical bars to find
past moments where RSI behavior and price direction closely matched the current
market structure, then statistically projects what RSI is most likely to do next.
### How It Works
The indicator builds a fingerprint of the current market using the last N bars
(Pattern Length), capturing:
- RSI value for each bar in the window
- Price direction per bar (rising, falling, or flat)
It then scans the full lookback window and marks a historical bar as a match when:
- Each RSI value falls within the defined tolerance (e.g. ±4 points per bar)
- At least 60% of the price direction steps align with the current pattern
Once matches are collected, the script averages what happened to RSI over the
following bars after each match. This averaged path is rendered as a step-by-step
dashed projection line extending to the right of the last bar.
Bollinger Bands (length 14, multiplier 2.0) and EMA 12 are computed on the RSI
itself — not on price. Both indicators are also extended forward by the same
projection length using linear slope extrapolation, giving a complete forward
context for the RSI forecast.
### What It Displays
RSI Line — main aqua line (standard RSI)
RSI EMA 12 — orange line tracking the short-term RSI average; crossovers
signal early momentum shifts
Bollinger Bands on RSI:
• Yellow middle band (SMA 14)
• Red upper band (overbought pressure zone)
• Green lower band (oversold pressure zone)
• Gray fill between bands
Forward Projection (dashed lines extending beyond last bar):
• RSI forecast path — averaged from historical analogs, color-coded by zone
• BB Upper extension — red dashed
• BB Lower extension — green dashed
• BB Basis extension — yellow dashed
• EMA 12 extension — orange dashed
Live RSI Label — current RSI value displayed next to the last bar,
color-coded in real time (red ≥ 70, green ≤ 30, aqua otherwise)
Forecast Label — projected RSI value shown at the end of the forward window
Info Table (top right):
• Matches found vs maximum
• Dominant directional bias (Up / Down / Flat)
• Direction distribution percentages
• Average, best-case, and worst-case price change across all matches
• Estimated RSI value N bars ahead
• Confidence score based on match count
### Confidence Score
≥ 10 matches → 90%
≥ 7 matches → 75%
≥ 5 matches → 60%
≥ 3 matches → 40%
< 3 matches → 20%
A warning is displayed on the table when fewer than 3 matches are found.
In this case, increase RSI Tolerance or Lookback to find more historical analogs.
### Inputs
RSI Period — RSI calculation length (default: 14)
RSI Source — price input for RSI (default: close)
Pattern Length — bars used to build the current pattern fingerprint (2–20, default: 3)
Projection Length — bars ahead to project all forward lines (1–20, default: 3)
RSI Tolerance — max RSI difference per bar allowed when matching (±0.5–10, default: ±4.0)
Lookback — historical bars to scan for matches (50–999, default: 500)
Max Matches — maximum historical matches to average (3–20, default: 10)
### How To Use
1. Add the indicator to any chart — it plots on a separate RSI panel
2. Check the info table for match count; if below 3, raise RSI Tolerance or Lookback
3. Read the dominant direction and confidence score for a quick bias assessment
4. Follow the dashed projection line to see where RSI is historically likely to go
5. Use the extended BB bands to anticipate whether RSI may reach overbought or
oversold territory within the projection window
6. Watch the EMA extension — if the projected RSI crosses above or below the
extended EMA, it can signal a momentum shift ahead
7. Compare the forecast RSI label against the 70 and 30 levels for reversal context
8. Use best-case and worst-case % change figures to frame risk/reward expectations
9. Higher timeframes (1H, 4H, Daily) generally produce cleaner RSI patterns
and more meaningful matches
### Best Used For
- Anticipating RSI direction before price confirms
- Identifying overbought/oversold exhaustion using historical analogs
- Spotting early momentum shifts via RSI EMA crossovers
- Using BB band position to contextualize RSI extremes
- Filtering trade entries with forward projection confluence
- Multi-layer RSI analysis combining pattern matching, bands, and trend
### Originality
This script combines four independent analytical layers into a single RSI panel:
a historical analog pattern matcher, a statistical forward projection engine,
Bollinger Bands applied to RSI (not price), and a linear slope extrapolation
system for all forward indicators. The specific combination — simultaneous RSI
and price direction fingerprinting, 60% direction alignment threshold, per-bar
averaged projection, and slope-based BB/EMA extension — represents the author's
own approach to making RSI forecasting both visual and statistically grounded.
### Disclaimer
This indicator is for educational and analytical purposes only. Pattern matching
based on historical RSI behavior does not guarantee future results. Past analogs
may not repeat. Always apply proper risk management and combine this tool with
additional analysis before making any trading decisions.
Short Description:
Scans historical RSI and price direction patterns to project the most likely RSI
path forward. Includes Bollinger Bands and EMA on RSI, full forward extension of
all indicators, directional bias stats, and a confidence score. Indicator

Indicator

Strategy

Gaspard98 - Bollinger Bands - RSI# Gaspard98 — Bollinger Bands · RSI
**Bollinger Bands reimagined: a dynamic trend background painted inside the bands, and overbought/oversold RSI readings projected directly outside them.**
---
## Overview
This indicator takes the classic Bollinger Bands and adds two layers of visual reading designed to help you decide faster, without leaving the price chart:
1. **A dynamic trend background** painted *only inside* the bands (between the upper band, the basis, and the lower band). Its color shows the bias (bullish / bearish) and its **intensity changes in real time** with the strength of the move.
2. **Overbought / oversold (RSI) zones** projected *above and below* the bands, lighting up only when the RSI crosses its thresholds. This lets you combine volatility (Bollinger) and momentum (RSI) at a single glance, without a separate oscillator at the bottom of the screen.
The goal: keep the readability of a clean chart while making the context (trend + momentum extremes) immediately obvious.
---
## The concept
Bollinger Bands measure volatility around a moving average, but on their own they say nothing about either **directional bias** or **momentum state**. This tool fills both gaps directly on the overlay:
- **Trend** — price above the basis = bullish context; below = bearish context. The background turns this bias into color.
- **Strength** — the further price moves from the basis relative to current volatility, the denser the background — a sign that a push is either fading or accelerating.
- **Momentum extremes** — the RSI flags overbought/oversold zones. Instead of a separate panel, the information is brought back onto the price, exactly where it matters.
---
## How it works
### 1. Bollinger Bands
Basis = a moving average (SMA, EMA, SMMA/RMA, WMA or VWMA, your choice). The upper and lower bands sit at `± StdDev × standard deviation` from the basis. Standard settings: length 20, multiplier 2.0.
### 2. Dynamic trend background
The background is gradient-based: dense color at the basis, fading progressively toward each band, creating a "trend core" effect rather than a flat fill.
- **Green** when price is above the basis (bullish bias).
- **Red** when price is below it (bearish bias).
- In **dynamic intensity** mode, the background density is derived from `|price − basis| / standard deviation`. In practice: a trend that pushes hard produces a vivid background, a market reverting to its mean produces a more subdued one.
### 3. RSI OB/OS zones (outside the bands)
An RSI computed in the background triggers two colored zones projected outside the bands:
- **Red zone above the upper band** when the RSI reaches the **overbought** threshold.
- **Green zone below the lower band** when the RSI reaches the **oversold** threshold.
These zones only appear on the bars where the condition is met, making them a punctual marker rather than a permanent fill.
---
## Inputs
**Bollinger**
- *Length* — moving-average period (default 20).
- *Basis MA Type* — moving-average type: SMA, EMA, SMMA (RMA), WMA, VWMA.
- *Source* — calculation source (default: close).
- *StdDev* — standard-deviation multiplier for band width (default 2.0).
**Trend**
- *Color inside the bands* — toggles the background on/off.
- *Dynamic intensity* — modulates density by strength; off = constant fill.
- *Bullish / Bearish* — customizable colors.
**RSI**
- *OB/OS zones outside bands* — toggles the zones on/off.
- *RSI Length* — RSI period (default 14).
- *Overbought (OB)* — upper threshold (default 70).
- *Oversold (OS)* — lower threshold (default 30).
- *Zone transparency* — opacity of the projections.
---
## How to use it
- **Read the context first.** A dense green background = bullish push underway; a background that pales as price returns toward the basis = loss of momentum / mean reversion.
- **Spot the extremes.** A red zone above the upper band (RSI overbought) while price tags that band signals possible exhaustion; the mirror logic applies to the green oversold zone.
- **Combine both signals.** The most telling context appears when background and RSI zone line up: for example, a bullish background that intensifies *without* triggering overbought suggests a healthy trend; a bullish background *with* clear overbought at the upper band calls for more caution.
Adapt the RSI thresholds and the multiplier to your instrument and timeframe. The defaults suit indices and CFDs on intraday timeframes but deserve tuning to the volatility of the underlying.
---
## Originality
Most Bollinger derivatives simply color the space between the bands or add crossover signals. Here, two specific ideas:
- The background is **bounded inside the bands** and **gradient-mapped around the basis**, with intensity indexed to volatility — not a binary solid fill, but a continuous reading of strength.
- The RSI zones are **projected outside the bands** rather than shown in a separate panel, fusing momentum and volatility onto a single reading plane.
---
## Disclaimer
This indicator is a market-reading and visualization tool. It does not constitute investment advice or a buy/sell recommendation. Past performance is not indicative of future results. You remain solely responsible for your decisions and your risk management.
---
*Published by Gaspard98. Feedback and suggestions welcome in the comments.* Indicator

BB Squeeze BreakoutBB Squeeze Breakout
Precision Breakout is a volatility compression and breakout indicator based on Bollinger Bands, Keltner Channels, momentum filters, volume confirmation, and ATR-based risk levels.
The goal of this tool is to help traders read when price is compressing, when volatility starts expanding again, and whether a breakout has enough confirmation to be considered stronger or weaker.
This indicator is not a trading system by itself. It is made to support chart reading and should be used together with market structure, support and resistance, liquidity zones, session context, and personal risk management.
────────────────────────────
MAIN IDEA
────────────────────────────
Markets often move through two phases:
1. Compression
Price contracts, Bollinger Bands become tighter, and the market prepares for a possible expansion.
2. Expansion
Price breaks outside the bands, volatility increases, and a directional move can start.
This script tracks those phases with:
- Bollinger Bands
- Keltner Channels
- Squeeze detection
- Bollinger Bandwidth
- %B position
- Candle quality
- RSI momentum
- Volume expansion
- OBV confirmation
- MFI confirmation
- A/D confirmation
- ADX trend strength
- MACD confirmation
- EMA trend filter
- ATR-based SL and TP levels
- A dashboard for quick reading
────────────────────────────
HOW THE SIGNALS WORK
────────────────────────────
A bullish breakout appears when price closes above the upper Bollinger Band for the required number of confirmation bars.
A bearish breakout appears when price closes below the lower Bollinger Band for the required number of confirmation bars.
The script then checks additional conditions such as candle body quality, momentum, volume, OBV slope, MACD behavior, ATR expansion, Bollinger Bandwidth expansion, and post-squeeze context.
The final signal depends on the confluence score and the selected filters.
A strong signal means that the breakout structure is present and the required confirmations are aligned.
A weak signal means that price broke outside the Bollinger Band, but the score or one of the active filters was not strong enough.
────────────────────────────
MINI TUTORIAL FOR BEGINNERS
────────────────────────────
1. Add the indicator to the chart.
2. Start with the default settings.
3. Look for a squeeze phase, where Bollinger Bands compress inside the Keltner Channel.
4. Wait for a squeeze release or a confirmed breakout outside the Bollinger Bands.
5. Check the dashboard:
- Squeeze: shows if compression is active.
- Post-SQ: shows if the market recently left a squeeze.
- BandWidth: shows if volatility is low or expanding.
- %B: shows where price is inside or outside the bands.
- SNIPER: shows the current confluence score.
- Signal: shows BUY, SELL, WEAK BUY, WEAK SELL, or WAIT.
6. If a signal appears, check if it agrees with the trend, support/resistance, and market structure.
7. Use the ATR-based Entry, SL, TP1, TP2, and TP3 levels as visual planning references.
8. Do not take a signal blindly. Always check the context before making a decision.
────────────────────────────
EXAMPLE CASES
────────────────────────────
Example 1: Bullish post-squeeze breakout
Price has been moving sideways, the Bollinger Bands are tight, and the squeeze is active. Then price closes above the upper Bollinger Band with a strong candle, rising volume, improving RSI, and expanding bandwidth. The dashboard shows a bullish score above the minimum threshold. A BUY label can appear, and the ATR risk levels show Entry, SL, TP1, TP2, and TP3.
Example 2: Bearish breakdown
Price loses support and closes below the lower Bollinger Band. RSI moves below 50, OBV weakens, MACD confirms downside pressure, and the candle closes near the low of its range. If the score and active filters agree, a SELL label can appear.
Example 3: Weak breakout
Price closes outside the Bollinger Band, but the candle is small, volume is not expanding, or momentum is weak. In this case, the script can show a WEAK signal instead of a confirmed one. This means the structure exists, but confirmation is not strong enough.
Example 4: Head fake
Price briefly breaks outside a band, then moves back inside the Bollinger structure. The script can mark this as a possible head fake. This helps identify failed breakouts, especially in choppy or low-volume markets.
Example 5: Band walk
During strong trends, price can continue moving along the upper or lower Bollinger Band. The script marks these band walk conditions to show possible trend continuation behavior.
────────────────────────────
INPUTS EXPLAINED
────────────────────────────
BOLLINGER BANDS
BB Length
Controls the moving average period used for the Bollinger Band basis. The default value is 20, which is the classic Bollinger setting.
BB StdDev
Controls the standard deviation multiplier used to build the upper and lower bands. The default value is 2.0, which is the common standard setting.
Neon Glow
Adds a visual glow effect around the Bollinger Bands.
Heat Zone
Colors the area between the Bollinger Bands depending on price position inside the band range.
────────────────────────────
KELTNER / SQUEEZE
Keltner Length
Controls the length used for the Keltner Channel calculation.
Keltner Mult
Controls the ATR multiplier used to build the Keltner Channel.
Show Keltner
Shows or hides the Keltner Channel on the chart.
Post-Squeeze Window
Defines how many bars after a squeeze release are still considered part of the post-squeeze phase.
Squeeze Ready Lookback
Looks back over a selected number of bars to detect when Bollinger Bandwidth is near a low-compression zone.
Show Squeeze Dots
Shows dots during squeeze conditions and squeeze release events.
────────────────────────────
BREAKOUT SIGNALS
Confirmation Bars
Defines how many consecutive closes outside the Bollinger Band are required before confirming a breakout.
Show BUY/SELL Labels
Shows or hides the main BUY and SELL labels.
Show Arrows
Shows or hides the arrow markers on the chart.
Show Tiny Info Labels
Shows or hides smaller labels such as weak signals and head fake warnings.
Head Fake Lookback
Controls how many bars are checked to detect a failed breakout after price moved outside a band.
Band Walk Bars
Controls how many bars are required to detect a band walk condition.
────────────────────────────
SNIPER ENGINE
Min Confluence Score
Sets the minimum score required for a confirmed signal. A higher value gives fewer signals but requires stronger confirmation.
Min Body/Range Ratio
Defines how large the candle body must be compared to the full candle range. This helps filter weak candles and dojis.
Close Must Be In Top/Bot %
For bullish candles, the close should be near the top of the range. For bearish candles, the close should be near the bottom of the range.
ATR Expansion Factor
Checks if current ATR is expanding compared to its average. This helps confirm volatility expansion.
Require Momentum Acceleration
Uses momentum behavior, mainly RSI acceleration, as part of the confirmation logic.
Require Volume Expansion
Uses volume expansion as part of the breakout quality reading.
Require BB Width Expansion
Checks if Bollinger Bandwidth is expanding during the breakout.
Anti-Wick Rejection Filter
Helps reject breakouts when the previous candle shows a strong wick against the breakout direction.
────────────────────────────
FILTERS
Use RSI Filter
Activates or disables RSI confirmation.
RSI Length
Controls the RSI calculation period.
Use OBV Filter
Activates or disables OBV confirmation.
Use Volume Spike Filter
Activates or disables volume spike confirmation.
Volume MA Length
Controls the moving average length used to compare current volume.
Volume Min x MA
Defines how much current volume must exceed the volume average.
Use MFI Filter
Activates or disables Money Flow Index confirmation.
MFI Length
Controls the MFI calculation period.
Use A/D Filter
Activates or disables Accumulation/Distribution confirmation.
Use ADX Filter
Activates or disables ADX trend strength confirmation.
ADX Length
Controls the ADX calculation period.
ADX Min
Defines the minimum ADX value required when the ADX filter is active.
Use MACD Filter
Activates or disables MACD confirmation.
Use EMA Trend Filter
Activates or disables EMA trend confirmation.
EMA Fast
Controls the fast EMA length.
EMA Slow
Controls the slow EMA length.
────────────────────────────
RISK MANAGEMENT
Show SL / TP
Shows or hides Entry, Stop Loss, and Take Profit levels.
Show SL/TP Zones
Shows or hides the colored risk and target zones.
Show SL/TP Labels
Shows or hides the Entry, SL, TP1, TP2, and TP3 labels.
SL ATR x
Controls the ATR multiplier used to calculate the Stop Loss distance.
TP1 ATR x
Controls the ATR multiplier used to calculate the first Take Profit level.
TP2 ATR x
Controls the ATR multiplier used to calculate the second Take Profit level.
TP3 ATR x
Controls the ATR multiplier used to calculate the third Take Profit level.
Enable TP3
Shows or hides the third Take Profit level.
RM Label Offset Bars
Moves the risk management labels slightly to the right of the current price area. The labels and zones update automatically as new candles appear.
────────────────────────────
DASHBOARD
Show Dashboard
Shows or hides the dashboard panel.
Position
Moves the dashboard to the selected chart corner.
High Contrast Panel
Makes the dashboard easier to read with stronger background contrast.
────────────────────────────
VISUAL ELEMENTS
────────────────────────────
The indicator can display:
- Bollinger Bands
- Bollinger glow effect
- Heat zone between bands
- Keltner Channels
- Squeeze dots
- Squeeze release dots
- BUY and SELL labels
- Weak breakout labels
- Head fake labels
- Band walk markers
- ATR-based Entry, SL, TP1, TP2, TP3 levels
- Colored risk and target zones
- A dashboard with market state information
────────────────────────────
IMPORTANT NOTES
────────────────────────────
This script is an indicator, not a strategy.
It does not place trades.
It does not guarantee profitable results.
It does not predict the future.
Signals can fail in ranging, low-liquidity, high-spread, or news-driven market conditions.
Users should test the indicator on their own symbols, timeframes, and trading style before using it in live market decisions.
Risk management remains the responsibility of the user. Indicator
