SPMA Trend | NAL1. Overview
SPMA Trend | NAL is an adaptive trend and volatility framework built around the Shock Percentile Moving Average.
Unlike a conventional moving average that continuously follows price, the SPMA selectively updates when the current price change ranks above a configurable percentile of recent returns. This creates an event-driven baseline that places greater emphasis on stronger positive price shocks while holding its previous value during lower-ranked movement.
SPMA Trend expands this concept with adaptive volatility bands, asymmetric shock modeling, empirical quantile boundaries, and optional slope confirmation to form a complete directional regime model.
2. Core Calculation
The SPMA begins by ranking the current price change against its recent historical distribution.
Ret = close - close
Per = ta.percentrank(Ret, percentrank_lookback)
Gate = Per > percentile_gate
When the percentile gate is satisfied, the baseline updates to the current EMA value. Otherwise, it retains its previous level.
MA := na(MA ) ? emaValue : Gate ? emaValue : MA
This produces a persistent baseline whose movement is concentrated around stronger ranked price events rather than every fluctuation in price.
3. Adaptive Volatility Framework
SPMA Trend surrounds the baseline with a configurable volatility structure.
Five volatility models are available:
Standard Deviation — measures dispersion around the mean.
ATR — measures price-range volatility.
Mean Absolute Deviation — measures average absolute dispersion.
Median Absolute Deviation — provides a more robust measure of dispersion with reduced sensitivity to extreme observations.
Quantile — constructs the upper and lower boundaries from the empirical distribution of historical price deviations from the SPMA.
The Quantile model is inherently asymmetric. Positive and negative residuals are evaluated separately, allowing each side of the structure to reflect its own historical distribution.
residual = close - SPMA
= f_quantile_volatility(residual, VolLen, QuantilePct)
For the conventional volatility models, an optional asymmetric mode analyzes positive and negative log-return shocks independently. This allows upper and lower volatility expansion to respond differently when the distribution of market shocks becomes unbalanced.
The resulting volatility estimate is applied around the SPMA to create the final adaptive boundaries.
upperBand = SPMA + finalUpper * VolMul
lowerBand = SPMA - finalLower * VolMul
4. Signal Structure
The bullish regime is deliberately selective.
Price must break above the upper volatility boundary while the SPMA itself is rising. When enabled, the percentage slope of the SPMA must also exceed the configured slope threshold.
if SPMA > SPMA and close > upperBand and (UseSlope ? SlopeGate : true)
NAL := 1
A bearish regime is established when price moves below the lower adaptive boundary.
if close < lowerBand
NAL := -1
Between qualifying transitions, the previous directional state is retained. This converts individual volatility-band events into a persistent trend regime rather than a sequence of isolated crossover signals.
5. Key Features
Shock-percentile adaptive baseline.
Event-driven rather than continuously updating trend structure.
Five selectable volatility models.
Mean and median absolute-deviation volatility.
Empirical asymmetric residual quantiles.
Optional positive/negative shock-adjusted volatility bands.
Configurable SPMA slope confirmation.
Persistent bullish and bearish regime states.
Adaptive band, glow, fill, and candle visualization.
6. Use
SPMA Trend is designed as a specialized trend-regime component within a broader systematic framework.
The indicator combines three distinct layers of information: the significance of recent price movement determines when the baseline adapts, the volatility model determines how far price must expand from that structure, and the optional slope gate measures whether the underlying SPMA is developing with sufficient positive directional strength.
This creates a framework centered on identifying meaningful expansion away from an event-driven price structure rather than responding to every short-term movement.
Its primary value is as a distinct structural layer within a complete strategy architecture, where shock significance, volatility expansion, and directional development can be integrated with other independent forms of market information. インジケーター

Intraday Pullback Sniper (BB, Stoch RSI, Liquidity, HTF)An intraday entry-timing indicator.
It looks for pullbacks into a Bollinger band in the direction of the higher-timeframe bias — buying dips in an up regime, selling rallies in a down one — and marks the candle where the pullback has run far enough and the lower-timeframe structure has turned back.
It marks conditions. It does not place stops, targets or position sizes, and it does not tell you to buy. That decision stays with you.
TWO DOTS, AND THE DIFFERENCE BETWEEN THEM IS THE WHOLE IDEA
A small dot means a setup is armed. Four conditions on the same candle: the wick touched a band, the candle closed back inside and in the half that faces that band, the Stoch RSI was at its extreme within the last few candles, and the bias allows that direction. Read it as "price bounced off the band, I am watching."
A large dot means every enabled condition is met. On top of a setup still running from an earlier candle it needs the structure of the entry timeframe to have confirmed the turn, a second band touch with a rejection on this very candle, the bias, the liquidity sweep if you require one, an open session, and the cooldown after the last signal to have passed. Read it as "price did it a second time, and the structure turned in between."
The decisive part is the time gap. The band has to be touched twice, and the structure has to confirm between the two. A large dot can therefore never appear on the same candle as its own small dot — the following one at the earliest. A new small dot on a signal candle is normal: that candle meets the setup conditions as well, so it arms the next setup while the current one fires.
WHAT IT DRAWS
On the price chart: Bollinger Bands, the bias EMA, setup and signal dots with the price they occurred at, swing labels (HH / HL / LH / LL), market structure (BOS / CHOCH / MSB) for several timeframes, liquidity levels named by side and rank, and session boxes sized to the high and low each session made.
In its own pane: the Stoch RSI the logic actually runs on, its levels, dots at the extremes, the bias as a background tint, and a strip along the bottom that runs for as long as a setup is still waiting for its signal.
HOW SWINGS ARE FOUND
Everything structural — swing labels, market structure and liquidity — comes from one single engine using the classical definition of a turning point. A swing high is the highest candle of a window with the same number of candles on its left and on its right, so it is a local extreme in the literal sense. It is confirmed and never repainted, at the cost of a delay equal to that window.
Highs and lows strictly alternate. A second point of the same kind before the opposite one does not open a new leg; it replaces the current one if it is more extreme, otherwise it is discarded. Two degrees are calculated: a short one with a lookback of 2, the classic fractal, and a longer one for the larger move.
Structure breaks are judged on the close, never on wicks. A break with the prevailing direction is a BOS, one against it a CHOCH; both are MSB events.
Liquidity levels are swing points price has not closed beyond. Once a candle of that timeframe closes through a level, the orders resting there have been filled and the level is dropped. A wick through it with a close back on the old side is a sweep, not a break, so the level survives and is marked as swept.
HOW TO USE IT
Put the chart on the setup timeframe, 5 minutes by default. The entry timeframe must be lower than the chart; its candles are read from inside each chart candle. All higher-timeframe data comes from closed candles only, and signals are evaluated at the close of a chart candle, never intrabar.
The 5-minute default describes the preset, not a limit. Every timeframe is adjustable — a 15m chart with a 1H bias and 5m entry structure works the same way. The status table tells you if the chart and the setup timeframe do not match.
For alerts, pick "Any alert() function call" with the trigger "Once Per Bar Close". One alert then covers both directions, and the message carries symbol, direction, price, bias, setup direction, structure state, sweep and session. Separate SNIPER LONG and SNIPER SHORT conditions exist as well.
Every setting has a tooltip. Group 0 holds a glossary of the labels and a short guide to the alerts.
ON THE DEFAULTS
The defaults are deliberately on the safe side and the strict bias is on. If you get too few signals, switch conditions off one at a time and watch what changes — that is far more instructive than loosening several at once. The liquidity sweep is the one filter that is off by default; switch it on for the stricter variant.
LIMITATIONS, HONESTLY
Lower-timeframe data on TradingView is limited to a few months of intrabar history depending on your plan. Further back the entry structure and the signals that depend on it are missing, while everything else keeps drawing normally.
A swing is only confirmed after its window has passed, so the most recent candles cannot carry a label yet. That delay is the price of never repainting, and it is not a bug.
The indicator needs no volume, so it works on CFDs, forex and futures alike. It assumes continuous trading without large gaps — on instruments that gap overnight a band touch can come from the opening gap rather than from a rejection, and the logic is of little use there.
Suited to liquid, continuously traded instruments: index CFDs, major crypto, major forex pairs, liquid futures. On crypto the sessions carry no meaning; either switch all three off or trade the overlapping hours deliberately.
This is a tool for your own analysis, not financial advice. Past behaviour of any setup says nothing about future results. インジケーター

