ATR Percentile Bands [TradingFinder] Dynamic Extremes🔵 Introduction
Financial markets constantly move between calm conditions and periods of rapid price expansion. A market may trade close to its average for several sessions and then suddenly move into an extreme price zone as volatility increases. In these moments, traders need more than a fixed channel or a standard volatility indicator.
The ATR Percentile Bands indicator combines Average True Range (ATR), historical price deviation, and percentile analysis to identify dynamic upper and lower bands directly on the price chart. By adapting to both current volatility and historical market behavior, the ATR Percentile Bands indicator helps traders recognize normal price movement, unusual price extensions, and potential reversal zones more clearly.
Unlike traditional ATR bands that calculate band width using only current volatility, this dynamic volatility indicator compares the smoothed ATR distance with the 95th percentile of price deviations from a selected moving average. The indicator then uses the larger value to create adaptive price bands that respond to changing market conditions. A customizable EMA, SMA, RMA, WMA, or HMA forms the central moving average, while multi-layer upper and lower ribbons highlight bullish and bearish extreme zones.
When price approaches the upper percentile band, the market may be experiencing unusually strong buying pressure; when price reaches the lower percentile band, selling pressure may have pushed the market into a historically extended area. These volatility bands do not define guaranteed overbought or oversold levels, but they provide a structured framework for analyzing price extremes, mean-reversion opportunities, trend continuation, and volatility expansion.
Imagine price falling sharply toward the lower ATR Percentile Band. The first touch may attract attention, but the indicator does not immediately display a Buy Signal. Instead, its three-stage confirmation engine waits for a bullish candle to reject the lower inner band and then monitors the following candles for continued bullish confirmation. The same process works in reverse for a potential Sell Signal near the upper band. This confirmation-based logic helps filter weak reactions and reduces signals created by simple band contact.
A live information dashboard also displays the current Signal, Price Zone, Trend, Nearest Band, Volatility, and Next Action, allowing traders to understand the complete market context at a glance. As a result, ATR Percentile Bands can support forex trading, cryptocurrency analysis, stock trading, indices, commodities, scalping, day trading, and swing trading across different markets and timeframes.
🔵 How to Use
This volatility-based trading indicator helps traders understand where price is positioned relative to its moving average, current market volatility, and historical price deviations. After adding the indicator to the chart, traders should first examine the central moving average and the upper and lower percentile bands. Price movement between the two inner bands represents a relatively normal market condition, while movement inside the upper or lower ribbon indicates that price is entering an extended zone.
A close above the outer upper band is displayed as Above Upper Band, while a close below the outer lower band is classified as Below Lower Band. These extreme price zones can highlight increased buying or selling pressure, but touching an ATR Percentile Band does not automatically create a Buy Signal or Sell Signal.
Before evaluating a trading signal, traders should review the live dashboard and combine Price Zone, Trend, Nearest Band, and Volatility information. The Trend column shows whether price and the moving average currently support a Bullish, Bearish, or Sideways condition. Nearest Band indicates which inner ATR band is closer to price, while Volatility compares the current ATR with its historical range.
After price reaches an extreme band, the Signal and Next Action columns can be used to follow the confirmation process. The indicator requires a three-stage candle sequence before publishing a Long or Short Signal, helping separate a simple band touch from a confirmed price reaction. All signal decisions are registered after candle closure, so traders should wait for the active candle to close before interpreting the final signal.
🟣 Buy Signal
A potential Buy Setup begins when price moves down to the Lower Inner Band and then shows a valid bullish rejection. The first candle must satisfy three conditions simultaneously: its low must touch or move below the Lower Inner Band, its closing price must return above the Lower Inner Band, and it must close as a bullish candle with the Close above the Open.
The initial Buy Setup conditions are : A valid Buy Setup requires the candle’s low to touch or move below the Lower Inner Band. The price must then recover and close above the Lower Inner Band, while the closing price must also remain above the opening price to confirm that the candle is bullish.
When these conditions are confirmed at candle close, the ATR Percentile Bands indicator does not immediately display a Long Signal. Instead, it saves the bullish setup and sets the confirmation counter to one. At this stage, the dashboard displays Buy Setup, while the Next Action column changes to Wait for Buy. This tells the trader that a bullish reaction has been detected near the lower percentile band, but the complete three-candle confirmation sequence has not yet formed.
The second confirmation candle does not need to touch the Lower Inner Band again. It only needs to remain bullish and close above the Lower Inner Band. If these conditions are satisfied, the confirmation counter advances from one to two. The third candle must repeat the same continuation conditions: it must close above its opening price and remain above the Lower Inner Band. Once the third bullish confirmation is completed, the indicator publishes the Long Signal on the third candle.
After confirmation, the Signal column displays Buy Signal, and Next Action changes to Buy Confirmed. The final Long marker may appear several candles away from the original contact with the lower band because only the first candle must directly reject the extreme zone. The second and third candles are continuation confirmations and are not required to interact with the band again.
A pending Buy Setup is cancelled if a following candle is not bullish and does not remain above the Lower Inner Band. If a valid bearish setup forms while the indicator is waiting for bullish confirmation, the signal engine switches direction, cancels the previous Buy Setup, and begins counting the new Sell Setup from one. After a Long or Short Signal is published, the Signal Gap setting prevents another setup from beginning until the selected number of candles has passed. The default Signal Gap is 10 candles.
For a more structured bullish analysis, traders can combine the Buy Signal with the following conditions :
Price has reacted from the Lower Inner Band or Lower Outer Band;
Price Zone shows Lower Band or Below Lower Band;
Trend is Bullish or begins shifting from Bearish toward Sideways or Bullish;
Volatility is suitable for the trader’s strategy and risk tolerance;
The bullish reaction occurs near support, demand, liquidity, or a significant market structure level;
The completed Long Signal provides an acceptable stop-loss distance and risk-to-reward ratio.
A Buy Signal represents a confirmed bullish reaction within the indicator’s internal logic. It does not guarantee that the market has reached its final low or that an upward trend will continue. In a strong bearish market, price can repeatedly interact with the lower ATR bands. Traders should therefore evaluate the Long Signal together with market structure, volume, trend direction, higher-timeframe context, and risk management.
🟣 Sell Signal
A potential Sell Setup begins when price moves up to the Upper Inner Band and then produces a valid bearish rejection. The first candle must meet three conditions at the same time: its high must touch or move above the Upper Inner Band, its closing price must return below the Upper Inner Band, and it must close as a bearish candle with the Close below the Open.
The initial Sell Setup conditions are : The bearish sequence starts when price pushes into or beyond the Upper Inner Band but fails to hold at that level. If sellers regain control before the candle closes, price returns below the band and finishes beneath its opening value. This rejection activates the initial Sell Setup and starts the confirmation process.
Once these conditions are confirmed after candle closure, the indicator saves the bearish setup and sets the confirmation counter to one. It does not publish a Short Signal on the first rejection candle. During this stage, the dashboard displays Sell Setup, while the Next Action column shows Wait for Sell. The first rejection identifies a possible bearish response from the upper extreme zone, but two additional confirmations are still required.
The second confirmation candle must be bearish and must close below the Upper Inner Band. It does not need to touch the upper band again. When both continuation conditions are satisfied, the bearish counter increases from one to two. The third candle must also close below its opening price and remain below the Upper Inner Band. After the third bearish confirmation closes, the indicator displays the final Short Signal.
At confirmation, the Signal column changes to Sell Signal, and Next Action displays Sell Confirmed. Because the final Short marker belongs to the third confirmation candle, it may not appear directly at the original upper-band rejection. This distance is a normal result of the three-stage confirmation model and does not indicate delayed calculation or repainting.
The Sell Setup is cancelled when the following candle fails to maintain the required bearish continuation and no valid opposite setup is created. If a valid bullish rejection develops while the indicator is waiting for bearish confirmation, the existing Sell Setup is cancelled, the signal direction changes to Buy, and the bullish confirmation counter begins from one. The configured Signal Gap is applied after every published signal to reduce clusters of nearby Long and Short signals.
For a more complete bearish analysis, traders can evaluate the Sell Signal alongside these conditions :
Price has rejected the Upper Inner Band or Upper Outer Band;
Price Zone displays Upper Band or Above Upper Band;
Trend is Bearish or begins changing from Bullish toward Sideways or Bearish;
The upper band overlaps resistance, supply, liquidity, or an important market structure level;
Market volatility is compatible with the selected stop loss and position size;
The confirmed Short Signal offers a reasonable risk-to-reward structure.
A Sell Signal confirms a bearish reaction according to the ATR Percentile Bands signal engine, but it should not be interpreted as proof that price has formed a permanent top. During powerful bullish trends, price may remain close to the upper volatility band or repeatedly move beyond it. Traders should use the Short Signal as analytical confirmation and assess the wider trend, market structure, volume, news conditions, stop loss, and capital management before making a trading decision.
🔵 Settings
Moving Average Type : Defines the calculation method used for the central moving average. Traders can select EMA, SMA, RMA, WMA, or HMA. EMA is selected by default and responds relatively quickly to recent price changes, while smoother average types can create a more stable band structure.
Moving Average Period : Determines how many candles are included in the central moving average calculation. The default value is 50. A shorter period makes the moving average and dynamic bands react faster to price movement, while a longer period creates a smoother structure with slower changes.
ATR Period : Sets the number of candles used to calculate the Average True Range. The default ATR Period is 14. Lower values respond more quickly to short-term volatility, whereas higher values provide a smoother measurement of market volatility.
ATR Multiplier : Controls the ATR-based distance between the central moving average and the outer volatility bands. Its default value is 2.8. Increasing the ATR Multiplier moves the bands farther from price and can reduce the number of band interactions. Decreasing it creates tighter bands and may produce more frequent setups in volatile or fast-moving markets.
Smooth Period : Specifies the smoothing period applied to the ATR and the final band distance. The default value is 5. A lower Smooth Period makes the ATR Percentile Bands more responsive, while a higher value reduces sudden changes and creates smoother upper and lower ribbons.
Signal Gap : Determines the minimum number of candles required between two published signals. The default Signal Gap is 10 bars. Increasing this value creates more separation between Long and Short Signals, while setting it to zero removes the mandatory waiting period.
Moving Average : Shows or hides the central moving average on the price chart. Disabling this option removes the line from view without changing the calculations of the upper and lower ATR Percentile Bands.
Signals : Controls the visibility of Long and Short markers on the chart. Turning this setting off only hides the signal symbols; the internal signal engine and configured TradingView alerts continue to operate normally.
Show Table : Displays or hides the live information dashboard. The table summarizes the current Signal, Price Zone, Trend, Nearest Band, Volatility, and Next Action.
Table Size : Changes the text size of the dashboard. Available options include Tiny, Small, Normal, and Large, allowing the table to fit different chart layouts and screen sizes.
Table Position : Selects the dashboard location on the chart. The table can be placed in any of the nine standard positions: Top Left, Top Center, Top Right, Middle Left, Center, Middle Right, Bottom Left, Bottom Center, or Bottom Right.
Alert : Enables or disables the dynamic alert messages generated by the indicator. When this option is active, traders can create TradingView alerts for confirmed Long and Short Signals.
Message Frequency : Determines how frequently the indicator is allowed to send an alert message. All sends every valid event, Once Per Bar limits notifications to one event per candle, and Once Per Bar Close sends the alert only after the candle has closed. Once Per Bar Close is the default option and is the most consistent choice for the confirmed-candle signal logic.
🔵 Conclusion
The ATR Percentile Bands indicator combines current market volatility with historical price deviation to create adaptive upper and lower bands around a customizable moving average. By comparing the smoothed ATR distance with the 95th percentile of recent price deviations, the indicator adjusts its band width as market conditions change. The multi-layer ribbons highlight normal price movement, extended price zones, and unusually strong deviations, while the live dashboard summarizes Signal, Price Zone, Trend, Nearest Band, Volatility, and Next Action in one view.
Its three-stage confirmation system separates a simple band interaction from a confirmed bullish or bearish reaction. Long and Short Signals are published only after the required candle sequence is completed, helping traders evaluate price rejection with greater context. These signals should be combined with market structure, trend direction, volume, support and resistance, higher-timeframe analysis, and risk management. As an adaptive volatility and price-extreme analysis tool, the indicator can support forex, cryptocurrency, stock, index, and commodity traders across scalping, intraday, and swing-trading strategies.
مؤشر

