Confluence StackPlease read the instructions below. The code was mostly written using AI so may contain errors. Happy trading all and good luck. ATB Richard
INTENDED USE
This indicator is designed for technical traders who want to move beyond simple buy/sell signals and gain a deeper understanding of the underlying market dynamics. It is ideal for trend followers, swing traders, and anyone looking to confirm the quality of a trend.
WHO IS THIS FOR?
Traders who want to differentiate between strong, sustainable trends and weak, unreliable moves.
Analysts looking to identify high-conviction setups backed by multiple factors (e.g., momentum confirmed by volume).
Discretionary traders who need a quick, visual tool to gauge market sentiment and avoid choppy conditions.
WHY USE IT?
Traditional indicators often give conflicting signals. The Confluence Stack solves this by aggregating multiple perspectives into one clear visual. It helps you answer not just "Is the market going up?" but "WHY is it going up, and how strong is the conviction?". This allows for more informed decision-making and helps filter out low-probability trades.
DISCLAIMER AND LICENSE
This script is for educational purposes only and is not a recommendation to buy or sell any financial instrument. All trading and investment decisions are the sole responsibility of the user. Trading involves significant risk.
This source code is subject to the terms of the Mozilla Public License 2.0 at www.mozilla.org
HOW TO USE THIS INDICATOR
This indicator is designed to show the 'character' of a market move by grouping signals into distinct categories. Instead of seeing many individual signals, you see the strength of the underlying forces driving the price.
1. READ THE HEIGHT (Strength of Confluence)
The total height of the stack shows the strength of agreement. A tall stack means many signals are aligned, indicating a high-conviction move. A short stack means weak agreement and a choppy, indecisive market.
2. READ THE COLOR (Character of the Move)
The colors tell you WHY the market is moving.
BLUE (Momentum): A stack of mostly blue shades indicates a trend driven by pure momentum. This is the 'speed' of the market.
RSI (Relative Strength Index): Measures the magnitude of recent price gains versus losses. A smooth measure of trend strength.
Stochastic Oscillator: Measures the current closing price's position within the recent high-low range. More sensitive to immediate price action.
CCI (Commodity Channel Index): Measures the price's deviation from its moving average. Excels at identifying cyclical turns.
MACD (Moving Average Convergence Divergence): A trend-following momentum indicator showing the relationship between two moving averages. Excellent for identifying the start and end of trends.
YELLOW (Volume): The appearance of yellow shades confirms the move is supported by high market participation. This is the 'fuel' for the trend.
Volume Ratio: A custom signal that triggers when buy or sell volume is unusually high compared to its recent average.
CRV (Candle Range Volume): A custom signal that looks for candles with significant price range and volume.
OBV (On-Balance Volume): A cumulative indicator that adds volume on up days and subtracts it on down days. It shows the long-term flow of money.
FUCHSIA (Volatility): A fuchsia block signals a volatility breakout. This adds a sense of urgency and confirms the price is moving with exceptional force.
Bollinger Bands: A signal triggers when the price closes outside of the upper or lower standard deviation bands.
ORANGE (Price Action): An orange block is a pure price structure signal. It's a raw statement of intent from the market.
Price Gap: A signal that triggers when there's a gap up or gap down between candles.
3. READ THE TRANSITION (Shift in Sentiment)
The most important signal from the stacks is the flip from one side of the zero line to the other.
Flipping from Negative to Positive: A bearish stack disappears and is replaced by a bullish stack. This indicates market sentiment is shifting from bearish to bullish.
Flipping from Positive to Negative: A bullish stack disappears and is replaced by a bearish stack. This warns of a potential top or the start of a new downtrend.
4. FILTER FOR NOISE (Plot Threshold)
In choppy markets, the stack can flicker with low signal counts (e.g., +1 or -1). To focus only on high-conviction moves, go to the indicator settings and increase the "Plot Threshold". A setting of 2 or 3 will hide all stacks that don't have at least 2 or 3 agreeing signals, effectively filtering out market noise and keeping your chart clean.
5. CUSTOMIZE YOUR SIGNALS (Enable/Disable)
This indicator is fully customizable. In the settings, you can enable or disable each of the 9 indicators individually. For example, if you are a pure momentum trader, you could disable all Volume, Volatility, and Price Action signals to focus only on the blue stacks. Tailor it to fit your specific trading style.
EXAMPLE INTERPRETATIONS
Strong, Confirmed Trend: A tall stack of mostly blue (Momentum) and yellow (Volume) indicates a high-quality trend backed by both speed and market participation.
Momentum-Only Trend: A tall stack of only blue is a strong momentum move, but the lack of yellow (Volume) is a warning that the move may lack the "fuel" to be sustained.
Choppy/Indecisive Market: A short, mixed-color stack flickering around the zero line means the market is choppy with no clear conviction. It's often best to stay out.
Volatility Breakout: A new stack that appears suddenly with a fuchsia (Bollinger Bands) block on its first bar suggests a volatility-driven breakout is initiating.
Exhaustion Move: An orange (Price Gap) block appearing at the peak of a tall, long-standing stack can signal an exhaustion gap, potentially marking the end of the trend.
Weakening Conviction (Divergence): If price makes a new high but the positive stack is visibly shorter than the stack at the previous price high, it suggests underlying conviction is weakening.
成交量
ALCOTRADE Pro v4.5 - SFP VWAP Suite (with Light VP)Overview
This indicator is a rule-based SFP/VWAP system designed for crypto and gold futures.
It detects sweeps of local extremes (SFP) and filters them with multi-VWAP proximity (D/W/M), regime & slope, ADX, volume spikes, optional RSI, HTF trend, and an Adaptive Bollinger module. A Light Weekly/Monthly Volume Profile (custom histogram logic) adds VAL/POC/VAH context.
Outputs: basic LONG/SHORT and an ensemble “MASTER” signal when weighted confirms exceed a threshold.
What’s original here
Targeted SFP logic near anchored VWAPs (D/W/M) with dual proximity modes (% distance or ATR), optional bar-close confirmation, and cooldown.
Regime gating with Weekly VWAP slope (bps/bar) smoothed; signals only when slope meets configurable magnitude.
Adaptive MinScore: the minimum score for a signal auto-adjusts with ADX (tightens in chop, relaxes in trend).
Ensemble MASTER score combining SFP / Pullback around Weekly VWAP / Breakout context / RSI / Slope / Adaptive Bollinger (revert/break logic depending on squeeze & VWAP proximity).
Light VP (W/M): custom binned histogram per period, with on-close VAL/POC/VAH and Developing lines updated at a configurable step — no external libraries.
Preset layer (BTC/ETH/XAU × TFs) that re-maps effective parameters and weights, not just cosmetic inputs.
How it works (core logic)
SFP detection: lookback highs/lows; wick-share thresholds; close back inside range.
VWAP proximity: nearest distance to D/W/M VWAPs in percent or ATR×; can be mandatory.
Regime: price relative to Weekly VWAP + Weekly VWAP slope SMA filter; optional ADX floor.
Confirms: volume spike over SMA×K; optional RSI cross/level.
HTF filter: HTF close vs HTF MA.
Adaptive Bollinger: picks reversion near VWAP or breakout in trend/squeeze; optional %B divergences.
Scoring: base score = proximity + regime + volume + RSI + session + ADX + VP proximity (VAL/VAH) + MACD + HTF + Bollinger/Div.
Adaptive MinScore: raises in low ADX, lowers in high ADX (bounded).
MASTER: weighted sum of SFP/Pullback/Breakout/RSI/Slope/Bollinger; fires when ≥ threshold.
How to use
Add to chart → choose “Full” mode for all features, or “VWAP only” to visualize VWAPs without signals.
Presets: pick a market/timeframe preset (BTC/ETH 5m/15m/1h; XAU 1m/5m/15m/1h). Presets remap effective parameters & weights (lookback, proximity, slopes, ADX floors, Bollinger rules, etc.).
Signals:
LONG/SHORT: appear on bar close when SFP + score ≥ adaptive min.
MASTER: requires the ensemble score ≥ threshold; generally rarer but higher quality.
Sessions (optional): enable for instruments with clear sessions.
Light VP: keep a small number of recent weeks/months; use VAL/POC/VAH as context (reactions/targets).
Risk management: this is a context & timing tool; use your own execution, SL, and TP management. Backtest forward on your venue/symbol.
Recommended settings
Crypto: BTC/ETH on 5m/15m/1h with corresponding presets.
Gold: XAU on 1m–15m in liquid hours, sessions ON.
Keep draw/update window at ~400–600 bars for performance.
Limitations & notes
Signals depend on exchange data and TF; different feeds may vary.
The Light VP is a simplified histogram per period; it is not a tick-level profile.
No guarantees; not financial advice.
Charting guidelines
Screenshots in this publication use a clean chart with only this indicator enabled so outputs are clearly identifiable.
Tags
SFP, VWAP, Volume Profile, Bollinger, ADX, RSI, MACD, HTF, Crypto, XAU, Futures
Volume Cluster AlertThis script is designed to highlight unusual trading volume activity that may be relevant for users analyzing potential shifts in market behavior. It detects significant deviations in volume compared to historical averages and identifies recurring volume patterns within a user-defined timeframe.
When such activity is detected, the indicator displays visual labels above or below the price chart. Labels appearing above the chart (red by default) correspond to specific volume patterns during upward price movement. Labels below the chart (green by default) reflect similar volume behavior during downward movement.
Clusters of labels — especially when multiple of the same color appear within a short period — can be visually useful for observing potential changes in price dynamics. These groupings are meant to support the user’s own analysis and decision-making process.
Users can customize the color of the labels and adjust the sensitivity of the detection parameters to better align with their trading style or chart settings.
Please note: This indicator does not predict market direction or generate trading signals. It is a visual tool that highlights specific volume conditions, which may be interpreted by the user in combination with other technical or analytical methods.
Pivot + Stochastic Filter Signals (Balanced)Pivot + Stochastic Filter Signals (Balanced)
This indicator combines Pivot Highs/Lows with the Stochastic Oscillator to generate accurate BUY and SELL signals.
A BUY signal appears when a Pivot Low forms and the Stochastic %K crosses above %D (optionally filtered by oversold conditions).
A SELL signal appears when a Pivot High forms and the Stochastic %K crosses below %D (optionally filtered by overbought conditions).
Key Features:
Clear BUY (green) and SELL (red) signals plotted directly on the chart.
Optional filter: only trigger signals in overbought/oversold zones.
Labels display pivot value with the corresponding signal.
Stochastic oscillator plotted for confirmation.
This tool is useful for traders who want to combine price action (pivots) with momentum confirmation (Stochastic crossovers) for higher accuracy in trend reversals and entry timing.
Quantel Ultimate ProThe Quantel Ultimate Pro is a multi-factor trend and momentum trading indicator for TradingView that combines EMA trend analysis, MACD momentum, RSI conditions, ATR-based volatility filter, volume spike detection, and multi-timeframe confirmation to generate high-probability buy and sell signals.
Key Features:
Trend Analysis:
Uses Fast EMA and Slow EMA on the current timeframe to identify trend direction.
Confirms trend alignment on two higher timeframes (user-defined) using the Slow EMA.
Momentum Filter:
Uses MACD histogram to detect increasing bullish or bearish momentum.
Volatility & Volume Filters:
ATR-based volatility filter ensures trades are taken only when price movement is significant.
Volume spike detection highlights unusual trading activity for stronger signals.
RSI Confirmation:
RSI used to detect oversold (buy) and overbought (sell) conditions.
Signal Logic:
Buy Signal: Trend up across base and higher timeframes, increasing bullish momentum (MACD), RSI < 40, volume spike, and volatility above threshold.
Sell Signal: Trend down across base and higher timeframes, increasing bearish momentum, RSI > 60, volume spike, and volatility above threshold.
Visualization:
Fast EMA (blue) and Slow EMA (orange) plotted on price chart.
Trend zones highlighted with green (up) and red (down) background shading.
MACD histogram plotted below price for momentum visualization.
Volume spikes marked as small orange dots.
Buy/Sell signals displayed as labels directly on the chart.
Alerts:
Built-in alert conditions for automated notifications when buy or sell conditions are met.
Additional Info Table:
Displays higher timeframe EMA values and current ATR on the chart for reference.
Use Case:
Designed for trend-following and swing traders, this indicator provides clear visual signals for entry and exit, backed by multi-timeframe trend confirmation, momentum, volume, and volatility filters, making it suitable for spotting high-probability trade setups.
Primitive Delta DivergencePrimitive Delta Divergence
This indicator detects volume-price divergences by analyzing the relationship between price direction and volume bias over a rolling lookback period, revealing potential momentum shifts before they become apparent in price action alone.
Instead of relying solely on price movements, you can identify moments when volume sentiment contradicts price direction — a core concept borrowed from footprint chart analysis, adapted for traditional bar charts.
For example, when price moves higher but volume is predominantly bearish, or when price declines while volume shows bullish accumulation.
🔹 How it works
Lookback Period (n) → defines the rolling window for analyzing price and volume relationships
Creates a "meta-candle" from the lookback period, comparing its open vs. close for price bias
Volume classification → separates each bar's volume into bullish (green candles), bearish (red candles), or neutral (doji candles)
Volume bias calculation → generates a continuous score (-1 to +1) representing the directional volume pressure
Plots divergence signals when price direction and volume bias disagree
🔹 Use cases
Spot early momentum exhaustion when price and volume move in opposite directions
Identify potential reversal zones where volume suggests underlying weakness or strength
Enhance entry/exit timing by incorporating volume-based confirmation alongside price action
Apply footprint-style analysis to any timeframe without specialized charting tools
✨ Primitive Delta Divergence reveals the hidden story volume tells about price, uncovering divergences that traditional indicators might miss.
Volume Demand & Supply IndicatorTitle: VDS - Volume Demand & Supply Indicator
Description:
The VDS (Volume Demand & Supply) Indicator is a powerful analysis tool designed for traders who rely on understanding volume to make informed decisions. Unlike traditional volume indicators, VDS goes beyond just showing total volume by separating it into Up Volume and Down Volume, giving you a clear view of the buying and selling pressure in the market.
Key Features:
Precise Volume Analysis: The indicator scans data from lower timeframes to more accurately approximate up and down volume, providing you with detailed insights into market dynamics.
Identify Buying vs. Selling Pressure:
Up Volume: Represents the volume traded when the price rises, indicating dominant buying power.
Down Volume: Represents the volume traded when the price falls, indicating significant selling pressure.
Volume Moving Average (MA): A volume moving average is included to help you easily identify normal versus abnormal market activity, which is crucial for spotting strong trends and breakouts.
Delta Signal: The small "Delta" character indicates the difference between up volume and down volume. A green delta suggests buying dominance (demand), while a red delta points to selling dominance (supply).
Customizable: You have the ability to customize the lower timeframe used for analysis, allowing you to tailor the indicator to your specific trading strategy and style.
How to Trade with the VDS Indicator?
The VDS indicator isn't just a data visualization tool; it's a practical guide that can be used to confirm or deny trading signals. Here are a few suggested strategies:
Confirming Breakouts:
When the price breaks above a key resistance level, look for a significant increase in Up Volume. This confirms the breakout is genuine and supported by strong buying power.
A breakout with weak volume might be a "fakeout" and should be treated with caution.
Validating Trends:
In an Uptrend: You should consistently see the Up Volume (green columns) higher than the Down Volume (red columns). This shows that buyers are in control.
In a Downtrend: You should consistently see the Down Volume higher than the Up Volume, indicating sellers are dominant.
Detecting Trend Weakness (Divergence):
If the price is making new highs but the Up Volume is decreasing, it could signal a weakening of buying pressure, potentially leading to a trend reversal.
The opposite is true in a downtrend: if the price is making new lows but the Down Volume is weakening, a reversal may be imminent.
Using the Delta Signal for Reversals:
When the Delta signal turns from red to green at a price low (near a support level), it can confirm the beginning of new buying strength.
When the Delta turns from green to red at a price high (near a resistance level), it can confirm the start of new selling pressure.
The VDS indicator is a valuable addition to any trading strategy, adding a new dimension to volume analysis and helping traders understand what's really happening behind price movements.
3-Layer Trend Trail SystemThia is best for first 15 min after market opens. It will show you Buy and Sell signals with 85% accurate.
ValuationtoolValuation tools, updated version for every asset (vs futures price / vs gold / vs bounds)
10 AM Reversal/Continuation Zone BY DAN GESPlots the high and low between 9.30 - 10:00am ET
Colours the zone between those two levels.
Highlights when price breaks above or below that zone after 10:00am
BE-Volume Footprint & Pressure Candles█ Overview:
BE-Volume Footprint & Pressure Candles, is an indicator which is preliminarily designed to analyze the supply and demand patterns based on Rally Base Rally (RBR), Drop Base Drop (DBD), Drop Base Rally (DBR) & Rally Base Drop (RBD) concepts in conjunction to volume pressure. Understanding these concepts are crucial. Let's break down why the "Base" is you Best friend in this context.
Commonness in RBR, DBD, DBR, RBD patterns ?
There is an impulse price movement at first, be it rally (price moving up) or the Drop (price moving down), followed by a period of consolidation which is referred as "BASE" and later with another impulse move of price (Rally or Drop).
Why is the Base Important
1. Market Balance: Base represents a balance between buyers and sellers. This is where decisions are made.
2. Confirmation: It confirms the strength of previous impulse move which has happened.
Base & the Liquidity Play:
Supply & Demand Zone predict the presence of all large orders within the limits of the Base Zone. Price is expected to return to the zone to fill the unfilled orders placed by large players.
For the price to move in the intended direction Liquidity plays the major role. hence indicator aims to help traders in identifying those zones where liquidity exists and the volume pressure helps in confirming that liquidity is making its play.
Bottom pane in the below snapshots is a visual representation of Buyers volume pressure (Green Line & the Green filled area) making the price move upwards vs Sellers volume pressure (Red Line & the Red filled area) making the price move downwards.
Top pane in the below snapshots is a visual representation on the pattern identification (Blue marked zone & the Blue line referred as Liquidity level)
Bullish Pressure On Buy Liquidity:
Bearish Pressure On Sell Liquidity:
█ How It Works:
1. Indicator computes technical & mathematical operations such as ATR, delta of Highs & Lows of the candle and Candle ranges to identify the patterns and marks the liquidity lines accordingly.
2. Indicator then waits for price to return to the liquidity levels and checks if Directional volume pressure to flow-in while the prices hover near the Liquidity zones.
3. Once the Volume pressure is evident, loop in to the ride.
█ When It wont Work:
When there no sufficient Liquidity or sustained Opposite volume pressure, trades are expected to fail.
█ Limitations:
Works only on the scripts which has volume info. Relays on LTF candles to determine intra-bar volumes. Hence, Use on TF greater than 1 min and lesser than 15 min.
█ Indicator Features:
1. StrictEntries: employs' tighter rules (rather most significant setups) on the directional volume pressure applied for the price to move. If unchecked, liberal rules applied on the directional volume pressure leading to more setups being identified.
2. Setup Confirmation period: Indicates Waiting period to analyze the directional volume pressure. Early (lesser wait period) is Risky and Late (longer wait period) is too late for the
ride. Find the quant based on the accuracy of the setup provided in the bottom right table.
3. Algo Enabled with Place Holders:
Indicator is equipped with algo alerts, supported with necessary placeholders to trade any instrument like stock, options etc.
Accepted PlaceHolders (Case Sensitive!!)
1. {{ticker}}-->InstrumentName
2. {{datetime}}-->Date & Time Of Order Placement
3. {{close}}-->LTP Price of Script
4. {{TD}}-->Current Level:
Note: Negative Numbers for Short Setup
5. {{EN}} {{SL}} {{TGT}} {{T1}} {{T2}} --> Trade Levels
6. {{Qty}} {{Qty*x}} --> Qty -> Trade Qty mapped in Settings. Replace x with actual number of your choice for the multiplier
7. {{BS}}-->Based on the Direction of Trade Output shall be with B or S (B == Long Trade & S == Short Trade)
8. {{BUYSELL}}-->Based on the Direction of Trade Output shall be with BUY or SELL (BUY == Long Trade & SELL == Short Trade)
9. {{IBUYSELL}}-->Based on the Direction of Trade Output shall be with BUY or SELL (BUY == SHORT Trade & SELL == LONG Trade)
Dynamic Alerts:
10. { {100R0} }-->Dynamic Place Holder 100 Refers to Strike Difference and Zero refers to ATM
11. { {100R-1} }-->Dynamic Place Holder 100 Refers to Strike Difference and -1 refers to
ATM - 100 strike
12. { {50R2} }-->Dynamic Place Holder 50 Refers to Strike Difference and 2 refers to
ATM + (2 * 50 = 100) strike
13. { {"ddMMyy", 0} }-->Dynamically Picks today date in the specified format.
14. { {"ddMMyy", n} }-->replace n with actual number of your choice to Pick date post today date in the specified format.
15. { {"ddMMyy", "MON"} }-->dynamically pick Monday date (coming Monday, if today is not Monday)
Note. for the 2nd Param-->you can choose to specify either Number OR any letter from =>
16. {{CEPE}} {{ICEPE}} {{CP}} {{ICP}} -> Dynamic Option Side CE or C refers to Calls and PE or P refers to Puts. If "I" is used in PlaceHolder text, On long entries PUTs shall be used
Indicator is equipped with customizable Trade & Risk management settings like multiple Take profit levels, Trailing SL.
Balanced Big Wicks (50/50) HighlighterDetects candles with unusually long, balanced upper and lower wicks—a potential sign of market indecision followed by strong breakout action.
What It Does
Identifies candles where both upper and lower wicks each account for at least a configurable percentage (e.g., 30–40%) of the total range, and where the body remains small—creating the classic “balanced wick” (50/50) appearance.
Marks these candles visually with color (bullish/bearish), optional background shading, and a tiny “50/50” label above the candle.
Why It’s Useful
Balanced wicks often precede decisive moves once price breaks either wick. This script highlights such opportunities systematically.
Helpful for traders looking for clean entry signals: long on close above the upper wick, short on close below the lower wick—with straightforward risk management (SL at opposite wick, TP 1:1).
Key Inputs (default values shown in parentheses)
Min wick % (each side): 30%
Max body %: 20%
Equality tolerance: 10%
Min range filter (ATR multiples): 0 (disable)
ATR length: 14
Color candles: On
Background highlight: Off by default
Plot label on candle: On
Adjust these to fit your preferred timeframe or instrument (e.g., raise wick thresholds or ATR filter for noisy 15‑minute altcoin charts; relax slightly for smoother 1‑hour BTC analysis).
Alerts
Three alert options included:
“50/50 Wick (Any)” — triggers on any balanced-wick candle.
“50/50 Wick (Bullish)” — only when the candle closes bullish (upper close).
“50/50 Wick (Bearish)” — only when the candle closes bearish (lower close).
How to Use It
Add the indicator to your chart.
Adjust input settings to suit the timeframe or trading style.
Watch for highlighted candles.
Optional alert: create alerts using one of the provided alert conditions (e.g., “50/50 Wick (Any)”) with “Once per bar close” to get notified when signal bars appear.
Use your own trade logic (e.g., breakout entries as described above).
Disclaimer & Originality
Original Concept: I built this script from scratch to highlight a specific candle structure often used by traders in breakout setups—long balanced wicks with small bodies.
No external code references; it’s entirely open-source and self-explanatory.
Note: This indicator highlights potential setups—not financial advice. Always backtest any strategy, and use sound risk management. Past patterns do not guarantee future success.
Optimized Settings for 5m–15m Scalping
Min wick % (each side): 0.30
→ Forces both wicks to be almost half the candle each. Very strict.
Max body % of range: 0.40
→ Candle body must be ≤10% of full range = almost a doji.
Equality tolerance: 0.1
→ Wicks must be within 5% of each other relative to full candle size.
Min range filter (ATR multiples): 0
→ Candle must be at least 1.2× bigger than recent average (ATR14). Filters out weak fake dojis.
ATR Length: 14 (standard, stable)
Color candles / Plot labels: On (so you clearly see them)
Background highlight: Optional
DVWAP Spread -WinCAlgoDynamic VWAP Spread Oscillator
This indicator transforms the relationship between two adaptive VWAP curves into an oscillator format, making trend analysis more precise and intuitive.
What it shows:
Spread Value: The difference between Fast VWAP and Smoothed VWAP
Dynamic Coloring: Intensity increases as the spread moves away from zero
Zero Line: The neutral point where both VWAP curves converge
How to interpret:
Above Zero (Green): Fast VWAP > Smoothed VWAP → Bullish bias
Below Zero (Red): Fast VWAP < Smoothed VWAP → Bearish bias
Distance from Zero: Shows the strength of the current trend
Zero Crossovers: Potential trend change signals
📌 Usage Ideas:
Trend Filter: Take long trades only when oscillator is positive, shorts when negative
Momentum Gauge: Larger spread values indicate stronger trend momentum
Divergence Analysis: Look for divergences between price and oscillator for reversal signals
Overbought/Oversold: Extreme values may indicate potential mean reversion opportunities
Zero Line Bounces: Use zero line as dynamic support/resistance for entries
Parameters:
Period: Controls the lookback period for adaptive calculations
Adjustment Step: Fine-tunes the adaptive smoothing sensitivity
Fast Response: Adjusts how quickly the fast VWAP responds to price changes
Source: Price input for VWAP calculation (default: HLC3)
Dynamic VWAP -WinCAlgoDynamic VWAP Curve
This indicator applies an adaptive smoothing method to VWAP (Volume Weighted Average Price) to create two dynamic curves:
Fast VWAP (reacts quickly to price changes)
Smoothed VWAP (slower, adaptive baseline)
How to interpret:
When Fast VWAP > Smoothed VWAP, trend bias is bullish.
When Fast VWAP < Smoothed VWAP, trend bias is bearish.
The shaded area between the two lines works like a dynamic support/resistance zone.
📌 Usage ideas:
As a trend filter: take long trades only when Fast > Smoothed.
As a crossover signal: buy/sell when the two lines cross.
As support/resistance: price moving too far from the band can signal mean-reversion opportunities.
Volume Profile + VAH, VAL, and POCWhat it is
A clean, on-chart volume profile that approximates your visible range using a configurable Bars Back window. It builds a horizontal histogram of volume by price, splits each price bin into Buy vs Sell volume, draws POC, and computes Value Area High/Low (VAH/VAL). A Stealth Mode toggle switches to a subtle grayscale palette for low-key charts.
Why this instead of the built-in VPVR?
Buy/Sell split per bin: See which prices were defended by buyers vs sellers, not just total volume.
Value Area from POC outward: Classic expansion method until the selected % of total volume (default 70%).
Sleek borders & Stealth Mode: Crisp bin outlines and a one-click professional colorway.
Deterministic & fast: No sessions or anchors needed—set your Bars Back and go.
How it works (under the hood)
Window selection – Pine can’t read your viewport, so we approximate it with Bars Back (user input).
Binning – The window’s price range is divided into N bins.
Volume allocation – For each bar in the window:
Distribute Across Hi–Lo (optional): Spread volume across all bins the bar overlaps, weighted by overlap; or
Single-price mode: Assign all volume to one bin using a representative price (hlc3).
Buy/Sell split (two methods):
Body Proportional (recommended): Split by relative up/down body size (|close−open|).
Up/Down Candle: 100% buy if close ≥ open, else 100% sell.
POC & VA: Point of Control is the bin with max total volume. VAH/VAL expands from POC toward the higher-volume neighbor until the selected % of total volume is included.
Reading the visuals
Horizontal bars (right side): Total volume per price bin.
Left sub-segment = Sell volume
Right sub-segment = Buy volume
POC line: Price level with peak total volume.
VAH / VAL (dashed): Upper and lower bounds of the selected Value Area.
Borders: Each bin has a clean outer outline so the profile looks tight and organized.
Stealth Mode: Grayscale palette that preserves contrast without loud colors.
Key inputs (organized for clarity)
Theme
Stealth Mode: Toggles the grayscale look.
Core
Price Bins: Vertical resolution of the profile.
Lookback (Bars): Approximates your visible range.
Style
Profile Width (bars): How far the histogram extends to the right.
Bin Border Width: Outline thickness.
Markers & Lines
Show POC, Show VAH/VAL, Value Area %, VA line width.
Advanced
Distribute Volume Across Hi–Lo: More accurate, heavier compute.
Buy/Sell Split Method: Body Proportional (realistic) or Up/Down (simple).
Tips & best practices
Start with Body Proportional + Distribute Across ON for intraday accuracy.
If the chart lags, reduce Price Bins or Bars Back, or switch off distribution.
For small windows, fewer bins often looks cleaner (e.g., 30–60).
Stealth Mode plays nicely with both dark and light chart themes.
Limitations & notes
Viewport: Pine can’t access the actual visible bars; Bars Back is a practical stand-in.
Buy/Sell split: This is an approximation from candle bodies, not true bid/ask delta.
Designed for overlay; profile renders to the right of the latest bar.
Daily HOD / LOD Anchored VWAP (24/7 Markets)mart Daily HOD/LOD Anchored VWAP (Auto Detect + Alerts)
This indicator automatically anchors VWAP at the High of Day (HOD) and Low of Day (LOD) for each session/day.
No more manual anchoring — the script tracks intraday highs and lows in real-time and resets cleanly at the start of each trading day or session.
✨ Features
✅ Auto-anchored AVWAP at daily High and Low
✅ Works for stock markets (with fixed sessions) and crypto markets (24/7)
✅ Clean reset every session/day
✅ Separate AVWAP lines for HOD and LOD
✅ Customizable colors & line widths
✅ Alerts included 🚨 (get notified instantly when a new High/Low AVWAP starts)
📈 Use Cases
Spot true intraday support/resistance levels
Track where institutions may be defending positions
Combine with price action, orderflow, or volume profile strategies
Perfect for intraday trading, scalping, and swing entries
⚡ Alerts
New HOD AVWAP → Fires when price makes a fresh high of day, starting a new anchored VWAP.
New LOD AVWAP → Fires when price makes a fresh low of day, starting a new anchored VWAP.
🛠️ Settings
Show/hide HOD or LOD VWAP
Customize line colors and thickness
Works seamlessly across stocks, futures, forex, and crypto
💡 Pro Tip:
AVWAP from the high and low of the day often acts as a magnet for price. Watch how price reacts when revisiting these levels — confluence with other indicators = high-probability setups.
⚠️ Disclaimer:
This script is for educational purposes only. It is not financial advice. Always manage your own risk.
Smart Money Precision Structure [BullByte]Smart Money Precision Structure
Advanced Market Structure Analysis Using Institutional Order Flow Concepts
---
OVERVIEW
Smart Money Precision Structure (SMPS) is a comprehensive market analysis indicator that combines six analytical frameworks to identify high-probability market structure patterns. The indicator uses multi-dimensional scoring algorithms to evaluate market conditions through institutional order flow concepts, providing traders with professional-grade market analysis.
---
PURPOSE AND ORIGINALITY
Why This Indicator Was Developed
• Addresses the gap between retail and institutional analysis methods
• Consolidates multiple analysis techniques that professionals use separately
• Automates complex market structure evaluation into actionable insights
• Eliminates the need for multiple indicators by providing comprehensive analysis
What Makes SMPS Original
• Six-Layer Confluence System - Unique combination of market regime, structure, volume flow, momentum, price action, and adaptive filtering
• Institutional Pattern Recognition - Identifies smart money accumulation and distribution patterns
• Adaptive Intelligence - Parameters automatically adjust based on detected market conditions
• Real-Time Market Scoring - Proprietary algorithm rates market quality from 0-100%
• Structure Break Detection - Advanced pivot analysis identifies trend reversals early
---
HOW IT WORKS - TECHNICAL METHODOLOGY
1. Market Regime Analysis Engine
The indicator evaluates five core market dimensions:
• Volatility Score - Measures current volatility against 50-period historical baseline
• Trend Score - Analyzes alignment between 8, 21, and 50-period EMAs
• Momentum Score - Combines RSI divergence with MACD signal alignment
• Structure Score - Evaluates pivot point formation clarity
• Efficiency Score - Calculates directional movement efficiency ratio
These scores combine to classify markets into five regimes:
• TRENDING - Strong directional movement with aligned indicators
• RANGING - Sideways movement with mixed directional signals
• VOLATILE - Elevated volatility with unpredictable price swings
• QUIET - Low volatility consolidation periods
• TRANSITIONAL - Market shifting between different regimes
2. Market Structure Analysis
Advanced pivot point analysis identifies:
• Higher Highs and Higher Lows for bullish structure
• Lower Highs and Lower Lows for bearish structure
• Structure breaks when established patterns fail
• Dynamic support and resistance from recent pivot points
• Key level proximity detection using ATR-based buffers
3. Volume Flow Decoding
Institutional activity detection through:
• Volume surge identification when volume exceeds 2x average
• Buy versus sell pressure analysis using price-volume correlation
• Flow strength measurement through directional volume consistency
• Divergence detection between volume and price movements
• Institutional threshold alerts when unusual volume patterns emerge
4. Multi-Period Momentum Synthesis
Weighted momentum calculation across four timeframes:
• 1-period momentum weighted at 40%
• 3-period momentum weighted at 30%
• 5-period momentum weighted at 20%
• 8-period momentum weighted at 10%
Result smoothed with 6-period EMA for noise reduction.
5. Price Action Quality Assessment
Each bar evaluated for:
• Range quality relative to 20-period average
• Body-to-range ratio for directional conviction
• Wick analysis for rejection pattern identification
• Pattern recognition including engulfing and hammer formations
• Sequential price movement analysis
6. Adaptive Parameter System
Parameters automatically adjust based on detected regime:
• Trending markets reduce sensitivity and confirmation requirements
• Volatile markets increase filtering and require additional confirmations
• Ranging markets maintain neutral settings
• Transitional markets use moderate adjustments
---
COMPLETE SETTINGS GUIDE
Section 1: Core Analysis Settings
Analysis Sensitivity (0.3-2.0)
• Default: 1.0
• Lower values require stronger price movements
• Higher values detect more subtle patterns
• Scalpers use 0.8-1.2, swing traders use 1.5-2.0
Noise Reduction Level (2-7)
• Default: 4
• Controls filtering of false patterns
• Higher values reduce pattern frequency
• Increase in volatile markets
Minimum Move % (0.05-0.50)
• Default: 0.15%
• Sets minimum price movement threshold
• Adjust based on instrument volatility
• Forex: 0.05-0.10%, Stocks: 0.15-0.25%, Crypto: 0.20-0.50%
High Confirmation Mode
• Default: True (Enabled)
• Requires all technical conditions to align
• Reduces frequency but increases reliability
• Disable for more aggressive pattern detection
Section 2: Market Regime Detection
Enable Regime Analysis
• Default: True (Enabled)
• Activates market environment evaluation
• Essential for adaptive features
• Keep enabled for best results
Regime Analysis Period (20-100)
• Default: 50 bars
• Determines regime calculation lookback
• Shorter for responsive, longer for stable
• Scalping: 20-30, Swing: 75-100
Minimum Market Clarity (0.2-0.8)
• Default: 0.4
• Quality threshold for pattern generation
• Higher values require clearer conditions
• Lower for more patterns, higher for quality
Adaptive Parameter Adjustment
• Default: True (Enabled)
• Enables automatic parameter optimization
• Adjusts based on market regime
• Highly recommended to keep enabled
Section 3: Market Structure Analysis
Enable Structure Validation
• Default: True (Enabled)
• Validates patterns against support/resistance
• Confirms trend structure alignment
• Essential for reliability
Structure Analysis Period (15-50)
• Default: 30 bars
• Period for structure pattern analysis
• Affects support/resistance calculation
• Match to your trading timeframe
Minimum Structure Alignment (0.3-0.8)
• Default: 0.5
• Required structure score for valid patterns
• Higher values need stronger structure
• Balance with desired frequency
Section 4: Analysis Configuration
Minimum Strength Level (3-5)
• Default: 4
• Minimum confirmations for pattern display
• 5 = Maximum reliability, 3 = More patterns
• Beginners should use 4-5
Required Technical Confirmations (4-6)
• Default: 5
• Number of aligned technical factors
• Higher = fewer but better patterns
• Works with High Confirmation Mode
Pattern Separation (3-20 bars)
• Default: 8 bars
• Minimum bars between patterns
• Prevents clustering and overtrading
• Increase for cleaner charts
Section 5: Technical Filters
Momentum Validation
• Default: True (Enabled)
• Requires momentum alignment
• Filters counter-trend patterns
• Essential for trend following
Volume Confluence Analysis
• Default: True (Enabled)
• Requires volume confirmation
• Identifies institutional participation
• Critical for reliability
Trend Direction Filter
• Default: True (Enabled)
• Only shows patterns with trend
• Reduces counter-trend signals
• Disable for reversal hunting
Section 6: Volume Flow Analysis
Institutional Activity Threshold (1.2-3.5)
• Default: 2.0
• Multiplier for unusual volume detection
• Lower finds more institutional activity
• Stock: 2.0-2.5, Forex: 1.5-2.0, Crypto: 2.5-3.5
Volume Surge Multiplier (1.8-4.5)
• Default: 2.5
• Defines significant volume increases
• Adjust per instrument characteristics
• Higher for stocks, lower for forex
Volume Flow Period (12-35)
• Default: 18 bars
• Smoothing for volume analysis
• Shorter = responsive, longer = smooth
• Match to timeframe used
Section 7: Analysis Frequency Control
Maximum Analysis Points Per Hour (1-5)
• Default: 3
• Limits pattern frequency
• Prevents overtrading
• Scalpers: 4-5, Swing traders: 1-2
Section 8: Target Level Configuration
Target Calculation Method
• Default: Market Adaptive
• Three modes available:
- Fixed: Uses set point distances
- Dynamic: ATR-based calculations
- Market Adaptive: Structure-based levels
Minimum Target/Risk Ratio (1.0-3.0)
• Default: 1.5
• Minimum acceptable reward vs risk
• Higher filters lower probability setups
• Professional standard: 1.5-2.0
Fixed Mode Settings:
• Fixed Target Distance: 50 points default
• Fixed Invalidation Distance: 30 points default
• Use for consistent instruments
Dynamic Mode Settings:
• Dynamic Target Multiplier: 1.8x ATR default
• Dynamic Invalidation Multiplier: 1.0x ATR default
• Adapts to volatility automatically
Market Adaptive Settings:
• Use Structure Levels: True (default)
• Structure Level Buffer: 0.1% default
• Places levels at actual support/resistance
Section 9: Visual Display Settings
Color Theme Options
• Professional (Teal/Red)
- Bullish: Teal (#26a69a)
- Bearish: Red (#ef5350)
- Neutral: Gray (#78909c)
- Best for: Traditional traders, clean appearance
• Dark (Neon Green/Pink)
- Bullish: Neon Green (#00ff88)
- Bearish: Hot Pink (#ff0044)
- Neutral: Dark Gray (#333333)
- Best for: Dark theme users, high contrast
• Light (Green/Red Classic)
- Bullish: Green (#4caf50)
- Bearish: Red (#f44336)
- Neutral: Light Gray (#9e9e9e)
- Best for: Light backgrounds, traditional colors
• Vibrant (Cyan/Magenta)
- Bullish: Cyan (#00ffff)
- Bearish: Magenta (#ff00ff)
- Neutral: Medium Gray (#888888)
- Best for: High visibility, modern appearance
Dashboard Position
• Options: Top Left, Top Right, Bottom Left, Bottom Right, Middle Left, Middle Right
• Default: Top Right
• Choose based on chart layout preference
Dashboard Size
• Full: Complete information display (desktop)
• Mobile: Compact view for small screens
• Default: Full
Analysis Display Style
• Arrows : Simple directional markers
• Labels : Detailed text information
• Zones : Colored areas showing pattern regions
• Default: Labels (most informative)
Display Options:
• Display Analysis Strength: Shows star rating
• Display Target Levels: Shows target/invalidation lines
• Display Market Regime: Shows regime in pattern labels
---
HOW TO USE SMPS - DETAILED GUIDE
Understanding the Dashboard
Top Row - Header
• SMPS Dashboard title
• VALUE column: Current readings
• STATUS column: Condition assessments
Market Regime Row
• Shows: TRENDING, RANGING, VOLATILE, QUIET, or TRANSITIONAL
• Color coding: Green = Favorable, Red = Caution
• Status: FAVORABLE or CAUTION trading conditions
Market Score Row
• Percentage from 0-100%
• Above 60% = Strong conditions
• 40-60% = Moderate conditions
• Below 40% = Weak conditions
Structure Row
• Direction: BULLISH, BEARISH, or NEUTRAL
• Status: INTACT or BREAK
• Orange BREAK indicates structure failure
Volume Flow Row
• Direction: BUYING or SELLING
• Intensity: STRONG or WEAK
• Color indicates dominant pressure
Momentum Row
• Numerical momentum value
• Positive = Upward pressure
• Negative = Downward pressure
Volume Status Row
• INST = Institutional activity detected
• HIGH = Above average volume
• NORM = Normal volume levels
Adaptive Mode Row
• ACTIVE = Parameters adjusting
• STATIC = Fixed parameters
• Shows required confirmations
Analysis Level Row
• Minimum strength level setting
• Pattern separation in bars
Market State Row
• Current analysis: BULLISH, BEARISH, NEUTRAL
• Shows analysis price level when active
T:R Ratio Row
• Current target to risk ratio
• GOOD = Meets minimum requirement
• LOW = Below minimum threshold
Strength Row
• BULL or BEAR dominance
• Numerical strength value 0-100
Price Row
• Current price
• Percentage change
Last Analysis Row
• Previous pattern direction
• Bars since last pattern
Reading Pattern Signals
Bullish Structure Pattern
• Upward triangle or "Bullish Structure" label
• Star rating shows strength (★★★★★ = strongest)
• Green line = potential target level
• Red dashed line = invalidation level
• Appears below price bars
Bearish Structure Pattern
• Downward triangle or "Bearish Structure" label
• Star rating indicates reliability
• Green line = potential target level
• Red dashed line = invalidation level
• Appears above price bars
Pattern Strength Interpretation
• ★★★★★ = 6 confirmations (exceptional)
• ★★★★☆ = 5 confirmations (strong)
• ★★★☆☆ = 4 confirmations (moderate)
• ★★☆☆☆ = 3 confirmations (minimum)
• Below minimum = filtered out
Visual Elements on Chart
Lines and Levels:
• Gray Line = 21 EMA trend reference
• Green Stepline = Dynamic support level
• Red Stepline = Dynamic resistance level
• Green Solid Line = Active target level
• Red Dashed Line = Active invalidation level
Pattern Markers:
• Triangles = Arrow display mode
• Text Labels = Label display mode
• Colored Boxes = Zone display mode
Target Completion Labels:
• "Target" = Price reached target level
• "Invalid" = Pattern invalidated by price
---
RECOMMENDED USAGE BY TIMEFRAME
1-Minute Charts (Scalping)
• Sensitivity: 0.8-1.2
• Noise Reduction: 3-4
• Pattern Separation: 3-5 bars
• High Confirmation: Optional
• Best for: Quick intraday moves
5-Minute Charts (Precision Intraday)
• Sensitivity: 1.0 (default)
• Noise Reduction: 4 (default)
• Pattern Separation: 8 bars
• High Confirmation: Enabled
• Best for: Day trading
15-Minute Charts (Short Swing)
• Sensitivity: 1.0-1.5
• Noise Reduction: 4-5
• Pattern Separation: 10-12 bars
• High Confirmation: Enabled
• Best for: Intraday swings
30-Minute to 1-Hour (Position Trading)
• Sensitivity: 1.5-2.0
• Noise Reduction: 5-7
• Pattern Separation: 15-20 bars
• Regime Period: 75-100
• Best for: Multi-day positions
Daily Charts (Swing Trading)
• Sensitivity: 1.8-2.0
• Noise Reduction: 6-7
• Pattern Separation: 20 bars
• All filters enabled
• Best for: Long-term analysis
---
MARKET-SPECIFIC SETTINGS
Forex Pairs
• Minimum Move: 0.05-0.10%
• Institutional Threshold: 1.5-2.0
• Volume Surge: 1.8-2.2
• Target Mode: Dynamic or Market Adaptive
Stock Indices (ES, NQ, YM)
• Minimum Move: 0.10-0.15%
• Institutional Threshold: 2.0-2.5
• Volume Surge: 2.5-3.0
• Target Mode: Market Adaptive
Individual Stocks
• Minimum Move: 0.15-0.25%
• Institutional Threshold: 2.0-2.5
• Volume Surge: 2.5-3.5
• Target Mode: Dynamic
Cryptocurrency
• Minimum Move: 0.20-0.50%
• Institutional Threshold: 2.5-3.5
• Volume Surge: 3.0-4.5
• Target Mode: Dynamic
• Increase noise reduction
---
PRACTICAL APPLICATION EXAMPLES
Example 1: Strong Trending Market
Dashboard Reading:
• Market Regime: TRENDING
• Market Score: 75%
• Structure: BULLISH, INTACT
• Volume Flow: BUYING, STRONG
• Momentum: +0.45
Interpretation:
• Strong uptrend environment
• Institutional buying present
• Look for bullish patterns as continuation
• Higher probability of success
• Consider using lower sensitivity
Example 2: Range-Bound Conditions
Dashboard Reading:
• Market Regime: RANGING
• Market Score: 35%
• Structure: NEUTRAL
• Volume Flow: SELLING, WEAK
• Momentum: -0.05
Interpretation:
• No clear direction
• Low opportunity environment
• Patterns are less reliable
• Consider waiting for regime change
• Or switch to a range-trading approach
Example 3: Structure Break Alert
Dashboard Reading:
• Previous: BULLISH structure
• Current: Structure BREAK
• Volume: INST flag active
• Momentum: Shifting negative
Interpretation:
• Trend reversal potentially beginning
• Institutional participation detected
• Watch for bearish pattern confirmation
• Adjust bias accordingly
• Increase caution on long positions
Example 4: Volatile Market
Dashboard Reading:
• Market Regime: VOLATILE
• Market Score: 45%
• Adaptive Mode: ACTIVE
• Confirmations: Increased to 6
Interpretation:
• Choppy conditions
• Parameters auto-adjusted
• Fewer but higher quality patterns
• Wider stops may be needed
• Consider reducing position size
Below are a few chart examples of the Smart Money Precision Structure (SMPS) indicator in action.
• Example 1 – Bullish Structure Detection on SOLUSD 5m
• Example 2 – Bearish Structure Detected with Strong Confluence on SOLUSD 5m
---
TROUBLESHOOTING GUIDE
No Patterns Appearing
Check these settings:
• High Confirmation Mode may be too restrictive
• Minimum Strength Level may be too high
• Market Clarity threshold may be too high
• Regime filter may be blocking patterns
• Try increasing sensitivity
Too Many Patterns
Adjust these settings:
• Enable High Confirmation Mode
• Increase Minimum Strength Level to 5
• Increase Pattern Separation
• Reduce Sensitivity below 1.0
• Enable all technical filters
Dashboard Shows "CAUTION"
This indicates:
• Market conditions are unfavorable
• Regime is RANGING or QUIET
• Market score is low
• Consider waiting for better conditions
• Or adjust expectations accordingly
Patterns Not Reaching Targets
Consider:
• Market may be choppy
• Volatility may have changed
• Try Dynamic target mode
• Reduce target/risk ratio requirement
• Check if regime is VOLATILE
---
ALERTS CONFIGURATION
Alert Message Format
Alerts include:
• Pattern type (Bullish/Bearish)
• Strength rating
• Market regime
• Analysis price level
• Target and invalidation levels
• Strength percentage
• Target/Risk ratio
• Educational disclaimer
Setting Up Alerts
• Click Alert button on TradingView
• Select SMPS indicator
• Choose alert frequency
• Customize message if desired
• Alerts fire on pattern detection
---
DATA WINDOW INFORMATION
The Data Window displays:
• Market Regime Score (0-100)
• Market Structure Bias (-1 to +1)
• Bullish Strength (0-100)
• Bearish Strength (0-100)
• Bull Target/Risk Ratio
• Bear Target/Risk Ratio
• Relative Volume
• Momentum Value
• Volume Flow Strength
• Bull Confirmations Count
• Bear Confirmations Count
---
BEST PRACTICES AND TIPS
For Beginners
• Start with default settings
• Use High Confirmation Mode
• Focus on TRENDING regime only
• Paper trade first
• Learn one timeframe thoroughly
For Intermediate Users
• Experiment with sensitivity settings
• Try different target modes
• Use multiple timeframes
• Combine with price action analysis
• Track pattern success rate
For Advanced Users
• Customize per instrument
• Create setting templates
• Use regime information for bias
• Combine with other indicators
• Develop systematic rules
---
IMPORTANT DISCLAIMERS
• This indicator is for educational and informational purposes only
• Not financial advice or a trading system
• Past performance does not guarantee future results
• Trading involves substantial risk of loss
• Always use appropriate risk management
• Verify patterns with additional analysis
• The author is not a registered investment advisor
• No liability accepted for trading losses
---
VERSION NOTES
Version 1.0.0 - Initial Release
• Six-layer confluence system
• Adaptive parameter technology
• Institutional volume detection
• Market regime classification
• Structure break identification
• Real-time dashboard
• Multiple display modes
• Comprehensive settings
## My Final Thoughts
Smart Money Precision Structure represents an advanced approach to market analysis, bringing institutional-grade techniques to retail traders through intelligent automation and multi-dimensional evaluation. By combining six analytical frameworks with adaptive parameter adjustment, SMPS provides comprehensive market intelligence that single indicators cannot achieve.
The indicator serves as an educational tool for understanding how professional traders analyze markets, while providing practical pattern detection for those seeking to improve their technical analysis. Remember that all trading involves risk, and this tool should be used as part of a complete analysis approach, not as a standalone trading system.
- BullByte
VWAP Price ChannelVWAP Price Channel cuts the crust off of a traditional price channel (Donchian Channel) by anchoring VWAPs at the highs and lows. By doing this, the flat levels, characteristic of traditional Donchian Channels, are no more!
Author's Note: This indicator is formed with no inherent use, and serves solely as a thought experiment.
> Concept
I would be hesitant to call this a "predictive" indicator, however the behavior of it would suggest it could be considered at least partially predictive
Essentially, the Anchored VWAPs creates something from otherwise nothing.
While the DC upper or lower values are staying flat, the VWAPs improvise based on price and volume to project a level that may be a better representation of where future highs or lows may settle.
Visually, this looks like we have cut off the corners of the Donchian Channel.
Note: Notice how we are calculating values before the corners are realized.
> Implementation
While this is only a concept indicator, The specific application I've gone with for this, is a sort of supertrend-ish display (A Trend Flipping Trailing Stop Loss).
The script uses basic logic to create a trend direction, and then displays the Anchored VWAPs as a form of trailing stop loss.
While "In Trend", the script fills in the area between the VWAP and Price in the direction of trend.
When new highs or lows are made while in trend, the opposite VWAP will start to generate at the new highs or lows. These happen on every new high or low, so they are not indicating the trend shift, but could be interpreted as breakout levels for the current trend direction in order for continuation.
Note: All values are drawn live, but when using higher timeframes, there is a natural calculation discrepancy when using live data vs. historical.
> Technicals
In this script, I'm simply detecting new highs or lows from the DC and using those as the anchor frequency on the built-in VWAP function.
So each time a new high or low is made based on DC, the VWAP function re-anchors to the high or low of the candle.
Past that, I have implemented some logic in order to account for a common occurrence I faced during development.
Frequently, the price would outpace the anchored VWAP, so we would end up with the VWAP being further from price than the actual DC upper or lower.
Due to this, what I have ended up with was a third value which, rather than switching between raw VWAP values and DC values, it adjusts the value based on the change in the VWAP value.
This can be simply thought of as a "Start + Change" type of setup.
By doing this, I can use the change values from the actual anchored VWAP, and under normal conditions, this will also be the true VWAP value.
However, situationally, I am able to update the start value which we're applying the VWAP change to.
In other words, when these situations happen, the VWAP change is added to the new (closer to price) DC value.
The specific trend logic being used is nothing fancy at all, we are simply checking if a new high or low is created and setting the trend in that direction.
This is in line with some traditional DC Strategies.
To those who made it here,
Just remember:
The chart may be ugly, but it's the fastest analysis of the data you can get.
Nicer displays often come at the hidden cost of latency.
You have to shoot your shot to make it.
Choose 2: Fast, Clean, Useful
Enjoy!
Index Position Size Calculator for [US30 / US100 / SP500]What it does
This tool helps you size positions consistently for index trades on US30 (Dow Jones), NAS100 (Nasdaq-100), and SP500 (S&P 500). Enter your account balance, risk %, and your planned Entry / Stop-Loss / Target and the script calculates:
• Position Size (rounded to your lot/contract step)
• Risk-to-Reward (R/R)
• Potential P/L in USD based on your inputs
• Visual Entry / SL / TP lines with green/red zones and concise labels
Supported contract styles
Choose a preset for common products (e.g., CFD $1/pt, YM/NQ/ES futures, MYM/MNQ/MES micros) or override the economics yourself. You remain in control of the two key levers:
• $/point — how many dollars you gain/lose per 1 index point per contract/lot
• Point size — how many price units equal 1 index point on your chart (often 1.0, but some brokers use 0.1 or 0.5)
Inputs
• Account Balance ($) and Risk % per trade
• Index: US30 / NAS100 / SP500
• Contract: CFD / Futures (YM, NQ, ES) / Micros (MYM, MNQ, MES)
• $/point: auto from Contract or manual override
• Point size: auto from Index or manual override
• Position size step: rounding (e.g., 1 for futures, 0.01 for CFDs)
• Entry / SL / TP: typed values (snapped to tick), with on-chart zones and labels
• Display toggles for lines and labels
How the math works
• StopPoints = |Entry − SL| ÷ PointSize
• ProfitPoints = |TP − Entry| ÷ PointSize
• Position Size = (AccountBalance × Risk%) ÷ (StopPoints × $/point)
• R/R = ProfitPoints ÷ StopPoints
• Potential P/L = PositionSize × Points × $/point
How to use (quick start)
1. Select Index and Contract.
2. Confirm $/point and Point size match your broker’s specs.
3. Enter Entry / SL / TP for the trade idea.
4. Read the Position Size, R/R, and Potential P/L in the info box.
5. Adjust for fees, spreads, and slippage as needed.
Notes & limitations
• Broker symbols can vary. Always verify $/point and Point size for your instrument before risking capital.
• The script does not place orders and does not generate trade signals; it’s a sizing/visualization tool.
• Results can differ across brokers due to pricing, spreads, minimum lot sizes, and execution rules.
• Use on the intended indices; you’ll see a reminder if you load it elsewhere.
Changelog highlights
• Pine v6, constant-safe inputs, tick-snapping, global fills (no local-scope errors).
• Robust label handling and optional minimal chart markers.
Disclaimer
This script is provided for educational purposes only and does not constitute financial advice or a recommendation to buy or sell any security or derivative. Trading involves risk, including the possible loss of principal. Always do your own research, verify contract specifications with your broker, and consider testing in a demo environment before trading live.
Anchored Grids ft. VolumeINTRO
The 'Volume Profile' is a great tool, isn’t it? It shows us where volume has accumulated on the chart and helps guide trading decisions. The only catch is that we can’t really choose the levels—it’s all based on where volume happens to cluster. But what if we reversed the logic and measured the volume at the levels we define? That’s exactly what this script does, giving you a fresh way to spot support and resistance :)
OVERVIEW
'Anchored Grids ft. Volume' is a sophisticated technical analysis tool that combines price grid analysis with volume accumulation metrics. This indicator dynamically calculates and displays custom support and resistance levels based on a user-defined timeframe, while simultaneously tracking and visualizing volume accumulation at each specific price level. Unlike traditional volume profile indicators that use complex statistical clustering, this tool provides straightforward volume measurement at predetermined technical levels. It answers a critical question: "How much trading activity occurred near the key price levels I care about?".
HOW DOES THIS INDICATOR WORK?
This indicator builds a customizable grid system anchored to the opening price of any user-selected timeframe (hourly, daily, weekly, etc.). From that anchor point, it continuously tracks the highest high and lowest low, then calculates equidistant grid levels within that range. Two calculation modes are available—Arithmetic and Geometric—allowing flexibility in how the levels are distributed.
Once the grid is established, a volume accumulation engine comes into play. For each price bar, the script checks whether the bar’s range intersects with any level’s tolerance zone (default 0.01%). If a touch is detected, that bar’s volume is added to the corresponding level. Over time, this process builds a clear picture of where significant trading activity has clustered.
The visualization system highlights these dynamics by applying a color gradient based on volume intensity and adjusting line thickness proportional to accumulated volume. Each level is also labeled with four key data points:
The grid number (in square brackets)
The price of the level
The percentage distance between the level and the opening price of the selected timeframe
The total volume accumulated within the level’s tolerance range
PARAMETERS
Timeframe: Defines the anchor period for grid calculation. Then, the indicator automatically determines the open, high, and low prices.
Mode: This option determines how the distance between levels is calculated: Arithmetic (linear) means equal price spacing between levels, while Geometric (logarithmic) means equal percentage spacing between levels.
Grids: It's the number of levels between high and low.
Color: Base color for grid lines and labels. When volume data is displayed, lower values are darkened by 50%.
Show Volume Accumulation: When this parameter is activated, the volume calculation is enabled.
Tolerance : The Tolerance parameter (default range: 0.01%) defines the price range around each grid level where volume accumulation is registered. It acts as a sensitivity control that determines how close price must be to a level to count trading volume toward that level's accumulation.
ORIGINALITY
It’s possible to find comprehensive grid-drawing tools among community indicators, but I haven’t come across an example that combines this concept with volume data. More importantly, I wanted to demonstrate how volume accumulation can be generated for any data modeled as an array on the chart by developers.
SUMMARY
In conclusion, the selected timeframe and the number of grids are only used as a reference to determine where the levels are drawn. The true value of this indicator lies in its ability to calculate volume accumulation directly from the chart’s own candles, showing how much trading activity occurred around each level. The result is a hybrid framework that merges structural price analysis with volume distribution, offering traders deeper insights into where markets are likely to react.
NOTE
While powerful, this tool should be used as part of a comprehensive trading strategy rather than as a standalone system. Always combine with risk management principles and market context awareness. I hope it helps everyone. Trade as safely as possible. Best of luck!
SMC - Institutional Confidence Oscillator [PhenLabs]📊 Institutional Confidence Oscillator
Version: PineScript™v6
📌 Description
The Institutional Confidence Oscillator (ICO) revolutionizes market analysis by automatically detecting and evaluating institutional activity at key support and resistance levels using our own in-house detection system. This sophisticated indicator combines volume analysis, volatility measurements, and mathematical confidence algorithms to provide real-time readings of institutional sentiment and zone strength.
Using our advanced thin liquidity detection, the ICO identifies high-volume, narrow-range bars that signal institutional zone formation, then tracks how these zones perform under market pressure. The result is a dual-wave confidence oscillator that shows traders when institutions are actively defending price levels versus when they’re abandoning positions.
The indicator transforms complex institutional behavior patterns into clear, actionable confidence percentiles, helping traders align with smart money movements and avoid common retail trading pitfalls.
🚀 Points of Innovation
Automated thin liquidity zone detection using volume threshold multipliers and zone size filtering
Dual-sided confidence tracking for both support and resistance levels simultaneously
Sigmoid function processing for enhanced mathematical accuracy in confidence calculations
Real-time institutional defense pattern analysis through complete test cycles
Advanced visual smoothing options with multiple algorithmic methods (EMA, SMA, WMA, ALMA)
Integrated momentum indicators and gradient visualization for enhanced signal clarity
🔧 Core Components
Volume Threshold System: Analyzes volume ratios against baseline averages to identify institutional activity spikes
Zone Detection Algorithm: Automatically identifies thin liquidity zones based on customizable volume and size parameters
Confidence Lifecycle Engine: Tracks institutional defense patterns through complete observation windows
Mathematical Processing Core: Uses sigmoid functions to convert raw market data into normalized confidence percentiles
Visual Enhancement Suite: Provides multiple smoothing methods and customizable display options for optimal chart interpretation
🔥 Key Features
Auto-Detection Technology: Automatically scans for institutional zones without manual intervention, saving analysis time
Dual Confidence Tracking: Simultaneously monitors both support and resistance institutional activity for comprehensive market view
Smart Zone Validation: Evaluates zone strength through volume analysis, adverse excursion measurement, and defense success rates
Customizable Parameters: Extensive input options for volume thresholds, observation windows, and visual preferences
Real-Time Updates: Continuously processes market data to provide current institutional confidence readings
Enhanced Visualization: Features gradient fills, momentum indicators, and information panels for clear signal interpretation
🎨 Visualization
Dual Oscillator Lines: Support confidence (cyan) and resistance confidence (red) plotted as percentage values 0-100%
Gradient Fill Areas: Color-coded regions showing confidence dominance and strength levels
Reference Grid Lines: Horizontal markers at 25%, 50%, and 75% levels for easy interpretation
Information Panel: Real-time display of current confidence percentiles with color-coded dominance indicators
Momentum Indicators: Rate of change visualization for confidence trends
Background Highlights: Extreme confidence level alerts when readings exceed 80%
📖 Usage Guidelines
Auto-Detection Settings
Use Auto-Detection
Default: true
Description: Enables automatic thin liquidity zone identification based on volume and size criteria
Volume Threshold Multiplier
Default: 6.0, Range: 1.0+
Description: Controls sensitivity of volume spike detection for zone identification, higher values require more significant volume increases
Volume MA Length
Default: 15, Range: 1+
Description: Period for volume moving average baseline calculation, affects volume spike sensitivity
Max Zone Height %
Default: 0.5%, Range: 0.05%+
Description: Filters out wide price bars, keeping only thin liquidity zones as percentage of current price
Confidence Logic Settings
Test Observation Window
Default: 20 bars, Range: 2+
Description: Number of bars to monitor zone tests for confidence calculation, longer windows provide more stable readings
Clean Break Threshold
Default: 1.5 ATR, Range: 0.1+
Description: ATR multiple required for zone invalidation, higher values make zones more persistent
Visual Settings
Smoothing Method
Default: EMA, Options: SMA/EMA/WMA/ALMA
Description: Algorithm for signal smoothing, EMA responds faster while SMA provides more stability
Smoothing Length
Default: 5, Range: 1-50
Description: Period for smoothing calculation, higher values create smoother lines with more lag
✅ Best Use Cases
Trending market analysis where institutional zones provide reliable support/resistance levels
Breakout confirmation by validating zone strength before position entry
Divergence analysis when confidence shifts between support and resistance levels
Risk management through identification of high-confidence institutional backing
Market structure analysis for understanding institutional sentiment changes
⚠️ Limitations
Performs best in liquid markets with clear institutional participation
May produce false signals during low-volume or holiday trading periods
Requires sufficient price history for accurate confidence calculations
Confidence readings can fluctuate rapidly during high-impact news events
Manual fallback zones may not reflect actual institutional activity
💡 What Makes This Unique
Automated Detection: First Pine Script indicator to automatically identify thin liquidity zones using sophisticated volume analysis
Dual-Sided Analysis: Simultaneously tracks institutional confidence for both support and resistance levels
Mathematical Precision: Uses sigmoid functions for enhanced accuracy in confidence percentage calculations
Real-Time Processing: Continuously evaluates institutional defense patterns as market conditions change
Visual Innovation: Advanced smoothing options and gradient visualization for superior chart clarity
🔬 How It Works
1. Zone Identification Process:
Scans for high-volume bars that exceed the volume threshold multiplier
Filters bars by maximum zone height percentage to identify thin liquidity conditions
Stores qualified zones with proximity threshold filtering for relevance
2. Confidence Calculation Process:
Monitors price interaction with identified zones during observation windows
Measures volume ratios and adverse excursions during zone tests
Applies sigmoid function processing to normalize raw data into confidence percentiles
3. Real-Time Analysis Process:
Continuously updates confidence readings as new market data becomes available
Tracks institutional defense success rates and zone validation patterns
Provides visual and numerical feedback through the oscillator display
💡 Note:
The ICO works best when combined with traditional technical analysis and proper risk management. Higher confidence readings indicate stronger institutional backing but should be confirmed with price action and volume analysis. Consider using multiple timeframes for comprehensive market structure understanding.