Aurora_Channel_V1█ Overview
The Aurora Channel is an adaptive multi-layer volatility and expansion framework that fuses Bollinger Bands, Keltner Channels, volume-sensitive dynamics, and intelligent moving-average selection into a single coherent system.
Instead of treating channels as static statistical boundaries, Aurora continuously evaluates market behavior, selects the most suitable moving-average engine in real time, expands or contracts outer envelopes according to volume and width regimes, and projects dynamic trigger and crossover levels that respond to actual price action.
The result is a hybrid channel system that blends:
• Adaptive MA selection (Auto / Adaptive Scoring)
• Volume-modulated Keltner expansion
• Hybrid Bollinger–Keltner “Aurora” bands
• Multi-layer expansion envelopes
• Peak-aware or dynamically tracking Trigger Channel
• Crossover Multiplier Engine with adaptive overlays
• Regime-aware visuals and a live Dashboard HUD
█ Why is this one unique
Most channel indicators are fixed formulas. Aurora is a full adaptive channel engine built in Pine Script v6.
It does not simply plot Bollinger or Keltner bands. It constructs a hybrid core, surrounds it with volume-aware expansion logic, maintains intelligent outer triggers, and generates dynamic crossover projection lines whose multiplier is itself adaptive.
⚪ What it does
At a high level:
Auto MA Selection Engine
Continuously scores SMA, EMA, RMA (SMMA), WMA, and VWMA candidates using a combined lag-error + jitter penalty. The engine automatically selects the MA with the lowest overall score (or lets the user force a manual choice). This becomes the center line for every subsequent calculation.
Hybrid Aurora Core
Builds classic Bollinger Bands and a volume-sensitive Keltner Channel around the selected midline. The Keltner multiplier dynamically expands between 3.0–4.0 during volume spikes. The difference between the two outer bands is then smoothed and re-applied, creating the final Aurora Upper / Lower bands.
Expansion Envelope
Measures the current Aurora width, smooths it, and projects outer envelope levels that react to both width expansion and tick-volume intensity. Optional “Breakouts Only” mode shows the envelope solely when price is already expanding beyond the Aurora bands.
Trigger Channel
Two memory modes:
• Dynamic Tracking – continuously follows expansion and decays when price returns inside.
• Hold Peak Level – latches the highest/lowest expansion extremes.
A proportional buffer is then added, creating clean outer trigger lines.
Crossover Multiplier Engine
Monitors crosses of a user-selected target (Midline, Aurora Bands, Envelope, or Trigger). On every cross it captures the current Keltner multiplier × volume ratio, latches that value, smooths it with the same adaptive MA engine, and projects symmetric overlay lines around the midline. These act as adaptive reaction / target levels.
Multi-Layer Clouds + Regime Visuals
Soft gradient fills between midline → Aurora and Aurora → Envelope, plus a softer fill toward the Trigger. Candles are colored by regime (above/below midline). A compact Dashboard HUD displays the active MA, cross target, current multiplier, expansion state, and regime.
⚪ Why it is good
The strongest aspect is the combination of adaptive center selection, volume-aware expansion, and quality-aware outer structures in one coherent framework.
Most channel tools are either pure statistical (Bollinger) or pure volatility (Keltner/ATR). Aurora merges both, then adds intelligent memory (Trigger modes) and a live crossover-driven multiplier engine. The visual hierarchy (multi-layer clouds) makes regime and expansion instantly readable, while the Dashboard keeps the key adaptive values visible without cluttering the chart.
⚪ What makes it sophisticated
• Real-time adaptive MA scoring with lag + jitter penalty
• Dynamic Keltner multiplier driven by volume ratio
• Hybrid band construction that re-injects smoothed BB–KC difference
• Dual-mode Trigger memory (peak hold vs continuous tracking + decay)
• Crossover-triggered multiplier latching and adaptive projection
• Multi-layer gradient fills that scale with the actual channel hierarchy
• Non-repainting alerts on confirmed crosses
⚪ Why It’s Marketable
Traders looking for more than a simple Bollinger or Keltner band receive a complete adaptive channel ecosystem. The Auto MA engine removes the endless debate of “which MA is best,” the Expansion Envelope and Trigger Channel give clear breakout and reaction zones, and the Crossover Multiplier Engine turns every significant cross into dynamic, volume-aware target lines. The result is a selective, visually rich, and highly configurable system that adapts to the instrument and timeframe instead of forcing a fixed formula onto every market.
⚪ Main weakness
The system is still rule-based adaptive logic, not deep learning. Performance depends on the chosen lengths, the quality of volume data (especially on tick-volume charts), and the current market regime. Over-optimization of the many parameters can reduce robustness.
█ How It Works
⚪ Auto MA Selection Engine
Scores five classic moving averages on tracking error (squared lag) plus a jitter penalty. The lowest combined score becomes the active center line used by every channel component.
⚪ Aurora Core Construction
• Midline = selected MA
• Bollinger = midline ± StdDev × multiplier
• Keltner = midline ± ATR × volume-modulated multiplier (3.0–4.0)
• Aurora bands = Keltner ± smoothed (BB – KC) difference
⚪ Expansion Envelope
Average Aurora width is multiplied by a base factor and further expanded by excess volume. The resulting offset is added outside the Aurora bands. Optional breakout-only plotting keeps the chart clean until genuine expansion occurs.
⚪ Trigger Channel
On expansion the system either latches the extreme (Hold Peak) or follows and slowly decays the level (Dynamic Tracking). A proportional buffer creates the final trigger lines.
⚪ Crossover Multiplier Engine
Detects crosses of the chosen target, captures kcMult × volRatio, latches the value, smooths it with the adaptive MA engine, and projects midline ± ATR × smoothed multiplier as dotted overlay lines.
█ How To Use
• Use the Aurora bands as the primary dynamic support/resistance zone.
• Watch the Expansion Envelope for genuine volatility breakouts.
• Treat the Trigger Channel as outer reaction / invalidation levels.
• The Crossover Multiplier lines act as adaptive targets or reaction zones after significant crosses.
• Candle color and the Dashboard HUD give instant regime and state information.
• Enable alerts on the crossover condition for automated notifications.
█ Settings
Auto MA Selection Engine
• MA Selection Engine (Auto Adaptive / Manual)
• Manual MA type
• Jitter Penalty strength
Core Channel Engine
• Base Center Length
• Bollinger StdDev multiplier
• Keltner ATR Length
• Tick Volume MA Length & Expansion Factor
• Band Difference MA Length
Expansion Envelope
• Show / Breakouts Only
• Expansion MA Length
• Envelope Base Multiplier & Volume Boost
Trigger Channel
• Show Trigger
• Buffer Multiplier
• Memory Mode (Dynamic Tracking / Hold Peak Level)
Crossover Multiplier Engine
• Show Dynamic Lines
• Cross Monitoring Target
• Multiplier MA Smoothing Length
Visual Settings
• Candle Coloring
• Multi-Layer Cloud
• Dashboard HUD
• Full color customization for every layer
█ Disclaimer
The content provided in this script is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. Past performance is not indicative of future results. All trading involves risk, and you are solely responsible for your own trading decisions. インジケーター