Colored TMA Trend Signals [josseliani]This is a very simple indicator for beginners in trading, based on the popular Triangular Moving Average.
I wanted to keep it simple: minimal settings, clear visuals, and easy-to-understand trade logic.
TMA color-change signals are popular, but there is one thing I wanted to improve. Sometimes, by the time TMA changes direction, price has already moved quite far away from the average. The turn is there, but entering is already uncomfortable: price is stretched, and the potential stop becomes too large.
So I added a simple candle-close confirmation engine instead of using every color change as an entry.
→ THE TMA
TMA is a Triangular Moving Average, calculated here using two consecutive simple moving averages of the same length.
Green → TMA is rising.
Red → TMA is falling.
A basic standard-deviation channel surrounds it. Optional EMA smoothing can be applied to the price source.
Small triangles mark confirmed changes between rising and falling TMA direction. They show the turn itself; BUY/SELL uses a separate confirmation.
→ BUY/SELL CONFIRMATION
For BUY, the indicator counts consecutive candle closes above the selected level. For SELL, it counts consecutive closes below it.
The default is three candles, with TMA as the confirmation level.
You can also select Bands:
• BUY → closes above the upper band.
• SELL → closes below the lower band.
Each close is compared with the level calculated on that candle.
The important detail is that the candle counters run independently of the TMA color change.
Confirmation is checked exactly on the selected Nth close — the third close by default. If the direction and signal-limit conditions do not allow a signal then, that confirmation is not reused on later candles.
The sequence must reset and form again.
For example, if price has already closed above TMA for more than three consecutive candles before TMA turns green, the earlier confirmation is not reused. Price must first close at or below TMA, then form three consecutive closes above it again.
If TMA turns green on the third close, BUY can appear together with the triangle. SELL follows the same logic in the opposite direction.
This was my simple way of skipping some entries where the move had already started before TMA turned. The script does not measure the distance from price to TMA, so a fresh confirmation can still appear far from the average.
→ ONE SIGNAL PER COLOR
With the default settings:
• A confirmed turn to green unlocks one BUY and blocks SELL.
• A confirmed turn to red unlocks one SELL and blocks BUY.
The first eligible confirmation produces the signal.
After BUY, another BUY is blocked until TMA turns red and then green again. After SELL, another SELL is blocked until it turns green and then red again.
A color section can also have no signal if the conditions are not met.
Disabling One Trade Per Color allows further signals after new confirmation sequences form. Its directional restrictions remain active while it is enabled, even if Only With TMA Trend is disabled.
→ HOW I USE IT
For me, the small triangle is simply information: TMA has changed direction.
BUY/SELL is a separate trade signal.
I made this mainly for people who are just starting to work with the market and do not want to immediately dive into complicated strategies and lots of settings.
It is basically ordinary trading with a moving average, just visualized a little more conveniently.
You can leave the default settings and watch the TMA direction and the confirmed BUY/SELL signals.
This is not a complete trading system. The trader still decides whether an entry makes sense at the current price and determines the stop, target, position size and risk management.
→ INPUTS
• Half Length → TMA smoothing length. Default: 12. The double-SMA calculation has an effective length of 2 × Half Length − 1, or 23 by default.
• Price Source → selects the calculation price. The default Weighted Price is (High + Low + 2 × Close) / 4.
• Band Deviation → standard-deviation multiplier controlling channel width. Default: 2.0. Standard deviation uses the selected source and the effective TMA length.
• Use Source Smoothing → optional EMA smoothing before calculating TMA and the channel. Disabled by default.
• Smoothing Period → optional EMA length. Default: 12.
• Show Bands → shows or hides the channel.
• Show TMA Color-Change Signals → shows or hides the triangles without disabling their alerts.
• TMA Line Width → adjusts line thickness.
• Show BUY/SELL Labels → shows or hides trade labels without disabling trade calculations or alerts.
• Break Level → selects TMA or Bands for confirmation.
• Confirm Bars → required consecutive closes, from 1 to 10. Default: 3. Confirmation is checked exactly on the selected Nth close.
• Only With TMA Trend → allows BUY only while TMA is rising and SELL only while it is falling. Enabled by default.
• One Trade Per Color → applies the directional signal limits explained above. Enabled by default.
Label spacing uses ATR and the candle range. It is only visual and does not change the signal candle or trading logic.
→ WHAT I ADDED AND WHY
TMA and standard-deviation bands are established calculations. My addition is the confirmation and signal-handling logic around them:
• Separate markers for TMA turns and BUY/SELL confirmations.
• Candle-close counters independent of color changes.
• Confirmation checked on the exact Nth close, without reusing a blocked confirmation later.
• One eligible signal per matching color turn.
• A choice of TMA or bands as confirmation levels.
• Separate alerts independent of marker visibility.
The purpose is to distinguish a moving-average turn from a confirmed price sequence while keeping the visual presentation and trading logic simple.
→ ALERTS
• TMA Bullish Color Change
• TMA Bearish Color Change
• Any TMA Color Change
• Trade Long
• Trade Short
• Any Trade Signal
All signal conditions require a closed candle. Select Once Per Bar Close when creating alerts.
→ CONFIRMATION AND LIMITATIONS
Triangles and BUY/SELL signals appear on the confirmation candle after it closes. They are not shifted into the past. The first established TMA direction does not produce a turn triangle, and unchanged TMA values preserve the last direction for turn detection.
The line, its color and the channel can change while the current candle is open. The calculation uses no future bars or higher-timeframe requests.
TMA and candle confirmation introduce delay. Signals can arrive late, sideways markets can produce unsuccessful signals, and a sequence reset does not guarantee an entry close to TMA.
Use standard time-based candles. This is an indicator, not a backtested strategy; it does not calculate trade results or a verified win rate.
مؤشر

QuantumForexTrader_SniperFusion_Strategy_v2What is the QuantumForexTrader (SniperFusion v2)?
This is an advanced, automated trading strategy written for TradingView (using Pine Script v6). It is currently calibrated specifically for ZCash (ZEC) on the 5-minute chart, but its flexible architecture allows it to run on any trading pair or timeframe.
Instead of relying on simple moving average crossovers, it acts like a digital sniper—waiting for multiple layers of market confirmation before executing a trade.
Key Features Broken Down
🧠 Quantum Core (Market Memory):
It looks back across thousands of historical bars to calculate a weighted "memory" score of recent price momentum. It determines whether bulls or bears currently dominate the market structure.
🎯 Sniper Fusion & Multi-Indicator Filters:
A trade is only triggered when a strict checklist is met. It checks the VWAP, Relative Strength Index (RSI), MACD, EMA trends, ADX (trend strength), and volume spikes simultaneously. It also cross-references a 5-minute higher-timeframe filter to ensure you are trading with the overarching trend.
🛡️ Advanced Risk Management:
Dynamic Stop-Loss: Automatically calculates risk based on market volatility (ATR).
5-Tier Take-Profits: Instead of closing the whole trade at once, it takes profits off the table in 20% chunks across five consecutive target levels.
Trailing Stop-Loss: Once the trade moves into profit by a certain amount, a trailing stop locks in gains and follows the price.
⚡ Automated Execution Ready:
It is built with webhook capabilities (compatible with platforms like Pionex). A single alert template in TradingView sends fully formatted JSON buy, sell, and close signals directly to your bot.
📊 Live On-Chart Dashboard:
It draws a clean HUD table directly on your chart, showing real-time metrics like Bull/Score percentages, market bias (STRONG BULL, MILD BEAR, etc.), active positions, net PnL, and win rate.
🔒 Zero-Repaint Protection:
All higher-timeframe and indicator calculations strictly look at confirmed completed bars ( offset), preventing false backtest results that vanish in live trading.
استراتيجية

مؤشر

Z-Score Range Boxes Breakout [BigBeluga]🔵 OVERVIEW
The Z-Score Range Boxes Breakout is an advanced technical analysis indicator designed by BigBeluga to identify statistical extremes using a smoothed Z-Score oscillator and automatically project consolidation range boxes and dynamic breakout levels directly on the chart. Traditional momentum indicators often generate false signals during choppy market conditions or fail to map physical price boundaries when assets reach overbought or oversold thresholds. To solve this limitation, this script triggers range-building boxes whenever the Z-Score crosses predefined statistical boundaries, tracking price extremes over a configurable period to establish key support, resistance, and midpoint extension lines.
The indicator visualizes real-time Z-Score oscillators in a separate pane with gradient coloring, dynamic range boxes, extended channel lines, and breakout markers. The core calculations track rolling standard deviation and mean values, smooth the resulting Z-Score, and manage box boundaries dynamically before issuing breakout alerts and line cleanups. Customizable threshold levels, box durations, and color palettes allow traders to fine-tune the system across various timeframes and asset classes.
🔵 HOW IT WORKS
The system operates through an integrated architecture where each component dynamically influences chart behavior:
1 — Z-Score Statistical Engine
Oscillator Calculation: Computes standard deviation and mean based on the Z-Score Length input to derive the statistical Z-Score, which is then smoothed using the Smoothing Line Length parameter.
Threshold Triggers: Monitors when the smoothed Z-Score crosses below the Oversold Trigger Level (default -2.0 ) or above the Overbought Trigger Level (default 2.0 ) to initiate range-building sequences.
2 — Dynamic Range Box Engine
Box Tracking Phase: When a trigger fires, a range box tracks rolling high and low prices over the duration specified by the Box Period Length (Bars) input.
Level Extension: Upon completion of the box period, the script establishes top, bottom, and midpoint levels, extending horizontal lines across the chart to map active structural boundaries.
3 — Breakout Detection & Clearing System
Breakout Monitoring: Detects bullish breakouts when price crosses above the established range top, or bearish breakouts when price crosses below the range bottom.
Line Management: Automatically clears extended lines and places visual markers upon a confirmed breakout to reset the tracking state for subsequent signals.
🔵 HOW TO USE
Apart from serving as a statistical range and breakout mapping tool, the indicator can be applied in several ways:
Identify Statistical Extremes: Monitor the separate oscillator pane to spot when the smoothed Z-Score breaches overbought or oversold boundaries.
Trade Range Breakouts: Wait for the box period to finalize and use the extended top, bottom, and midpoint lines as key breakout or reversal levels.
Track Momentum Shifts: Utilize the gradient-colored Z-Score line and threshold fills to gauge underlying market momentum and volatility expansion.
🔵 NOTES
Why this implementation is unique:
It bridges statistical Z-Score oscillator analysis with automated price range box generation and breakout tracking.
Features dynamic box resizing, multi-line level extensions, and clean oscillator pane gradient fills optimized for Pine Script version 6.
Provides robust modular inputs for threshold configuration, box durations, and custom color themes.
مؤشر

