(FVC) Fractal Volatility Compression (DAFE) (FVC) Fractal Volatility Compression
See the Market’s Volatility DNA.
The Fractal Volatility Compression (FVC) is a next-generation tool for traders who want to see volatility compression and expansion across multiple timeframes and volatility engines—not just price, but the very structure of volatility itself.
What Makes FVC Unique?
Dual-Engine Volatility:
Plots both classic price-based (Stdev) and meta-volatility (VoVix) compression/expansion, so you can see when the market is “coiling” or “exploding” on multiple levels.
Fractal, Multi-Timeframe Analysis:
Measures volatility on short, medium, and long timeframes, then normalizes each as a Z-score. The result: a true “coiled spring” detector that works on any asset, any timeframe.
Threshold Lines You Control:
Yellow center line: Your neutral baseline.
Green compression line: When crossed, the market is “spring-loading.”
Red expansion line: When crossed, volatility is breaking out.
All lines are solid, clean, and end before the dashboard for a professional look.
Agreement Fill: When both engines agree (both above or both below the center line), a bright fill highlights the zone—red for expansion, green for compression.
Signature Dashboard & Info Line:
Dashboard (right-middle) shows all Z-scores and FVC values, color-coded for instant clarity.
Compact info label for mobile or minimalist users.
Inputs & Customization
Thresholds: Set the yellow, green, and red lines to match your asset, timeframe, and risk tolerance.
Timeframes & Lengths: Tune the short, medium, and long volatility windows for your style.
Toggle Lines: Show/hide Stdev or VoVix FVC lines independently.
Dashboard & Info Line: Toggle for your workflow and screen size.
How to Use
Compression (below green): Market is “coiling” across timeframes—watch for explosive moves.
Expansion (above red): Volatility is breaking out—expect regime shifts or trend acceleration.
Agreement Fill: When both lines agree, the signal is strongest.
Not a Buy/Sell Signal: These are regime and structure signals—combine with your own
strategy and risk management.
Why should you use FVC?
See what others can’t:
Most tools show only one dimension of volatility. FVC reveals the fractal DNA of market compression and expansion. Works on any asset, any timeframe. Professional, clean, and fully customizable.
Fractal Volatility Compression (FVC):
Because the next big move is born in the market’s hidden compression.
For educational purposes only. Not financial advice. Always use proper risk management
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems
Volatilidade
Stop Cascade Detector Stop Cascade Detector (DAFE)
Unlock the Hidden Triggers of Market Momentum!
The Stop Cascade Detector (Bull & Bear, Info Bubble) is a next-generation tool designed for traders who want to see what the crowd can’t: the precise moments when clusters of stop orders are being triggered, unleashing explosive moves in either direction. The reason for this is traders taking there position too early. We on the other hand will take our positions once the less informed traders have been liquidated.
What Makes This Indicator Unique?
Not Just Another Volatility Tool:
This script doesn’t just measure volatility or volume. It detects the chain reactions that occur when price and volume spikes combine to trigger stop-loss clusters—events that often precede the most powerful surges and reversals in any market.
Directional Intelligence:
Unlike generic “spike” detectors, this tool distinguishes between bullish stop cascades (green, above the bar) and bearish stop cascades (red, below the bar), giving you instant clarity on which side of the market is being liquidated.
Visual Precision:
Each event is marked with a color-coded info bubble and a triangle, clearly separated from the price bars for maximum readability. No more guessing where the action is—see it, trade it, and stay ahead.
Universal Application:
Works on any asset, any timeframe, and in any market—futures, stocks, crypto, forex. If there are stops, this indicator will find the cascade.
What makes it work?
Momentum + Volume Spike:
The detector identifies bars where both price momentum and volume are simultaneously extreme (using Z-scores). This combination is a classic signature of stop runs and forced liquidations.
Bull & Bear Detection:
Bull Stop Cascade : Price plunges downward with a volume spike—likely longs getting stopped out.
Bear Stop Cascade: Price surges upward with a volume spike—likely shorts getting stopped out.
Info Bubbles:
Each event is labeled with the exact Z-scores for momentum and volume, so you can gauge the intensity of the cascade at a glance.
What will it do for you?
Front-Run the Crowd:
Most traders react after the move. This tool helps you spot the cause of the move—giving you a tactical edge to fade exhaustion, ride momentum, or avoid getting trapped.
Perfect for Scalpers, Day Traders, and Swing Traders:
Whether you’re looking for high-probability reversals or want to ride the wave, knowing when stops are being triggered is a game-changer.
No More Blind Spots:
Stop cascades are the hidden fuel behind many of the market’s biggest moves. Now you can see them in real time.
How to Use
Red Bubble Above Bar: Bear stop cascade detected—watch for possible trend acceleration or reversal.
Green Bubble Below Bar: Bull stop cascade detected—watch for possible trend acceleration or reversal.
Combine with Your Strategy : Use as a confirmation tool, a reversal signal, or a filter for high-volatility environments. Level up your trading. See the market’s hidden triggers.
Stop Cascade Detector: Because the real edge is knowing what sets the market on fire.
For educational purposes only. Not financial advice. Always use proper risk management.
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems
Trend Volatility Index (TVI)Trend Volatility Index (TVI)
A robust nonparametric oscillator for structural trend volatility detection
⸻
What is this?
TVI is a volatility oscillator designed to measure the strength and emergence of price trends using nonparametric statistics.
It calculates a U-statistic based on the Gini mean difference across multiple simple moving averages.
This allows for objective, robust, and unbiased quantification of trend volatility in tick-scale values.
⸻
What can it do?
• Quantify trend strength as a continuous value aligned with tick price scale
• Detect trend breakouts and volatility expansions
• Identify range-bound market states
• Detect early signs of new trends with minimal lag
⸻
What can’t it do?
• Predict future price levels
• Predict trend direction before confirmation
⸻
How it works
TVI computes a nonparametric dispersion metric (Gini mean difference) from multiple SMAs of different lengths.
As this metric shares the same dimension as price ticks, it can be directly interpreted on the chart as a volatility gauge.
The output is plotted using candlestick-style charts to enhance visibility of change rate and trend behavior.
⸻
Disclaimer
TVI does not predict price. It is a structural indicator designed to support discretionary judgment.
Trading carries inherent risk, and this tool does not guarantee profitability. Use at your own discretion.
⸻
Innovation
This indicator introduces a novel approach to trend volatility by applying U-statistics over time series
to produce a nonparametric, unbiased, and robust estimate of structural volatility.
日本語要約
Trend Volatility Index (TVI) は、ノンパラメトリックなU統計量(Gini平均差)を使ってトレンドの強度を客観的に測定することを目的に開発されたボラティリティ・オシレーターです。
ティック単位で連続的に変化し、トレンドのブレイク・レンジ・初動の予兆を定量的に検出します。
未来の価格や方向は予測せず、現在の構造的ばらつきだけをロバストに評価します。
VectorFusion Suite Enhanced — Trend Confluence Signal System🧭 Overview
VectorFusion Suite Enhanced is an original invite-only overlay indicator designed to help traders identify high-confidence trend continuation and reversal zones. It combines structural signals, momentum filters, and volatility gates to deliver meaningful insights across asset classes.
This is not a mashup of public tools. Every element serves a unique, logical function, and the system is engineered for signal confluence, not layering indicators for visual effect.
⚙️ How It Works
1. Macro Trend Bias
• Uses a Hull Moving Average (HMA) with ATR envelopes
• Detects meaningful price breaks from volatility thresholds
• Filters out low-momentum or sideways conditions
2. Micro Pulse Beacons (▲ / ▼)
• Separate micro HMA+ATR channel for short-term directional flips
• Triangles mark flips from bearish to bullish (▲) or vice versa (▼)
• Useful for pullback entry timing or early reversal alerts
3. Structural Pivots (T and B)
• Detects local pivot highs (T) and pivot lows (B) using swing structure
• Used in sequencing and Ideal Setup qualification
• Does not repaint — confirmed after lookback bars
4. Bullish / Bearish “X” Flips
• Require multi-layer filtering:
o Macro & Micro trend agreement
o RSI filter (static or dynamic)
o Volatility confirmation (ATR gate)
o Optional MACD confirmation
• Only plot when all conditions are met
5. Ideal Setup Logic: T → B → X
• Looks for a pivot top (T), then bottom (B), then a Bullish X within a defined window
• This sequence is tracked internally and marked as an Ideal Setup
• Strongest confluence structure in the suite
6. Risk Visualization
• ATR-based Stop Loss and Take Profit levels are shown at entry
• Optional Trailing Stop (also ATR-based) can be toggled
• Labels help guide manual execution and position management
7. Live Status Table
• On-chart table displays:
o Macro Trend
o Micro Trend
o Flip Status
o Volatility Gate
o MACD Bias
o Ideal Setup Tracker
🔒 Closed Source Justification
This script is invite-only and closed-source to protect proprietary logic, especially the Ideal Setup (T→B→X) detection and custom multi-filter gating.
Although it uses technical analysis elements like HMA, ATR, RSI, and MACD, the signal combinations and setup logic are fully original and independently written.
There is no reused code, and this is not derived from public domain mashups, open-source scripts, or vendor code. Logic is clearly documented here for moderator review per House Rules.
🧠 Use Cases
• Trend-following swing entries
• High-volatility pullback setups
• Filtering early reversals during consolidation
• Timing exits and stop adjustments via signal shifts
🖥️ Chart Publishing Guidelines
When showcasing this script on a chart:
• Use clean layouts with VectorFusion only
• Show at least one active signal (e.g., Bullish X or T→B→X combo)
• Status table must be visible
• SL/TP markers optional but encouraged
• Avoid overlays from other indicators unless justified
✅ Compliant with TradingView’s Script Publishing Rules
🛠 Built in Pine Script v6
📅 Maintained and updated by the original author
India VIX TableThis indicator gives you the India Vix value in real time on your chart. You can change the position on the chart as per your preference.
Ind JDV 2.2 PRO con FVG y 3 EMAs
📝 Description for TradingView (English version):
Ind JDV 2.2 PRO with FVG and 3 EMAs
Overview:
This script identifies high-probability entry points by combining Fair Value Gaps (FVGs), trend filters using Exponential Moving Averages (EMAs), and momentum confirmation via Chandelier Exit. It focuses on structural imbalance and only triggers a signal on the third candle of a valid FVG—ensuring precision and trend alignment.
What does this indicator do and how does it work?
🔶 Fair Value Gaps (FVG):
The script detects FVGs using a standard 3-candle logic. If candle 1 and candle 3 do not overlap, a liquidity gap is detected. These gaps are drawn as extended boxes, helping traders visually track potential zones of reaction or continuation.
Orange FVG (traditionally bearish): Potential selling zones.
Green FVG (traditionally bullish): Potential buying zones.
🔷 Three EMAs as Trend Filters:
The system includes 3 configurable Exponential Moving Averages to help filter trades based on trend strength:
EMA 150 (main trend filter)
EMA 50 (mid-term trend)
EMA 20 (short-term sensitivity)
You can enable or disable the EMA filter for flexible use across scalping, intraday, or swing setups.
🟣 Chandelier Exit for Momentum Confirmation:
This dynamic ATR-based trailing stop is used here as an entry confirmation:
Long trades: Price must be above the Chandelier Long level.
Short trades: Price must be below the Chandelier Short level.
Entry Conditions (BUY or SELL signal):
A signal appears only on the third candle of a valid FVG, and only if:
A valid FVG was detected exactly 2 bars ago.
The signal direction matches the FVG type (green = BUY, orange = SELL).
Price is aligned with the main EMA direction.
Chandelier Exit confirms the momentum in the same direction.
How to Use:
Load the indicator on your preferred chart and timeframe (ideal for NASDAQ, crypto, or futures).
Observe painted FVGs as potential areas of trade opportunity.
Wait for a BUY or SELL signal exactly on the 3rd candle of the FVG.
Use the optional TP/SL lines or your own trade management strategy.
What makes this script original and useful?
This script is not a simple mashup of indicators. Its originality comes from:
A disciplined FVG logic with strict timing of signal placement.
The layered confirmation from trend (EMAs) and momentum (Chandelier Exit).
Full user control over entry conditions and visual clarity.
👉 A powerful tool for traders seeking to enter structural imbalance zones with strong confirmation and minimal noise.
📝 Descripción para TradingView (publicación en español):
Ind JDV 2.2 PRO con FVG y 3 EMAs
Resumen:
Este script está diseñado para detectar oportunidades de entrada precisas en el mercado combinando la lógica de Fair Value Gaps (FVG) con filtros de tendencia basados en EMAs y confirmación por medio del Chandelier Exit. La estrategia se enfoca en detectar desequilibrios de liquidez mediante FVGs de 3 velas y entrar en la tercera vela, solo si las condiciones de tendencia y momentum se alinean.
¿Qué hace este indicador y en qué se basa?
🔶 Fair Value Gaps (FVGs):
Los FVGs se detectan usando la clásica estructura de 3 velas. Se interpreta que si la vela 1 no solapa con la vela 3, existe un desequilibrio de liquidez que puede ser rellenado o actuar como zona de reacción.
Un FVG alcista (color naranja) indica posible impulso bajista posterior.
Un FVG bajista (color verde) indica potencial continuación alcista.
✅ Este script pinta esos FVGs como rectángulos que se extienden varias velas hacia adelante para facilitar su seguimiento visual.
🔷 Tres EMAs como filtros dinámicos:
El indicador incorpora 3 medias móviles exponenciales para filtrar condiciones de tendencia:
EMA principal de 150 periodos (filtro estructural).
EMA secundaria de 50 periodos.
EMA rápida de 20 periodos.
El usuario puede habilitar o deshabilitar el filtro principal para afinar la sensibilidad del sistema según el estilo operativo (scalping, intradía, swing).
🟣 Chandelier Exit como confirmación de momentum:
El Chandelier Exit actúa como trailing stop dinámico basado en ATR. Aquí se utiliza como confirmación de entrada:
En largos: el precio debe estar por encima del nivel Chandelier Long.
En cortos: debe estar por debajo del Chandelier Short.
Condición de entrada (señal BUY o SELL):
Una señal aparece únicamente en la tercera vela de un FVG si se cumplen:
Existencia de un FVG válido hace dos velas.
Dirección del FVG acorde a la señal (verde → BUY, naranja → SELL).
Precio cruzando la EMA principal en la dirección correcta.
Confirmación por Chandelier Exit.
¿Cómo usar este script?
Añádelo a tu gráfico y selecciona el activo y temporalidad de tu preferencia (ideal para NASDAQ, futuros, criptomonedas).
Usa los rectángulos como zonas de observación.
Espera una señal BUY o SELL sobre la tercera vela del FVG.
Puedes activar las líneas TP/SL sugeridas o aplicar tu propio manejo de riesgo.
¿Qué lo hace original y útil?
Este script no es una simple mezcla de indicadores. La originalidad radica en:
El uso riguroso de lógica de FVG aplicada sobre 3 velas, con señal solo en el momento justo.
La combinación con filtros de tendencia (EMAs) y momentum (Chandelier) para evitar entradas falsas.
El control total por parte del usuario sobre filtros y parámetros.
👉 Ideal para traders que buscan confirmar desequilibrios de precio con reglas objetivas de entrada en tendencia.
En Resumen: si el precio esta por encima de la EMA principal solo se toman las señales de buy despues de que se forme un FVG. no todas funcionan. y visceversa.
happy trading!!
Squeeze Momentum [Ryu_xp] - EnhancedSqueeze Momentum – Enhanced (Pine v6) combines the classic “Bollinger Bands vs. Keltner Channels” squeeze with a momentum oscillator to highlight breakouts and momentum shifts in one pane.
Key Components:
Pine v6: fully updated to TradingView’s latest Pine Script version (v6).
Configurable Inputs:
BB Length & MultFactor: set your Bollinger Bands.
KC Length & MultFactor (optionally using True Range): set your Keltner Channels.
Squeeze Logic:
Squeeze On when Bollinger Bands contract inside Keltner Channels (low volatility).
Squeeze Off when Bollinger Bands expand beyond Keltner Channels (volatility breakout).
No Squeeze in all other cases.
Momentum Oscillator:
Centered on zero, built via linear regression of price vs. a combined SMA/high–low average.
Plot as a filled area:
Bright lime = rising bullish momentum
Green = bullish but slowing
Red = falling bearish momentum
Maroon = bearish but slowing
Squeeze State Marker:
Cross‐style plot at zero:
Black dot = in squeeze
Gray dot = squeeze released
Blue dot = neutral (no squeeze)
Usage Tips:
• Apply to a clean chart (no other indicators).
• Watch for squeeze release (black→gray) aligned with a color flip in the oscillator to time high-probability entries.
• Tweak BB/KC lengths and multipliers to suit different timeframes and instruments.
(MVD) Meta-Volatility Divergence (DAFE) Meta-Volatility Divergence (MVD)
Reveal the Hidden Tension in Volatility.
The Meta-Volatility Divergence (MVD) indicator is a next-generation tool designed to expose the disagreement between multiple volatility measures—helping you spot when the market’s “volatility engines” are out of sync, and a regime shift or volatility event may be brewing.
What Makes MVD Unique?
Multi-Source Volatility Analysis:
Unlike traditional volatility indicators that rely on a single measure, MVD fuses four distinct volatility signals:
ATR (Average True Range): Captures the average range of price movement.
Stdev (Standard Deviation): Measures the dispersion of closing prices.
Range: The average difference between high and low.
VoVix: A proprietary “volatility of volatility” metric, quantifying the difference between fast and slow ATR, normalized by ATR’s own volatility.
Divergence Engine:
The core MVD line (yellow) represents the mean absolute deviation (MAD) of these volatility measures from their average. When the line is flat, all volatility measures are in agreement. When the line rises, it means the market’s volatility signals are diverging—often a precursor to regime shifts, volatility expansions, or hidden stress.
Dynamic Z-Score Normalization:
The MVD line is normalized as a Z-score, so you can easily spot when current divergence is rare or extreme compared to recent history.
Visual Clarity:
Yellow center line: Tracks the real-time divergence of volatility measures.
Green dashed thresholds: Mark the ±2.00 Z-score levels, highlighting when divergence is unusually high and action may be warranted.
Dashboard: Toggleable panel shows all key metrics (ATR, Stdev, VoVix, MVD Z) and your custom branding.
Compact Info Label : For mobile or minimalist users, a single-line summary keeps you informed without clutter.
What Makes The MVD line move?
- The MVD line rises when the included volatility measures (ATR, Stdev, Range, VoVix) are moving in different directions or at different magnitudes. For example, if ATR is rising but Stdev is falling, the line will move up, signaling disagreement.
- The line falls or flattens when all volatility measures are in sync, indicating a consensus in the market’s volatility regime.
- VoVix adds a unique dimension, making the indicator especially sensitive to sudden changes in volatility structure that most tools miss.
Inputs & Settings
ATR Length: Sets the lookback for ATR calculation. Shorter = more sensitive, longer = smoother.
Stdev Length: Sets the lookback for standard deviation. Adjust for your asset’s volatility.
Range Length: Sets the lookback for the average high-low range.
MVD Lookback: Controls the window for Z-score normalization. Higher values = more historical context, lower = more responsive.
Show Dashboard: Toggle the full dashboard panel on/off.
Show Compact Info Label: Toggle the mobile-friendly info line on/off.
Tip:
Adjust these settings to match your asset’s volatility and your trading timeframe. There is no “one size fits all”—tuning is key to extracting the most value from MVD.
How to make MVD work for you:
Threshold Crosses: When the MVD line crosses above or below the green dashed thresholds (±2.00), it signals that volatility measures are diverging more than usual. This is a heads-up that a volatility event, regime shift, or hidden market stress may be developing.
Not a Buy/Sell Signal: A threshold cross is not a direct buy or sell signal. It is an indication that the market’s volatility structure is changing. Use it as a filter, confirmation, or alert in combination with your own strategy and risk management.
Dashboard & Info Line: Use the dashboard for a full view of all metrics, or the info label for a quick glance—especially useful on mobile.
Chart: MNQ! on 5min frames
ATR: 14
StDev L: 11
Range L: 13
MDV LB: 13
Important Note
MVD is a market structure and volatility regime tool.
It is designed to alert you to potential changes in market conditions, not to provide direct trade entries or exits. Always combine with your own analysis and risk management.
Meta-Volatility Divergence:
See the market’s hidden tension. Anticipate the next wave.
For educational purposes only. Not financial advice. Always use proper risk management.
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems
ADX EMA's DistanceIt is well known to technical analysts that the price of the most volatile and traded assets do not tend to stay in the same place for long. A notable observation is the recurring pattern of moving averages that tend to move closer together prior to a strong move in some direction to initiate the trend, it is precisely that distance that is measured by the blue ADX EMA's Distance lines on the chart, normalized and each line being the distance between 2, 3 or all 4 moving averages, with the zero line being the point where the distance between them is zero, but it is also necessary to know the direction of the movement, and that is where the modified ADX will be useful.
This is the well known Directional Movement Indicator (DMI), where the +DI and -DI lines of the ADX will serve to determine the direction of the trend.
VWAP Support/Resistance Strategy - EnhancedVWAP Enhanced Strategy for Gold (15-Min Precision Trading)
Hello Traders,
This strategy is built for traders who demand precision and consistency in their gold trades. Combining the power of VWAP (Volume Weighted Average Price) with price action, liquidity zones, and supply-demand imbalances, this setup helps identify high-probability trade entries with minimal noise.
📌 Key Features:
Anchored VWAP for intraday trend bias
Real-time Supply & Demand Zones
Liquidity sweep and Fair Value Gap detection
Clean Buy/Sell signals only at premium setups
Optimized for 15-minute charts
🎯 Ideal for:
Traders who take 1–2 quality trades per day, aiming for 2x–3x reward-to-risk setups with tight stop losses and clearly defined targets.
🔒 Risk Management Integrated
Follow the smart money flow with calculated risk—no overtrading, just disciplined execution.
Horizontal ATR LinesDisclaimer:
This script was generated using OpenAI’s ChatGPT. I take no responsibility for the correctness, performance, or financial impact of this indicator. Use it at your own risk and discretion.
This indicator draws horizontal ATR-based levels from the last closed candle on a user-selected timeframe. It is designed for traders who want to visualize realistic volatility zones for setting dynamic support/resistance, take-profit, or stop-loss levels.
What it does:
Calculates the Average True Range (ATR) using a customizable period and timeframe.
Plots four horizontal lines:
+1 ATR and –1 ATR from the last closed candle’s close
+X ATR and –X ATR, where X is a second custom multiplier
Each level includes a compact label showing:
The price of the level
The percentage distance from the close price
Use cases:
Identify realistic intraday or swing price movement boundaries
Build volatility-aware take-profit and stop-loss zones
Visually track market compression or expansion in context
Customization:
ATR period and timeframe
Two independent ATR multipliers
Custom color settings for each group of levels
ADR, ATR & VOL OverlayThis is a combined version of 2 of my other indicators:
ADR / ATR Overlay
VOL / AVG Overlay
This indicator will display the following as an overlay on your chart:
ADR
% of ADR
ADR % of Price
ATR
% of ATR
ATR % of Price
Custom Session Volume
Average For Selected Session
Volume Percentage Comparison
Description:
ADR : Average Day Range
% of ADR : Percentage that the current price move has covered its average.
ADR % of Price : The percentage move implied by the average range.
ATR : Average True Range
% of ATR : Percentage that the current price move has covered its average.
ATR % of Price : The percentage move implied by the average true range.
Custom Session Volume : User chosen time frame to monitor volume
Average For Selected Session : Average for the custom session volume
Volume Percentage Comparison : Current session compared to the average (calculated at session close)
Options:
ADR/ATR:
Time Frame
Length
Smoothing
Volume:
Set Custom Time Frame For Calculations
Set Custom Time Frame For Average Comparison
Set Custom Time Zone
Table:
Enable / Disable Each Value
Change Text Color
Change Background Color
Change Table location
Add/Remove extra row for placement
ADR / ATR Example:
The ADR and ATR can be used to provide information about average price moves to help set targets, stop losses, entries and exits based on the potential average moves.
Example: If the "% of ADR" is reading 100%, then 100% of the asset's average price range has been covered, suggesting that an additional move beyond the range has a lower probability.
Example: "ADR % of Price" provides potential price movement in percentage which can be used to asses R/R for asset.
Example: ADR (D) reading is 100% at market close but ATR (D) is at 70% at close. This suggests that there is a potential (coverage) move of 30% in Pre/Post market as suggested by averages.
Custom Volume Session Example:
Set indicator to 30 period average. Set custom time frame to 9:30am to 10:30am Eastern/New York.
When the time frame for the calculation is closed, the indicator will provide a comparison of the current days volume compared to the average of 30 previous days for that same time frame and display it as a percentage in the table.
In this example you could compare how the first hour of the trading day compares to the previous 30 day's average, aiding in evaluating the potential volume for the remainder of the day.
Notes:
Times must be entered in 24 hour format. (1pm = 13:00 etc.)
Volume indicator is for Intra-day time frames, not > Day.
How I use these values:
I use these calculations to determine if a ticker symbol has the necessary range to achieve target gains, to determine if the price oscillation is within "normal" ranges to determine if the trading day will be choppy, and to determine placement of stops and targets within average ranges in combination with support, resistance and retracement levels.
Retail Pain Index (RPIx) (RPIx) Retail Pain Index (DAFE)
See the Market’s Pain. Trade the Edge.
The Retail Pain Index (RPIx) is a next-generation volatility and sentiment tool designed to reveal the hidden moments when retail traders are most likely being squeezed, stopped out, or forced to capitulate. This is not just another oscillator—it’s a behavioral market scanner that quantifies “pain” as price rips away from the average entry zone, often marking the fuel for the next big move.
Why is RPIx so Unique?
Behavioral Volatility Engine:
RPIx doesn’t just track price or volume. It measures how far price is moving away from where the crowd has recently entered (using a rolling VWAP average), then normalizes this “distance” into a Z-score. The result? You see when the market is inflicting maximum pain on the most participants.
Dynamic, Intuitive Coloring:
The main RPIx line is purple in normal conditions, but instantly turns red when pain is extreme to the upside (+2.00 or higher) and green when pain is extreme to the downside (-2.00 or lower). This makes it visually obvious when the market is entering a “max pain” regime.
Threshold Lines for Clarity:
Dashed red and green lines at +2.00 and -2.00 Z-score levels make it easy to spot rare, high-pain events at a glance.
Signature Dashboard & Info Line:
Dashboard: A compact, toggleable panel in the top right of the indicator pane shows the current Z-score, threshold, and status—perfect for desktop users who want a quick read on market stress.
Info Line: For mobile or minimalist traders, a single-line info label gives you the essentials without cluttering your screen.
Inputs & Customization
Entry Cluster Lookback: Adjusts how many bars are used to calculate the “entry zone” (VWAP average). A higher value smooths the signal, a lower value makes it more responsive.
Pain Z-Score Threshold:
Sets the sensitivity for what counts as “extreme pain.” Default is ±2.00, but you can fine-tune this to match your asset’s volatility or your own risk appetite.
Show Dashboard / Show Compact Info Label:
Toggle these features on or off to fit your workflow and screen size.
How to utilize RPIx's awesomeness:
Extreme Readings = Opportunity:
When RPIx spikes above +2.00 (red) or below -2.00 (green), the market is likely running stops, liquidating weak hands, or forcing retail traders to capitulate. These moments often precede sharp reversals, trend accelerations, or volatility expansions.
Combine with Price Action:
Use RPIx as a confirmation tool for your existing strategy, or as a standalone alert for “pain points” where the crowd is most vulnerable.
Visual Edge:
The color-coded line and threshold levels make it easy to spot regime shifts and rare events—no more squinting at numbers or guessing when the market is about to snap.
Why RPIx?
Works on Any Asset, Any Timeframe:
Stocks, futures, crypto, forex—if there’s a crowd, there’s pain, and RPIx will find it.
Behavioral Alpha:
Most indicators lag. RPIx quantifies the psychological stress in the market, giving you a real-time edge over the herd.
Customizable, Clean, and Powerful:
Designed for both power users and mobile traders, with toggles for every workflow.
See the pain. Trade the edge.
Retail Pain Index: Because the market’s next move is written in the crowd’s discomfort.
For educational purposes only. Not financial advice. Always use proper risk management
Use with discipline. Trade your edge.
— Dskyz , for DAFE Trading Systems, for DAFE Trading Systems
EMA Signals by JJ v1.0EMA Signals by JJ is a trend-following indicator designed for the 1-hour timeframe, using EMA (9, 21, 50) crossovers to identify buy and sell signals. The indicator filters signals based on a custom session time (default: 14:30 to 22:00 US trading session) and incorporates ATR-based bar spacing to prevent signal clustering. Alerts are available for both buy and sell signals.
Gap Reversal Signal with Indicators🔍 Gap Reversal Signal with Indicators — 結合 KD、MACD、SAR 與背離分析的多功能指標
🔍 Gap Reversal Signal with Indicators — A Multi-Tool Signal Indicator Combining KD, MACD, SAR, and Divergence Analysis
中文說明:
本指標結合多種常用技術分析工具,包括 KD 隨機指標、MACD 動能交叉、SAR 趨勢方向、以及 MACD 背離偵測,用以辨識潛在的價格反轉區域。適用於日內交易與波段操作,支援各類市場,如加密貨幣、股票與外匯等。
English Description:
This indicator combines several popular technical tools: Stochastic KD, MACD momentum crossovers, SAR trend direction, and MACD divergence detection. It helps traders identify potential reversal areas and is ideal for both intraday and swing trading. Works well on crypto, stocks, and forex markets.
🧠 功能特點 | Key Features
✅ KD指標(慢速隨機指標)檢測超買超賣並提供%K與%D交叉訊號
✅ Stochastic KD (slow) to detect overbought/oversold zones and crossover signals
✅ MACD金叉/死叉與零軸突破捕捉趨勢轉變與動能反轉
✅ MACD Crossovers + Zero-Line Breaks to capture trend changes and momentum reversals
✅ SAR指標即時顯示多空方向
✅ Parabolic SAR for real-time trend direction indication
✅ MACD背離偵測協助辨識潛在反轉區域
✅ MACD Divergence Detection for identifying hidden trend reversals
✅ 圖形提示與標籤提示可視化呈現各類訊號
✅ Visual Alerts and Labels for easy and quick signal recognition
📈 支援市場 | Supported Markets
📊 台股 / 美股 / 外匯 / 加密貨幣
📊 Taiwan Stocks / US Stocks / Forex / Cryptocurrencies (e.g. BTC, ETH)
🔧 推薦用法 | Recommended Use
搭配缺口策略與支撐壓力位使用
Use with gap-trading strategies and support/resistance zones
用於盤整末期或趨勢反轉的提示
Helpful for end-of-consolidation signals or trend reversals
支援短線與波段交易風格
Suitable for scalping and swing trading styles
💡 把這個指標加入你的圖表,立即體驗多重技術分析所帶來的交易優勢!
💡 Add this indicator to your chart now and experience the power of multi-tool technical analysis!
Breakout Core | by Solid#SignalsBreakout Core | by SolidSignals
General Overview
Breakout Core is an advanced breakout trading strategy designed for Bitcoin (BTC). Optimized for the unique market dynamics following the launch of BlackRock’s Spot ETFs in January 2024, it adapts to Bitcoin’s post-ETF volatility patterns. The strategy’s core strength lies in its low drawdown, achieved through a proprietary time-based signal-filtering algorithm that sets it apart from traditional breakout strategies. Breakout Core offers traders a reliable tool for navigating Bitcoin’s evolving market with reduced risk and enhanced precision.
Mechanisms
Breakout Core combines well-known indicators BB, EMAs, MAs with custom-tuned parameters to improve signal accuracy. Its unique feature is a proprietary time-filter algorithm that prioritizes high-probability breakout signals during specific high-volatility trading hours, derived from market analysis post-ETF launch. This algorithm minimizes false positives, particularly in volatile conditions, by integrating time-based volatility patterns with price action. The result is a robust strategy that optimizes entry and exit points for Bitcoin trading.
Objectives
Breakout Core aims to provide steady returns with controlled risk by targeting Bitcoin’s breakout patterns in the post-ETF market. Its low drawdown, achieved through extensive optimization and proprietary logic, makes it suitable for leverage trading (e.g., 3–5x leverage), balancing growth with capital protection. Tailored for BTC, the strategy equips traders with a precise tool to navigate Bitcoin’s transformed market dynamics.
Backtesting and Parameter Notes
Backtesting was performed using a $10,000 USDT account, risking up to 10% of equity per trade, including 0.06% commission fees and 2-tick slippage, aligned with standard exchange conditions. The strategy report details backtesting results from the launch of BlackRock’s Spot ETFs. These settings are the script’s defaults, ensuring transparency. Traders are encouraged to verify results using TradingView’s Deep Backtest feature to adapt to current market conditions.
Please note: Past performance does not guarantee future results.
Chart and Usage
The chart is clean and intuitive, displaying only Breakout Core’s buy and sell signals for easy interpretation. Parameters are pre-optimized for immediate use, with adjustable Take Profit (TP) and Stop Loss (SL) levels. Traders should validate custom settings via TradingView’s backtesting tools to ensure market compatibility. An integrated Alarm Panel supports API connectivity, providing clear Entry/Exit commands for Long and Short positions, enabling seamless automated trading workflows.
Originality Statement
Breakout Core is an original strategy developed by SolidSignals, leveraging standard indicators (Bollinger Bands, EMAs, MAs) combined with a proprietary time-filter algorithm. No third-party or open-source code is used, ensuring full compliance with TradingView’s originality requirements. The time-filter mechanism, based on post-ETF volatility analysis, distinguishes this strategy from conventional breakout approaches.
Important Disclaimer
Market conditions evolve continuously, and past performance is not indicative of future results. Traders are responsible for validating the strategy’s settings and performance under current market conditions before use.
Multi BB (3/4/5 SD) - Separate AlertsGives alert when Price touches Bollinger Band 3 or 4 or 5 on either higher or lower sides.
ABC Market stage judgmentABC Stage Judgment Indicators · Introduction
Core ideology
The market situation is divided into three stages:
Zone B (Low Volatility Accumulation): Extremely low volatility, no trend, institutions accumulate chips.
Zone A (oscillation zone): The volatility has rebounded but there is no unilateral trend, suitable for short-term high selling and low buying.
Zone C (Trend Explosion): The volatility has significantly expanded and the trend is strong, making it profitable to follow the position.
Core Indicators
Volatility measurement
Bollinger Bands Width (BBWidth): 20 cycle moving average ± 2 σ bandwidth, reflecting relative volatility compression/release;
ATR (Average True Volatility): measures the absolute intensity of price volatility.
Trend Strength
ADX (Average Trend Index): measures the strength of a trend (without distinguishing direction),
ADX<20 → No trend (Zone B/A)
ADX>25 → Significant trend (Zone C)
Stage division logic
Zone B: Both BWidth and ATR are less than the set multiple of their respective historical means, and ADX is less than the threshold → "quiet bottoming out";
Zone C: ADX>threshold, and BBWidth or ATR>set multiple of their respective historical means, trading volume amplification → "trend takeoff";
Zone A: Time periods that do not belong to B/C are all classified as oscillation zones.
Optional enhanced filtering
Direction confirmation (+DI/- DI): avoid going against the trend;
Multi cycle verification (4H): in line with the trend of large-scale;
Momentum filtering (ROC/MACD/RSI): ensuring kinetic energy support;
ATR slope: Confirm the release of fluctuations;
Breakthrough Confirmation: Enter only after the breakthrough is confirmed at the closing level.
These filters are turned off by default and can be selected with one click for different scenarios such as "high-level oscillation", "low-level bottoming", "planting trees in the middle", etc.
usage
Multi cycle switching: Built in "5-minute/1-hour" two main cycles for free switching;
Visualization: The background color and labels display the current Zone at a glance;
Alarm: Stage switching automatically triggers an Alert, which can be pushed through mobile phones/Telegram.
Average ATR (%) — No Spikes//@version=5
indicator("Average ATR (%) — No Spikes", overlay=true)
///////////////////////////
// Settings
atrLen = input.int(14, title="ATR Length")
barsBack = input.int(150, title="Bars to Average")
priceRef = input.string("close", title="Reference Price", options= )
level1 = input.float(1.0, title="Moderate Volatility Threshold (%)")
level2 = input.float(1.5, title="High Volatility Threshold (%)")
showLabel = input.bool(true, title="Show Value on Chart")
///////////////////////////
// ATR percentage calculation
refPrice = priceRef == "close" ? close : priceRef == "hl2" ? hl2 : open
atr = ta.atr(atrLen)
atrPct = atr / refPrice * 100
// Average ATR % over N bars
var float sum = 0.0
var int count = 0
sum := 0.0
count := 0
for i = 0 to barsBack - 1
sum += nz(atrPct )
count += 1
avgAtrPct = count > 0 ? sum / count : na
///////////////////////////
// Line color based on thresholds
lineColor = avgAtrPct > level2 ? color.red : avgAtrPct > level1 ? color.orange : color.green
plot(avgAtrPct, title="Average ATR (%)", color=lineColor, linewidth=2)
///////////////////////////
// Right-side label
var label infoLabel = na
if showLabel
txt = "Average ATR: " + str.tostring(avgAtrPct, "#.##") + " %"
if na(infoLabel)
infoLabel := label.new(bar_index, close, txt, style=label.style_label_right, size=size.normal, color=color.blue, textcolor=color.white)
else
label.set_xy(infoLabel, bar_index, close)
label.set_text(infoLabel, txt)
else
if not na(infoLabel)
label.delete(infoLabel)
infoLabel := na
ATR and Stochastics by XeodiacThis script combines two popular indicators, the Average True Range (ATR) and the Stochastic Oscillator, into a single chart for enhanced trading insights. Here’s a breakdown of how it works and what it does:
What It Does:
Average True Range (ATR):
Measures market volatility by calculating the average range of price movement over a specified period.
The ATR is plotted in blue on its natural scale, helping you assess how volatile the market is.
Stochastic Oscillator:
A momentum indicator that compares a security's closing price to its price range over a specific period.
It calculates two lines:
%K Line (Green): Tracks the raw Stochastic value.
%D Line (Red): A smoothed moving average of the %K line.
These values are plotted on a percentage scale (0-100) to indicate overbought or oversold conditions.
Inputs:
ATR Length: Specifies the number of periods used for ATR calculation (default is 14).
Stochastic %K Length: Determines the period for finding the highest high and lowest low for the %K calculation (default is 14).
Stochastic %D Smoothing: Sets the smoothing factor for the %D line (default is 3).
Visual Output:
Blue Line: Represents the ATR, showing how much price moves on average over the given period.
Green Line: The %K line of the Stochastic Oscillator, showing momentum shifts in the market.
Red Line: The %D line of the Stochastic Oscillator, providing a smoothed perspective on momentum.
Use Case:
This script is useful for:
Assessing Market Volatility: Use the ATR to understand how active the market is.
Identifying Overbought/Oversold Levels: Use the Stochastic Oscillator to identify potential reversal points.
Combining Signals: Analyze both indicators together to align volatility and momentum for better trading decisions.
Gabriel's Squeeze Momentum PRO“Gabriel’s Squeeze Momentum PRO” is a next-generation evolution of the classic SQZMOM concept. It layers multiple John Ehlers filters, Jurik smoothing, adaptive cycle-detection, and a Cauchy-weighted price filter on top of the familiar Bollinger-Band-inside-Keltner-Channel squeeze logic. The goal is to pinpoint volatility contractions and immediately gauge whether forthcoming expansion is likely to break bullish or bearish—while screening out noise, lag, and regime shifts across any symbol or timeframe.
1 · What the script plots
Plot What it represents Why it matters
Momentum line (teal/red) Price-de-trended linear-regression of a Cauchy-filtered source, optionally normalized. Measures directional thrust during / after a squeeze.
Signal line (white JMA) Jurik moving average of the momentum line. Smooth trigger for crossovers / reversals.
Squeeze dots (blue, black, red, yellow, purple, green) Real-time volatility state: No squeeze → Wide → Normal → Narrow → Very Narrow → Fired. Helps anticipate explosive moves as BB exits KC.
Cyclic RSI bands (cyan / fuchsia) Dynamic overbought / oversold bands derived by MESA dominant-cycle analysis. Contextualizes momentum extremes—no fixed 70/30.
Rate-of-Change (optional) (orange / blue shading) ROC of the momentum-signal spread, scaled. Highlights acceleration / deceleration.
Reversal guide lines (optional colored rays) Drawn when momentum crosses its JMA and reversal-mode is on. Visual confirmation of early trend change.
2 · Key engine components
Cauchy PDF-weighted moving average
Creates a heavy-tailed weighting curve; center bars dominate while still capturing fat-tail outliers—excellent for choppy instruments or volume-weighting (Volume weighted?).
Butterworth High-Pass & Super-Smoother Low-Pass
Strip out drift, then smooth what’s left. This isolates true cyclic motion before momentum is computed.
Fast RMS normalizer
Converts the band-pass output into a unit-scale “power” reading—vital for adaptive thresholds.
Goertzel + MESA dominant-cycle
Auto-detects fast & slow cycles, then blends them to size overbought / oversold bands and to set the adaptiveLength (if Use Adaptive Length? is enabled).
Jurik RSX & JMA
Provide ultra-low-lag smoothing for momentum and for reversal detection.
3 · Input groups and how to tune them
Group Why change it Tips
Normalization (Unbounded / Min-Max / Standard Deviations) Puts momentum & signal on the scale that best suits the asset. Crypto / small-caps: StdDev (handles volatility).
FX / indices: Min-Max or leave unbounded for raw juice.
Cauchy Distribution Tailors the Cauchy filter. Gamma ↓ (0.1-0.4) ⇒ faster / riskier. Use Adaptive Length pairs it with MESA cycle length for auto speed control.
Rate of Change Visual momentum acceleration. Leave off (Show Rate of Change = false) if you want a cleaner pane.
Momentum Colors / Directional Momentum? Switch between classic SQZMOM coloring and trend-biased histogram. Turn on when you prefer “green-gets-greener / red-gets-redder” style signals.
Squeeze Colors & Thresholds Fine-tune what “wide / normal / narrow” mean. Larger assets (SPX, BTC-Perp): raise the thresholds a touch. Thin or low-ATR symbols: lower them.
Multi-Time-frame blocks (1 h, 4 h, D, W, M) Pre-sets for BB/KC length, squeeze thresholds, and reversal MA length per TF. The script auto-detects the chart timeframe and loads the matching row—just adjust each block once.
Reversal Signals Whether to draw vertical rays on momentum crossovers. Use on swing-trading timeframes (≥1 h) to catch early momentum flips.
4 · How to read & trade it
Scan for purple / yellow / red dots
These indicate Very-Narrow, Narrow, and Normal squeezes—markets are coiling.
Wait for a fired squeeze (green dot)
BB has pushed outside KC; volatility is expanding. Momentum direction often dictates breakout bias.
Check momentum relative to zero & signal
Bullish setup: Momentum > 0 and crossing above signal. Bearish setup: Momentum < 0 and crossing below signal. Alerts “Bullish / Bearish Trend Reversal” are raised here if enabled.
Validate with cyclic bands
If momentum launches from near the lower cyan band, bullish moves are higher-probability (symmetrical for upper fuchsia band).
Confirm trend strength
Directional-momentum histogram keeps turning brighter in trend direction; ROC is above zero and rising.
Manage the trade
First target = prior squeeze mid-range or recent swing high/low.
Consider scaling out when momentum weakens (histogram fades) or reverses through signal line.
Optional: draw the reversal rays to highlight exit zones automatically.
5 · Practical workflows
Scalpers (1-5 min)
Uncheck Use Adaptive Length, set main Length to 10-12, Gamma to 0.3.
Use ROC for ultra-fast divergences.
Treat Normal squeezes (red) as tradable; ignore Wide. Healthy Volume is ideal.
Swing traders (1 h – 4 h)
Keep default adaptive length; enable 1-H/4-H reversal blocks.
Trade only after Very-Narrow/Narrow squeezes; ride until weekly/daily reversal ray prints.
Position / Trend followers (Daily+)
Raise Wide/Normal thresholds a bit (e.g., 2.2 / 1.7).
Momentum normalization = Standard Deviations to filter regime shifts.
Combine with higher-timeframe MTF panel or moving-average ribbons.
6 · Built-in alert catalog
Alert name Fires when Typical action
🟢 Fired Squeeze Green dot appears (vol expansion already under way) Stay in trend or add on pullbacks.
🟠 Low / 🔴 Normal / 🟡 Tight / 🟣 Very Tight Respective squeeze engages Get your watch-list ready; plan trades.
🐂 Bullish / 🐻 Bearish Trend Reversal Momentum crosses signal in requested direction Entry / exit / scale adds.
Set alerts on “Once Per Bar Close” for reliable signals.
7 · Best practices & caveats
Context is king – Use higher-timeframe structure (support/resistance, VWAP, market profile) to avoid false breakouts.
Data quality – On illiquid symbols, consider turning volume weighting off (pre-market gaps distort results).
Normalization choice – Mixing different normalizations across charts can confuse muscle memory; pick one style per asset class.
Lag vs. noise – If entries feel late, lower Gamma or disable adaptive length. If too jumpy, increase Length or choose Standard-Deviation normalization.
Not a stand-alone holy grail – Combine with risk management (ATR-based stops, Kelly-fraction sizing) and confirm with price action.
Harness the script’s adaptive filtering, multi-TF presets, and rich alert suite to spot compression, time breakouts, and stay on the right side of momentum—whether you’re scalping ES futures or swing-trading alt-coins.
CANX Gold (XAUUSD) $5 Psychological Levels© CanxStixTrader
FOR GOLD ONLY
--------------------------------
This is a vary simple yet powerful indicator based on the psychological levels that retail traders use to trade gold and institutions in turn target these levels.
--------------------------------
HOW TO USE
Once the trend has been determined then this simple indicator can be used to target the pull backs for the sniper entries you want.
-TIP, pair with other CANX indicators for optimal entries and trend identification. We use the 1 minute time frame for entries and the CANX momentum indicator & CANX Multi-Timeframe Trend indicator for extra confirmation.
--------------------------------
The indicator draws lines every 50 pips or $5 on the chart and is customizable to your preference.
Like always, Keep it simple!
© CanxStixTrader
Sniper Pro v4.2 – Dynamic Wave Engine
//@version=5
indicator("Sniper Pro v4.2 – Dynamic Wave Engine", overlay=true)
// === INPUTS ===
minScore = input.int(3, "Min Conditions for Entry", minval=1, maxval=5)
filterSideways = input.bool(true, "Block in Sideways?")
showDelta = input.bool(true, "Show Delta Counter?")
showSMA20 = input.bool(true, "Show SMA20?")
showVWAP = input.bool(true, "Show VWAP?")
showGoldenZone = input.bool(true, "Show Golden Zone?")
callColor = input.color(color.green, "CALL Color")
putColor = input.color(color.red, "PUT Color")
watchBuyCol = input.color(color.new(color.green, 70), "Watch Buy Color")
watchSellCol = input.color(color.new(color.red, 70), "Watch Sell Color")
// === INDICATORS ===
sma20 = ta.sma(close, 20)
vwapVal = ta.vwap
// === DYNAMIC WAVE RANGE ===
var float lastImpulseHigh = na
var float lastImpulseLow = na
isImpulseUp = close > close and close > close
isImpulseDown = close < close and close < close
lastImpulseHigh := isImpulseUp ? high : nz(lastImpulseHigh )
lastImpulseLow := isImpulseDown ? low : nz(lastImpulseLow )
waveRange = lastImpulseHigh - lastImpulseLow
goldenTop = lastImpulseHigh - waveRange * 0.618
goldenBot = lastImpulseHigh - waveRange * 0.786
inGoldenZone = close >= goldenBot and close <= goldenTop
// === DELTA ===
delta = (close - open) * volume
normalizedDelta = volume != 0 ? delta / volume : 0
// === SIDEWAYS FILTER ===
range20 = ta.highest(high, 20) - ta.lowest(low, 20)
atr = ta.atr(14)
isSideways = range20 < atr * 1.5
block = filterSideways and isSideways
// === PRICE ACTION ===
hammer = close > open and (math.min(open, close) - low) > math.abs(close - open) * 1.5
bullishEngulf = close > open and close < open and close > open and open < close
shootingStar = close < open and (high - math.max(open, close)) > math.abs(close - open) * 1.5
bearishEngulf = close < open and close > open and close < open and open > close
// === SCORE ===
buyScore = (inGoldenZone ? 1 : 0) + (normalizedDelta > 0.2 ? 1 : 0) + ((hammer or bullishEngulf) ? 1 : 0) + (close > sma20 ? 1 : 0)
sellScore = (inGoldenZone ? 1 : 0) + (normalizedDelta < -0.2 ? 1 : 0) + ((shootingStar or bearishEngulf) ? 1 : 0) + (close < sma20 ? 1 : 0)
watchBuy = buyScore == (minScore - 1) and not block
watchSell = sellScore == (minScore - 1) and not block
call = buyScore >= minScore and not block
put = sellScore >= minScore and not block
// === BAR COLORS ===
barcolor(call ? callColor : put ? putColor : watchBuy ? watchBuyCol : watchSell ? watchSellCol : na)
// === LABELS ===
if call
label.new(bar_index, low, "CALL", style=label.style_label_up, size=size.normal, color=callColor, textcolor=color.white)
if put
label.new(bar_index, high, "PUT", style=label.style_label_down, size=size.normal, color=putColor, textcolor=color.white)
if watchBuy
label.new(bar_index, low, "B3", style=label.style_label_up, size=size.small, color=watchBuyCol, textcolor=color.white)
if watchSell
label.new(bar_index, high, "S4", style=label.style_label_down, size=size.small, color=watchSellCol, textcolor=color.white)
// === DELTA LABEL ===
deltaLabel = math.abs(delta) > 1000000 ? str.format("{0,number,#.##}M", delta / 1e6) :
math.abs(delta) > 1000 ? str.format("{0,number,#.##}K", delta / 1e3) :
str.tostring(delta, "#.##")
if showDelta
label.new(bar_index, close, deltaLabel, style=label.style_label_left, size=size.tiny, textcolor=color.white, color=delta > 0 ? color.new(color.green, 70) : color.new(color.red, 70))
// === PLOTS ===
plot(showVWAP ? vwapVal : na, title="VWAP", color=color.aqua)
plot(showGoldenZone ? goldenTop : na, title="Golden Top", color=color.yellow, style=plot.style_linebr)
plot(showGoldenZone ? goldenBot : na, title="Golden Bottom", color=color.orange, style=plot.style_linebr)
plot(showSMA20 ? sma20 : na, title="SMA20", color=color.yellow)
Sniper Pro v4.5 – Candle & Flow Intelligence Edition
//@version=5
indicator("Sniper Pro v4.5 – Candle & Flow Intelligence Edition", overlay=true)
// === INPUTS ===
showDelta = input.bool(true, "Show OHLC + Delta Bubble")
showSM = input.bool(true, "Show Smart Money Bubble")
depth = input.int(12, "Golden Zone Depth")
// === INDICATORS ===
sma20 = ta.sma(close, 20)
vwapVal = ta.vwap
// === GOLDEN ZONE ===
ph = ta.pivothigh(high, depth, depth)
pl = ta.pivotlow(low, depth, depth)
var float lastHigh = na
var float lastLow = na
lastHigh := not na(ph) ? ph : lastHigh
lastLow := not na(pl) ? pl : lastLow
fullrange = lastHigh - lastLow
goldenTop = lastHigh - fullrange * 0.618
goldenBot = lastHigh - fullrange * 0.786
inGoldenZone = close >= goldenBot and close <= goldenTop
// === DELTA ===
delta = (close - open) * volume
absDelta = math.abs(delta)
deltaColor = delta > 0 ? color.new(color.green, 70) : color.new(color.red, 70)
deltaStr = absDelta > 1e6 ? str.tostring(delta / 1e6, "#.##") + "M" :absDelta > 1e3 ? str.tostring(delta / 1e3, "#.##") + "K" :str.tostring(delta, "#.##")
// === CANDLE COLORING ===
barcolor(absDelta > 2 * ta.sma(absDelta, 14) ? (delta > 0 ? color.green : color.red) : na)
// === OHLC + DELTA BUBBLE ===
if showDelta
var label infoLabel = na
infoText = "O: " + str.tostring(open, "#.##") +
" H: " + str.tostring(high, "#.##") +
" L: " + str.tostring(low, "#.##") +
" C: " + str.tostring(close, "#.##") +
" Δ: " + deltaStr
infoLabel := label.new(bar_index, high + syminfo.mintick * 20, infoText,style=label.style_label_up, size=size.small,textcolor=color.white, color=color.new(color.gray, 80))
// === SMART MONEY SIGNAL ===
efficiency = math.abs(close - open) / (high - low + 1e-10)
isExplosive = efficiency > 0.6 and absDelta > 2 * ta.sma(delta, 14)
smBuy = close > open and isExplosive and inGoldenZone and close > sma20
smSell = close < open and isExplosive and inGoldenZone and close < sma20
if showSM
if smBuy
var label smBuyLabel = na
smBuyLabel := label.new(bar_index, low - syminfo.mintick * 10, "SM Buy", style=label.style_label_up,size=size.normal, color=color.yellow, textcolor=color.black)
if smSell
var label smSellLabel = na
smSellLabel := label.new(bar_index, high + syminfo.mintick * 10, "SM Sell", style=label.style_label_down,size=size.normal, color=color.orange, textcolor=color.black)
// === SIDEWAYS ZONE WARNING ===
range20 = ta.highest(high, 20) - ta.lowest(low, 20)
atr = ta.atr(14)
isSideways = range20 < atr * 1.5
blinking = isSideways and bar_index % 2 == 0
plotshape(blinking, title="Sideways Warning", location=location.top,style=shape.triangleup, size=size.small,color=color.new(color.yellow, 0), text="⚠️")
// === PLOTS ===
plot(vwapVal, title="VWAP", color=color.aqua)
plot(goldenTop, title="Golden Top", color=color.yellow)
plot(goldenBot, title="Golden Bottom", color=color.orange)