Volatility Expansion Score (0-4) v2.2 [TotoMazter]Volatility Expansion Score (0-4)
WHAT IT IS
This indicator detects one specific market state: a compressed market whose calm is starting to break. It scores every closed bar from 0 to 4, one point per condition:
Compressed regime — ATR% in the lower tercile of its own last 500 bars
Expansion starting — ATR% higher than on the previous bar
Narrow Bollinger Bands — band width in the lower tercile of its last 120 bars
Volume waking up — tick volume above its 100-bar mean (z-score > 0)
Score 3 (orange) is the signal threshold; score 4 (red) is a full trigger. Everything is self-normalized (rolling percentiles and z-scores, no absolute levels), so the indicator needs no recalibration across price regimes: in our research it behaved the same with gold at 1,800 and at 4,800.
WHAT IT DOES NOT DO — READ THIS FIRST
It does NOT predict direction. In the research program behind this script, the directional question was tested three separate ways on 14 years of XAUUSD minute data — 132 technical variables, a dedicated 40-feature study (intraday synthetic dollar index, gold/silver lead-lag, compression context, M1 microstructure, path features), and real aggressor order flow from COMEX gold futures — and all three came back null. A 4/4 score says "an impulse is more likely than usual", never which way. Any use of this tool as a bullish/bearish signal is outside what was validated.
It also does not promise big moves in dollar terms. The signal fires when ATR is compressed (about 0.83x its normal level), and the subsequent move measured in % of price is slightly SMALLER than average (about 0.97x). What increases is the move relative to current volatility. If you size stops and targets in ATR units (R multiples), the historical edge is real; if you think in dollars, there is none.
MEASURED RESULTS (all historical, XAUUSD 1h, 2013-2026, ~79,000 bars)
Out-of-sample validation on a pre-registered 2023-2026 holdout, opened once: bars with score >= 3 were followed by a 2-ATR impulse 1.95x more often than the base rate (95% CI 1.76-2.03). Score = 4: 2.73x (CI 2.09-2.94).
Honest base rates: with a ~5% base impulse rate, 2.7x lift means roughly 13-14% of full triggers are followed by an impulse. Most signals are NOT followed by a large move. Position sizing must assume this.
The follow-through advantage, measured in ATR units and controlled for time of day, is about x1.106, favorable in all 21 measurable hourly buckets and in 13 of 14 years. Without the time-of-day control the raw number is x1.139 — the control matters, and the built-in table applies it for you.
Where signals cluster on gold: the New York morning (13:00-15:00 UTC) and the London open (08:00-09:00 UTC). The most volatile hour of gold's day in this dataset is 14:00 UTC (about 1.8x the daily average hourly range).
STOCKS (NVDA, AMD, TSLA — high-volume, high-volatility test set)
The signal transfers, but with roughly half the strength: x1.04-1.08 in ATR units after the same time-of-day control (below 1 in dollar terms). Three structural rules came out of that validation and are enforced by the script's guards:
Do not use 5-minute charts: intraday volume is U-shaped and the signal degenerates into a closing-auction detector (a fake x1.68 "edge" came entirely from the last 30 minutes of the session).
Do not use 1-hour charts on RTH equities: the session's partial bar has a smaller range by construction and concentrates signals. The script excludes partial bars automatically (marked with a dot).
Use 15m or 30m, and keep the characterization horizon inside the session (H <= 12 on 15m, H <= 11 on 30m). Windows containing long closures (overnight gaps, weekends) are excluded by the gap guard.
Earnings are not the driver: excluding extreme-gap days does not change the result.
THE BUILT-IN CHARACTERIZATION TABLE
The table answers, for THE SYMBOL AND TIMEFRAME ON YOUR CHART, whether the signal has historically preceded larger moves, using three measures: raw MFE in ATR (inflated by the denominator and by time of day — reference only), MFE in % of price (immune to the denominator), and the intra-hour advantage (computed within each hour of day, then aggregated — the one that decides, highlighted in yellow). It also reports the ATR-at-signal ratio (~0.8 expected) and the maximum hourly concentration of signals (if it exceeds ~8 pp, part of what you see is the clock, not the market). If it says "short sample", the guards are refusing to output a number that cannot be measured cleanly on your chart — that is a feature.
WHY IT IS ORIGINAL
Rolling percentiles converted to the exact convention of pandas rolling rank, so the script reproduces the research module it was ported from (practical parity check: on XAUUSD 1h, score >= 3 should fire on roughly 17% of bars, score = 4 on roughly 3.7%).
Wilder ATR (RMA), population standard deviations, closed-bar evaluation with alerts on bar close, and an entry reference at the next bar's open — no repainting of the validated signal.
Session guards: partial-bar exclusion (any intraday bar shorter than its timeframe) and a data-measured gap guard (characterization windows may not contain a closure longer than 3x the timeframe), so equity overnight gaps and weekends do not contaminate the statistics while gold's 1-hour daily break does not block them.
A self-auditing characterization table with denominator-aware and time-of-day-controlled measures. It will happily tell you the signal does NOT work on your chart.
SETTINGS
Signal windows (14 / 500 / 120 / 100) and tercile cuts are the canonical values of the validated module; changing them invalidates every reference number above. "Confirm on bar close" keeps the indicator inside its validated definition. The alert message includes the score breakdown and states that the entry reference is the next bar's open. The characterization table can be displayed in English or Spanish via the "Table language" setting.
LIMITATIONS
All figures are historical measurements from the research program described above; past behavior does not guarantee future behavior. The stock characterization is in-sample (no reserved validation window). This is a statistical tool for regime awareness — when to pay attention — not a trading system: it provides no direction, no entries, and no risk management. インジケーター