SAMS Early Morning Range LinesThis indicator maps the premarket / early-morning range (EMR) and uses that range as a reference for regular-session structure and breakout signals.
What it plots
EMR high / low (green / red): the high and low printed during the 04:00–09:30 America/New_York window. These levels persist into the regular session.
Previous-day RTH range (Rumer Box): prior regular-session high and low, with a light purple fill between them. The prior RTH range is only updated after a full RTH session has printed.
Premarket bands (RTH only): optional ±% envelopes around the EMR high and EMR low. Default is 0.03%. Use these as a buffer around the premarket extremes instead of treating the raw high/low as a single line.
Sessions are defined in Eastern time (America/New_York) so DST is handled by TradingView’s session engine.
Signals
Signals fire only after the EMR session ends and only if EMR high and low exist.
Buy: first valid break of EMR high
Sell: first valid break of EMR low
Re-Buy: after a sell, price recrosses back up through EMR low
Re-Sell: after a buy, price recrosses back down through EMR high
Only one primary buy and one primary sell are allowed per day unless a re-entry flips the state.
Signal modes
Crossover Candle — close crosses the EMR level.
First Fully Crossed — the bar’s low crosses above EMR high (buy) or the bar’s high crosses below EMR low (sell). Stricter than a close-only cross.
Open Confirmation — the cross is detected on the current bar, then confirmed on the next bar if open continues in the breakout direction relative to the prior close. Reduces same-bar fakeouts.
Default mode is Open Confirmation.
Alerts
On a confirmed signal the script fires a once-per-bar-close alert:
SAMS_EMR_BUY / SELL / RE_BUY / RE_SELL
plus ticker, interval, and close.
Create alerts from the indicator with “Any alert() function call”.
Suggested use
Use EMR high/low as the first overnight auction box. The previous-day RTH box is context for whether the open is inside, above, or below yesterday’s cash range. Bands are for traders who want a small buffer instead of a hard level. This is a level + confirmation tool, not a standalone strategy. Combine with your own risk rules, size, and higher-timeframe bias.
Notes
Works best on intraday charts that include premarket data (1–15 minute is typical). If the symbol or session settings omit 04:00–09:30 ET prints, EMR high/low will be incomplete. Past session levels and signals are not a guarantee of future results. مؤشر

Vix Dual Adaptive (Independent) [Zofesu]CREDITS
Based on the Williams VIX Fix concept originally published on TradingView by ChrisMoody (CM_Williams_Vix_Fix, 2014, open-source). Original script:
The underlying VIX Fix formula was created by Larry Williams and is public domain.
─────────────────────────────────────
Vix Dual Adaptive (Independent) is a sentiment oscillator that runs two fully independent Williams VIX Fix engines simultaneously — one calibrated to detect capitulation, one calibrated to detect euphoria. Each engine has its own lookback window, its own percentile threshold, and its own dual-layer statistical filter.
The standard VIX Fix measures fear only: one engine, one direction, shared parameters. This implementation adds an inverse engine that mirrors the calculation to detect overextension at the top of a move, and separates the calibration of both engines so each can be tuned to the specific behavior of the asset and timeframe being traded.
─────────────────────────────────────
01 — What is Vix Dual Adaptive?
─────────────────────────────────────
The indicator plots two histograms from a common zero line — Fear above, Greed below. A histogram bar lights up only when its engine registers a statistically extreme reading. When no extreme is present, bars render in black and serve purely as visual anchors for candle alignment.
Fear Engine (Lime)
Measures how far the current low sits below the highest recent close. Large values mean price has dropped sharply from a recent peak — capitulation conditions.
Formula: (highest(close, lb) − low) / highest(close, lb) × 100
Greed Engine (Purple) — original extension
Measures how far the current high sits above the lowest recent low. Large negative values mean price has extended sharply from a recent trough — euphoric conditions.
Formula: −((high − lowest(low, lb)) / lowest(low, lb) × 100)
─────────────────────────────────────
02 — Why Two Independent Engines
─────────────────────────────────────
Market tops and bottoms do not behave symmetrically. Bottoms form through fast, violent capitulation — often a single bar of panic selling. Tops form through slow distribution — extended drift with decreasing momentum.
A single-engine VIX Fix with shared parameters cannot capture both. A lookback tuned to catch sharp capitulation will miss slow euphoric extension, and a lookback tuned for drift will smooth away panic spikes entirely.
Running two engines with independent lookback windows and independent percentile thresholds solves this. The Fear engine can be set short and sensitive; the Greed engine can be set longer and more selective — or the reverse, depending on the asset's character.
─────────────────────────────────────
03 — Dual Threshold Filtering
─────────────────────────────────────
Each engine filters its raw value through two independent statistical thresholds. A signal bar appears when either threshold is crossed.
Threshold 1 — Bollinger Band boundary
SMA of the VIX Fix value plus or minus 2 standard deviations, calculated over the engine's lookback period. This boundary adapts dynamically to current volatility — it tightens in calm markets and widens during turbulence.
Threshold 2 — Percentile rank line
The highest (or lowest) VIX Fix value recorded over twice the lookback period, multiplied by the percentile setting. At 0.99 this means only readings in the top 1% of the historical range qualify. This threshold is absolute rather than adaptive — it anchors the signal to the asset's own extreme history.
Signal logic:
Fear bar — wvf ≥ BB upper OR wvf ≥ percentile threshold
Greed bar — wvf ≤ BB lower OR wvf ≤ percentile threshold
Using OR rather than AND is intentional. Either condition alone represents a statistically meaningful extreme; requiring both would suppress the majority of valid signals.
─────────────────────────────────────
04 — Settings
─────────────────────────────────────
Fear Lookback — default 145
Bars used for the Fear engine's VIX Fix and Bollinger Band calculation. Higher = smoother, fewer signals.
Fear Percentile — default 0.99
Statistical rank required for a Fear signal. 0.99 = only the top 1% of extremes qualify. Lower values produce more signals.
Greed Lookback — default 148
Independent from the Fear lookback. Tune separately.
Greed Percentile — default 0.99
Independent from the Fear percentile. Tune separately.
Show Bollinger Bands — default off
Show Percentile Lines — default off
Both boundary lines are hidden by default. Enable them during calibration to see where the thresholds sit relative to the histogram, then hide them once the settings are finalized.
─────────────────────────────────────
05 — Calibration
─────────────────────────────────────
Each asset and timeframe requires its own settings. There is no universal configuration — the defaults are calibrated for D1 on major instruments and should be treated as a starting point.
Step 1 — Enable both boundary lines so the thresholds are visible against the histogram.
Step 2 — Set the percentile to 0.99 and adjust the lookback across a range of 50 to 500. Watch how the signal density changes.
Step 3 — Reduce the percentile gradually until the number of signals matches your trading frequency. Fewer, higher-conviction signals for swing trading; more signals for active trading.
Step 4 — Repeat independently for the second engine. The two engines do not need matching values.
Step 5 — Hide the boundary lines once calibration is complete.
Save the finished configuration as an indicator template so it can be reapplied per instrument or TimeFrame.
─────────────────────────────────────
06 — Signal Interpretation
─────────────────────────────────────
Fear bar appears — the market has reached a statistically extreme oversold condition. Potential bullish reversal zone.
Greed bar appears — the market has reached a statistically extreme overextended condition. Potential bearish reversal zone.
The entry trigger is not the appearance of the bar. It is the moment the bar disappears on a closed candle — this confirms the extreme condition has ended rather than continuing. Entry on the following candle.
A bar that stays lit across multiple candles indicates a sustained trend or ongoing accumulation, not a reversal. Waiting for the bar to close and disappear is what separates a reversal signal from a continuation warning.
If both Fear and Greed register simultaneously, the two engines are reading conflicting pressure. This typically occurs during high-volatility expansion. Check the higher timeframe and wait for support or resistance confirmation before entering.
─────────────────────────────────────
07 — How To Use
─────────────────────────────────────
Step 1 — Calibrate the indicator to your instrument and timeframe using the process in section 05.
Step 2 — Wait for a colored histogram bar. Black bars carry no signal.
Step 3 — Do not enter while the bar is lit. Wait for it to disappear on a closed candle.
Step 4 — Enter on the next candle open. Stop loss beyond the extreme of the signal range.
Step 5 — Confirm with structure. A Fear signal landing on a known support level is significantly stronger than one occurring in open space. The indicator identifies when sentiment is extreme; it does not identify where price will turn.
Works on all asset classes: Indices, Stocks, Forex, Gold, Oil, Crypto.
Best timeframes: D1, W1. مؤشر

