Multi Indicator Version 2This Pine Script combines multiple technical indicators into one TradingView overlay: two EMAs (High/Low), Supertrend, VWAP with flexible anchoring (e.g., Session, Week, Earnings), previous day’s high/low for intraday analysis, and RSI-based visual cues. The Supertrend dynamically shades the background based on trend direction and generates alerts on trend changes. VWAP visibility can be toggled and is hidden on daily or higher timeframes if desired. RSI stars indicate overbought (above 70) and oversold (below 30) conditions. This comprehensive tool aids traders in identifying market trends, momentum, and key support/resistance levels for better decision-making.
Indicators and strategies
Bitcoin 12/26 EMA Crossover with ADX Filter [5min Intraday]A trend-following strategy for Bitcoin on a 5-minute intraday chart, using 12/26 EMA crossovers with ADX and volume filters to reduce false signals in ranging markets.
Key Features:
Entries: Long: 12 EMA crosses above 26 EMA, ADX > 25, volume > 1.5x 20-period average.
Short: 12 EMA crosses below 26 EMA, ADX > 25, volume > 1.5x 20-period average.
Exits: Long: 2% stop loss or 12 EMA crosses below 26 EMA.
Short: 2% stop loss, 3% take profit, or 12 EMA crosses above 26 EMA.
Filters: ADX (14-period) > 25 ensures trending markets; volume filter confirms strong participation.
Profit Sniper RSI Based Buy/Sell📌 Profit Sniper RSI – Intelligent Buy/Sell Signals Based on Adaptive RSI Zones
Profit Sniper RSI is a precision-engineered indicator that generates high-confidence Buy and Sell signals by dynamically interpreting the Relative Strength Index (RSI) across five market zones. It is designed to reduce signal noise and avoid false breakouts using a combination of crossover logic, zone validation, and trend sentiment detection.
🔍 Underlying Concept:
This script divides the RSI into five structured zones:
- **0–24**: Power Sell (Extreme bearish momentum)
- **24–40**: Sell (Weak price action with downward pressure)
- **40–60**: Neutral/Consolidation (No clear trend)
- **60–76**: Buy (Bullish initiation zone)
- **76–100**: Power Buy (Strong bullish momentum)
Signals are generated **only after the RSI crosses a zone boundary** (e.g., from below 60 to above 60), and only **after the candle closes**, which helps filter out noise from intra-bar RSI fluctuations.
📈 Signal Logic:
- **Buy signals** are triggered when RSI crosses key thresholds (24, 40, or 60) upward, indicating rising strength.
- **Sell signals** are triggered when RSI crosses downward below 76, 60, or 40, suggesting trend weakness or reversal.
- **Power Buy and Power Sell signals** are reserved for extreme crossovers beyond 76 and below 24, respectively.
- The script avoids repeated signals (e.g., Buy after Buy) by tracking the last confirmed signal state.
🔧 Customization:
- Users can toggle visibility of Buy, Sell, Power Buy, and Power Sell signals independently.
- Adjustable RSI length input to fit different market conditions or timeframes.
- Displays a real-time info panel showing the current RSI, last signal type, the RSI level at the time of the last signal, and the price when the signal was triggered.
🧠 How It Helps Traders:
- Reduces false entries by only generating signals **after candle closure**.
- Designed to work across **any timeframe** and **any market** (Crypto, Forex, Stocks).
- Ideal for traders who rely on **RSI-based confirmation** before entry and prefer minimal visual clutter.
- Acts as a sniper tool — waiting for clear RSI structure and crossover before acting.
⚠️ Note:
This script does **not repaint**. All signals are based on closed-bar RSI logic. While no indicator guarantees profitability, this tool is built for serious traders who value disciplined entries backed by momentum structure.
💡 Tip: Combine Profit Sniper RSI with key support/resistance or trendline zones for added confluence and trade precision.
Range Filter + SuperTrend 合并指标 - 1小时优化结合两种经典指标,适合做山寨币1小时趋势单
Combining two classic indicators, it is suitable for doing 1-hour trend orders of altcoins
Smart Volatility Squeeze + Trend Filter
Smart Volatility Squeeze + Trend Filter
This advanced indicator detects low-volatility squeeze conditions and plots breakout signals, helping you spot strong price moves before they happen.
How it works
This script combines Bollinger Bands (BB) and the Keltner Channel (KC) — two popular volatility tools — to identify squeeze setups:
A squeeze occurs when the Bollinger Bands contract and move completely inside the Keltner Channel. This means the market is quiet and volatility is low — often right before a significant breakout.
When the squeeze condition is active, the background highlights the chart area with a soft color that gradually intensifies the longer the squeeze lasts. This gives a clear visual cue that pressure is building.
A breakout signal triggers when price crosses above the upper Bollinger Band (bullish) or below the lower Bollinger Band (bearish) — confirming that the squeeze has ended and a new impulse is likely starting.
To reduce false breakouts, you can enable the built-in trend filter. By default, it uses a simple EMA: breakouts are confirmed only if the price action aligns with the overall trend direction.
Key features
🔹 Bollinger Bands + Keltner Channel squeeze detection
🔹 Automatic squeeze marker and background shading
🔹 Breakout arrows for up and down signals
🔹 Optional trend filter with adjustable EMA length
🔹 Works on any market: crypto, stocks, forex, indices
🔹 Fully adjustable inputs for BB, KC and trend filter
🔹 Built-in ready-to-use alerts for breakouts
How to use
Watch for areas where the squeeze condition appears — the background will highlight them.
Wait for a breakout arrow to appear outside the bands.
Use the trend filter to focus only on breakouts in the dominant trend direction.
Combine with your existing risk management and confirmation tools.
Inputs
BB Length & StdDev: Control the Bollinger Bands settings.
KC EMA Length & ATR Multiplier: Control the Keltner Channel width.
Trend Filter Length: Adjust how smooth or sensitive the trend filter is.
Use Trend Filter: Enable or disable confirmation by trend direction.
Disclaimer
⚠️ This script is for educational purposes only and does not constitute financial advice. Always test any strategy thoroughly and trade at your own risk.
VisionThis indicator helps visually distinguish and analyze the Asian, London, and New York trading sessions. It's a great tool for intraday traders focusing on time-based liquidity zones.
🔧 Features:
Asian range box, London / New York high-low lines with distinct colors.
Customizable time windows, Asian range deviations and colors.
Range Filter Buy & Sell 5min + Multi-TF DashboardElevate your edge with Range Filter Buy & Sell 5min + Multi-TF Dashboard—a precision-engineered trend companion that scans your favorite markets from the 5-minute tick to the higher-timeframe horizon. By harmonizing short-term signals with the broader trend, it delivers crystal-clear buy and sell cues—and the confidence to act on them. Whether you’re scalping, swing trading, or investing for the long haul, this all-in-one dashboard empowers you to ride only the strongest trends and step aside before the noise hits. Trade smarter. Trade with clarity. Trade with conviction.
5-Minute Momentum Indicator ($1000 Entry + 20% TP + 9:30 Exit)Showing entry candle and displaying entry, TP, and SL
OA - RS HistogramOA - RS Histogram Indicator
This indicator displays a histogram representation of Relative Strength (RS) analysis, helping traders visualize the momentum relationship between a security and a reference index.
Key Features:
RS Histogram: Shows the difference between the current RS ratio and its EMA smoothed line
Customizable Reference Index: Default set to XU100, but can be changed to any index
EMA Smoothing: Adjustable EMA period (default 21) for trend analysis
Visual Clarity: Histogram bars are colored aqua for positive values and purple for negative values
Zero Line Reference: Dotted gray line for easy identification of positive/negative zones
How It Works:
The indicator calculates the relative strength by comparing the normalized percentage changes of the current security against the selected reference index. A 5-period EMA is applied to the RS ratio, and then the difference between this smoothed RS line and a longer EMA (default 21 periods) is displayed as a histogram.
Technical Calculation:
Fetches reference index data with proper gap handling
Calculates normalized percentage changes for both security and index
Computes relative strength ratio
Applies EMA smoothing to reduce noise
Displays the difference as a histogram for clear momentum visualization
Customization Options:
Reference index selection (default: XU100)
EMA length adjustment (default: 21 periods)
Color customization for positive and negative histogram bars
Alert Conditions:
Histogram crossing above zero (potential bullish momentum shift)
Histogram crossing below zero (potential bearish momentum shift)
Usage:
This tool helps traders understand relative strength concepts through visual histogram representation. The zero-line crossovers can indicate momentum shifts in the security relative to the chosen benchmark index.
Candle Range Theory (CRT) indicator📌 Indicator Name: Candle Range Theory (CRT) indicator
This indicator detects potential bullish and bearish reversal setups based on specific candlestick price action behavior. It is designed to highlight moments when the market may be rejecting extremes and preparing to reverse direction — but only after confirmation with the closing price.
🔍 How It Works:
Bullish Setup (Long Signal):
The previous candle is bearish (closes lower than it opens).
The current candle makes a lower low than the previous one.
The current candle closes above the previous candle’s close.
Bearish Setup (Short Signal):
The previous candle is bullish (closes higher than it opens).
The current candle makes a higher high than the previous one.
The current candle closes below the previous candle’s close.
Signals are only triggered after the bar is fully closed, to avoid premature entries.
🔔 The script includes alert conditions for both long and short setups so you can receive notifications instantly.
🎥 Inspiration:
The idea for this indicator came from the excellent educational content presented in this video:
"How to Read Candlesticks Like a Pro"
We highly recommend watching it to better understand the price action principles behind this signal.
DCA by Vuong Thai v2 %verview of "DCA by Vuong Thai %" – Upgraded Version
Main Function:
This script automatically detects optimal DCA (Dollar-Cost Averaging) buy points and smart profit-taking zones based on a combination of technical signals: EMA, candlestick patterns, volume, RSI, and price distance from EMA.
It helps you optimize capital allocation using a structured averaging-down strategy and exit trades when a target price range is reached.
✅ Buy Logic (Buy Signal)
A buy signal is triggered when all of the following conditions are met:
Strong bullish candlestick: Green candle with a longer lower wick than upper wick
Price is below the EMA → indicating a downtrend
Volume is above the moving average (if volume filtering is enabled)
Price is at least a certain percentage below the EMA (e.g., ≥ 1%)
RSI is below 30 → indicating an oversold condition
No repeat buys unless price makes a new low → helps avoid premature entries
👉 When a buy signal appears:
A DCA Zone (buy region) is drawn on the chart
A label with the corresponding DCA percentage is displayed automatically (e.g., "DCA 5%", "DCA 10%")
10/50 EMA Cloud + 21 EMA + VWAP + FractalsThis indicator is designed for active traders and combines several popular technical analysis tools into a single, easy-to-use overlay. It helps traders identify trend direction, dynamic support and resistance, and potential reversal points, all while providing optional fractal signals for added clarity.
Features and Components
1. EMA Cloud (10/50 EMA)
10-period EMA (Exponential Moving Average): Tracks short-term price momentum.
50-period EMA: Represents a longer-term trend.
Cloud Visualization: The area between the 10 and 50 EMA is filled with color:
Green cloud when the 10 EMA is above the 50 EMA, signaling bullish momentum.
Red cloud when the 10 EMA is below the 50 EMA, signaling bearish momentum.
Purpose: Quickly visualize the prevailing trend and potential trend shifts.
2. 21-period EMA
21 EMA: Plotted as a blue line, this moving average is widely used to gauge intermediate-term trend and dynamic support/resistance.
Purpose: Acts as a reference for trend-following entries and exits.
3. VWAP (Volume Weighted Average Price)
VWAP Line: Plotted in orange, VWAP gives the average price weighted by volume for the session.
Purpose: Useful for identifying fair value, potential bounce/reversal zones, and institutional interest levels.
4. Fractals (Toggleable)
User Option: A setting allows the user to turn fractal signals on or off.
Fractal Logic: Uses a 5-bar pattern:
Up Fractal: Plots a green triangle above the bar if the high of the middle bar (2 bars ago) is higher than the highs of the two bars before and after.
Down Fractal: Plots a red triangle below the bar if the low of the middle bar (2 bars ago) is lower than the lows of the two bars before and after.
Purpose: Highlights potential short-term reversal points or swing highs/lows.
5. Volume Bars
Volume Histogram: Plotted in gray at the bottom of the chart.
Purpose: Provides context for price action, helping to confirm breakouts or identify exhaustion.
How to Use This Indicator
Trend Identification: Use the EMA cloud and 21 EMA to determine the prevailing trend. Trade in the direction of the cloud color and EMA alignment.
VWAP Strategies: Look for price reactions at the VWAP for possible rebounds, breakouts, or reversals.
Fractal Signals: Enable fractals to spot potential reversal zones or to fine-tune entries/exits at swing points.
Volume Confirmation: Use volume bars to validate the strength of moves, especially near key EMAs or VWAP.
Customization
Fractals On/Off: Easily toggle fractal signals in the indicator settings to reduce chart clutter or focus on other signals as needed.
First FVG📘 Indicator Description (English)
First FVG – NY Open is a TradingView indicator designed to automatically identify the first Fair Value Gap (FVG) that appears during the New York session, following the ICT (Inner Circle Trader) methodology.
It highlights institutional inefficiencies in price caused by imbalanced price action and helps traders spot high-probability entry zones, especially after the 9:30 AM EST (New York Open).
⚙️ How It Works
Session time: The indicator scans for FVGs starting at 9:32 AM (allowing 3 candles after the NY Open to form).
FVG Conditions:
Bullish FVG: When the high of 2 candles ago is lower than the low of the current candle and the middle candle is bullish.
Bearish FVG: When the low of 2 candles ago is higher than the high of the current candle and the middle candle is bearish.
Only the first FVG per session is drawn, as taught by ICT for setups like Judas Swing or NY Reversal models.
A colored box is drawn to represent the FVG zone.
A dotted horizontal line (CE) is drawn at the midpoint of the FVG box (Consequent Encroachment), a key level watched by smart money traders.
A dashed vertical line is drawn at 9:30 NY time to mark the open.
🧠 How to Use It
Wait for the NY Open (9:30 AM EST) – the indicator becomes active at 9:32 AM.
Watch for the first FVG box of the day. This is often a high-probability reaction zone.
Use the CE line (center of the FVG) as a reference for entries, rejections, or liquidity grabs.
Combine with market structure, PD Arrays, and liquidity concepts as taught by ICT for confluence.
The FVG box and CE line will extend forward for several candles for visual clarity.
🎛️ Customizable Settings
Session time (default: 09:32–16:00 NY)
FVG box color (up/down)
Text color
Max number of days to keep boxes on chart
Option to show or hide the 9:30 NY Open vertical line
Multi-Timeframe Bands (final, with labels)This is a simple Kelt style Band indicator draws colored horizontal bands representing the high (top) and low (bottom) for each of the following timeframes:
4h: Blue (bottom), Red (top)
1D: Gold (bottom/top)
1W: Purple (bottom/top)
1M: Orange (bottom/top)
Quarterly: Light purple (bottom/top)
The script works on any chart timeframe, and the bands will update dynamically.
EdgeXplorer - Phantom FlowPhantom Flow by EdgeXplorer
Phantom Flow is a high-precision, visual market structure toolkit inspired by core ICT (Inner Circle Trader) concepts — including Order Blocks (OBs), Fair Value Gaps (FVGs), Market Structure Shifts (MSS), Liquidity Zones, Killzones, and Balance Price Ranges (BPRs). Designed for real-time clarity and SMC-aligned trading, this tool enhances raw ICT theory with practical execution features: extended zone logic, session filters, and pivot-sensitive rendering.
Whether you’re swing trading on HTF or scalping intraday moves in New York or London, Phantom Flow gives you a clean, structured lens through which to interpret price behavior — without clutter or noise.
⸻
🔍 What Does Phantom Flow Do?
This indicator maps out multiple price action phenomena in one system. It detects and plots:
• Order Blocks (OBs) — potential institutional footprints
• Fair Value Gaps (FVGs) — inefficiencies or imbalance zones
• Market Structure Shifts (MSS) — directional break points
• Liquidity Zones — buy-side and sell-side wick traps
• Balance Price Ranges (BPRs) — overlap zones from opposing FVGs
• Killzones (Sessions) — session-specific high-probability windows
Each element is toggleable, color-coded, and drawn directly on the chart, creating an intuitive visual environment to identify potential setups or confirm directional bias.
⸻
⚙️ How It Works – Technical Breakdown
1. Pivot Engine
Phantom Flow uses ta.pivothigh() and ta.pivotlow() with a configurable lookback period to establish reactive swing points for structure and liquidity logic.
2. Market Structure Shifts (MSS)
MSS logic checks for breaks above prior highs or below prior lows:
• If price closes above a previous pivot high, it flags a bullish MSS.
• If price closes below a previous pivot low, it flags a bearish MSS.
Each MSS is marked with a line and label at the structure break.
3. Order Blocks (OBs)
When a swing high or low is confirmed:
• A bearish OB is plotted between the open and high of the pivot bar.
• A bullish OB is plotted between the low and open of the pivot bar.
OB zones are drawn as transparent boxes that project forward several candles.
4. Fair Value Gaps (FVGs)
Imbalance zones are defined when:
• A bullish FVG occurs if the current low is above the high from two candles ago, and price closed bullish.
• A bearish FVG occurs if the current high is below the low from two candles ago, and price closed bearish.
These are visualized as boxes with “FVG” labels.
5. Balance Price Ranges (BPRs)
If both a bullish and bearish FVG overlap in the same bar:
• A gray BPR box is plotted to represent the zone where those inefficiencies cancel or compress into a range.
Useful for tracking potential accumulation or consolidation.
6. Liquidity Zones (Wick Detection)
Using ATR-based wick thresholds:
• Buy-side Liquidity is identified where long lower wicks form beneath pivot lows.
• Sell-side Liquidity is identified where long upper wicks form above pivot highs.
These zones indicate where stop hunts or liquidity grabs may occur.
7. Killzones (Sessions)
Two sessions are visualized using background colors:
• New York Killzone (default: 7:00–9:00 EST) — yellow background
• London Killzone (default: 2:00–5:00 GMT) — blue background
Sessions are dynamically aligned with your chart’s timeframe and location.
⸻
📈 What Each Visual Element Represents
Element Meaning
Green OB Box Bullish order block (potential demand zone)
Red OB Box Bearish order block (potential supply zone)
Teal FVG Box Bullish fair value gap (imbalance to the upside)
Maroon FVG Box Bearish fair value gap (imbalance to the downside)
Gray BPR Box Balance price range — compression of opposing gaps
Blue Liquidity Zone Buy-side liquidity below a swing low
Orange Liquidity Zone Sell-side liquidity above a swing high
Lime Line + Label Bullish Market Structure Shift (MSS ↑)
Fuchsia Line + Label Bearish Market Structure Shift (MSS ↓)
Yellow / Blue Background Killzone time blocks for NY or London
All shapes are bounded in time and logic — there are no arbitrary plots.
⸻
📊 Inputs & Settings Explained
Input Description
Execution Mode (Live / Backtest) Determines whether to run real-time or backtest-friendly calculations
Pivot Sensitivity (lookback) Controls how far back to look for pivots — higher values = stronger swing filters
Show MSS Toggle to display Market Structure Shift lines and labels
Show OB Toggle to display Order Block zones from swing points
Show FVG Toggle to visualize Fair Value Gaps as they appear
Show Liquidity Zones Displays wick-based buy/sell-side liquidity traps
Show BPR Zones Highlights overlapping bullish and bearish FVGs as compression zones
Show Killzones Enables session-based background highlighting for NY/London
Color Settings
Customize each visual element with transparency-controlled colors for OBs, FVGs, MSS lines, liquidity zones, and killzones.
⸻
🧠 How Traders Can Use Phantom Flow
Phantom Flow is not a signal generator. It’s a market narrative visualizer. Here’s how to integrate it into your approach:
• OB + FVG = Confluence: Look for fair value gaps forming around order blocks. These often suggest institutional entry zones.
• MSS + Liquidity = Trap Setup: Market structure shifts occurring after price taps liquidity often signal reversals or fakeouts.
• BPRs = Choke Points: If opposing FVGs compress, expect consolidation or expansion shortly after.
• Killzones = Context Windows: Use sessions to filter signal quality. For example, only trade FVGs during the London/NY overlap.
This tool works best when layered with:
• BOS/CHOCH detection
• Premium/Discount logic
• Risk-based execution models
⸻
🧪 Optional Use Case Ideas
• Intraday scalping based on NY/London killzone + MSS
• Swing trading off HTF OB + LQ zones
• Fade or trend-continuation setups using FVGs + BPR
• Combine with displacement candles or volume to validate zones
Rifle UnifiedThis script is designed for use on 30-second charts of Dow Jones-related symbols (YM, MYM, US30). It provides automated buy and sell signals using a combination of price action, RSI (Relative Strength Index), and volume analysis. The script is intended for both live trading signals and backtesting, with configurable risk management and debugging features.
Core Functionality
1. Signal Generation Logic
Trigger: The algorithm looks for a sharp price move (drop or rise) of a user-defined threshold (default: 80 points) within a specified lookback window (default: 20 minutes).
Levels: It monitors for price drops below specific numerical levels ending in 23, 43, or 73 (e.g., 42223, 42273).
RSI Condition: When price falls below one of these levels and the RSI is below 30, the setup is considered active.
Buy Signal: A buy is triggered if, after setup:
Price rises back above the level,
The RSI rate of change (ROC) indicates exhaustion of the drop,
The current bar shows positive momentum.
2. Trade Management
Stop Loss & Take Profit: Configurable fixed or trailing stop loss and take profit levels are plotted and managed automatically.
Exit Signals: The script signals exit based on price action relative to these risk management levels.
3. Filters & Enhancements
Parabolic Move Filter: Prevents entries during extreme price moves.
Dead Cat Bounce Filter: Avoids false signals after sharp reversals.
Volume Filter: Optionally requires volume conditions for trade entries (especially for shorts).
Multiple Confirmation Layers : Includes checks for 5-minute RSI, momentum, and price retracement.
User Inputs & Customization
Trade Direction: Toggle between LONG and SHORT signal generation.
Trigger Settings: Adjust thresholds for price moves, lookback windows, RSI ROC, and volume requirements.
Trade Settings: Set take profit, stop loss, and trailing stop behavior.
Debug & Visualization: Enable or disable various plots, labels, and debug tables for in-depth analysis.
Backtesting: Integrated backtester with summary and detailed statistics tables.
Technical Features
Uses External Libraries: Relies on RifleShooterLib for core logic and BackTestLib for backtesting and statistics.
Multi-timeframe Analysis: Incorporates both 30-second and 5-minute RSI calculations.
Chart Annotations: Plots entry/exit points, risk levels, and debug information directly on the chart.
Alert Conditions: Built-in alert triggers for key events (initial move, stall, entry).
Intended Use
Markets: Dow Jones symbols (YM, MYM, US30, or US30 CFD).
Timeframe: 30-second chart.
Purpose: Automated signal generation for discretionary or algorithmic trading, with robust risk management and backtesting support.
Notable Customization & Extension Points
Momentum Calculation: Plans to replace the current momentum measure with "sqz momentum".
Displacement Logic: Future update to use "FVG concept" for displacement.
High-Contrast RSI: Optional visual enhancements for RSI extremes.
Time-based Stop: Consideration for adding a time-based stop mechanism.
This script is highly modular, with extensive user controls, and is suitable for both live trading and historical analysis of Dow Jones index movements
Opening Print Line (Customizable)📈 Opening Print Line (Customizable) is a simple yet powerful intraday tool that plots the opening price of the regular trading session (RTH) and keeps it visible across the entire chart—including during pre-market and extended hours.
💡 Key Features:
🕒 Configurable time zone selector (choose from Pacific, Mountain, Central, or Eastern)
🎯 Automatically detects and plots the 9:30 AM local opening price
🎨 Customizable line color
🏷️ Optional on-chart label with editable text
This indicator is especially useful for:
Identifying opening breakout or fade setups
Anchoring support/resistance levels to the session open
Building opening range strategies or scalp setups
🔧 Built with Pine Script v6. Fully compatible with stocks, ETFs, futures, or any instrument that follows a regular session open time.
⚠️ Note: The script assumes the regular trading session starts at 9:30 AM in the selected time zone. You can modify the time if using it for futures, crypto, or other markets.
Supply and Demand ZonesSupply and Demand Zones.
Best settings to have is have multiplier by 3 and only turn on the 30 minute, the 1 hour, and the 4 hour.
Smart RSI Divergence PRO | Auto Lines + Alerts
Smart RSI Divergence PRO
This indicator automatically finds RSI divergences on price charts:
🔹 Detects both regular & hidden divergences
🔹 Draws auto trendlines connecting swing highs & lows
🔹 Clear triangle labels directly on the chart
🔹 Ready-to-use alerts for your strategy
Use it to spot potential trend reversals and hidden continuation signals.
How it works
Regular Divergence: Price makes a higher high (or lower low) while RSI does not — this can signal a possible trend reversal.
Hidden Divergence: Price makes a lower high (or higher low) while RSI makes a higher high (or lower low) — this can signal a possible trend continuation in the same direction.
Auto Lines & Labels
The script automatically detects local swing highs and lows and draws connecting trendlines on price.
Labels appear on the chart as colored triangles, so signals are easy to see at a glance:
🔻 Red triangle — Regular Bearish Divergence (potential short)
🟠 Orange triangle — Hidden Bearish Divergence (possible trend continuation down)
🟢 Green triangle — Regular Bullish Divergence (potential long)
🔵 Blue triangle — Hidden Bullish Divergence (possible trend continuation up)
Customization
You can adjust:
RSI length
Show/hide regular or hidden divergences
Show/hide auto lines and labels
Customize line width and transparency
Works on any market and any timeframe — crypto, forex, indices, stocks.
⚠️ Disclaimer: This script is for educational purposes only and does not constitute financial advice. Always test any strategy thoroughly and trade at your own risk.
ATR > VXN Alert (5m)ATR > VXN Volatility Divergence Indicator
This custom TradingView indicator monitors real-time volatility divergence between realized volatility (via Average True Range, ATR) and implied volatility (via the CBOE NASDAQ Volatility Index, VXN). It is inspired by the GJR-GARCH (Glosten-Jagannathan-Runkle Generalized Autoregressive Conditional Heteroskedasticity) model, which captures asymmetric volatility dynamics—particularly how markets respond more sharply to negative shocks than to positive ones.
Core Logic:
Chart on NQ 5 minute timeframe
ATR (5-min) reflects realized intraday volatility of the Nasdaq 100 futures (NQ).
VXN (5-min, delayed) represents forward-looking implied volatility.
The indicator highlights regime shifts in volatility:
ATR < VXN: Volatility compression → potential energy building up (market coiling).
ATR > VXN: Volatility expansion → real movement exceeds expectations → potential breakout zone.
Visuals & Alerts:
Background turns green when ATR crosses above VXN, signaling a bullish expansion regime.
Background turns red when ATR drops below VXN, signaling compression or risk-off environment.
Custom alerts trigger on volatility regime shifts for breakout traders.
Application (Manual GJR-GARCH Strategy):
Similar to how the GJR-GARCH model captures volatility clustering and asymmetry, this indicator identifies when actual price volatility (ATR) begins to spike beyond implied forecasts (VXN), often after periods of contraction—mirroring a conditional variance shock in the GARCH framework.
Traders can align with directional bias using technical confluence (order flow, structure breaks, liquidity zones) once expansion is confirmed.
Enhanced Swing + Intraday Strategy + Entry/Exit LabelsPurpose
This TradingView Pine Script is designed for swing traders who hold trades for 3–5 days, but also occasionally do intraday trading. It combines momentum indicators, moving averages, and support/resistance tools to give a complete picture of trend direction, entries, and exits.
Features and Logic Breakdown
1. 20-Day Simple Moving Average (Daily Timeframe)
Fixed to the daily chart, regardless of your active chart timeframe.
Acts as a trend filter and price magnet, especially useful for mean reversion setups.
Helps assess whether the stock is overbought/oversold relative to its 1-month average.
2. VWAP (Volume-Weighted Average Price)
Useful for intraday trades.
Acts as an intraday "fair value" and gravity zone.
Helps identify entries near institutional support/resistance.
3. 9-EMA and 20-EMA (Current Timeframe)
Short-term trend signals.
When 9 EMA crosses above 20 EMA → bullish entry.
When 9 EMA crosses below 20 EMA → bearish exit.
4. Entry/Exit Labels
Plots "Enter" label (green) when 9 EMA crosses above 20 EMA.
Plots "Exit" label (red) when 9 EMA crosses below 20 EMA.
Helps visually track signals without guesswork.
5. Alerts
Built-in conditions to trigger alerts for:
Bullish cross (9 EMA above 20 EMA)
Bearish cross (9 EMA below 20 EMA)
6. Bollinger Bands (20-period, 2 Std Dev)
Shows volatility expansion/contraction around the 20-period SMA.
Can help identify overextended prices or squeeze setups.
Plotted as gray upper/lower bands with shading.
7. MACD (12/26/9) – Hidden
Measures momentum and trend strength.
Lines and histogram are hidden by default but can be toggled on in settings.
8. RSI (14) – Hidden
Measures overbought/oversold conditions.
Hidden by default but plotted between 0–100 with 30/70 lines.
How to Use
On Daily Charts:
Use the script for core swing entries. Enter long on 9 EMA > 20 EMA when price is near the 20-day SMA. Confirm with RSI/MACD if needed.
On Intraday Charts:
Use VWAP and EMAs to manage exits or find sharp intraday pullbacks.
The 20-day SMA still acts as an anchor.
Recommended Trade Flow
1. Identify price trend: Is it above or below the 20-day SMA?
2. Wait for EMA cross entry signal ("Enter" label).
3. Check if RSI is in neutral (not overbought) and MACD histogram is rising.
4. Manage trade using VWAP and 20-day SMA as guide.
5. Exit when "Exit" label triggers or price extends from VWAP.