ストラテジー

MACD Pullback Validation with Divergence Filters [algotim]MACD Pullback Validation with Divergence Filters is a momentum confirmation indicator designed to identify continuation opportunities after temporary pullbacks rather than generating signals from every MACD crossover.
Instead of relying on a single event, the script evaluates multiple stages of market behavior. It begins by detecting pullbacks within an existing momentum cycle, waits for momentum recovery, confirms that price and the MACD histogram are no longer weakening, and optionally verifies that the setup occurs near significant price locations using pivot-derived support/resistance levels or Bollinger Band extremes.
The objective is to reduce low-quality MACD signals by requiring several independent conditions to align before a bullish or bearish signal is displayed.
Problem Statement
Traditional MACD crossover signals frequently occur during ranging markets or immediately after short-lived momentum fluctuations. Likewise, divergence signals alone often appear too early and do not necessarily indicate that momentum has already shifted back in the anticipated direction.
This indicator addresses that limitation by requiring multiple confirmation stages rather than treating each condition as an independent trading signal.
Instead of responding to isolated events, it evaluates whether a pullback has occurred, whether momentum is rebuilding, whether a recent divergence supports the move, and whether price is located in an area where reversals may be more meaningful.
Methodology
The analytical framework consists of several sequential validation layers.
First, MACD crossover events occurring above or below the zero line are monitored to identify temporary pullbacks within an existing momentum cycle. These crossover events establish the recent pullback state.
Next, the script monitors the MACD histogram. Bullish momentum requires the histogram to remain above zero while increasing relative to the previous bar. Bearish momentum requires the histogram to remain below zero while decreasing.
The indicator then waits for the MACD line itself to cross the zero line, treating this as evidence that momentum has shifted back in the direction of the prevailing move.
Histogram divergence is calculated using confirmed pivot highs and pivot lows. Regular bullish divergence requires price to form a lower low while the histogram forms a higher low. Regular bearish divergence requires price to form a higher high while the histogram forms a lower high. Hidden divergence calculations are also available for users who wish to visualize continuation-type divergence.
Finally, optional contextual filters may be enabled.
The Support/Resistance filter checks whether the current price is interacting with recently confirmed pivot-based levels.
The Bollinger Band filter requires bullish setups to occur after closing below the lower band and bearish setups after closing above the upper band, helping identify momentum reversals from statistically extended price conditions.
Signals are generated only after every enabled validation layer has been satisfied.
Signal Workflow
Bullish workflow
1. Detect a recent bearish MACD crossover occurring above the zero line to identify a pullback.
2. Confirm a regular bullish MACD histogram divergence using pivot comparisons.
3. Require the MACD histogram to begin strengthening.
4. Wait for the MACD line to cross back above the zero line.
5. Optionally require interaction with recent pivot-based support.
6. Optionally require price to close below the lower Bollinger Band.
7. Display a bullish signal.
Bearish workflow
1. Detect a recent bullish MACD crossover occurring below the zero line.
2. Confirm a regular bearish MACD histogram divergence.
3. Require bearish histogram acceleration.
4. Wait for the MACD line to cross below the zero line.
5. Optionally require interaction with recent pivot-based resistance.
6. Optionally require price to close above the upper Bollinger Band.
7. Display a bearish signal.
Why This Indicator Is Different
Many MACD indicators generate signals immediately after crossovers, while divergence indicators typically evaluate price and momentum independently.
This script integrates these concepts into a sequential validation framework where each condition serves a different analytical purpose.
The pullback logic identifies temporary counter-trend momentum.
The histogram evaluates whether momentum is rebuilding.
The zero-line crossover confirms broader momentum alignment.
Divergence provides evidence that momentum and price are no longer moving in agreement.
Optional pivot interaction and Bollinger Band filters add market-location confirmation before a signal is produced.
Rather than displaying every crossover or every divergence, the indicator waits until multiple independent conditions align before producing a trading signal.
Inputs
The script includes configurable parameters for:
* MACD fast, slow, and signal periods
* Pullback lookback window
* Divergence pivot lengths
* Divergence range settings
* Optional hidden divergence display
* Optional Support/Resistance validation
* Pivot sensitivity
* Optional Bollinger Band confirmation
* Bollinger Band length and standard deviation
Alerts
Built-in alert conditions are available for:
* Bullish Signal
* Bearish Signal
* Regular Bullish Divergence
* Hidden Bullish Divergence
* Regular Bearish Divergence
* Hidden Bearish Divergence
Practical Usage
The indicator is intended for traders who prefer waiting for momentum confirmation after temporary pullbacks instead of reacting to every MACD crossover.
Optional Support/Resistance and Bollinger Band filters can be enabled to make signal selection more restrictive when additional price-location confirmation is desired.
Limitations
MACD histogram divergence relies on confirmed pivot highs and lows, so divergence signals are only confirmed after the required pivot bars have formed.
Support and resistance levels are derived from pivot calculations and represent algorithmically identified swing points rather than manually drawn market structure.
Like any momentum-based indicator, performance may vary across different market conditions and should be evaluated alongside a broader trading plan and appropriate risk management.
Notes
This indicator is intended as an analytical decision-support tool. It combines momentum analysis, pullback recognition, divergence detection, and optional contextual filters into a structured confirmation process rather than relying on any individual condition as a standalone trading signal. インジケーター