Linear Regression Channel Visible Range Volume ProfileLR Channel VRVP — Linear Regression Channel + Visible Range Volume Profile
A multi-factor overlay that blends Linear-Regression-smoothed candles with a true Visible-Range Volume Profile, a statistical mean channel, Bollinger Band %, adaptive percentile bands, and auto-merging pivot Support/Resistance. Designed for traders who want a single clean visual that answers four questions at once: (1) Where is price relative to its statistical envelope? (2) Where has volume actually traded? (3) Where has the market accepted or rejected value? (4) Where are the extremes that are outside the standard deviation?
⚠️ Important note on the Volume Profile zone labels
The 68.2% and 95.45% Volume Profile zones are volume-coverage thresholds inspired by the 1σ/2σ probabilities of a normal distribution; they are not calculated standard deviations of the volume distribution. They are just shown as an analog representation of standard deviation.
The Volume Profile is not assumed to be normally distributed. The "±1σ" and "±2σ" labels are used as convenient shorthand because the 68.2% and 95.45% coverage percentages correspond to the familiar 1σ and 2σ bands of a Gaussian or Bell Curve. The actual values are computed by expanding outward from the POC until the specified percentage of traded volume is captured — a purely empirical calculation that makes no distributional assumption.
🔹 What's on the chart
Linear Regression Candles
The candles you see are not raw OHLC. Each of the four price points (open, high, low, close) is independently smoothed by a rolling linear regression over N bars (default 20). This removes intrabar noise while preserving the underlying trend slope, and produces candles whose shape reflects the smoothed market rather than the last tick.
Doji detection runs on the smoothed values: a candle is a doji when its body is ≤ 8% of its range and both upper and lower wicks are larger than the body. Dojis frequently appear at regression inflection points. On the chart, they are represented as yellow candles.
Static Mean Channel
A simple SMA(length) ± 2 × stdev(length) envelope (default 50). This is your statistical "normal" range. Price inside the channel = rotation. Price outside = extension. The channel fill is colored by regime (see below).
Visible-Range Volume Profile (right edge)
On every realtime tick the script rebuilds a volume profile across the currently visible bars. Each bar's volume is split into an up-volume / down-volume proxy based on whether the bar closed above or below its open, then distributed into price bins proportionally to the overlap between the bar's range and each bin. This is a proxy, not a true bid/ask tape read — it uses candle direction as a stand-in for aggressive buying vs. selling.
Three nested volume-coverage zones are drawn:
POC — Point of Control, the single bin with the highest traded volume. Solid yellow line extending left. The POC is a highest-volume price / acceptance reference, not a "fair value" in any valuation sense.
68.2% Value Area (VAH / VAL 34.1%) — dashed white lines. The volume-weighted band that captures 68.2% of traded volume around the POC. Comparable to a ±1σ analogy.
95.45% Extended Value Area (±47.7%) — solid purple lines. The band that captures 95.45% of traded volume around the POC. Comparable to a ±2σ analogy. I personally like to enter my trades at or outside of this area.
Bars outside the 95.45% zone are painted red to mark thinly traded / low-acceptance areas — price levels where the market spent little time and may be more prone to fast traversal. This is a low-acceptance highlight, not a proof of rejection.
Percentile Nearest Rank Bands
Symmetric grey dotted lines at mean ± PNR(|close − mean|, N). Unlike stdev bands, PNR uses the actual empirical distribution of price deviations, so it does not assume normality. On trending instruments this gives a much more honest "extreme" reading of price moves.
Support / Resistance (pivot-based, auto-merging)
Swing highs and lows are detected with a configurable lookback. When a new pivot lands within 0.5 × ATR of an existing level, the two are averaged into a single line instead of drawing a redundant one. Oldest levels are trimmed past the configured cap so the chart stays readable.
🔹 Candle colors — what each one means
🟢 Green (default bull) - Smoothed close > smoothed open, and LinReg close is inside the mean channel. Indicates a normal bullish bar in a neutral/slightly-bullish regime.
🔴 Red (default bear) - Smoothed close ≤ smoothed open and LinReg close is inside the mean channel. Indicates a normal bearish bar in a neutral/slightly-bearish regime.
🔵 Blue - LinReg close > upper band (bull bar) or LinReg close < lower band (bear bar). Indicates price has extended beyond the mean channel — early warning of a stretched move.
🟡 Yellow - Doji (body ≤ 8% of range with wicks on both sides) indecision. Often marks regression inflection points. Overrides all other colors.
🟦 Cyan (customizable) - Bollinger %B > 1, RSI overbought and price is outside both outer bands of the channels — or the mirror condition on the downside. These fully align three extreme conditions: oscillator stretched, price outside mean channel, price outside empirical PNR band. This is the strongest "everything is stretched" state. Dojis still override it.
Color priority (highest wins):
Doji → yellow
Extreme override enabled & condition met → cyan
LinReg close outside mean channel → blue
Otherwise → green / red
🔹 Background colors — what each one means:
🟩 Green vertical band ("Buy Zone BG") = Bollinger %B < 0 AND RSI < oversold threshold (30/40 depending on channel length). Price is trading below the lower Bollinger band and RSI confirms oversold. A classic mean-reversion / accumulation context.
🟥 Red vertical band ("Sell Zone BG") = Bollinger %B > 1 and RSI > overbought threshold (60/70 depending on channel length). Price is trading above the upper Bollinger band and RSI confirms overbought. Classic distribution / exhaustion context.
🟪 Purple vertical band ("Prime Accumulation Zone") where the BB% and RSI are both oversold threshold = Rare triple-confirmation zone: trend momentum is elevated in both directions, %B is depressed, and RSI is oversold. Marks high-conviction accumulation setups.
🟥 Dark red vertical band ("Prime Distribution Zone") = Percentile, Bollinger %B and RSI overbought threshold (Mirror of the above). High-conviction distribution / exhaustion setups.
The red and green backgrounds are frequent — they mark every overbought/oversold reading. The purple and dark-red backgrounds are rare and should be treated as elevated-conviction signals.
🔹 Channel fill color
The area between the upper and lower mean-channel bands is filled, and the fill changes color to reflect the current regime:
Channel Fill color
🟢 Green (translucent) = Price above mean and %B above its own average. Bullish regime — buyers in control.
🔴 Red (translucent) = Price below mean or %B below its own average. Bearish / neutral regime — sellers in control.
⚪ White (translucent) = Bollinger %B > 1 or %B < 0. Extreme regime — oscillator has broken out of its own band.
🔹 Volume Profile colors
Up-volume bars (inside VA) - Teal = Volume from bars closing above open — up-volume proxy
Down-volume bars (inside VA) - Orange = Volume from bars closing below open — down-volume proxy.
Bars outside 95.45% zone - Red = Thinly traded / low-acceptance area — possible rejection zone.
POC line - Yellow = Point of Control — highest-volume price / acceptance reference.
±1σ analogy (68.2% VA) - White dashed = 68.2% volume-coverage boundary.
±2σ analogy (95.45% EVA) - Purple solid = 95.45% volume-coverage boundary.
PNR bands - Grey dotted = Empirical percentile envelope around the mean.
🔹 How to read it
Start with the profile. POC = highest-volume price / acceptance reference. The 68.2% zone = normal rotation area. The 95.45% zone = the wider coverage band. Red bars = low-acceptance areas where price moved quickly and may do so again.
Check the fill. Green fill = bullish regime; red = bearish; white = stretched oscillator.
Look for candle confluence. A cyan candle appearing at or beyond the 95.45% VP boundary, near a pivot S/R level, and inside a purple background is the highest-probability reversal context this script identifies.
Use the backgrounds as context, not triggers. Green/red bands fire frequently and are noisy alone. Purple/dark-red bands are rare and pair well with a cyan candle and a structural level.
Trend direction comes from the slope of the smoothed candles and their position relative to the mean channel — not from any single bar.
🔹 Inputs reference and controls
Linear Regression Candles - LinReg period, doji sensitivity
Static Mean Channel - SMA length (also drives RSI and PNR length)
Percentile Nearest Rank - Sensitivity threshold (default 85)
Volume Profile - Rows, width, VA %, history depth, up/down colors, outside-95.45% color, label toggle, line-extension toggle.
Support & Resistance - Pivot lookback, max levels per side, ATR merge tolerance, line width, color, label toggle.
Extreme Oscillator - Candle Color, Enable toggle, custom color.
🔹 Notes & caveats
The Volume Profile reflects the currently visible chart range. Scroll or zoom and it redraws.
The profile recomputes on every realtime tick. Initial load on long-history charts may take a moment.
The 68.2% and 95.45% zones are volume-coverage thresholds, not calculated standard deviations of the volume distribution. The ±1σ / ±2σ labels are an analogy only.
Up-volume / down-volume is a candle-direction proxy, not a true bid/ask tape classification.
"Rejected" / "low-acceptance" areas are potential rejection zones, not confirmed ones — the profile shows where volume was thin, and thin areas are prone to fast traversal, not guaranteed to reverse.
Alerts are provided for the extreme-oscillator conditions (upper and lower).
This indicator is a contextual / analytical tool. It does not generate buy/sell signals.
Pair with a separate momentum oscillator pane if you want confirmation timing.
🔹 Credits
Built with Pine Script v6 using built-in ta.* functions. Logic is original. Feedback welcome. مؤشر

SuperTrend Regime Confluence📊 SUPERTREND REGIME CONFLUENCE
A trend-following strategy combining a volatility-adaptive SuperTrend with a
market-regime classifier and a five-factor confluence filter.
The three components aren't stacked arbitrarily. Each one fixes a specific,
well-known weakness of the others, which is why they're combined into a single
tool rather than used separately.
🧩 WHY THESE COMPONENTS ARE COMBINED
A standard SuperTrend has two weaknesses:
- Fixed ATR multiplier: too tight in volatile markets (premature flips), too
wide in quiet trends.
- It flips on every crossover regardless of conditions, causing whipsaws in
sideways markets.
This strategy addresses both:
1️⃣ Regime detection adapts the band.
An ADX plus ATR-ratio classifier labels each bar Trending, Volatile, or Ranging.
In Volatile conditions the multiplier widens (fewer false flips during
expansion); in Ranging conditions it tightens. The band reacts to conditions
instead of using one fixed setting.
2️⃣ The regime filter removes the worst environment.
Entries during the Ranging regime (where trend-following bleeds) can be skipped
entirely.
3️⃣ The confluence score gates each flip.
Rather than trading every SuperTrend flip, each candidate entry is scored 0 to
100. Only flips clearing a minimum score are taken.
Together: the classifier makes the band adaptive, the regime filter removes the
setting where the signal fails, and the score removes the weakest signals. Each
piece compensates for a limitation of the SuperTrend it's built on.
🧮 THE CONFLUENCE SCORE (rules-based, not machine learning)
A plain weighted sum of five factors, each contributing fixed points. It is
fully deterministic and documented in the code. No model, no training, no black
box:
- Volume surge (0 to 20): entry-bar volume vs its moving average
- Displacement (0 to 25): distance price moved beyond the band, in ATR units
- Trend alignment (0 to 20): signal direction vs a longer EMA
- Regime quality (0 to 15): more points in a clean Trending regime
- Prior distance (0 to 20): how far price held from the band before the flip
The sum (capped at 100) must exceed the Min Signal Score input to trigger entry.
🛡️ RISK MANAGEMENT AND SIZING
- Risk-based sizing: each position is sized so a stop-out risks a fixed percent
of equity.
- Capped at 90% of equity: no leverage, always a margin buffer (no liquidations).
- Selectable stops (ATR, Percent, or SuperTrend flip) and take-profits
(Risk:Reward, Percent, or None).
- Optional EMA filter, volume filter, entry cooldown, and long/short toggles.
- Default risk sits within TradingView's suggested 5 to 10 percent band. Lower it
for a more conservative profile.
⚙️ DEFAULT SETTINGS (as shown)
BTCUSDT, 4H, 6% risk per trade.
ATR length 10, base multiplier 3, regime lookback 40, ADX 14, ADX threshold 20.
Trend EMA 50, min signal score 65, ATR stop 6x, risk:reward 2.5, cooldown 5 bars.
Commission 0.06%, slippage 2 ticks.
Backtest shown: Jan 2020 to Sep 2026. Return +824%, max drawdown 24.55%, profit
factor 1.80, win rate 46.4%, 168 trades.
⚠️ NOTES ON USE
This is a trend-following system, so it performs best on instruments that trend
and expand in volatility. Expect drawdowns and losing streaks during extended
sideways periods, which is inherent to the approach.
Results shown are a historical backtest on a single instrument and do not
indicate future performance. Test on your own instrument, timeframe, and cost
assumptions before use. This is not financial advice. استراتيجية

DELTA/SIGMA heatmap - Quant Flow# DELTA/SIGMA heatmap - Quant Flow
Session Atlas combines price statistics, estimated volume flow and session structure in one chart overlay. Designed primarily for intraday analysis of **NQ and QQQ**, it helps traders assess unusual price movements alongside VWAP, opening prices and volume distribution.
### Main features
**Three price-movement models**
Choose between Rolling, EWMA and Robust MAD. Each compares the current logarithmic return with a reference built exclusively from previous candles. Robust MAD uses the median and median absolute deviation, providing an alternative that is less sensitive to isolated historical shocks.
**Historical context**
See how many previous returns were at least as far from their shared median as the current return. Additional metrics show:
- **Volatility ratio:** recent volatility compared with a longer historical window.
- **Path efficiency:** how directly price travelled, from repeated reversals toward movement consistently in one direction.
These describe observed market behaviour; they are not probabilities of a profitable trade.
**Delta heatmap and RTH CVD**
Display estimated directional volume through candle colours and cumulative volume delta from the regular-session open. These calculations use OHLCV price-direction estimates, **not actual bid/ask execution data**.
**Session reference levels**
Track regular-session, daily and extended-session opening prices, together with RTH and ETH VWAP. Optional RTH VWAP bands show volume-weighted price dispersion.
**Volume profile**
View an estimated profile for RTH, ETH or a rolling window of minute bars, including POC, Value Area High and Value Area Low.
**Optional level mapping**
Add manually supplied call-wall, put-wall, gamma-flip and high-OI levels with explicit validity periods. Price-conversion tools can map levels between related instruments. The script does not independently retrieve an options chain or calculate dealer gamma exposure.
**Configurable alerts and presentation**
Choose alerts at the start of a sigma extreme or on every qualifying candle, with an adjustable minimum interval. Candle heatmaps default to confirmed bars; session calculations can continue updating intrabar.
### Intended use
Use Session Atlas as a market-context tool alongside your own trading rules. It supports standard time-based intraday charts from one minute upward. Results depend on the selected timeframe, session and available data.
An extreme reading identifies an unusual movement—it does not, by itself, establish a reversal, continuation or trade entry. No profitability or predictive accuracy is guaranteed. مؤشر

