FVG Scanner ProFVG Scanner Pro — Smart Fair Value Gap Detector (with HTF context & proximity alerts)
What it does
FVG Scanner Pro automatically finds Fair Value Gaps (FVGs) on your current chart and (optionally) on a higher timeframe (HTF), draws them as color-coded zones, and notifies you when price comes close to a gap boundary using an ADR-based proximity trigger and (optional) volume confirmation. It’s designed for ICT-style gap trading, confluence building, and clean visual execution.
How it works:
FVG definition
* Bullish FVG (gap up): low > high (the current candle’s low is above the high 2 bars ago).
* Bearish FVG (gap down): high < low (the current candle’s high is below the low 2 bars ago).
* Gaps smaller than your Min FVG Size (%) are ignored. (Gap size = (top-bottom)/bottom * 100.)
Higher-timeframe logic (auto-selected)
The script auto picks a sensible HTF:
1–5m → 15m, 15m → 1H, 1H → 4H, 4H → 1D, 1D → 1W, 1W → 1M, small 1M → 3M, big ≥3M → 12M.
You can display HTF FVGs and even filter so current-TF FVGs only show when they overlap an HTF gap.
Proximity alerts (ADR-based)
The script computes ADR on the current chart timeframe over a user-set lookback (default 20 bars).
An alert fires when price moves toward the closest actionable boundary and comes within ADR × Multiplier:
Bullish: price moving down, within distance of the bottom of a bullish FVG.
Bearish: price moving up, within distance of the top of a bearish FVG.
Yellow ▲/▼ markers show where a proximity alert triggered.
Volume filter (optional)
Require volume to be greater than SMA(20) × multiplier to accept a newly formed FVG.
Lifecycle
Each gap remains active for Extend FVG Box (Bars) bars.
You can delete the box after fill, or keep filled gaps visible as gray zones, or hide them.
Color legend
Current-TF Bullish: Pink/Magenta box
Current-TF Bearish: Cyan/Turquoise box
HTF Bullish: Gold box
HTF Bearish: Orange box
Filled (if shown): Gray box
Alert markers: Yellow ▲ (bullish), Yellow ▼ (bearish)
Inputs (what to tweak)
Show FVGs: Bullish / Bearish / Both
Max Bars Back to Find FVG: collection window & cleanup guard
Extend FVG Box (Bars): how long a zone stays tradable/active
Min FVG Size (%): ignore micro gaps
Delete Box After Fill & Show Filled FVGs: choose how you want completed gaps handled
Show Alert Markers: show/hide the yellow proximity arrows
Show Higher Timeframe FVG: overlay HTF gaps (auto TF)
HTF Filter: only display current-TF gaps that overlap an HTF gap
ADR Lookback & Proximity Multiplier: tune alert sensitivity to your market & timeframe
Volume Filter & Volume > MA Multiple: require above-average volume for new gaps
Built-in alerts (ready to use)
Create alerts in TradingView (⚠️ “Once per bar” or “Once per bar close”, your choice) and select from:
🟢 Bullish FVG Proximity — price approaching a bullish gap bottom
🔴 Bearish FVG Proximity — price approaching a bearish gap top
✅ New Bullish FVG Formed
⚠️ New Bearish FVG Formed
The alert messages include the symbol and price; proximity markers are also plotted on chart.
Tips & best practices
Use FVGs with market structure (break of structure, swing points), order blocks, or liquidity pools for confluence.
On very low timeframes, raise Min FVG Size and/or lower Max Bars Back to reduce noise and keep things fast.
Extend FVG Box controls how long a zone is considered valid; align it with your holding horizon (scalp vs swing).
Information panel (top-right)
Shows your mode, current HTF, number of gaps in memory, active bull/bear counts, and current-TF ADR.
Wskaźniki i strategie
Find explosive candlesDefault values
Candles that are at least (2) times larger than the average of the previous (20) candles.
Candles where the body represents (80)% or more of the total candle size.
Visualization
Bullish and bearish candles that meet or exceed the default values are displayed in a different color.
The percentage of the body relative to the entire candle is displayed.
The number of times the candle is larger than the average of the previous (20) candles is displayed.
Note
The values in parentheses can be adjusted by the user and are therefore subject to change.
Gann Square Levels 1 to infinity by NishantGann Square Levels 1 to infinity by Nishant
This indicator plots dynamic horizontal price levels based on the squares of whole numbers (1², 2², 3², …) with a small adjustment rule: if a square ends with an even digit, 1 is added to make it odd (for example, 4² = 16 → 17). The script displays a configurable number of the nearest levels above and below the current price and updates automatically as price moves.
Key features • Dynamic: shows N levels above and below the current price (default 5 each) and updates live.
• Adjustment rule: every square that ends with an even digit is incremented by 1 to make it odd.
• Highly configurable: customize number of levels, colors, line width, line style, and line extension (None / Left / Right / Both).
• Labels: optional labels show level values.
• Efficient: searches near sqrt(price) to keep calculations fast and avoid TradingView object limits.
• Safe object handling: the script deletes and recreates lines/labels safely to avoid runtime errors.
Inputs / user controls • Number of Levels Above/Below — how many levels are shown on each side of price.
• Above Price Line Color / Below Price Line Color — choose distinct colors for clarity.
• Line Width — thickness of plotted lines.
• Line Style — Solid, Dashed, Dotted, Arrow Left/Right/Both.
• Line Extension — None, Left, Right, Both (choose how lines extend across the chart).
• Auto Update — toggle live updates on/off.
• Show Level Labels — toggle numeric labels.
Recommended usage • Best used as a reference grid for support/resistance planning, confluence studies, and alert generation.
• Works on any timeframe and instrument, but consider increasing Number of Levels for instruments with very high price scales (or leave default and let the script pick nearest levels).
• Combine with volume, momentum, or price-action signals for higher-probability setups.
Dynamic Support & Resistance (DSR)tndicator description: Dynamic Support & Resistance (DSR)
What it does
Plots dynamic support and resistance that adapt to any timeframe. In bullish phases it highlights resistances; in bearish phases it highlights supports. Works for scalping, binary options, and day trading.
How it works
Detects recent swing highs/lows with noise filtering.
Merges nearby levels into “zones” with configurable tolerance.
Promotes a zone after a valid break-and-close.
Classifies context as trend, channel, or range via slope and move strength.
Shows only context-relevant zones to reduce clutter.
Inputs
Swing length (pivot high/low).
Merge tolerance (%, ticks, or ATR fraction).
Lookback depth.
Trend filter (EMA or optional ADX).
Minimum touches to validate a zone.
Display mode: lines, bands, or blocks.
Break sensitivity (close condition, wick allowance, body %).
Visual outputs
Resistance zones during bullish phases.
Support zones during bearish phases.
Dual zones in ranges/channels.
Labels: touch count, zone strength, last test timestamp.
Signals and rules (suggested)
Reversal: rejection candle at a valid zone + momentum/volume confirmation.
Continuation: strong close through the zone + successful retest.
Invalidation: two full closes back inside the zone in the opposite direction.
Alerts (templates)
“Price touched DSR Resistance .”
“Break of DSR Support with close > sensitivity.”
“Successful retest at DSR Zone. Possible continuation.”
Timeframe guidance
1–5m: higher sensitivity, tighter tolerance. For scalping and binaries.
15–60m: balance between frequency and reliability.
4H–D: anchor levels for intraday planning.
Risk management
Technical stop: beyond the opposite zone + tolerance buffer.
Scaled TP: first at mid-range, second at next DSR zone.
Avoid trading into high-impact news.
Advantages
Auto-adapts to trend, channel, and range without constant tuning.
Reduces noise by merging redundant levels.
Focus on zones with verified touches and strength.
Limitations
Not predictive. Use with price/volume confirmation.
In high volatility, zones can update quickly. Tune tolerance accordingly.
Disclaimer
Educational only. Not financial advice. Test on demo before live use.
London Midpoint Raid [Plazo Sullivan Roche Capital]London Midpoint BOS AI™ – User Manual
By Plazo Sullivan Roche Capital
Core Strategy in a Nutshell
The London Midpoint BOS AI™ is a precision intraday tool built on ICT and Smart Money Concepts (SMC) principles. It identifies London session reversal-to-continuation setups that align with higher-timeframe (HTF) bias and true market intent.
In essence:
When the Daily and 4H structure is bullish, the market often dips below equilibrium during London’s early volatility to grab liquidity before resuming upward.
Conversely, in a bearish structure, it typically spikes above equilibrium before continuing downward.
The tool automatically detects:
HTF Bias (Daily + H4) via EMA or structure logic
Yesterday’s mid-range (equilibrium)
Intraday Break of Structure (BOS) on your 2–5-minute chart
Volume expansion, confirming institutional displacement
Optional VWAP confluence for extra precision
When all filters align, the script marks BUY or SELL signals during the London Killzone (02:30–04:30 NY time) — when 70% of the day’s institutional liquidity is set.
What’s in It for You
Benefit Description
🎯 Ultra-High Precision Entries
Trades only when price sweeps the prior day’s equilibrium and confirms BOS with real volume expansion.
🧩 Institutional Logic, Simplified
Combines ICT, SMC, and Goldbach bias confirmation without clutter — showing only signals that matter.
⚙️ Adaptive Multi-Timeframe Bias
Auto-syncs with your Daily & H4 direction, ensuring you only trade with macro momentum.
🔔 Alert-Ready for Automation
BUY and SELL alert conditions are pre-built for webhook integration with cTrader or brokers.
📊 Clean Dashboard Interface
Real-time HTF bias panel keeps you aligned with the larger market context.
⏱ Session-Specific Smart Filtering
Restricts signals to the London Killzone for maximum precision and volatility efficiency.
Best Usage Guide
✅ Recommended Chart & Assets
Chart timeframe 2-minute to 5-minute
Higher timeframes monitored 4H and Daily
Pairs & Assets EURUSD, GBPUSD, XAUUSD (Gold), DXY, NAS100
Session London Killzone – 02:30 to 04:30 New York time
Ideal Market Conditions
Asian session forms a narrow, defined range (low volatility).
Price sweeps below or above yesterday’s midpoint during early London volatility.
HTF bias is clear and unconflicted (both Daily and 4H agree).
A strong BOS candle with volume expansion appears immediately after sweep.
VWAP alignment supports the intended direction.
Avoid trading:
Mixed HTF signals (Daily bullish, H4 bearish).
Large fundamental days (CPI, NFP, FOMC).
Markets already heavily trending with no retracement.
Tool Settings Breakdown
Session Control
Limit to London Killzone Filters signals only between 02:30–04:30 NY time.
HTF Bias Method
EMA or Structure Choose how Daily/H4 bias is determined.
Midpoint Logic
Require Sweep of Yesterday’s Midpoint Only triggers signals after liquidity sweep around yesterday’s mid-level.
Volume Confirmation
Volume SMA Length, Volume Expansion ≥ Confirms BOS with a spike in relative volume.
VWAP Confluence
Require VWAP alignment Adds institutional volume reference for more accurate trades.
Display Options
Show Dashboard, Show Midpoint, Show Labels Customize visibility of components for clarity.
How to Interpret Signals
BUY Signal (Bullish Setup)
HTF (Daily & H4) bias = Bullish
Price sweeps below yesterday’s midpoint
A BOS up forms on the 2–5m chart
Volume expansion confirms displacement
Optional VWAP confluence: Price above VWAP
deal Entry:
Buy on retracement to the BOS candle midpoint or a micro Fair Value Gap (FVG).
Target:
First partial at 1R or prior high
Final target near London session high or daily liquidity level
SELL Signal (Bearish Setup)
HTF (Daily & H4) bias = Bearish
Price sweeps above yesterday’s midpoint
A BOS down forms on the 2–5m chart
Volume expansion confirms displacement
Optinal VWAP confluence: Price below VWAP
Ideal Entry:
Sell on retracement to BOS candle midpoint or micro FVG fill.
🎯 Target:
First partial at 1R or session equilibrium
Final target at London low or key liquidity pocket
Best Setup Configuration
Parameter Recommended Value
Timeframe 2-minute or 3-minute
HTF Bias Method EMA (20)
Require Sweep of Midpoint ✅ Enabled
Volume Expansion ≥ 1.5x to 2.0x average
VWAP Filter ✅ Enabled
Session Limit ✅ London Killzone (02:30–04:30 NY)
Display Dashboard ON, Midpoint ON, Labels ON
This configuration yields an excellent balance of signal clarity, precision, and frequency — typically 2–4 valid trades per week per pair, with average R:R of 2.5–4.0.
Pro Tips for Maximum Edge
Bias Confirmation: Always double-check that Daily and H4 structure are aligned before entering.
Session Timing: Wait for the London open (02:30–03:00 NY). Avoid early pre-London signals.
Volume Clues: The best trades come when BOS candles show clear displacement — wide-range, high-volume bars.
Liquidity Targets: Focus on previous day’s high/low, session highs/lows, or obvious liquidity pools.
Psychological Precision: Don’t chase; let the tool print the signal after the sweep, then wait for confirmation.
🔔 Alerts & Automation
Pre-built alert conditions:
BUY: London Midpoint BOS
SELL: London Midpoint BOS
Use them for:
Webhook connections (e.g., cTrader, MT5, or Discord alerts).
External trade execution bots or journaling tools.
🏁 Summary
The London Midpoint BOS AI™ distills institutional concepts into a clean, actionable framework for traders who want to:
Trade only high-probability London setups
Filter out noise and fake reversals
Align entries with HTF direction and real liquidity intent
It’s your daily edge to capture the most profitable 90-minute window in global forex — the London Killzone, where precision beats volume every time.
RSI and EMA Crossover Buy with Exit Conditions and Re-entryRSI WITH MOVING AVERAGES..
RSI and EMA Crossover Buy with Exit Conditions and Re-entry
VCP + TTM Squeeze Breakout StrategyOverview
This strategy combines Mark Minervini’s Volatility Contraction Pattern (VCP) with the TTM Squeeze momentum framework to detect explosive breakouts in strong trending markets.
It identifies periods of volatility contraction within up-trending stocks and executes only when price, momentum, and volume confirm a valid breakout.
The system was designed to be robust and non-optimized, using one set of parameters that performs consistently across multiple stocks and indices without overfitting.
This strategy is based on the previously published “VCP + TTM Squeeze Breakout Detection Tool”, which is a public indicator by the same author.
The strategy expands upon that indicator by adding position management, ATR-based stop logic, Supertrend trailing, and full backtesting functionality.
Core Concept
VCP detects volatility contraction using ATR and volume.
TTM Squeeze measures compression between Bollinger Bands and Keltner Channels.
EMA filter ensures that trades only occur in established uptrends.
Pivot logic tracks recent highs and resets automatically after failed attempts.
Breakout triggers when price closes above pivot, volume exceeds its average, momentum is positive, and—if enabled—the TTM Squeeze releases (green).
Stop-loss is ATR-based and transitions to a Supertrend trailing stop once profits exceed ≈ 1 %.
This creates a mechanical system that mirrors institutional-style breakout trading while minimizing noise and false signals.
Input Parameters
🔹 VCP Settings
VCP Period (10) – ATR lookback for volatility contraction
Pivot Lookback (5) – number of bars used to define resistance
Volatility Tolerance (1.1) – ATR compression threshold
Volume & TrueRange Comparisons (5) – lookbacks for breakout validation
Max Days Active (50) – how long the pattern remains valid
EMA 50 / 100 / 200 – trend filter; must be aligned upward
Use TTM Squeeze (true) – activates compression filter
🔹 TTM Squeeze Settings
Length (20) – core period for BB and KC calculations
Bollinger STD (2.0) – standard deviation multiplier
Keltner Channels (1.5 / 2 / 3) – three compression zones
Green = No Squeeze
Orange/Red/Black = Compression levels
🔹 ATR Stop Loss
ATR Length (14)
Smoothing (RMA)
Multiplier (1.0) – defines distance below swing low
Show Lines (true) – optional visualization
🔹 Trailing Stop (Supertrend)
ATR Length (10)
Factor (3.0) – standard Supertrend setting
Active after ≈ 1 % profit – replaces initial ATR stop
Entry Conditions
Price > EMA 50/100/200 and EMAs in ascending order
ATR indicates volatility contraction (≤ lowest ATR × 1.1)
A Pivot High is set over the last 5 bars
Breakout occurs when:
• Close > Pivot High
• Volume > average of past 5 bars
• Momentum > 0
• (If enabled) TTM Squeeze = No Squeeze (green)
• Price > Supertrend
A new position is entered the next bar when all conditions are true.
Exit Logic
Initial Stop-Loss: Low − ATR × Multiplier
Trailing Stop: Supertrend (ATR 10 × Factor 3) after ≈ 1 % gain
Exit Condition: Triggered if price hits stop or volume/TR drops below average.
Stops are handled through strategy.exit() to ensure immediate execution.
Visualization
Yellow dots = VCP setup (active contraction)
Green dots = active breakout
Red/Blue lines = current stop loss
Green line = entry price
Colored bars (top) = momentum strength
Bottom squares = Squeeze status (green = free, orange/red = compressed)
Performance and Risk Considerations
Designed for daily or 4-hour charts of trending equities or ETFs.
Best results in high-momentum stocks (e.g., tech, growth sectors).
Avoid using on range-bound or low-volume assets.
Typical backtests show a high profit factor (> 2) with controlled drawdowns.
Each trade risks ≈ 1 – 2 % of equity when sized per ATR.
Disclaimer
This strategy is for educational purposes only and does not constitute financial advice.
Past performance from backtesting does not guarantee future results.
Use responsibly and adjust risk according to your account size and broker conditions.
BBDXY-9 (SAXO) - riseofatrader📊 BBDXY-9 (SAXO) – riseofatrader Dollar Strength Index
The BBDXY-9 is a custom, geometrically weighted U.S. Dollar Index, inspired by the Bloomberg Dollar Spot Index (BBDXY) — but redesigned for modern markets and real-world global exposure.
Unlike the outdated DXY (which only includes six mainly European currencies), the BBDXY-9 is built from a diverse basket of nine major and emerging FX pairs, calculated using Bloomberg-style geometric weighting:
EURUSD (inv) – 29.45%
USDJPY – 12.59%
USDCAD – 11.52%
GBPUSD (inv) – 10.17%
USDMXN – 9.39%
USDCNH – 6.98%
USDCHF – 4.70%
AUDUSD (inv) – 4.37%
USDSGD – 2.78%
Each candle represents the true, weighted price movement of the USD across these global pairs — not just Europe.
The index is rebased to 100 at a selected reference date (e.g., Dec 31 2019), providing a clean, scalable, and visually precise representation of dollar strength across all timeframes (1m → 12M).
💡 Why It’s Better Than the DXY
Modern and globally diversified:
Includes Asian and emerging-market currencies (CNH, MXN, SGD) for a more realistic reflection of global USD flows.
Geometric calculation (Bloomberg standard):
Measures proportional price changes more accurately, avoiding the distortions of the arithmetic DXY model.
True OHLC candles:
Not a line indicator — the BBDXY-9 generates full candlestick data (Open, High, Low, Close) so you can apply price action, SMC, or liquidity-based analysis directly on the chart.
Fully customizable:
Adjust the base date, weighting, data feed (SAXO, OANDA, FXCM), and visual styling to fit your analysis framework.
⚙️ Technical Features
Daily-close rebasing at any chosen date (default: Dec 31 2019)
Works consistently across all timeframes (1m → 12M)
Geometrically weighted OHLC construction
Optional rebased arithmetic comparison line
Custom up/down candle colors, transparency, and styling
✨ Tagline (Short Version for TV Listing)
A modern, candle-based Dollar Index — broader, more accurate, and globally balanced than the DXY.
Built for traders who want to measure true USD strength across the entire FX landscape.
Created by riseofatrader.
LA - EMA Bands with MTF DashboardDetailed Explanation of the LA - EMA Bands with MTF Dashboard Indicator
This custom Pine Script v6 indicator, designed for Trading View, overlays EMA-based price channels on the chart while incorporating a multi-timeframe (MTF) dashboard for broader market context. It focuses on visualizing trend direction and momentum through three sets of EMA bands, each representing different time horizons, and extends this with a tabular dashboard that summarizes signals across user-selected timeframes. The bands help identify support, resistance, and trend shifts, while the dashboard provides at-a-glance alignment across multiple periods, aiding in confirming trades or spotting divergences. Unlike volatility-based channels (e.g., Bollinger or Keltner), it relies solely on EMAs for simplicity and lag-reduced responsiveness.
Inputs Section
The script begins with user-configurable options grouped for ease. A timeframe input allows specifying a resolution for the EMA bands' data fetching, defaulting to the chart's timeframe if left empty—this enables higher-timeframe overlays on lower charts for context.
Next, a shared source input defines the price data for all midlines, defaulting to the midpoint of high and low (hl2) but customizable to close, open, or others.
The EMA bands have dedicated toggles and length inputs for each of the three sets: the first (long-term) defaults to 144 periods, the second (medium-term) to 72, and the third (short-term) to 12. These are inlined for compact settings panels, with minimum lengths of 1 to prevent errors.
A boolean toggle controls the visibility of the MTF dashboard. Following this are nine pairs of inputs for dashboard timeframes: each pair includes a show/hide toggle and an editable timeframe string (e.g., '1' for 1-minute, 'D' for daily). Defaults progress from short (1, 3, 5 minutes) to longer (15, 30, 60 minutes, daily, weekly, monthly), grouped in inlines for organization. Only enabled and non-empty timeframes appear in the dashboard.
Helpers Section
Two utility functions are defined here. The first computes an EMA on any source series over a specified length using Trading View's built-in function, reused throughout for midlines and bands.
The second function generates a signal string ("B" for buy/bullish, "S" for sell/bearish, or "-" for neutral) based on the direction of an EMA applied to high prices. It compares the current EMA value to the previous one, mirroring the band fill logic for consistency in the dashboard.
Core Components per Band Set:
Midline: An EMA calculated on a user-selectable source price (default: hl2, which is the midpoint between high and low prices). This acts as the central trend line.
Upper Band: An EMA applied directly to the high prices of each bar.
Lower Band: An EMA applied to the low prices of each bar.
These form a channel that captures the smoothed range of price action, highlighting potential support (lower band), resistance (upper band), and overall trend direction (midline).
Multiple Band Sets: The indicator includes three independent EMA band sets, each with its own length parameter for customization:
EMA1 (default length: 144) – Focuses on long-term trends.
EMA2 (default length: 72) – Targets medium-term trends.
EMA3 (default length: 12) – Emphasizes short-term momentum.
Each set can be toggled on or off via input checkboxes, allowing users to reduce chart clutter if needed.
Visual Elements:
Midline Plot: Displayed as a line colored based on its direction compared to the previous bar: green for rising (bullish), red for falling (bearish), and black for neutral (flat).
Band Fill: The area between the upper and lower bands is filled with a semi-transparent color indicating the trend of the upper band: light green for rising (suggesting expanding highs/upward momentum) and light pink for falling (contracting highs/downward pressure). The bands themselves are plotted in blue with a thin linewidth.
Multi-Timeframe Support: Users can input a custom timeframe (e.g., 'D' for daily), and the indicator fetches data from that resolution. This enables higher-timeframe context on lower-timeframe charts, such as viewing daily EMA bands on a 1-hour chart.
Calculation Mechanics:
All EMAs are computed using Trading View's built-in ta.ema() function.
Data is retrieved in a single request.security() call for efficiency, with lookahead enabled to avoid repainting.
No multipliers or volatility adjustments are included, making it a simple EMA-based envelope rather than a true volatility channel.
In practice, this indicator helps traders identify trend strength, potential breakouts (price crossing bands), or mean-reversion opportunities (price bouncing within bands). It's particularly useful for swing or position trading where multi-period alignment (e.g., all midlines green) signals conviction.
Pros
Multi-Period Insight: By combining short (12), medium (72), and long (144) periods, it offers a layered view of trends across time horizons, helping confirm alignments or divergences without needing multiple separate indicators.
Visual Clarity: Color-coded trends and fills make it easy to spot bullish/bearish shifts at a glance, reducing analysis time.
Flexibility: Custom timeframe input allows for multi-timeframe analysis, while shared source and toggles provide user control.
Simplicity and Efficiency: Purely EMA-based, it's computationally light and avoids overcomplication, making it accessible for beginners while still useful for spotting channel-based setups like squeezes or expansions.
No Repainting: With lookahead, plots are stable once bars close.
Cons
Lagging Nature: EMAs inherently lag price action, especially longer ones like 144-period, which may cause delayed signals in fast-moving or ranging markets.
Lack of Volatility Adjustment: Unlike Keltner Channels or Bollinger Bands, it doesn't incorporate ATR or standard deviation, so bands may not accurately reflect true volatility—potentially leading to false breakouts in high-volatility environments.
Chart Clutter: Displaying all three band sets simultaneously can overcrowd the chart, particularly on lower timeframes or volatile assets.
Subjective Interpretation: Color changes and band interactions require trader discretion; there's no built-in alerting or quantitative signals, which might lead to inconsistent results.
Market Dependency: Defaults may not suit all assets (e.g., stocks vs. crypto); shorter periods like 12 could whipsaw in noisy markets, while 144 might be too slow for intraday trading.
Justification for Default Values (12, 72, and 144)
The default lengths of 12, 72, and 144 are not arbitrary but draw from established trading principles, particularly W.D. Gann's geometric and numerical theories, as well as Fibonacci sequences, to create a harmonic progression for short-, medium-, and long-term analysis. Here's the rationale:
12 (Short-Term): This is a common period for capturing recent momentum in technical indicators, often seen in setups like the MACD (which uses 12- and 26-day EMAs). It aligns with natural cycles, such as the 12 months in a year, and in Gann theory, 12 serves as a base unit for squaring price and time (e.g., in the "Square of 12" where multiples like 12, 24, etc., measure cycles in days, weeks, or months). At 12 periods, the EMA reacts quickly to price changes without excessive noise, making it ideal for short-term trend detection.
72 (Medium-Term): This acts as an intermediate bridge, derived from Gann's divisions of the 360-degree circle (a key Gann concept representing a full cycle). Specifically, 72 is 360/5 (relating to pentagonal geometry and natural harmonics) and appears in Gann's time cycle measurements (e.g., as a multiple in the Square of 12: 12×6=72). It's roughly half of 144, providing a balanced midpoint for medium-term trends without overlapping too closely with the others. In practice, 72 periods smooth out short-term fluctuations while still responding to developing trends.
144 (Long-Term): This is a powerhouse number in trading lore, being both 12 squared (12×12=144, central to Gann's "Square of 144" for monthly charts and major cycle turns, as there are 12 months in a year) and a Fibonacci sequence value (1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144...). Fibonacci periods are popular in moving averages for their alignment with natural growth patterns in markets, and 144 is often used for long-term regime definition (e.g., confirming trends over 144 bars). It helps identify major support/resistance in extended cycles.
Overall, these values form a geometric/harmonic series (12, 72=12×6, 144=12×12), promoting alignment with market cycles as per Gann and Fibonacci principles, rather than generic lengths like 50 or 200. They can be adjusted based on the asset or timeframe, but the defaults provide a starting point rooted in time-tested trading numerology for balanced multi-period analysis.
Please use this along with other indicators (eg. Pivot, MACD, etc) for better results.
通用多空力量分析 (Universal Long-Short Strength)Universal Long-Short Strength,buy&sell,Universal Long-Short Strength,Universal Long-Short Strength
NY LONDON OVERLAPThis Indicator helps to find out higher voltility time,
it highlights NY LONDON overlapping timing
Sharp Pullback/Profit Taking Detector (ATH)SP_ATH Alert: Early Warning for Gold Pullbacks
Tired of being caught by sharp profit-taking when Gold hits a new All-Time High?
The Sharp Pullback / Profit Taking Detector (SP_ATH Alert) is a powerful Pine Script V5 indicator designed to give you an early warning signal before a rapid market reversal (pullback or significant profit-taking) occurs. It specifically focuses on identifying the critical confluence of weak buying momentum and aggressive selling pressure near recent price peaks.
How the Code Works: A Triple-Filter System
This indicator combines three primary technical analysis categories to filter out noise and generate high-confidence signals:
1. Candlestick Confirmation (The First Clues)
This section detects immediate bearish intent on the chart:
Bearish Pin Bar (Shooting Star): Checks for a long Upper Wick (seller rejection) and a small body, signaling that buyers attempted to push the price up but were immediately overwhelmed by sellers.
Bearish Engulfing: Identifies a large red candle whose body completely engulfs the preceding green candle's body. This represents a clear, aggressive shift in momentum from buying to selling dominance.
2. Price Action & Context Filter (The Warning Signs)
The indicator ensures the pattern occurs in a high-risk, high-reward environment:
Near All-Time High (isNearATH): The signal is only valid if the price is trading near a recent price peak (defined by the athLookback period), where profit-taking is most likely to be severe.
Large Red Bar: Confirms the signal by looking for an aggressive bearish bar whose total range is significantly larger than the average market movement (using ATR).
Weak Higher High (isWeakHH): Detects Exhaustion by identifying a new high with a disproportionately small candle body relative to its upper wick, indicating buyers are losing conviction.
3. Momentum & Indicator Signals (The Undercurrent)
The script uses the RSI (Relative Strength Index) to confirm weakening momentum:
RSI Bearish Divergence: Compares recent price pivots (Higher Highs) with RSI pivots (Lower Highs). This classic signal confirms that the buying momentum is fading, even though the price is still ticking higher.
RSI Breakdown: Triggers when the RSI was previously in the Overbought Zone (above 70) and now breaks down below the 70 level and crosses below its own Exponential Moving Average (EMA), confirming the start of bearish momentum.
Invitation to Use
By requiring a combination of these factors, the SP_ATH Alert provides a robust, multi-layered alert system. Add this indicator to your Gold (XAUUSD) chart on a lower timeframe (e.g., 10-minute or 15-minute) to proactively manage risk and identify potential short entry points during periods of extreme bullish euphoria.
MTF RSI Heatmap)# MTF RSI Heatmap — v2.7.2
**Hybrid Higher-TF Trend + Intraday Impulse Detection + Smart Counters & Alerts**
Turn your lower pane into a **multi-timeframe market bias dashboard**. This heatmap blends classic RSI momentum with a **hybrid Daily/Weekly MA-stack trend** and an **intraday impulse override** that flags fast moves *as they happen*. Clean, configurable, and built for real trading flow.
---
## What it shows
* **6 stacked rows = 6 timeframes** (bottom → top).
* **Colors**: Green = Bull, Red = Bear, Yellow = Neutral.
* **Header counter**: `Bull X/6 | Bear Y/6` = live agreement across visible rows.
* **Impulse markers** ▲/▼ on intraday rows (5m/15m/60m/240m) when a shock move triggers.
* **Signal bar**: A thin column above the top row when at least **N of 6** rows align (configurable).
---
## Why it’s different
* **Impulse Override (intraday)**
Detects sharp moves using % change over the last *N* bars, optionally gated by **volume > SMA × multiplier**. This catches dumps/pops earlier than RSI alone.
* **Hybrid D/W (structure over noise)**
Daily/Weekly rows can use an **MA stack (8/21/55)** instead of RSI for a more stable higher-timeframe trend read. Optional **price > fast MA** filter for stricter confirmation.
* **Intrabar option**
Flip rows **during the bar** for early reads (accepting repaint on TF close), or keep it close-only for no surprises.
---
## Key features
* 🌈 **Theme**: Classic or High-Contrast colors.
* 🧠 **RSI thresholds**: Bull above 55, Bear below 45 (editable).
* 🧲 **RSI smoothing** (EMA) for intraday rows to reduce flicker.
* 🧰 **Compact left legend** with adjustable text size & opacity.
* 🚨 **Alerts**:
* **Impulse-only** (per TF and “any intraday”)
* **N-of-6 confirmation** (bull/bear)
---
## Recommended settings (fast opens & news)
* **Impulse**: `Bars = 1–2`, `Threshold = 0.25–0.35%`, `Vol confirm = ON`, `Multiplier = 1.3–1.5`.
* **Hybrid D/W**: `ON`, `EMA 8/21/55`, `Price filter = ON`.
* **Intrabar**: `ON` if you want intra-bar updates (repaints at TF close).
---
## How to read it
1. **Row scan**: Are the bottom (fast) rows aligning first? That’s early momentum.
2. **Header counter**: Look for 4+/6 agreement as momentum broadens.
3. **Signal bar**: Acts as a “go/no-go” confirmation when your threshold is met.
4. **Impulse ▲/▼**: Use as a **heads-up** for acceleration; then watch if rows cascade in that direction.
---
## Alerts (exact names)
Create alerts with these built-ins:
* **Impulse UP — any intraday**
* **Impulse DOWN — any intraday**
* **Impulse UP — TF1 / TF2 / TF3 / TF4**
* **Impulse DOWN — TF1 / TF2 / TF3 / TF4**
* **Bull confirmation** (N-of-6)
* **Bear confirmation** (N-of-6)
Tip: Use **Once per bar** or **Once per bar close** depending on whether you enabled *Intrabar*.
---
## Inputs overview
* **Timeframes & visibility** per row.
* **RSI**: length, bull/bear thresholds, optional EMA smoothing (intraday only).
* **Impulse**: bars, %, volume confirm, SMA length, multiplier, markers.
* **Hybrid D/W**: MA type (EMA/SMA/HMA), 8/21/55 lengths, price filter.
* **Theme & Legend**: color theme, label size (Tiny/Small/Normal), legend opacity.
* **Signal**: N required for confirmation (default 4).
---
## Pro tips
* Combine with **session opens**, **VWAP**, and **liquidity levels**.
* If you trade breakouts, let **impulse triggers** cue attention, then wait for **N-of-6** confirmation.
* For swing bias, lean on **Hybrid D/W**—it changes slower, but with intent.
---
## Notes & limitations
* **Intrabar = repaint expected** on higher-TF closes—by design for earlier context.
* Colors/thresholds are general guidance, not signals by themselves.
* Past performance ≠ future results; **this is not financial advice**.
---
If you enjoy this, drop a ⭐ and tell me what you want next: background shading on confirmation, tooltips with RSI/ROC per row, or a MACD/RSI hybrid mode. Trade sharp! ✨
RS Alpha α w/ Confidence Period | viResearchRS Alpha α w/ Confidence Period | viResearch
Conceptual Foundation and Innovation
The RS Alpha α w/ Confidence Period indicator from viResearch is a comprehensive multi-asset allocation and momentum-ranking system that integrates alpha–beta analysis, pairwise relative strength comparison, and volatility-adjusted confidence filtering.
Its primary objective is to identify dominant crypto assets during “safe” investment periods while dynamically reallocating exposure based on a calculated relative strength hierarchy.
At its core, RS Alpha α measures the systematic (β) and idiosyncratic (α) performance of each asset relative to Bitcoin (as the benchmark), combining these measures with inter-asset ratio trends to determine which assets exhibit superior momentum and market leadership.
The “Confidence Period” module introduces an additional dimension of market phase assessment, identifying safe and unsafe allocation windows based on historical equity peaks and troughs. This dynamic filter enhances portfolio resilience by restricting allocation to favorable trend conditions while avoiding high-risk market phases.
This integration of alpha–beta decomposition, relative strength comparison, and confidence-state filtering represents a quantitative evolution of traditional relative strength analysis, designed for adaptive asset rotation across major cryptocurrencies.
Technical Composition and Calculation
The indicator is structured around three major analytical layers:
1. Alpha–Beta Decomposition
-Each asset’s return is decomposed into systematic (beta) and idiosyncratic (alpha) components relative to Bitcoin using a covariance-based regression model.
-Assets with positive alpha above the median are considered outperformers and eligible for allocation.
2. Pairwise Ratio-Based Momentum Matrix
-Every asset is compared against all others through a ratio-trend matrix, where CCI-derived trend scores quantify the directional momentum between each pair.
-This matrix produces a relative strength score for each asset, reflecting its aggregate dominance in the group.
3. Confidence Period Logic (Dynamic Market Phases)
-Using the system’s internal equity curve, the script identifies peak (safe) and nadir (unsafe) periods.
-Allocation is only active during safe confidence phases, ensuring capital exposure aligns with favorable equity momentum.
-When enabled, the model can shift unallocated capital into PAXG (Gold-backed token) as a defensive asset.
By combining these layers, RS Alpha α w/ Confidence Period determines not only which assets to hold but also when to be invested, applying a systematic market-timing overlay to multi-asset selection.
Features and User Inputs
The indicator includes a rich set of customizable parameters to support portfolio and risk management preferences:
Start Date Filter – Defines the beginning of live strategy evaluation.
Display Options – Toggle drawdown metrics, background colorization, and intra-bar updates for visual customization.
Allocation Filters – Enable or disable intra-trend validation, trend source confirmation, or fallback to PAXG during cash periods.
Confidence Period Controls – Adjust the peak and nadir lookback lengths that govern safe/unsafe phase detection.
Asset Selection – Modify or replace up to seven crypto assets in the ranking matrix, including BTC, ETH, SOL, SUI, XRP, BNB, and PAXG.
Each module operates cohesively to maintain analytical transparency while allowing user-level control over system sensitivity and behavior.
Practical Applications
The RS Alpha α w/ Confidence Period indicator is suitable for both systematic traders and quantitative portfolio managers seeking dynamic asset rotation frameworks.
Key applications include:
Market Regime Detection: Identify and visualize transitions between “safe” and “unsafe” market environments using confidence overlays.
Alpha-Focused Asset Selection: Highlight crypto assets demonstrating statistically significant outperformance relative to Bitcoin.
Portfolio Rotation: Dynamically reallocate exposure toward leading assets while reducing capital risk during weak phases.
Risk-Managed Trend Participation: Utilize the confidence-state model to align exposure with favorable market momentum only.
This framework bridges quantitative finance with market regime analytics, enabling a disciplined and data-driven approach to crypto asset allocation.
Advantages and Strategic Value
RS Alpha α extends beyond traditional relative strength indicators by incorporating multi-asset covariance analysis, ratio-based dominance scoring, and volatility-aware regime filtering.
Its three-tier analytical framework — combining trend quality, performance attribution, and confidence-state validation — enhances the reliability of trend-following and rotation signals.
The system is particularly valuable for traders aiming to:
Reduce drawdowns during volatile phases.
Identify consistent outperformers early in developing market trends.
Maintain exposure only when statistical conditions indicate high confidence.
The integrated drawdown monitor, visual allocation tables, and dynamic alert system make RS Alpha α both powerful and transparent, suitable for discretionary and automated strategy workflows alike.
Alerts and Visualization
The script provides clear visual and alert-based feedback mechanisms:
Color-coded background zones differentiate safe vs. unsafe investment periods.
Allocation labels and tables display current dominant assets and their strength scores in real-time.
Max Drawdown Display offers ongoing performance diagnostics.
Alert System automatically notifies users when allocations change (e.g., “50% ETH / 50% SOL” or “100% CASH”).
These visualization features make the indicator not only analytically robust but also intuitively interpretable, even in live market environments.
Summary and Usage Tips
The RS Alpha α w/ Confidence Period | viResearch indicator represents a sophisticated evolution of relative strength analysis — combining alpha–beta decomposition, multi-asset momentum ranking, and dynamic confidence filtering to provide a structured, risk-aware framework for crypto asset rotation.
By integrating market regime awareness with systematic selection logic, it helps traders identify when to participate, what to hold, and when to stay defensive.
For best results, apply on the 1D timeframe as recommended, and use it alongside other viResearch systematic models for portfolio-level insight and tactical confirmation.
Note: Past performance does not guarantee future results. The indicator is intended for research and educational purposes within TradingView.
Supply In Profit Z-Score | Wave BackgroundSupply in Profit Z-Score
Modified by Quant_Hustler | Original by QuantChook
What it does
The Supply in Profit Z-Score measures how extreme the balance is between BTC addresses in profit versus those in loss compared to historical norms.
It highlights periods of excessive optimism or pessimism, helping traders identify market sentiment extremes that can signal potential turning points or confirm ongoing trends.
This version is designed for longer-term strategies, using smoothing and statistical normalization to focus on broader market sentiment cycles rather than short-term noise.
How it works
--Data Retrieval: Pulls on-chain data showing the percentage of Bitcoin addresses currently in profit and in loss.
--Spread Calculation: Finds the difference between the two to gauge overall sentiment balance.
--Alpha Decay Adjustment (optional): Normalizes extreme values to stabilize the signal over time.
--Smoothing: Applies a moving average to filter daily volatility and improve long-term clarity.
--Z-Score Conversion: Standardizes the data to show how far current sentiment deviates from historical averages.
--Visualization: Plots the result around a neutral midpoint (zero line) — positive values indicate profit dominance, negative values indicate loss dominance.
How to use it
--Above Zero: More addresses in profit → bullish sentiment and strong trend conditions.
--Below Zero: More addresses in loss → bearish sentiment or potential accumulation zones.
--Extreme Values: Mark overly optimistic or capitulated sentiment, often preceding major reversals.
Why use it in trend following
--This indicator serves as an on-chain sentiment confirmation layer for trend-following systems, especially on higher timeframes (daily or weekly).
--In uptrends, sustained positive readings confirm market strength and investor confidence.
--In downtrends, persistent negative readings confirm weakness and help avoid false reversal signals.
--Divergences between price and sentiment (e.g., rising price but weakening sentiment) often signal momentum loss or potential trend transitions.
Modifications from the original by QuantChook
Added EMA, adaptive Z-score smoothing and capping to reduce volatility and noise.
Introduced a wave-style visualization for intuitive sentiment shifts.
Improved calculation structure and upgraded for Pine Script v6 efficiency.
Tuned signal responsiveness and smoothing parameters for long-term trend accuracy.
Simplified user inputs and grouping for easier customization and integration.
In summary:
A refined, statistically grounded on-chain sentiment oscillator — originally developed by QuantChook and enhanced by Quant_Hustler — built to support long-term trend-following strategies by quantifying Bitcoin market sentiment through real-time profit and loss dynamics.
智能资金概念-NEWSmart Fund Concept-NEW
Smart Fund Concept-NEW
Smart Fund Concept-NEW
Smart Fund Concept-NEW
Smart Fund Concept-NEW
Diablo Flow v6 (stable build)⚙️ 1️⃣ Add It to Your Chart
Copy the final Pine script → go to TradingView → Pine Editor → New → Paste → Save → Add to Chart.
Make sure you’re on a 5m, 15m, or 1H chart (for day or swing trading).
You’ll see:
Green bars / background = bullish trend
Red bars / background = bearish trend
“BUY” or “SELL” labels when all internal conditions align
🔍 2️⃣ Understand What Each Component Means
Visual Meaning
Green bars / lime background Bullish trend confirmed (EMA & Supertrend aligned)
Red bars / red background Bearish trend confirmed
Gray / neutral No clear momentum (avoid trades)
BUY / SELL labels Signal when trend + RSI + MACD + Volume all confirm
EMA Fast (Teal) Short-term momentum line
EMA Slow (Orange) Trend direction filter
Supertrend Line (Green/Red) Dynamic support/resistance
🎯 3️⃣ Trading Rules
Entry Setup
✅ BUY (Long)
A “BUY” label appears
Bars are green
Price is above the fast EMA
RSI is > 50
MACD histogram > 0
Volume spike confirmed (relative to recent average)
🔴 SELL (Short)
A “SELL” label appears
Bars are red
Price is below fast EMA
RSI is < 50
MACD histogram < 0
Volume spike confirmed
Entry Timing
After a signal appears:
Wait for candle close to confirm it (don’t enter mid-candle).
On next candle, enter in same direction.
Optional confirmation: use VWAP or Volume Profile:
Only buy if price is above VWAP.
Only short if below VWAP.
Stop-Loss & Take-Profit
💥 Conservative setup (Intraday):
Stop-Loss: below previous swing low (for long) / above swing high (for short).
TP1: 1× ATR (average true range).
TP2: 2× ATR or next resistance/support level.
💥 Aggressive setup (Scalping):
Stop = below last green bar (for long) or above last red bar (for short).
Exit on opposite “SELL”/“BUY” signal.
🧩 4️⃣ Filters to Avoid False Signals
Use higher-timeframe confirmation:
If trading 5m → confirm 15m trend direction.
If trading 15m → confirm 1H trend direction.
Only trade signals in the direction of higher TF trend.
📊 5️⃣ Backtest / Optimize
Open TradingView’s “Strategy Tester” tab (you can ask me for a strategy version next).
Tune these parameters:
EMA Fast/Slow (try 10/30 or 20/50)
ATR Mult (2.0–3.0)
Vol Mult (1.2–2.0)
RSI Bull/Bear thresholds (55/45 for stronger filters)
🧠 6️⃣ Psychology of the System
It’s a trend-following + momentum confirmation system.
Works best in volatile, directional sessions (NY, London, or US futures open).
Avoid using it in flat, low-volume premarket conditions.
🪄 Example: ES / NQ Futures
Timeframe: 5m
Setup: “BUY” label at 9:45 ET with strong volume, background lime.
Entry: Long next candle close.
Exit: Opposite “SELL” label or +10 pts (whichever first).
Stop: Below last red candle.
✅ Summary of Workflow
Step What to Do
1 Wait for BUY/SELL label + bar color confirmation
2 Confirm with VWAP or higher timeframe
3 Enter on next candle close
4 Place stop beyond Supertrend/ATR
5 Take profit at 1×–2× ATR or opposite signal
📊 High/Low Daily & Weekly + Internal [Premium v2]📊 High/Low Daily & Weekly + Internal
Easily visualize the most important price levels on any market with this professional tool.
✨ Features:
🔹 Previous Day High/Low (red/green)
🔹 Current Day Internal High/Low (orange/yellow)
🔹 Previous Week High/Low (blue/aqua) – visible on all timeframes, including 1-minute
⚙️ Extras:
✅ Toggle buttons to show/hide each level type
✅ Optional labels with exact price values
✅ Customizable colors, thickness & transparency
✅ Works perfectly for identifying support, resistance, and liquidity zones
Ideal for scalpers and intraday traders who need clear structure, precision, and visual confidence on their charts.
Overnight Gap Detector Overnight Gap Detector - 4H Body to Body
What it detects:
The indicator finds overnight gaps - i.e., gaps between trading days based on 4-hour (4H) candle data.
Gap Definition (Wick to Wick):
Gap UP: When yesterday's 4H candle's highest point (high) is BELOW today's 4H candle's lowest point (low) - there's "air" between them
Gap DOWN: When yesterday's 4H candle's lowest point (low) is ABOVE today's 4H candle's highest point (high)
Rectangle Drawing (Body to Body):
Although the gap is detected via wicks, the rectangle is only drawn between the bodies:
Gap UP: Draws from today's open to yesterday's body top (max of open/close)
Gap DOWN: Draws from yesterday's body bottom (min of open/close) to today's open
This means the rectangle does NOT cover the wicks, only the actual gap between bodies.
Midline:
50% line between top and bottom of the gap rectangle
Continues to the right along with the rectangle
Stops when the gap is filled
Gap Filled:
A gap is marked as "filled" when:
Gap UP: Price's close goes DOWN and reaches yesterday's body top
Gap DOWN: Price's close goes UP and reaches yesterday's body bottom
Important: Only close body counts, not wicks!
Visual Elements:
Green box: Gap Up (upward gap)
Red box: Gap Down (downward gap)
Yellow box: Filled gap
Labels: "GAP HOLE" when active, "FILLED gap" when filled
Midline: Dotted line through the middle of the gap
Features:
✅ Works on all timeframes (5min, 15min, 1H, 2H, 4H, etc.) - always uses 4H data
✅ Rectangles expand bar by bar until filled
✅ Customizable colors for gaps, borders, midlines, and labels
✅ Label position (inside or outside box)
✅ Toggle to show/hide labels and midlines
✅ Minimum gap size filter (%)
Delta Histogram - OnlyFlowThis script plots a histogram of delta proxies (approximations of buying vs. selling pressure) using available chart data. Because TradingView does not provide bid/ask tape data, delta is estimated with several selectable methods:
Uptick/Down-tick (proxy): volume signed by close direction.
Body-weighted Volume: weights volume by candle body relative to its range.
VWAP-slope Volume: signs volume by changes in the typical price (HLC3).
Features
Cumulative or per-bar mode: reset daily or by custom session hours.
Normalization options: Z-score, percentile scaling, or raw values; with percentile clipping for stable colors and axis scaling.
Visualization: color-coded positive/negative bars, optional zero line and ± bands, adjustable opacity scaling.
Readout Panel: shows the latest delta values and their normalized equivalents on the chart edge.
Alerts: triggers when normalized delta exceeds positive or negative thresholds, highlighting potential spikes in pressure.
Usage
Switch between delta modes to explore different perspectives on order-flow imbalance. Cumulative mode shows whether pressure builds over a session, while per-bar mode highlights bar-to-bar shifts. Normalization helps identify relative extremes in context rather than raw values.
RSI Bars - OnlyFlowThis indicator applies the RSI (Relative Strength Index) to candle coloring so that bar colors reflect momentum conditions instead of a fixed scheme.
RSI Logic: Bars shift color when RSI values move into overbought or oversold regions, with intensity scaled by how far RSI extends beyond the thresholds.
Gradient / Step Mode: Choose between a smooth gradient or a 3-step palette to visualize strength.
Directional Neutral Colors: Neutral zones can follow candle direction for clearer trend context.
Customization: Overbought/oversold levels and color palettes are user-configurable.
Optional RSI Panel: An RSI plot with overbought/oversold lines can be enabled in a separate pane if desired.
This tool is meant to give traders a more intuitive view of RSI conditions directly on price bars, helping to quickly see momentum extremes without needing to glance away from the chart.
Delta Profile - OnlyFlowThis script plots a horizontal profile of trading activity based on a chosen lookback window. It can be displayed either as a Volume Profile or as a Delta Profile:
Volume Profile: shows the distribution of total traded volume at each price level.
Delta Profile: approximates buying vs. selling activity by measuring volume signed with candle direction, highlighting where positive or negative pressure was strongest.
Features
Adjustable row size (in ticks) to control price-level granularity.
Configurable lookback window and profile width.
Profiles are drawn on the right side of the chart, with optional offset.
Bars are color-coded: blue for positive delta, red for negative delta, and gray for neutral.
Optional numeric labels show either delta values or volume, with formatting options (K/M/B suffixes, decimal places, text size).
Usage
Enable Volume Profile to view how volume is distributed across price, or switch to Delta Profile to emphasize directional imbalances. The profile updates on the most recent bar and helps visualize where trading interest is concentrated during the selected lookback range.