Daily BB (Historical Plotting with RTH/ETH/24H)Daily BB (RTH/ETH/24H) projects Daily Bollinger Bands onto intraday charts using Regular Trading Hours (RTH) daily data as the underlying daily reference.
The script plots a projected Daily Bollinger Band basis together with projected upper and lower bands. By default, the basis uses a 20-day calculation and the bands use ±2 standard deviations. The length, standard-deviation multiplier, and band fill can be adjusted in the indicator settings.
Unlike a standard Bollinger Band calculated from the chart’s intraday bars, this indicator maintains a Daily calculation. Completed RTH daily closes provide the historical portion of the Daily window, while the current intraday price is used as the projected close for the unfinished Daily period. This allows the Daily basis and bands to update throughout the trading day rather than remaining fixed until the Daily candle closes.
The indicator is designed for use on intraday charts with TradingView’s RTH, ETH, or 24H session settings. Daily history is sourced from the symbol’s regular trading session, so overnight and extended-hours prices can update the projected Daily values without becoming separate completed Daily observations.
Daily rollover is based on the New York calendar date. On normal 24H weekdays, the projected Daily window advances at 00:00 ET. After a weekend, TradingView has no intervening Saturday bars and does not resume data until Sunday evening. Sunday 20:00 ET is therefore the first available Sunday candle, so the projection can reseed there using Friday’s completed RTH close. This does not create a Sunday RTH Daily candle. At Monday 00:00 ET, there may be no additional visible seed change because Sunday did not produce a completed RTH Daily candle.
At the first RTH bar, the script synchronizes the projection with the confirmed RTH Daily history. Higher-timeframe data requests are structured so unfinished Daily values are not inserted into earlier historical bars.
How to use it: The projected bands show where the Daily Bollinger Band would be if the current intraday price were the Daily close. They can therefore be used to view the developing Daily BB structure before the session has finished. The values remain projections until the applicable RTH Daily candle is complete.
This script uses the same RTH-based projected Daily framework as my Daily SMA indicator, but performs a distinct Bollinger Band calculation. In addition to the projected Daily mean, it calculates projected Daily variance and standard-deviation bands to produce the upper and lower envelope. This provides functionality beyond a moving-average variation and is intended for traders who want developing Daily Bollinger Band context visible directly on an intraday RTH, ETH, or 24H chart. インジケーター