استراتيجية

VPCI & AVSL - Volume AnalysisDescription:
This indicator implements two volume-analysis techniques from Buff Dormeier's book "Investing with Volume Analysis" (FT Press, 2011, chapter 17):
1. VPCI (Volume Price Confirmation Indicator) — measures whether volume is CONFIRMING or CONTRADICTING the current price trend, plotted as a histogram in its own panel, with a smoothed line and adjustable alert thresholds.
2. AVSL (Anti-Volume Stop Loss) — a stop-loss/support-resistance zone that adapts to each instrument's own volatility and volume, plotted directly on the price chart (works on any market: forex, gold, crypto, stocks).
V-bottom / V-top pattern: the indicator also plots a Bollinger Band around the VPCI line itself and flags the specific pattern the book describes as its strongest signal — VPCI diving below the lower band and then crossing back above it (a "V-bottom"), which the author uses to mark intermediate-term lows. A symmetric "V-top" case (VPCI spiking above the upper band then crossing back below) is the script author's own extension for the opposite side, not something explicitly described in the book. Both are marked on the chart with shapes and have dedicated alerts.
All formulas were re-implemented from scratch in Pine Script — no code was copied from any other public script. Toggle "Show summary table only" in settings to hide all plots and keep just a compact 5-row status table (VPCI value, status, AVSL buy/sell levels, latest V-pattern).
This script is for educational purposes only and does not constitute financial advice. Always combine with your own risk management. مؤشر

STRATEGY SCRIPT Sweep Return v1 STRATEGY SCRIPT
The "EE Sweep Return v1" is a liquidity capture indicator engineered to trade the failure of Opening Range Breakouts, systematically identifying when price sweeps above or below the morning range to trap breakout traders before reversing back inside.
**Architectural Breakdown**
| Phase | Timeframe (CT) | Mechanical Function |
| --- | --- | --- |
| **Calibration** | 08:30 - 09:30 | Maps the absolute High (`orH`) and Low (`orL`) of the cash session open. Visualized as a shaded box. |
| **Arming** | 09:30 - 15:00 | The indicator monitors for a breach. If price breaks the `orH`, it arms a potential short trap. If price breaks the `orL`, it arms a potential long trap. |
| **Execution** | 09:30 - 15:00 | The trigger fires. A **SHORT** prints if price sweeps the high but closes back below `orH`. A **LONG** prints if price sweeps the low but closes back above `orL`. |
**Operational Nuances**
* **Same-Bar Logic:** By default (`sameBar = true`), the indicator allows the break and the reversion to happen on a single candle (a wick rejection). If toggled off, it requires one candle to close outside the range, and a subsequent candle to close back inside.
* **Timezone Alignment:** The `America/Chicago` timezone anchors the logic perfectly to Central Time, ensuring the 08:30 - 09:30 window aligns flawlessly with the initial hour of the New York equities open.
## AI Integration: Evolving the Sweep Strategy
To elevate this first-principles liquidity concept into a perfectly optimized, high-level quantitative model, artificial intelligence must be integrated to eliminate false signals and maximize directional efficiency.
* **Granular Execution (Micro-Structure Analysis):** A standard sweep simply measures a price close. An AI-integrated model analyzes the Level 2 order book and footprint data during the sweep itself. Machine learning algorithms can detect real-time volume absorption—confirming exactly when institutional limit orders absorb retail stop-losses at the `orH` or `orL` before the candle even closes, executing the entry at the absolute geometric peak of the wick.
* **Contextual Volatility Filtering:** Neural networks can pre-calculate the probability of a sweep versus a true trend day by analyzing pre-market volume, VIX term structure, and macroeconomic data releases. If the AI determines a high-trend probability, it dynamically disables the sweep indicator to prevent fading a genuine breakout.
* **Dynamic Range Optimization:** Instead of a static 08:30 - 09:30 Opening Range, an unsupervised learning algorithm can dynamically adjust the time window block by block based on the underlying asset's real-time average true range (ATR) and relative volume (RVOL), perfectly sizing the trap parameters to the exact heartbeat of the current session. استراتيجية

QQQ Momentum Complete 4.31# QQQ Momentum Complete — Trend Structure & Momentum
QQQ Momentum Complete combines automatic trend lines, market structure, Fair Value Gaps and a MACD-style momentum panel. It is designed to help traders read price direction, recognize weakening momentum and compare several timeframes without switching charts.
### Automatic Trend Lines
Trend lines connect two confirmed candle-body pivots. Resistance prioritizes the highest eligible body pivot, while support prioritizes the lowest eligible body pivot and slopes upward.
Small historical price crossings can be tolerated through adjustable settings. Active lines remain fixed until a candle closes beyond the configured break threshold or their anchors expire. Previous lines remain visible as historical context.
### Market Structure
**BOS — Break of Structure** marks a confirmed close beyond a tracked swing level in the established direction. The first qualifying break initializes the direction.
**CHoCH — Change of Character** marks a confirmed break against that direction.
Labels appear below the connecting lines for a cleaner chart.
### Equal Highs and Equal Lows
**EQH** and **EQL** connect consecutive confirmed wick pivots that fall within an adjustable price tolerance.
These are historical formations. Their presence does not mean that the level remains unbroken or that a reversal will follow.
### Support, Resistance and Fair Value Gaps
Support and resistance zones form around confirmed swing extremes.
FVG shading identifies three-candle wick imbalances. The shading stays attached to the formation and contracts as subsequent confirmed candles fill the gap.
### Multi-Timeframe Dashboard
The compact dashboard displays **5m, 15m, 30m and 1h** by default:
- **Structure:** green for bullish structure, red for bearish structure and yellow for mixed structure.
- **Impuls:** green for building upward momentum, red for building downward momentum, yellow for fading momentum and gray for neutral or unavailable data.
- **Reversal:** “Wait” indicates weakening, “Up?” or “Down?” indicates a potential change, and “Up” or “Down” indicates confirmation under the script’s structural rules.
Dashboard values use completed candles from each source timeframe. Tooltips provide additional detail.
### Momentum Panel
The lower panel displays MACD and its signal line, normalized by the previous candle’s ATR. Histogram colors distinguish strengthening and weakening momentum in either direction.
Default MACD settings are **8 / 21 / 5**. The lower panel updates during the live candle, so its developing values may change before the candle closes.
### Additional Features
- Optional EMA 9, 21, 50 and 100 overlays.
- VWAP and previous-session high/low levels.
- Daily opening-candle background highlight, defaulting to **09:30 New York time**.
- Adjustable colors, line widths and dashboard size.
- Optional live candle-body split based on the closing price’s position within the candle’s range.
The candle split is a price-based estimate. It does not measure actual buying/selling volume or opened and closed long/short positions.
### Important Notes
Pivot-based drawings become available only after the required confirmation candles have closed. Although drawings connect earlier pivot candles, they were not known at those earlier moments.
This indicator describes price structure and momentum; it does not predict the next candle or guarantee a reversal. It uses chart data rather than option-chain data, and its default settings are not a validated trading strategy. مؤشر

2x FVG + BOS/CHoCH + EMA + RSI Gradient + PVSRAOVERVIEW
2x FVG Structure and PVSRA Footprint Toolkit is an intraday market-analysis indicator designed to combine several different layers of market information into one structured workflow:
1. Trend and directional context using EMA 50 and EMA 200
2. Market structure using BOS and CHoCH
3. Price imbalance using Fair Value Gaps
4. Detection of two distinct same-direction FVG structures
5. Volume-based PVSRA / Vector Candle classification
6. Volume Footprint Buy/Sell dominance
7. Optional RSI-based candle coloring
8. Alerts for selected structural, EMA, FVG and PVSRA events
The purpose of combining these modules is not to produce a standalone automatic buy or sell signal.
Instead, the indicator is intended to help traders evaluate several independent pieces of market information on the same chart and determine whether price structure, imbalance, volume activity and directional participation are supporting the same market scenario.
The indicator does not place trades, calculate position size, define risk, or guarantee future price direction.
WHY THESE MODULES ARE COMBINED
This indicator is not intended to be a collection of unrelated indicators.
Each module has a specific role in the analysis process.
EMA 50 and EMA 200 provide broader directional context.
BOS and CHoCH identify changes or continuation in confirmed market structure.
Fair Value Gaps identify three-candle price inefficiencies.
The 2x FVG module identifies situations where two separate same-direction imbalance structures occur within a configurable number of bars.
PVSRA highlights candles with abnormal volume or volume-spread activity.
Volume Footprint statistics provide additional information about the distribution of classified Buy and Sell volume inside selected candles.
The intended workflow is therefore:
CONTEXT
→ STRUCTURE
→ IMBALANCE
→ VOLUME
→ FOOTPRINT CONFIRMATION
A trader can use each layer independently, but the main purpose of the indicator is to provide contextual confirmation between different types of market information.
EMA 50 AND EMA 200
The indicator calculates two Exponential Moving Averages:
Fast EMA:
Default length = 50
Slow EMA:
Default length = 200
Both lengths, colors and line widths can be changed in the settings.
The EMA module provides a simple representation of medium-term and longer-term price direction.
A bullish EMA cross occurs when the Fast EMA crosses above the Slow EMA.
A bearish EMA cross occurs when the Fast EMA crosses below the Slow EMA.
The script can display small visual markers when these crosses occur and can generate corresponding alert conditions.
The EMA module should be treated as market context rather than as an independent entry system.
For example, a trader may choose to give more weight to bullish structural setups while the Fast EMA is above the Slow EMA and more weight to bearish setups while the opposite condition exists.
This is only one possible interpretation and is not enforced by the indicator.
MARKET STRUCTURE: SWING HIGH AND SWING LOW
Market structure is calculated using confirmed pivot highs and pivot lows.
The Swing Length setting determines how many bars are required on each side of a potential swing.
With the default Swing Length of 5, a pivot requires five bars to the left and five bars to the right before it can be confirmed.
This has an important consequence:
A swing point cannot be known at the moment the original high or low occurs.
It becomes confirmed only after the required number of right-side bars exists.
Therefore, historical swing locations must not be interpreted as signals that were available at the original swing bar.
The indicator uses these confirmed swings as reference levels for BOS and CHoCH detection.
BOS — BREAK OF STRUCTURE
A Break of Structure identifies a break of a previously confirmed swing level in the current structural direction.
Depending on the Structure Break Confirmation setting, a break can be confirmed using:
Close
or
Wick
When Close is selected, price must close beyond the swing level.
When Wick is selected, the high or low of the candle can confirm the break.
A bullish BOS represents a confirmed break above a relevant swing high while the internal structural direction is already bullish or has not previously established a bearish reversal condition.
A bearish BOS represents the corresponding break below a relevant swing low.
BOS should generally be interpreted as a structural continuation event rather than an automatic trade signal.
CHOCH — CHANGE OF CHARACTER
CHoCH is used to identify a possible change in structural direction.
A bullish CHoCH occurs when price breaks a confirmed swing high while the previously tracked structure was bearish.
A bearish CHoCH occurs when price breaks a confirmed swing low while the previously tracked structure was bullish.
This can help identify potential transitions between bearish and bullish structure.
A CHoCH does not guarantee a reversal.
Markets frequently produce temporary structural breaks before continuing in the previous direction.
For this reason, CHoCH is intended to be evaluated together with other information such as FVGs, EMA context, PVSRA activity and Footprint dominance.
IMPORTANT STRUCTURE DISPLAY BEHAVIOR
When a BOS or CHoCH occurs, the horizontal structure line begins at the historical swing that was broken and ends at the bar that confirmed the break.
The visual line therefore extends backward to the location of the swing.
This does NOT mean the BOS or CHoCH signal was known at the swing bar.
The actual structural event is confirmed only when the later candle breaks the swing according to the selected Close or Wick confirmation method.
This distinction is important when visually reviewing historical charts.
FAIR VALUE GAP — FVG
The indicator detects traditional three-candle Fair Value Gaps.
A Bullish FVG is detected when:
Current Low > High from two bars earlier
A Bearish FVG is detected when:
Current High < Low from two bars earlier
This represents a price range that was not overlapped by the first and third candles of the three-candle sequence.
The FVG is created only on a confirmed bar.
Users can optionally apply a minimum FVG size filter.
The minimum size can be expressed in:
Points
or
Ticks
This can be useful for reducing very small imbalances that may have limited analytical value on a particular instrument.
The appropriate minimum FVG size depends on the instrument, volatility and timeframe.
There is no universal value that works for every market.
FVG VISIBILITY
The indicator allows users to display:
All available FVGs
or
Only FVGs from the most recent configured number of hours.
The default historical window is 24 hours.
A maximum number of FVG objects is also enforced to protect chart performance and TradingView object limits.
IMPORTANT:
The current implementation does not automatically remove an FVG simply because price later trades through or mitigates the zone.
The displayed FVG therefore represents the historical detection of the imbalance, not necessarily an active or unmitigated trading zone.
2x FVG LOGIC
The 2x FVG module is more selective than simply counting any two Fair Value Gaps.
The script tracks FVGs of the same direction occurring within the configurable Max Bars Between FVG setting.
The default value is 5 bars.
If a new same-direction FVG overlaps the currently tracked FVG cluster, the indicator treats the gaps as part of the same broader imbalance structure.
The cluster boundaries are expanded when necessary.
A 2x FVG event is generated when another same-direction FVG appears within the allowed bar window but forms a separate, non-overlapping imbalance rather than simply extending the existing cluster.
Therefore:
Two overlapping bullish FVGs are not necessarily treated as a completed 2x Bullish FVG signal.
Two distinct bullish FVG structures occurring close together can generate the bullish 2x marker.
The same logic applies in the bearish direction.
When an opposite-direction FVG occurs, the previous same-direction cluster is reset.
This design attempts to distinguish between one extended imbalance and two separate displacement events.
HOW TO INTERPRET 2x FVG
A 2x FVG should not automatically be interpreted as an entry.
It indicates that price has created multiple distinct inefficiencies in the same direction over a relatively short sequence of candles.
For example:
Bullish market structure
+
price above the broader EMA context
+
bullish BOS
+
two separate bullish FVGs
+
strong bullish PVSRA activity
provides more contextual information than a single FVG alone.
However, the indicator does not assign a statistical probability of success to such a configuration.
Users should test the behavior on the specific instrument and timeframe they trade.
PVSRA / VECTOR CANDLES
The PVSRA module classifies candles according to volume and candle spread.
The default volume lookback period is 10 bars.
The script calculates the average volume over this lookback period.
The default Above Average threshold is:
150% of average volume
The default Climax threshold is:
200% of average volume
A candle can also qualify as a Climax candle through the Volume x Spread calculation.
Volume x Spread is calculated as:
Volume × (High - Low)
The script compares this value with the highest Volume x Spread value over the configured PVSRA lookback.
This allows unusually large volume combined with a wide candle range to be identified even when the simple volume threshold alone may not fully describe the event.
PVSRA CANDLE COLORS
By default, the PVSRA candle categories are displayed as:
Green:
Bullish 200% / Climax candle
Red:
Bearish 200% / Climax candle
Blue:
Bullish 150% Above Average candle
Purple:
Bearish 150% Above Average candle
Light Gray:
Regular bullish candle
Dark Gray:
Regular bearish candle
All colors can be modified by the user.
The bullish or bearish classification of the candle itself is determined by comparing its Open and Close.
A bullish candle has:
Close > Open
A bearish candle has:
Close <= Open
PVSRA SOURCE SYMBOL
By default, PVSRA calculations use the current chart symbol.
An optional Override PVSRA Source Symbol setting is available.
This allows the volume calculations to use another symbol or data feed.
This feature should be used carefully.
If the PVSRA source symbol is different from the chart symbol, the volume information no longer represents exactly the same instrument displayed on the chart.
The user is responsible for selecting a logically appropriate source.
WHAT A PVSRA CLIMAX MEANS
A Climax candle indicates unusually high activity relative to recent bars.
It does NOT automatically indicate reversal.
For example, a bullish Climax candle can represent:
Strong continuation buying
Aggressive participation during a breakout
Buying absorption
Late participation near the end of a move
or increased activity around an important level.
Context is therefore essential.
A high-volume candle is evidence of increased activity, not proof of the next market direction.
VOLUME FOOTPRINT BUY/SELL DOMINANCE
The Footprint module uses TradingView's volume footprint data.
For selected candles, the script retrieves:
Total Volume
Buy Volume
Sell Volume
Volume Delta
The script then calculates:
Buy % = Buy Volume / Total Volume × 100
Sell % = Sell Volume / Total Volume × 100
Delta % = Volume Delta / Total Volume × 100
where:
Volume Delta = Buy Volume - Sell Volume
IMPORTANT INFORMATION ABOUT BUY AND SELL VOLUME
The words BUY and SELL in the Footprint module refer to TradingView's volume footprint classification.
TradingView classifies lower-timeframe volume according to the direction of intrabar price movement.
This should not be interpreted as direct access to every participant's intentions, resting limit orders, or the complete exchange order book.
The indicator does NOT display DOM resting liquidity.
It does NOT show pending limit orders.
It does NOT identify how many individual traders are buying or selling.
It displays TradingView's calculated Buy and Sell footprint volume categories.
This distinction is important when interpreting the values.
FOOTPRINT DOMINANCE
The indicator compares Buy % and Sell %.
If the difference between the two sides is smaller than or equal to the Neutral Threshold, the candle is classified as NEUTRAL.
The default Neutral Threshold is 5 percentage points.
For example:
BUY = 52%
SELL = 48%
Difference = 4 percentage points
With a 5% Neutral Threshold, this candle is considered neutral.
Another example:
BUY = 67%
SELL = 33%
Difference = 34 percentage points
This candle is classified as BUY dominance.
The same logic applies to SELL dominance.
FOOTPRINT BUBBLES
Footprint information is displayed using bubbles near selected candles.
BUY dominance is displayed below the candle.
SELL dominance is displayed above the candle.
Neutral conditions are also displayed above the candle.
The bubble can contain:
BUY or SELL classification
Buy or Sell percentage
Volume Delta percentage
A detailed tooltip can additionally display:
Buy Volume
Sell Volume
Total Volume
Buy %
Sell %
Absolute Delta
Delta %
Dominance classification
Difference between Buy and Sell percentages
DYNAMIC BUBBLE SIZE
When Dynamic Bubble Size is enabled, stronger Buy/Sell differences can produce larger bubbles.
The bubble size is therefore a visual representation of the magnitude of the Buy/Sell dominance difference.
It should not be interpreted as a prediction of future price movement.
The script also uses a simple anti-collision system that assigns nearby bubbles to different visual lanes to reduce overlap.
FOOTPRINT VISIBILITY FILTER
Users can choose which candles receive Footprint bubbles.
Available modes are:
200% Climax only
150% + 200%
All candles
The default mode is 200% Climax only.
This is intentional.
Displaying Footprint statistics only around unusually active PVSRA candles can reduce visual noise and focuses the Footprint module on bars where volume participation is already elevated.
FOOTPRINT HISTORY
The indicator includes an option to limit Footprint bubble history to approximately the most recent hour.
This reduces chart clutter and helps manage the amount of footprint data used by the script.
The current implementation also restricts footprint calculations to a limited number of recent bars for memory efficiency.
As a result, the Footprint component is primarily intended as a recent intraday analysis tool rather than a long-term historical footprint database.
The availability and precision of Footprint data can also depend on the symbol, timeframe, available market data and TradingView account/data access.
FOOTPRINT ROW SIZE
Ticks Per Footprint Row controls the aggregation size used in the footprint request.
However, this indicator currently uses the overall Buy Volume, Sell Volume, Total Volume and Delta of each requested footprint.
It does not display every individual footprint price row.
It therefore should not be confused with a complete Footprint chart showing bid/ask-style information at every individual price level.
RSI CANDLE GRADIENT
The indicator also includes an optional RSI candle-coloring mode.
The default RSI length is 14.
The gradient transitions through several ranges:
Very low RSI
→ green
Lower RSI
→ green/yellow
Mid-range RSI
→ yellow/orange
Higher RSI
→ red
Extreme high RSI
→ dark red
The default Oversold and Overbought reference values are 30 and 70.
This module is designed primarily as an alternative momentum visualization.
IMPORTANT:
PVSRA candle coloring has priority over RSI candle coloring.
If PVSRA and RSI Gradient are both enabled, PVSRA colors are displayed.
To view the RSI candle gradient directly, disable PVSRA candle coloring.
ALERTS
The indicator provides alert conditions for:
2x Bullish FVG
2x Bearish FVG
Any 2x FVG
Bullish BOS
Bearish BOS
Any BOS
Bullish CHoCH
Bearish CHoCH
Any CHoCH
Any Structure Break
Bullish EMA Cross
Bearish EMA Cross
Any EMA Cross
Bullish PVSRA Climax candle
Bearish PVSRA Climax candle
Any PVSRA Climax candle
Master "Any Signal" condition
The script also includes a repeating alert engine using alert() calls.
Signals are evaluated using confirmed bars.
This means alerts are intended to trigger after the relevant candle has closed rather than continuously changing during the still-forming candle.
The current Footprint bubble itself is not included as a separate alert condition.
PRACTICAL WORKFLOW
One possible way to use the indicator is to begin with directional context.
First evaluate the position and relationship of EMA 50 and EMA 200.
Then evaluate the most recent confirmed BOS or CHoCH.
Next examine whether the displacement created one or more Fair Value Gaps.
A 2x FVG can indicate that multiple separate price inefficiencies have formed in the same direction.
PVSRA can then be used to determine whether the move occurred with unusually high volume or Volume x Spread activity.
Finally, the Footprint bubble can provide additional information about TradingView-classified Buy/Sell volume dominance inside the selected high-activity candle.
This creates a multi-layer confirmation process rather than relying on one isolated indicator.
EXAMPLE OF BULLISH CONFLUENCE
A trader may observe:
EMA context favoring the upside
Bullish BOS or bullish CHoCH
Bullish FVG structure
Bullish 2x FVG
Bullish PVSRA Climax candle
BUY-dominant Footprint statistics
This combination may justify further investigation of a bullish scenario.
It does NOT mean a long trade must be taken.
The same concept can be mirrored for bearish conditions.
DIVERGENCE BETWEEN PRICE AND FOOTPRINT
The Footprint module may also be useful when its information disagrees with the candle direction.
For example, price may close bullish while the Footprint statistics show stronger Sell classification.
Likewise, a bearish candle may contain strong classified Buy volume.
Such situations can indicate more complex interaction between price movement and volume participation.
They can be worth observing around:
previous highs or lows
liquidity areas
major support or resistance
BOS or CHoCH levels
FVG boundaries
session extremes
However, these relationships are contextual observations and are not automatically classified by this version of the indicator as absorption or reversal signals.
TIMEFRAMES AND MARKETS
The indicator is primarily designed for intraday use.
It can technically operate on multiple standard chart timeframes, but the meaning of each component changes with timeframe and market structure.
Short timeframes generate more structural events and more FVGs, but also more noise.
Higher timeframes produce fewer signals and generally larger structural zones.
Users should adjust:
Swing Length
Minimum FVG Size
Maximum Bars Between FVGs
PVSRA thresholds
Footprint settings
according to the volatility and tick size of the instrument being analyzed.
The default settings should be treated as starting values rather than universally optimized parameters.
Volume-dependent modules are most meaningful on markets where reliable volume data is available.
STANDARD CANDLESTICK CHARTS RECOMMENDED
The indicator is designed for use with standard time-based candlestick charts.
Using synthetic chart types such as:
Heikin Ashi
Renko
Kagi
Point & Figure
Range
or Line Break
can change the relationship between displayed OHLC values and actual market prices.
For structural or signal-based analysis, standard candlestick charts are recommended.
REPAINTING, CONFIRMATION AND HISTORICAL DISPLAY
The script intentionally uses confirmed candles for FVG, structure, EMA-cross and PVSRA signal events.
The PVSRA security request uses lookahead disabled.
However, users should understand the behavior of confirmed pivots.
A pivot high or pivot low requires future right-side bars before it becomes confirmed.
The structure line is then drawn starting from the historical pivot.
Therefore, the historical location of a swing does not mean the swing was known in real time at that original candle.
Likewise, a BOS/CHoCH line visually beginning at a previous swing does not mean the structure break occurred there.
The actual BOS or CHoCH event occurs only on the later bar that confirms the break.
This is normal pivot-based structure behavior and should be considered when reviewing historical charts.
LIMITATIONS
This indicator does not predict future market direction.
It does not provide guaranteed entries or exits.
It does not calculate Stop Loss or Take Profit levels.
It does not calculate risk or position size.
It does not execute trades.
FVG zones are not automatically removed after mitigation.
BOS and CHoCH depend on confirmed swing pivots and therefore include structural confirmation delay.
PVSRA identifies unusual volume activity but cannot determine the intention of market participants.
Footprint BUY and SELL statistics are based on TradingView's footprint volume classification and should not be confused with direct DOM order-book liquidity.
The Footprint module currently uses bar-level total Buy/Sell statistics rather than displaying the complete footprint ladder at every price level.
The availability and granularity of Footprint data depend on TradingView's available lower-timeframe data and market-data access.
Historical results should not be interpreted as evidence of future performance.
INTENDED USE
This indicator is intended as a discretionary market-analysis toolkit.
It is most useful when the trader evaluates the relationship between:
market direction
confirmed structure
price imbalance
volume expansion
and Buy/Sell volume distribution
rather than interpreting any single visual element as an automatic trading signal.
Users are encouraged to test the indicator on historical and real-time data, understand each component independently, and build their own risk-management rules before using the information in live trading. مؤشر