TF: BB/KC and Potential Reversals (BBKC)TradingFlow: BB/KC and Potential Reversals (BBKC)
BBKC combines Bollinger Bands (BB) and a Keltner Channel (KC) in one clean overlay, then uses band re-entry and momentum conditions to highlight potential bullish and bearish reversals. Its purpose is to make volatility structure, trend behaviour, compression, expansion, and possible turning points easier to read without covering the chart with separate indicators.
The diamond markers are hints that price may be reacting after an extended move or that momentum may be fading. They are not automatic trade instructions, and they do not mean a reversal is confirmed.
A Unified BB / KC View
Bollinger Bands and Keltner Channels describe volatility in different ways:
• Bollinger Bands: use standard deviation, so their width changes as price movement expands or contracts.
• Keltner Channel: uses ATR around an EMA to create a smoother channel for reading trends and pullbacks.
BBKC plots both structures with one visual theme rather than stacking two unrelated indicators. The more visible aqua boundaries are the KC, while the lighter boundaries are the BB. Subtle shading makes it easier to see how the two envelopes contract and expand around price, and the full KC area can also be lightly shaded if preferred.
This merged presentation is useful even without the reversal markers. The slope and direction of the channels, the side of the channel where price is holding, and the way price reacts at the boundaries can all provide trend context.
Why the Default KC Multiplier Is 1.6
By default, the KC uses a 20-period EMA and an ATR multiplier of 1.6. Many modern Keltner Channel implementations use a 2.0 ATR setting. BBKC uses 1.6 to keep the boundaries somewhat closer to price, making routine pullbacks, boundary tests, and re-entry behaviour easier to see. This is a visual design choice, not a claim that 1.6 is inherently more accurate.
The multiplier is adjustable. Different instruments and trading styles may benefit from a wider or narrower channel, so 1.6 should be understood as a useful default rather than a universal optimum.
How to Read the Potential Reversal Markers
• Green diamond: a bullish potential reversal. Price has reacted from a lower volatility boundary and passed the enabled filters.
• Red diamond: a bearish potential reversal. Price has reacted from an upper volatility boundary and passed the enabled filters.
By default, the script looks for the close to cross back inside a lower or upper KC or BB boundary. An optional rejection rule also checks whether the current or preceding candle touched or pierced a Bollinger Band before the current candle closed back inside.
The optional filters are designed to reduce ordinary boundary crossings:
• Volatility context: one of the two preceding closes must have been outside the corresponding boundary of a separate ATR-based Volatility Channel.
• RSI momentum: RSI must be below the bullish threshold or above the bearish threshold. Both levels are adjustable.
• Stoch RSI extreme: within a recent validity window, at least one completed bar must have both smoothed K and D in the 90/10 extreme zone. The window is adjustable and defaults to the two bars before the potential reversal; the current re-entry bar is excluded.
Potential reversal conditions are confirmed at bar close. The separate Volatility Channel can remain hidden while its values are still used by the filter; display it when you want to inspect those boundaries on the chart.
What a Marker Can and Cannot Mean
A potential reversal may become a major trend reversal, but it may also be only a small pullback, a pause within the existing trend, or a failed signal followed by continuation. The script detects a filtered move back from a volatility boundary; it cannot know in advance which outcome will follow.
The marker is therefore more useful as a prompt to investigate the chart than as a standalone entry command. A marker appearing against a strong trend should generally require more evidence than one appearing at a well-established structural level after an exhausted move.
Practical Reading Process
1. Read the slope and position of the BB / KC structure to understand the current trend and volatility regime.
2. Note whether the BB is compressing inside the KC or expanding beyond it.
3. When a diamond appears, check whether it is located near meaningful market structure rather than evaluating the marker in isolation.
4. Look for confirmation through price action, trend structure, support and resistance, or a failed breakout.
5. Add independent context such as volume profile, high- and low-volume areas, and the reaction around important support or resistance levels.
6. Define invalidation and risk before considering an entry.
Alerts
Alerts can be created for bullish potential reversals, bearish potential reversals, or either direction. They use the same final confirmed conditions and remain available when chart markers are hidden. For live use, “Once Per Bar Close” is recommended.
Important
BBKC is a chart-reading and opportunity-screening tool. Its markers are filtered potential reversals, not probabilities, guaranteed turning points, or complete trading systems. Settings behave differently across instruments and timeframes. Always combine the output with broader trend analysis, market structure, volume context, support and resistance, and appropriate risk management.
---
TradingFlow: BB/KC and Potential Reversals (BBKC)
BBKC 把布林通道(Bollinger Bands,BB)與肯特納通道(Keltner Channel,KC)整合在同一張主圖,並根據價格重新進入通道及動能條件,標示潛在的多頭和空頭反轉。它讓波動、趨勢、收縮、擴張和可能的轉折位置更容易判讀,不用另外疊加兩個指標。
菱形標記只是一個提示:價格經過一段延伸後,可能開始回頭,或原有動能正在減弱。它不是自動交易指令,也不代表反轉已經確認。
整合的 BB / KC 顯示
BB 與 KC 以不同方式描述波動:
• 布林通道: 使用標準差,會隨價格波動的擴大和收窄而改變。
• 肯特納通道: 以 EMA 為中心,利用 ATR 建立較平滑的通道,適合觀察趨勢與回調。
BBKC 用統一的配色呈現兩者。較清晰的水藍色邊界是 KC,較淡的邊界是 BB。淡色填充可幫助觀察兩組通道如何隨價格收縮和擴張,也可選擇顯示整個 KC 範圍。
即使不看反轉標記,這組通道本身也能幫助判斷趨勢。可留意通道斜率、價格主要停留在哪一側,以及價格接近邊界時的反應。
為何 KC 預設倍數是 1.6
KC 預設使用 20 週期 EMA 和 1.6 倍 ATR。現代 KC 指標常見的 ATR 設定是 2.0;BBKC 改用 1.6,讓邊界稍微靠近價格,更容易看到一般回調、邊界測試及價格重新進入通道的情況。這是為了方便讀圖,並不代表 1.6 本身更準確。
倍數可以自行修改。不同市場、時間週期和交易方式可能適合不同寬度,因此 1.6 只是實用的起始設定,並非所有情況下的最佳值。
如何閱讀潛在反轉標記
• 綠色菱形: 多頭潛在反轉。價格從下方邊界回升,並通過已啟用的過濾條件。
• 紅色菱形: 空頭潛在反轉。價格從上方邊界回落,並通過已啟用的過濾條件。
預設會尋找收盤價重新進入 KC 或 BB 邊界的情況。也可加入額外條件:目前或前一根 K 線先觸及/突破 BB,然後目前 K 線收回通道內。
各項過濾器用於減少普通邊界穿越造成的雜訊:
• 波動背景: 前兩根 K 線中,至少一根的收盤價必須曾位於另一組 ATR 波動通道的相應邊界之外。
• RSI 動能: 多頭標記要求 RSI 偏低,空頭標記要求 RSI 偏高;門檻可自行調整。
• Stoch RSI 極端值: 在近期有效期內,至少一根已完成 K 線的平滑 K、D 必須同時進入 90/10 極端區域。有效期可以調整;預設檢查潛在反轉前的兩根 K 線,不包括目前重新進入通道的 K 線。
潛在反轉條件只會在 K 線收盤後確認。另一組 Volatility Channel 即使隱藏,其數值仍可用於過濾;如想直接查看這些邊界,可在設定中顯示它。
標記可能代表甚麼
潛在反轉可能最終發展成主要趨勢反轉,也可能只是一個小型回調、原有趨勢中的短暫停頓,甚至是錯誤提示,之後價格繼續沿原方向運行。這套判斷只能找出價格從波動邊界回頭的跡象,無法預先知道之後會出現哪一種結果。
標記的作用是提醒你多看一眼,而不是叫你立即進場。逆著強勁趨勢出現時,通常需要更多確認;若它出現在明確的支撐、阻力或區間邊緣,而且此前走勢已有明顯延伸,才更值得留意。
實用判讀流程
1. 先閱讀 BB / KC 的斜率及價格位置,判斷目前趨勢與波動狀態。
2. 觀察 BB 正在 KC 內部收縮,還是向 KC 外部擴張。
3. 菱形出現時,先看它是否接近支撐、阻力或區間邊緣,不要只看標記本身。
4. 利用價格行為、趨勢結構、支撐阻力或假突破尋找確認。
5. 配合成交量分布(Volume Profile)、高/低成交量區,以及重要支撐阻力附近的反應。
6. 考慮進場前,先定義失效位置及風險。
警報
如需追蹤,可分別在多頭潛在反轉、空頭潛在反轉,或兩者任一出現時建立警報。警報只會在收盤條件確認後觸發;隱藏圖表上的菱形標記不會影響警報。即時使用時,建議選擇「Once Per Bar Close」。
重要說明
BBKC 是圖表判讀及機會篩選工具。標記只表示經過條件過濾的潛在反轉,不代表任何勝率,也不是必然轉折或完整交易系統。不同市場和時間週期的表現可能不同。使用時仍要結合趨勢、市場結構、成交量、支撐阻力和風險管理。
---
TradingFlow: BB/KC and Potential Reversals (BBKC)
BBKCは、ボリンジャーバンド(BB)とケルトナーチャネル(KC)を1つの見やすいオーバーレイに統合し、バンドへの再進入とモメンタム条件から、強気・弱気の潜在的な反転を表示します。複数の指標を重ねてチャートを複雑にすることなく、ボラティリティ構造、トレンド、収縮、拡大、転換候補を読みやすくすることが目的です。
ひし形のマーカーは、伸びた値動きが反応し始めた、またはモメンタムが弱まりつつある可能性を知らせるヒントです。自動売買の指示ではなく、反転が確定したことも意味しません。
BBとKCを統合した表示
BBとKCは異なる方法でボラティリティを表します。
• ボリンジャーバンド: 標準偏差を使うため、価格のばらつきの変化に反応します。
• ケルトナーチャネル: EMAを中心にATRで幅を作る、より滑らかなチャネルです。トレンドや押し戻りの確認に使えます。
BBKCは両者を共通の配色で整理して表示します。より明瞭なアクア色の境界がKC、薄い境界がBBです。控えめな色付けにより、2つのチャネルが価格の周囲で収縮・拡大する様子を見やすくし、必要に応じてKC全体の範囲も薄く表示できます。
この統合表示は、反転マーカーを使わない場合にも有用です。チャネルの傾き、価格が維持されている側、境界での反応から、トレンドの背景を読み取れます。
KCのデフォルト倍率が1.6である理由
KCは、デフォルトで20期間EMAと1.6倍のATRを使用します。現代的なKCでは2.0倍のATRもよく使われますが、BBKCは境界を価格に少し近づけ、通常の押し戻り、境界テスト、チャネルへの再進入を見やすくするために1.6倍を採用しています。これは見やすさのための設計であり、1.6倍のほうが本質的に正確という意味ではありません。
倍率は調整可能です。銘柄、時間軸、取引スタイルによって適切な幅は異なるため、1.6は実用的な初期値であり、すべての市場に共通する最適値ではありません。
潜在リバーサル・マーカーの見方
• 緑のひし形: 強気の潜在リバーサル。価格が下側のボラティリティ境界から反応し、有効なフィルターを通過した状態です。
• 赤のひし形: 弱気の潜在リバーサル。価格が上側のボラティリティ境界から反応し、有効なフィルターを通過した状態です。
デフォルトでは、終値がKCまたはBBの境界内へ戻る動きを検出します。追加条件では、現在または直前の足がBBに到達・突破し、その後に現在の終値がバンド内へ戻った場合も候補にできます。
各フィルターは、通常の境界通過によるノイズを抑えるために使用します。
• ボラティリティ背景: 直前2本のうち少なくとも1本の終値が、別のATRベースのVolatility Channelの対応する境界より外側であることを要求します。
• RSIモメンタム: 強気ではRSIが下側しきい値未満、弱気では上側しきい値を超えていることを要求します。どちらもしきい値を調整できます。
• Stoch RSIの極端値: 直近の有効期間内で、少なくとも1本の確定足において平滑化されたKとDが同時に90/10の極端ゾーンへ入っていることを要求します。有効期間は調整でき、デフォルトでは潜在リバーサル前の2本を確認します。現在の再進入足は含めません。
潜在リバーサルの条件は足の確定時にのみ成立します。Volatility Channelは非表示でもフィルターに使われ、必要に応じてチャート上に境界を表示できます。
マーカーが意味する可能性
潜在的な反転は、大きなトレンド転換につながる場合もあれば、小さな押し戻り、既存トレンド内の一時停止、または誤ったシグナルとなってそのままトレンドが継続する場合もあります。検出しているのは、フィルターを通過したボラティリティ境界からの戻りです。その後の結果を事前に判断することはできません。
そのため、マーカーは単独のエントリー指示ではなく、チャートを詳しく確認するためのヒントとして使うのが適切です。強いトレンドに逆らうマーカーには、明確な構造水準で伸び切った後に出るマーカーよりも多くの確認が必要です。
実践的な読み方
1. BB / KCの傾きと価格位置から、現在のトレンドとボラティリティ状態を確認します。
2. BBがKCの内側で収縮しているか、外側へ拡大しているかを確認します。
3. ひし形が出たら、重要な市場構造の近くにあるかを確認し、マーカーだけで判断しないようにします。
4. プライスアクション、トレンド構造、サポートとレジスタンス、または失敗したブレイクから確認を探します。
5. ボリュームプロファイル、高・低出来高帯、重要なサポート/レジスタンスでの反応など、独立した情報を組み合わせます。
6. エントリーを検討する前に、無効化水準とリスクを定義します。
アラート
強気、弱気、またはいずれかの方向に潜在リバーサルが現れた場合のアラートを作成できます。どれも同じ足の確定条件で作動し、チャート上のマーカーを非表示にしても機能します。リアルタイムでは「Once Per Bar Close」の使用を推奨します。
重要
BBKCはチャート分析と候補抽出のためのツールです。マーカーはフィルターを通過した潜在的な反転を示すものであり、確率、保証された転換点、または完全な売買システムではありません。銘柄や時間軸によって挙動は異なります。より広いトレンド分析、市場構造、出来高、サポートとレジスタンス、適切なリスク管理と組み合わせて使用してください。
インジケーター

Squeeze AI - Breakout Direction Probability [Dots3Red]🗜️ SQUEEZE AI - BREAKOUT DIRECTION PROBABILITY
A squeeze tells you volatility is loading. It has never told you which way it's going to release. This script fixes that second half of the problem - not by predicting the future, but by remembering the past. Every completed squeeze on your chart becomes a measured data point, and when a new squeeze fires, the script reports what the most similar past squeezes actually did.
✨ WHY THIS MATTERS
Bollinger-inside-Keltner squeeze detection has existed for years, and every version of it does the same thing: flags that a squeeze is happening, then flags that it released. What happens next has always been left to the trader's judgment.
This script keeps score instead. It records the character of every squeeze that completes — how long it ran, how tight it got, what volume and momentum looked like — and pairs that with what price genuinely did afterward. When the next squeeze fires, it doesn't guess; it looks up the most similar squeezes this chart has actually produced and reports their real outcomes.
📊 ▲ 68% | +2.1 ATR | N=34
That reads as: of the 34 most similar past squeezes on this chart, 68% broke upward, averaging a 2.1 ATR move. Measured history, not a formula assuming squeezes behave a certain way.
⚙️ HOW IT WORKS
🗜️ Squeeze detection — the standard definition: Bollinger Bands (mean ± standard deviation) compress fully inside Keltner Channels (mean ± ATR). The moment BB's upper band drops below KC's upper band and BB's lower band rises above KC's lower band, a squeeze is active. A minimum-duration filter discards brief compressions too short to carry real information.
📐 Compression depth — beyond simple on/off, the script tracks how tight the squeeze actually gets: 0% means BB has barely tucked inside KC, approaching 100% means BB has nearly collapsed to a point. This becomes one of the features used for matching, since a shallow squeeze and an extreme one are genuinely different situations.
🧠 The KNN engine — every completed squeeze is stored as five measurements: duration, compression depth, average volume behavior during the squeeze, momentum at release, and volatility context. When it resolves, the actual outcome — direction and distance in ATR — is recorded against those five measurements. A new squeeze is compared against this stored history, and the K most similar past squeezes vote on direction and expected distance.
🔮 Live anticipation — while a squeeze is still compressing, before it even releases, an optional live label shows the KNN's current lean based on the squeeze's characteristics so far. This updates as the compression develops, so you're not waiting for the release to get a read.
🔒 Non-repainting — squeeze tracking, firing, and outcome grading all happen only on confirmed bars. The live anticipation label is explicitly a live-state readout (clearly distinguished from the historical fire labels) and is deleted and redrawn each update rather than left as a permanent mark.
🧭 HOW TO USE
1️⃣ Wait for the sample count. Early on a fresh chart, fire labels will show "Training… (4/12)" instead of a probability. The engine needs a real base of completed squeezes before its reads mean anything — don't trust a probability built on a handful of samples.
2️⃣ Read the N, not just the percentage. "▲ 68% | N=34" is a meaningfully different statement than "▲ 68% | N=8" — the first is a real pattern, the second could easily be noise. The script always shows N specifically so you can judge that yourself.
3️⃣ Watch the live anticipation label as the squeeze develops. A squeeze's characteristics (duration, compression, volume) can shift the KNN lean while it's still compressing — the live label lets you see that lean forming before release, not just after.
4️⃣ Check the dashboard's global stat for chart-level context. Beyond any single squeeze, the dashboard tracks what percentage of every recorded squeeze on this chart broke upward overall — useful context for whether this instrument has had a directional bias in its squeeze behavior.
5️⃣ Tune the minimum squeeze duration to the timeframe. A 4-bar minimum on a daily chart and a 4-bar minimum on a 1-minute chart represent very different amounts of real compression — adjust it to the timeframe you're actually trading.
🛠️ SETTINGS
🗜️ Squeeze Detection
• BB Length / Multiplier, KC Length / Multiplier — standard Bollinger and Keltner parameters
• Min Squeeze Duration — shortest compression the script will bother recording
📊 KNN Engine
• Outcome Window — bars after release over which direction and distance are measured
• K Neighbors — how many similar past squeezes vote on the current one
• Max / Min Training Samples — memory cap and the minimum before probabilities display
• ATR Baseline Period — the volatility-context window used in matching
🎨 Visualization
• Fill between BB — boolean to control area fill
• Squeeze Background Tint, Squeeze Zone Box — two independent ways to mark the active compression, usable together or separately
• Fire Labels with Probability — the KNN readout shown on release
• Live Anticipation Label — the developing-squeeze readout described above
🖥️ Dashboard
• Show/hide, position — current squeeze state and duration, compression %, live KNN read, and chart-wide sample totals
EXAMPLE (area fill between BB bands)
📝 NOTES
Squeeze frequency varies enormously by instrument and timeframe — a fast-moving asset will accumulate the sample count needed for meaningful probabilities much faster than a slow one. On a new chart, expect several squeezes to pass before the KNN read becomes genuinely informative rather than a placeholder.
⚠️ DISCLAIMER
This is an analytical and visualization tool. It does not generate trade signals and does not constitute financial advice. Historical squeeze outcomes do not guarantee how any future squeeze will resolve. インジケーター