مؤشر

Bollinger Bands 3STDMulti-band Bollinger overlay that plots ±1, ±2, and ±3 standard deviation bands on one chart.
What it shows
Three white band pairs (±1σ, ±2σ, ±3σ) around a shared moving-average basis (basis line is not plotted)
Soft corridor fills between 1σ→2σ and 2σ→3σ so the outer zones are easy to see without clutter
Markers when price closes outside the ±2σ bands (not wick touches)
How it works
Bands are built from a selectable basis MA (SMA, EMA, RMA, or WMA) plus standard deviation of the chosen source. Defaults match classic Bollinger settings: length 20, multipliers 1 / 2 / 3.
Alerts
Use TradingView alerts on this script:
Close above 2σ
Close below 2σ
Any 2σ close outside
Tip: set the alert to Once Per Bar Close.
Inputs
Length, source, basis MA type
StdDev multipliers (1 / 2 / 3)
Corridor fill colors
Toggle for 2σ close-outside markers
Notes
This is a volatility / stretch visualization tool, not a buy/sell signal system. Use it with your own confirmation (trend, RSI, levels, etc.). مؤشر

Auto Trend Channels [AFD]A trend channel is only worth drawing if price actually respected it. This script builds every channel from three confirmed swing pivots, checks each bar between the anchors against the boundaries, and puts the channel on your chart only once a bar has closed inside it. Then it marks, on the drawing itself, the exact bar it became usable - so you always know which part of the channel is history and which part you could have acted on.
WHAT IT DOES
Auto Trend Channels finds parallel channels from confirmed swing pivots and follows each one through its whole life: accepted, broken, retouched, returned or expired.
Three pivots, exact geometry - a rising channel joins two rising swing lows and runs its upper boundary parallel through the swing high between them. A falling channel joins two falling swing highs, with the parallel through the swing low between. No regression fit, no approximate parallels.
Every bar between the anchors is checked - a candidate is rejected if any bar in its span pokes past a boundary by more than your Containment allowance. Its width has to sit between your Minimum and Maximum width, both measured in units of the chart's own average range, frozen when the channel is built.
Usable means a bar closed inside it - a channel is drawn only after a confirmed close lands between its boundaries. The dotted vertical Known line marks that bar.
One active channel per layer - a newer candidate never replaces an intact channel. Turn on Longer swing channel for a second, larger layer on the same timeframe, drawn heavier and fainter so the two stay tellable apart.
HOW A CHANNEL LIVES AND DIES
Active - solid boundaries in the rising or falling colour, shaded inside, extending to the current bar. The label at the right edge reads the direction and Active.
Close outside - the first confirmed close beyond a boundary, past your Close allowance, starts a return watch. The channel switches to the history colour, goes dashed, loses its shading, and its label reads Watching above or Watching below. It keeps extending while the watch runs.
Boundary retouch - the first later bar whose high or low reaches the broken boundary while the close stays outside gets a one-time mark on that channel. Recorded once, never counted or rated.
Returned inside - a confirmed close back between the boundaries within the watch window finishes the channel as Returned inside. A finished channel never reactivates.
Watch ended - no close back inside within the window, and the channel is finished with its right edge frozen where it ended. Separately, once a channel's first anchor passes your horizon it is retired and leaves the chart, whatever state it was in.
Finished channels stay on the chart up to your Retained channels count, dashed and grey, so you can see what each channel did after it broke. Channels hidden by that count keep running their watch and still alert.
WHAT YOU GET ON THE CHART
Upper and lower boundaries, with an optional midpoint and quarter lines.
The Known marker on a dotted vertical line at the acceptance bar.
Event labels at the bar that produced them, offset clear of the candles: Close above, Close below, Boundary retouch, Returned inside.
Optional A, B and C markers on the three source pivots.
An optional Forming channel view: the candidate a layer is currently building, dotted, faint and labelled as not accepted. Off by default, because a candidate can change or vanish before it is accepted.
A corner notice stating linear-price geometry and confirmed-pivot delay, with an optional status panel: per-layer state, live boundary prices, watch counts and how many sets are drawn.
Nine colour themes, including Paper for light charts and a Colourblind safe palette built on the published Okabe-Ito blue and vermilion, plus Custom pickers.
Three display switches - Channel labels, Channel fill and Corner table - to strip the drawing down to the lines alone when you want a clean chart.
ALERTS AND THE DATA WINDOW
Ten named alert conditions - Formed, Close above, Close below, Returned inside and Boundary retouch, for each layer - plus one combined dynamic alert that lists every enabled event on the bar with its layer, the channel's anchor timestamps and its raw boundaries. Each alert switch gates both the named condition and the combined message. Twenty Data Window plots expose the live upper, mid and lower values, the acceptance bar, the event flags and the watch counts, so every number on the chart can be read and exported.
SETTINGS WORTH KNOWING FIRST
Swing length sets how many bars either side confirm a pivot: raise it for fewer, larger, later channels, lower it for more, smaller, sooner ones. Pivots searched is how far back each construction reaches. Containment allowance, Minimum width and Maximum width are all multiples of the average true range frozen at construction, so they carry across symbols and timeframes without retuning. Close allowance is how far a close must clear a boundary before it counts as outside; 0 accepts any close beyond. Return watch is how many bars a broken channel is watched for a close back inside. Most tooltips end with a concrete example of what changing that setting does.
WHAT IT WILL NOT DO
It is not a signal tool. A channel is a description of where price has already been, and a break, a retouch or a return is a description of a close that already happened. Nothing here is an entry, an exit, a target, a probability or evidence of an edge, and no channel is ranked against another. Retouches are marked, never counted.
WHAT IS DISCLOSED RATHER THAN HIDDEN
Channels appear late by design. A pivot confirms Swing length bars after it prints, and a channel is drawn only after a bar closes inside it, so a new channel first appears drawn back over earlier anchors. The Known marker shows exactly where the usable part starts: left of it is where the geometry came from, not something you could have traded.
Linear-price geometry. Boundaries are parallel in price per bar. On a logarithmic price axis they are not log-space parallels, and the script cannot detect your axis setting. Slope is per bar, so a channel keeps its slope straight across a weekend gap.
Standard time-based charts only. Renko, Kagi, Range, tick and other nonstandard charts get a corner warning and no channels.
Reconstruction can change with loaded history, session settings, data adjustments or inputs. Whether this script repaints has not been observed on a replay and is not claimed here either way; confirm it with the bar-replay tool on your own symbol and timeframe.
No request.*() calls, no higher-timeframe data, no volume. Everything is computed from the chart's own bars.
ORIGINALITY AND CREDIT
Most auto-channel scripts fit a regression line and offset it, or join two points and draw a parallel at a fixed distance. This one builds exact three-pivot geometry, validates the full span between the anchors, waits for a confirmed close inside before it calls the channel usable, marks that bar on the drawing, and follows the channel through a bounded watch after it breaks. The geometry, engine and label patterns are adapted from Auction Foundry's own Auto Trendlines, Classical Auto Chart Patterns and Zone Forge.
Open source under the Mozilla Public License 2.0. (c) Auction Foundry.
This indicator describes channel geometry built from your chart's own price history. It is not a forecast, not a signal, and not financial advice. مؤشر