BB Squeeze Histogram
BB Squeeze Histogram (BBSH) — User Manual
Companion indicator to Bollinger-Bands.Multi_Choice (BBMC). Plots the width of the Bollinger envelope as a MACD-style histogram, signed by which side of the basis MA price is on.
1. What It Shows
Two things are encoded into one histogram:
Above / below the neutral line — whether price is currently above or below the basis moving average. The neutral line is 0 in raw mode, 50 in normalized mode.
Bar length from the neutral line — how wide the Bollinger envelope currently is (the distance between the upper and lower band, at your chosen standard-deviation multiple). Long bars = wide bands = high volatility. Short bars hugging the neutral line = tight bands = low volatility / squeeze.
Put together, a bar answers two questions at once: which side of trend is price on, and how stretched or compressed is the market right now.
2. Reading the Colors
Bars use a 4-color scheme, same idea as a standard MACD histogram:
Color
Meaning
Bright teal
Above neutral, band width expanding vs. the prior bar
Pale teal
Above neutral, band width contracting vs. the prior bar
Bright red
Below neutral, band width expanding vs. the prior bar
Pale red/pink
Below neutral, band width contracting vs. the prior bar
Bright bars mean volatility is actively growing on that side of the trend. Pale bars mean the move is losing steam or the range is tightening — often the first sign a squeeze is building.
3. Extra Plots on the Panel
Neutral line — gray line at 0 (raw mode) or 50 (normalized mode). Crossings mark price crossing the basis MA.
Red line (Avg Positive Column) — the running average width of only the positive (above-neutral) bars, over the "Column average lookback" period. Shows what a "normal" bullish-side expansion looks like recently. Bars poking well above this line are expanding harder than usual.
Green line (Avg Negative Column) — same idea, mirrored for the negative (below-neutral) bars.
Yellow dots on the neutral line — squeeze markers. Appear when the current band width is the tightest reading over the "Squeeze lookback" period — i.e., the bands are as compressed as they've been in a while. These tend to precede expansion moves.
4. Inputs
Input
Default
What it does
Source
ohlc4
Price series used for the basis MA and standard deviation calc
Length
20
Lookback for both the basis MA and the standard deviation
Band SD (± this value)
3.0
The standard-deviation multiple defining the band edges (matches your BBMC R3/S3 by default)
ALMA offset
0.89
Only used if MA Type = ALMA
ALMA sigma
5
Only used if MA Type = ALMA
Normalize to 0-100 scale
off
See Section 5
Normalize rank lookback
200
Bars of width history the 0-100 rank is measured against (normalized mode only)
Squeeze lookback
100
Bars used to detect the "tightest width" for the yellow squeeze dots
Column average lookback
100
Bars used to compute the red/green average-column lines
MA Type
VWMA
Basis moving average type — SMA, EMA, RMA, WMA, VWMA, VWAP, HMA, SWMA, or ALMA
5. Normalize Toggle — Important
Off (default): the histogram plots raw dollar-width — literally (upper band − lower band). Values are in the same units as price, so a reading of "8,000" on BTC/USD means the envelope is $8,000 wide. The neutral line sits at 0.
On: the histogram is rescaled to a bounded 0–100 oscillator with 50 as the neutral level. The current band width is percentile-ranked against its own history over the "Normalize rank lookback" period (default 200 bars), producing a 0–100 rank. That rank is halved to a 0–50 magnitude and then measured out from 50 — upward when price is above the basis MA, downward when below.
Reading the normalized scale:
Reading
Meaning
Near 100
Price above the basis MA, band width at the widest end of its recent history
~75
Price above basis, width around the middle of its historical range
Near 50
Squeeze — width at the tightest end of its history, regardless of side
~25
Price below basis, width around the middle of its historical range
Near 0
Price below the basis MA, band width at the widest end of its recent history
Note that the distance from 50 is the volatility read and the side of 50 is the trend read — they are independent. A reading of 52 and a reading of 48 both describe a tightly squeezed market; they just differ on which side of the MA price closed.
Because the value is a percentile rank, it is self-scaling: readings are directly comparable across assets, timeframes, and price regimes without retuning. The trade-off is that it tells you where width sits relative to its own recent history, not its absolute size — a 95 reading in a quiet chop regime may be a smaller dollar-width than a 60 reading during a volatile stretch. Shortening the rank lookback makes the oscillator more reactive to recent regime; lengthening it gives a more stable long-run reference.
Match your basis MA type/length here to your BBMC settings if you want the neutral-line crossings on this panel to line up exactly with the white basis line's color flips on your main BBMC chart.
6. Suggested Ways to Use It
Trend confirmation: treat neutral-line position the same way you'd treat price vs. the BBMC basis line — histogram above neutral supports a long bias, below neutral supports a short bias.
Squeeze setups: watch for yellow dots (tight width) followed by a color shift from pale to bright — that transition often marks the start of a breakout move out of consolidation.
Exhaustion reads: when bars run well past the red or green average line, the current expansion is unusually large relative to its own recent history — often a point where trend continuation odds start to fade and mean-reversion becomes more likely.
Divergence: if price makes a new high/low but the histogram's peak height is smaller than the prior swing's, the expansion behind the move is weaker than last time — a classic momentum-divergence tell, same logic as reading MACD histogram divergence against price.
7. Notes / Limitations
This is a volatility/width indicator, not a standalone directional signal — it's meant to be read alongside price structure or your BBMC chart, not in isolation.
The squeeze marker and average-column lines both depend on their lookback inputs; shortening them makes the indicator more reactive to recent bars, lengthening them smooths it out but reacts slower to regime changes.
Normalize should generally stay consistent once you've picked it — the raw and normalized histograms are not on comparable scales, and the red/green average lines are computed from whichever mode is active. The squeeze dots are always derived from raw band width, so they mark the same bars in either mode. インジケーター

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. インジケーター

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 TradingView 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 TradingView 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.
ストラテジー

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. インジケーター

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점 표시
이 지표는 자동 매수/매도 신호를 제공하지 않습니다. 추세, 모멘텀, 변동성, 시장 상태를 시각적으로 참고하기 위한 도구이며, 본인의 전략과 리스크 관리, 다른 분석과 함께 사용하는 것을 권장합니다. インジケーター

インジケーター

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. インジケーター

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. インジケーター

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.
インジケーター

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 TradingView 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 インジケーター

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. インジケーター

インジケーター

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 🙏 インジケーター

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. インジケーター