Trend Deviation Channel (Zeiierman)█ Overview
Trend Deviation Channel (Zeiierman) is an adaptive trend channel designed to measure the prevailing trend and how far price is displaced from its expected trend path.
The channel is built around five main components:
• Trend Baseline = the expected price path derived from the regression trend
• Deviation Rails = +1D, +2D, +3D and -1D, -2D, -3D levels around the trend
• Trend State = bullish, bearish, or neutral classification of the center trendline
• Deviation Profile = a rolling distribution showing where price has historically spent time relative to the trend
• Deviation Events = confirmed 2D and 3D Expansion and Re-entry events highlighting significant movement through the outer channel structure
A reading of -2D means price is approximately two normalized downside deviations below trend.
A reading beyond +3D or -3D represents a major displacement from the expected trend path and is classified as Dislocated .
█ How It Works
⚪ Trend Model
The indicator builds a regression trend from completed historical bars and projects that structure forward.
The current candle does not pull the trend toward itself while its deviation is being measured, helping preserve a cleaner reading of how far price has moved from the established trend.
re = ta.linreg(src , len, 0)
rp = ta.linreg(src , len, 1)
slope = re - rp
⚪ Trend State
The center 0 TREND line identifies the current environment as:
• Up Trend
• Down Trend
• Neutral
Trend direction is based on regression slope strength relative to ATR.
Separate Trend Enter Strength and Trend Exit Strength thresholds help prevent the trend state from constantly switching during borderline conditions.
⚪ Deviation Structure
Price displacement is measured relative to the projected trend rather than a horizontal average.
• ±1D = Stretch
• ±2D = Extreme
• ±3D = Dislocated
residual = price - trend
deviation = residual >= 0 ? residual / upperDev : residual / lowerDev
Price near 0D is trading close to trend equilibrium.
As price reaches 1D, 2D, and 3D , displacement from the expected trend path becomes progressively more significant.
⚪ Deviation Profile
The profile beside the channel shows where price has historically spent the most time in deviation space , rather than price space.
For example, readings such as +0.4D, +1.2D, -0.7D, and -2.1D are grouped together to reveal the distribution of trend-relative displacement.
Wider areas show deviation zones visited more often, while thinner areas show less common displacement.
⚪ Expansion & Re-entry
Expansion events identify confirmed transitions into more extended deviation regions.
exp2 = barstate.isconfirmed and ta.crossover(z, d2)
exp3 = barstate.isconfirmed and ta.crossover(z, d3)
2D Expansion indicates price has moved into an extreme displacement.
3D Expansion indicates price has moved into the outer Dislocated region.
A Re-entry occurs when price later crosses back inside the corresponding deviation boundary.
These events can help identify:
• accelerating extension
• sustained displacement
• failed expansion
• movement back toward trend equilibrium
█ How to Use
Trend Deviation Channel can be used for Trend Identification, Trend Pullbacks, Dislocation Analysis, Mean Reversion, and Deviation Profile Analysis.
⚪ Trend Identification
The centerline provides the directional framework of the indicator.
• Bullish centerline = active uptrend
• Bearish centerline = active downtrend
• Neutral centerline = insufficient directional strength
⚪ Trend Pullbacks
During an established uptrend, price can be evaluated by how deeply it pulls below the center trendline.
• 0D to -1D = normal movement around trend
• -1D to -2D = meaningful pullback from trend
• -2D to -3D = extreme downside displacement
• Below -3D = dislocation from the prevailing trend structure
The opposite interpretation can be applied during downtrends.
A deviation level should not automatically be treated as support, resistance, or a reversal point. Instead, it provides a standardized measurement of how far price has moved from its expected trend path.
⚪ Dislocation Analysis
A 3D move marks an unusually large deviation from the existing trend.
When price reaches 3D against a prolonged trend , it can signal that momentum has shifted strongly enough for a larger trend change to be developing.
The key is not the 3D touch itself, but whether price can hold the displacement or continue through it .
⚪ Mean Reversion
Price often reacts or temporarily bounces when reaching the outer 2D and 3D deviation bands .
These areas represent strong extension, so traders can watch for temporary pullbacks or mean-reversion moves when price reaches them.
A touch alone is not a reversal signal, but it highlights an area where a reaction may become more likely.
⚪ Deviation Profile Analysis
The Deviation Profile shows where price has spent the most time relative to the trend .
Wider areas represent deviation zones visited more frequently, while thinner areas represent less common displacement.
• A profile weighted toward the lower deviation bands can suggest persistent downside pressure and stronger seller control.
• A profile weighted toward the upper deviation bands can suggest persistent upside pressure and stronger buyer control.
A balanced profile around 0D suggests price is spending more time near trend equilibrium.
█ Settings
Source: Selects the price series used to construct the trend model and calculate deviation. Close is used by default.
Trend Length: Controls how much historical data is used to estimate the regression trend. Higher values create a smoother, slower channel. Lower values react faster.
Trend Enter Strength: Controls how much directional strength is required before the center trendline enters an Up or Down state.
Trend Exit Strength: Controls how weak an established trend must become before returning to Neutral.
Deviation Shape: Asymmetric estimates separate upside and downside deviation scales. Symmetric uses one shared scale for both sides.
Residual Shock Cap (ATR): Limits how much an unusually large historical movement can influence the deviation width.
Minimum Deviation Width (ATR): Prevents the deviation rails from becoming too narrow during low-volatility conditions.
Minimum One-Side Samples: Controls how many observations are required before an independent upside or downside deviation estimate is used.
Deviation 1: Controls the first deviation rail and separates the Core region from Stretch behavior.
Deviation 2: Controls the second deviation rail and the threshold used for 2D Expansion and Re-entry events.
Deviation 3: Controls the outer deviation rail and the threshold used for 3D Expansion and Re-entry events.
Stretch Memory: Controls how slowly persistent displacement beyond the first deviation rail fades from the internal stretch state.
Show Rail Labels: Shows or hides the +1D, +2D, +3D, 0 TREND, -1D, -2D, and -3D labels.
Show Current Deviation: Shows or hides the live label displaying the current normalized deviation and displacement zone.
Show 2D Expansion: Shows or hides confirmed 2D Expansion markers.
Show 2D Re-entry: Shows or hides confirmed 2D Re-entry markers.
Show 3D Expansion: Shows or hides confirmed 3D Expansion markers.
Show 3D Re-entry: Shows or hides confirmed 3D Re-entry markers.
Up Trend: Controls the center trendline color during an active uptrend.
Down Trend: Controls the center trendline color during an active downtrend.
Neutral Trend: Controls the center trendline color when no active directional trend is detected.
Upper Deviation: Controls the color of positive deviation rails, upper channel areas, profile bins, and upside events.
Lower Deviation: Controls the color of negative deviation rails, lower channel areas, profile bins, and downside events.
Show Deviation Profile: Shows or hides the rolling trend-relative Deviation Profile.
Bins: Controls the number of buckets used to construct the Deviation Profile.
Profile Range (D): Controls the positive and negative deviation range displayed by the profile.
Profile Gap: Controls the horizontal distance between the projected channel and the Deviation Profile.
Profile Max Width: Controls the maximum width of the most populated profile area.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems 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. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
مؤشر

TDI - Goldminds / MMM Jakub Donovan RecreationTDI — Goldminds / MMM
> A Market Makers Method–style TDI combining RSI momentum, moving averages, and volatility bands to identify trend, momentum shifts, and overbought/oversold conditions.
The Traders Dynamic Index (TDI ) is a momentum and trend-following oscillator that combines RSI, moving averages, and volatility bands into a single indicator.
This version is based on the Goldminds TDI, adapted for the Market Makers Method (MMM) and reconstructed using the original parameters associated with the Jakub Donovan version.
Core Components:
RSI: 21-period RSI
Volatility Bands: 34-period SMA with a 1.6185 standard-deviation multiplier
Fast MA: 7-period SMA of RSI
Slow MA: 2-period SMA of RSI
Reference Levels: 20 / 30 / 50 / 70 / 80
The TDI can be used to identify momentum shifts, trend direction, overbought/oversold conditions, and potential reversals.
How to interpret it
Green & Red lines
The moving averages of RSI help identify changes in momentum. Crossovers can highlight potential shifts in short-term momentum.
Yellow line
The yellow line represents the RSI's broader average and acts as a useful reference for the overall momentum environment.
Blue bands
The volatility bands expand and contract based on RSI volatility, helping identify periods when momentum becomes unusually extended.
50 level
The 50 level acts as the key momentum midpoint:
* Above 50 → bullish momentum
* Below 50 → bearish momentum
30 / 70
Traditional oversold/overbought zones.
20 / 80
Extreme momentum zones that can help identify potentially exhausted moves.
> Important: The TDI should be used as a confirmation tool rather than as a standalone buy or sell signal. Combining it with price structure, support/resistance, volume, and market conditions can provide stronger trade setups.
مؤشر

Previous Day Levels & BOS (v4.0.0)Indicator Overview
This custom Pine Script v6 trading indicator combines Previous Day High/Low (PDH/PDL) boundary tracking, multi-trigger Break Signals, and Break of Structure (BOS) logic into a unified, clean charting tool. Designed for precision execution, the script tracks session boundaries strictly using calendar days to prevent Sunday and Monday session combining, while enforcing structural constraints on market structure breaks.
Core Functional Components
Previous Day Levels: Plots dynamic lines representing the high and low of the previous calendar day, adapting automatically as sessions roll over.
Break Signals: Evaluates multi-trigger crosses against PDH and PDL bounds, printing designated arrows whenever price breaks these key liquidity thresholds.
Structure Breaks (BOS): Identifies swing highs and lows post-PD break, restricting BOS prints strictly within the boundaries of the Previous Day High and Low levels.
Alert System: Fully equipped with built-in native alerts for bullish, bearish, and any combined BOS events.
Complete Revision History
v1.0.0: Established initial session logic and PDH/PDL level plotting.
v1.1.0: Transitioned to strict calendar day tracking to fix Sunday and Monday session combining issues.
v1.2.0: Introduced built-in alert conditions for Bullish, Bearish, and Any BOS configurations.
v1.3.0: Enforced sequence rules requiring a PD break before evaluating BOS structures.
v1.4.0: Removed price boundary filters on post-PD break swings to capture broader structural setups.
v1.5.0: Explicitly anchored version 6 header at line 1 to resolve compiler issues.
v1.6.0: Upgraded the BOS engine to utilize array tracking, preventing swing point overwriting.
v1.7.0: Added automated removal for BOS lines and labels upon level mitigation.
v1.8.0: Resolved loop execution errors by computing crossover logic outside array loops.
v1.9.0: Reverted mitigation deletion rules so BOS elements remain visible post-PD break.
v2.0.0: Overhauled the BOS engine to active single-level tracking to minimize chart clutter.
v2.1.0: Enforced strict boundary filtering to ensure BOS markers print exclusively inside PDH and PDL channels.
v2.2.0: Enabled multi-trigger tracking so every unique cross above PDH or below PDL prints an arrow signal.
v3.1.0 - v3.2.0: Experimental Fair Value Gap (FVG) and mitigation engines introduced and tested.
v4.0.0: Cleaned and streamlined the script by completely removing experimental FVG features, finalizing the layout down to core PD levels, break arrows, and precision BOS tracking. مؤشر

مؤشر

VWAP A BE BOPVWAP A BE BOP — Every Anchor You'll Ever Need, One Indicator
VWAP A BE BOP consolidates the anchored VWAP toolkit that traders normally piece together from three or four separate scripts into a single, clean overlay. Instead of hunting for daily VWAP here, a weekly anchor there, and a rolling previous-day reference somewhere else, every timeframe you actually trade around lives in one place — fully customizable, fully synced.
Five calendar-anchored VWAPs — Daily, Weekly, Monthly, Quarterly, and Yearly — give you the institutional reference levels that price consistently reacts to, each with its own toggle and color so you can build exactly the confluence stack your strategy calls for. Layer a fast Daily VWAP against a slower Monthly or Quarterly anchor to instantly see whether you're trading with or against the higher-timeframe flow.
Daily and Previous Day deviation bands bring statistical context to the mix. Three independently adjustable standard-deviation multipliers (defaulting to 1, 2, and 2.5) mark the zones where price has statistically stretched from fair value — classic mean-reversion and breakout-confirmation territory, without cluttering your chart with bands on every single line.
A true Previous Day VWAP, anchored precisely at session open with zero configuration required, plus optional rolling lines going back a full week — perfect for spotting how current price stacks up against where the market was trading 2, 3, or even 7 sessions ago.
Fully adjustable labels turn a wall of colored lines into an instantly readable chart. Rename any line to whatever shorthand you like — "pDay," "M," "Q" — and control label size and horizontal offset so the tags sit exactly where you want them, whether you're on a widescreen monitor or a cramped mobile chart.
Built for traders who live and die by mean reversion, fair value, and institutional order flow, VWAP A BE BOP strips away the noise of over-engineered multi-panel scripts and gives you a single, elegant, endlessly configurable VWAP suite — the last VWAP indicator you'll need to add to your chart.
For educational and informational purposes only. Not financial advice. مؤشر
