MAD Trend Detector ~ C H I P AMAD Trend Detector ~ C H I P A is a custom trend detection tool designed to identify meaningful price deviations using Median Absolute Deviation (MAD) logic layered over a smoothed price baseline.
It uses:
A user-selectable source (Close, High, Low, etc.)
A configurable EMA or SMA as the core smoothing layer
Median Absolute Deviation (MAD) to measure typical price dispersion
A user-adjustable MAD multiplier to fine-tune trend sensitivity
Trend bands that expand dynamically based on local volatility
This setup highlights breakout conditions when price detaches meaningfully from its typical behavior — helping traders detect trend acceleration, volatility breakouts, and directional shifts with minimal lag and reduced noise.
Candle coloring responds directly to trend status, with electric blue and red visuals for clear on-chart recognition.
Volatility
[blackcat] L2 Volatility ShieldOVERVIEW
The L2 Volatility Shield indicator merges the Parabolic SAR (PSAR) with a volatility filter to provide dynamic stop-loss levels tailored to market conditions. This tool assists traders in identifying suitable shield loss positions to safeguard their trading capital amidst market volatility. It enhances traditional PSAR shields by incorporating the True Range (TR), enabling precise tracking of significant price movements 📊✅.
FEATURES
Combines PSAR and True Range (TR) for enhanced volatility analysis:
PSAR: Determines potential trend reversals based on price action.
True Range: Measures market volatility using high-low differences and price extremes.
Generates a Volatility Shield Line:
Adjusted dynamically based on volatility settings.
Reflects changing market conditions and provides clear visual cues.
Customizable parameters for personalized use:
Volatility Period: Lookback window for volatility measurement.
Volatility Multiplier: Controls the sensitivity of stop-loss adjustments.
Visual representation with gradient colors indicating varying volatility levels 🎨
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Set the Volatility Period and Volatility Multiplier according to your preferred sensitivity.
Monitor the Volatility Shield Line on the chart for dynamic stop-loss guidance.
Consider entering or exiting positions based on price interactions with the shield line.
Adjust parameters as needed to fit different trading instruments and timeframes.
CALCULATION STEPS
Calculate the PSAR indicator using predefined parameters.
Compute the True Range as the maximum of:
High-Low difference.
Difference between high and previous close.
Difference between low and previous close.
Determine the Volatility Shield Line by adjusting PSAR with volatility factors derived from TR, period, and multiplier.
Plot the shield line on the chart with gradient colors reflecting current volatility levels.
STRATEGIES FOR USING THE VOLATILITY SHIELD LINE
Enter long positions when prices break above the shield line.
Enter short positions when prices fall below the shield line.
Close existing positions or take counter-trades upon breaches of the shield line.
Adapt parameters to suit diverse trading environments and asset classes.
LIMITATIONS
May produce false signals during extreme market events or rapid shifts.
Requires thorough testing and optimization for individual trading styles and assets.
Effectiveness varies depending on market conditions and selected parameters.
NOTES
Ensure adequate historical data for accurate calculations.
Backtest extensively on demo accounts before deploying in live trading scenarios.
Fine-tune parameters regularly to maintain relevance amid evolving market dynamics.
Whale Psychology Insights
### 🧠 Whale Psychology Insights – Unmasking Smart Money Moves
**Understand the mind games behind every candle.**
This advanced indicator is designed to reveal the psychological warfare played by whales and market manipulators in the crypto space. Stop trading blind—start trading with the insights of the smart money.
#### 🔍 What It Does:
- **Liquidity Zone Detection** – Automatically identifies key **swing highs/lows** where stop hunts are likely.
- **Volume Spike Alerts** – Spot **suspicious activity** where big players enter or exit.
- **Order Block Zones** – Highlights **bullish/bearish engulfing patterns** used by institutions.
- **Fair Value Gaps (FVG)** – Marks price inefficiencies where price may return.
- **Fakeout Detection** – Finds **manipulative wicks** designed to trap retail traders.
#### 💡 Use Cases:
- Avoid getting stopped out by **liquidity grabs**
- Enter after the **whales have made their move**
- Identify **high-probability reversal zones**
- Trade **with smart money**, not against it
Perfect for scalpers, intraday traders, and swing traders looking to understand *why* price moves—not just *where*.
> 🧠 **Trade the psychology, not just the chart.**
PumpC Opening Range Breakout (ORB) 5min Range📄 PumpC ORB 5-Minute Opening Range Breakout Indicator
✨ Overview
The PumpC ORB 5-Minute Opening Range Breakout indicator captures early session price action by tracking the high, low, and open of a defined 5-minute window at market open (customized for Futures or Stocks).
It plots breakout levels, extension targets, average range calculations, volume tracking, and provides visual and table-based data summaries.
This indicator is designed for traders seeking a complete, clean visualization of Opening Range Breakouts (ORB) with flexible customization.
⚙️ Main Features
Opening Range Box (ORB Box) Draws a box around the high and low of the first 5-minute session (8:30–8:35 ET for Futures, 9:30–9:35 ET for Stocks). Box extends from the session open to the session close (4:00 PM ET). Option to enable/disable historical boxes. Box color and opacity are customizable. Core ORB Levels Open Level: Plots the open price of the 5-minute ORB window. ORB Levels: Plots breakout levels at multiples: +0.5x the range +1.5x the range (customizable factor) Each level has independent color settings and visibility toggles. Option to show or hide historic extension levels. Table Display Compact table in the top-right corner showing: ORB ATR (average range) ORB ATR in ticks Today's ORB range ORB Volume ATR (average volume during ORB) Today's ORB Volume Volume is formatted automatically into "K" (thousands) or "M" (millions) for readability. Background Highlights After the ORB window closes: Blue highlight if today's ORB range is greater than the 10-day ATR average. Orange highlight if today's ORB range is smaller than the 10-day ATR average. Helps quickly assess relative strength or weakness compared to historical behavior. Alerts Breakout Confirmations: Fires when price closes above ORB High or below ORB Low. Fallout Traps: Alerts when price wick crosses ORB High/Low but closes back inside the range. Alerts use clean titles and simple messages for easy identification.
🔧 Inputs and Customization
Mode Toggle: Choose between Futures (8:30 ET open) or Stocks (9:30 ET open). Show/Hide Labels: Control label visibility for ORB and extension levels. Line Width Control: Customize thickness for ORB lines and extension levels. ORB Level Level Visibility: Independently enable or disable each extension line. Table Appearance: Customize table background color, font color, and padding. ORB Box Settings: Customize box color and control whether historical boxes are drawn.
📚 How to Use
Select Mode: Choose Futures or Stocks depending on your instrument. Observe the Opening Range: Focus on the ORB High and ORB Low during the first 5 minutes after the open. Monitor Breakouts: Breakout alerts will fire when price closes outside the ORB range, signaling potential continuation. Watch for Fallout Traps: Fallout alerts signal when price briefly wicks above/below but closes back inside the ORB range. Use Table Metrics: Instantly compare today's ORB range and volume versus historical averages to assess session strength or weakness.
🛡️ Notes
Best used on the 1-minute or 5-minute chart for intraday trading. Ensure your TradingView chart time zone is set to New York for correct functioning. Alerts must be manually configured after adding the indicator to your chart.
Machine Learning | Adaptive Trend Signals [Bitwardex]⚙️🧠Machine Learning | Adaptive Trend Signals
🔷Overview
Machine Learning | Adaptive Trend Signals is a Pine Script™ v6 indicator designed to visualize market trends and generate signals through a combination of volatility clustering, Gaussian smoothing, and adaptive trend calculations. Built as an overlay indicator, it integrates advanced techniques inspired by machine learning concepts, such as K-Means clustering, to adapt to changing market conditions. The script is highly customizable, includes a backtesting module, and supports alert conditions, making it suitable for traders exploring trend-based strategies and developers studying volatility-driven indicator design.
🔷Functionality
The indicator performs the following core functions:
• Volatility Clustering: Uses K-Means clustering to categorize market volatility into high, medium, and low states, adjusting trend sensitivity accordingly.
• Trend Calculation: Computes adaptive trend lines (SmartTrend) based on volatility-adjusted standard deviation, smoothed RSI, and ADX filters.
• Signal Generation: Identifies potential buy and sell points through trend line crossovers and directional confirmation.
• Backtesting Module: Tracks trade outcomes based on the SmartTrend3 value, displaying win rate and total trades.
• Visualization: Plots trend lines with gradient colors and optional signal markers (bullish 🐮 and bearish 🐻).
• Alerts: Provides configurable alerts for trend shifts and volatility state changes.
🔷Technical Methodology
Volatility Clustering with K-Means
The indicator employs a K-Means clustering algorithm to classify market volatility, measured via the Average True Range (ATR), into three distinct clusters:
• Data Collection: Gathers ATR values over a user-defined training period (default: 100 bars).
• Centroid Initialization: Sets initial centroids at the highest, lowest, and midpoint ATR values within the training period.
• Iterative Clustering: Assigns ATR data points to the nearest centroid, recalculates centroid means, and repeats until convergence.
• Dynamic Adjustment: Assigns a volatility state (high, medium, or low) based on the closest centroid, adjusting the trend factor (e.g., tighter for high volatility, wider for low volatility).
This approach allows the indicator to adapt its sensitivity to varying market conditions, providing a data-driven foundation for trend calculations.
🔷Gaussian Smoothing
To enhance signal clarity and reduce noise, the indicator applies Gaussian kernel smoothing to:
• RSI: Smooths the Relative Strength Index (calculated from OHLC4) to filter short-term fluctuations.
• SmartTrend: Smooths the primary trend line for a more stable output.
The Gaussian kernel uses a sigma value derived from the user-defined smoothing length, ensuring mathematically consistent noise reduction.
🔷SmartTrend Calculation
The pineSmartTrend function is the core of the indicator, producing three trend lines:
• SmartTrend: The primary trend line, calculated using a volatility-adjusted standard deviation, smoothed RSI, and ADX conditions.
• SmartTrend2: A secondary trend line with a wider factor (base factor * 1.382) for signal confirmation.
SmartTrend3: The average of SmartTrend and SmartTrend2, used for plotting and backtesting.
Key components of the calculation include:
• Dynamic Standard Deviation: Scales based on ATR relative to its 50-period smoothed average, with multipliers (1.0 to 1.4) applied according to volatility thresholds.
• RSI and ADX Filters: Requires RSI > 50 for bullish trends or < 50 for bearish trends, alongside ADX > 15 and rising to confirm trend strength.
Volatility-Adjusted Bands: Constructs upper and lower bands around price action, adjusted by the volatility cluster’s dynamic factor.
🔷Signal Generation
The generate_signals function generates signals as follows:
• Buy Signal: Triggered when SmartTrend crosses above SmartTrend2 and the price is above SmartTrend, with directional confirmation.
• Sell Signal: Triggered when SmartTrend crosses below SmartTrend2 and the price is below SmartTrend, with directional confirmation.
Directional Logic: Tracks trend direction to filter out conflicting signals, ensuring alignment with the broader market context.
Signals are visualized as small circles with bullish (🐮) or bearish (🐻) emojis, with an option to toggle visibility.
🔷Backtesting
The get_backtest function evaluates signal outcomes using the SmartTrend3 value (rather than closing prices) to align with the trend-based methodology.
It tracks:
• Total Trades: Counts completed long and short trades.
• Win Rate: Calculates the percentage of trades where SmartTrend3 moves favorably (higher for longs, lower for shorts).
Position Management: Closes opposite positions before opening new ones, simulating a single-position trading system.
Results are displayed in a table at the top-right of the chart, showing win rate and total trades. Note that backtest results reflect the indicator’s internal logic and should not be interpreted as predictive of real-world performance.
🔷Visualization and Alerts
• Trend Lines: SmartTrend3 is plotted with gradient colors reflecting trend direction and volatility cluster, accompanied by a secondary line for visual clarity.
• Signal Markers: Optional buy/sell signals are plotted as small circles with customizable colors.
• Alerts: Supports alerts for:
• Bullish and bearish trend shifts (confirmed on bar close).
Transitions to high, medium, or low volatility states.
🔷Input Parameters
• ATR Length (default: 14): Period for ATR calculation, used in volatility clustering.
• Period (default: 21): Common period for RSI, ADX, and standard deviation calculations.
• Base SmartTrend Factor (default: 2.0): Base multiplier for volatility-adjusted bands.
• SmartTrend Smoothing Length (default: 10): Length for Gaussian smoothing of the trend line.
• Show Buy/Sell Signals? (default: true): Enables/disables signal markers.
• Bullish/Bearish Color: Customizable colors for trend lines and signals.
🔷Usage Instructions
• Apply to Chart: Add the indicator to any TradingView chart.
• Configure Inputs: Adjust parameters to align with your trading style or market conditions (e.g., shorter ATR length for faster markets).
• Interpret Output:
• Trend Lines: Use SmartTrend3’s direction and color to gauge market bias.
• Signals: Monitor bullish (🐮) and bearish (🐻) markers for potential entry/exit points.
• Backtest Table: Review win rate and total trades to understand the indicator’s behavior in historical data.
• Set Alerts: Configure alerts for trend shifts or volatility changes to support manual or automated trading workflows.
• Combine with Analysis: Use the indicator alongside other tools or market context, as it is designed to complement, not replace, comprehensive analysis.
🔷Technical Notes
• Data Requirements: Requires at least 100 bars for accurate volatility clustering. Ensure sufficient historical data is loaded.
• Market Suitability: The indicator is designed for trend detection and may perform differently in ranging or volatile markets due to its reliance on RSI and ADX filters.
• Backtesting Scope: The backtest module uses SmartTrend3 values, which may differ from price-based outcomes. Results are for informational purposes only.
• Computational Intensity: The K-Means clustering and Gaussian smoothing may increase processing time on lower timeframes or with large datasets.
🔷For Developers
The script is modular, well-commented, encouraging reuse and modification with proper attribution.
Key functions include:
• gaussianSmooth: Applies Gaussian kernel smoothing to any data series.
• pineSmartTrend: Computes adaptive trend lines with volatility and momentum filters.
• getDynamicFactor: Adjusts trend sensitivity based on volatility clusters.
• get_backtest: Evaluates signal performance using SmartTrend3.
Developers can extend these functions for custom indicators or strategies, leveraging the volatility clustering and smoothing methodologies. The K-Means implementation is particularly useful for adaptive volatility analysis.
🔷Limitations
• The indicator is not predictive and should be used as part of a broader trading strategy.
• Performance varies by market, timeframe, and parameter settings, requiring user experimentation.
• Backtest results are based on historical data and internal logic, not real-world trading conditions.
• Volatility clustering assumes sufficient historical data; incomplete data may affect accuracy.
🔷Acknowledgments
Developed by Bitwardex, inspired by machine learning concepts and adaptive trading methodologies. Community feedback is welcome via TradingView’s platform.
🔷 Risk Disclaimer
Trading involves significant risks, and most traders may incur losses. Bitwardex AI Algo is provided for informational and educational purposes only and does not constitute financial advice or a recommendation to buy or sell any financial instrument . The signals, metrics, and features are tools for analysis and do not guarantee profits or specific outcomes. Past performance is not indicative of future results. Always conduct your own due diligence and consult a financial advisor before making trading decisions.
Reversal Sweeps (R/G & G/R V+) with BB FilterRed then green (or green then red) candle setup where the green sweeps the low of the red candle and has more volume, while also wicking the BB
Alpha Beta Gamma with Volume CandleAlpha Beta Gamma with Volume Candle
This Pine Script indicator analyzes price dynamics and volume activity to assist traders in identifying momentum, reversals, and key price levels. It calculates three proprietary metrics—Alpha, Beta, and Gamma—based on a user-selected price type (e.g., Open, Close, HL2) and timeframe, using a lookback period (default 37 bars). These metrics normalize price movements relative to the range of highs and lows, helping traders gauge market strength and positioning.
How It Works:
Alpha: Measures the distance of the selected price from the lowest price over the lookback period, normalized by the period length.
Beta: Represents the full price range (high minus low) over the lookback period, scaled by the period length.
Gamma: Normalizes the price’s position within the high-low range, providing a 0–1 scale for relative positioning.
Volume Analysis: The script classifies candles based on volume thresholds relative to a simple moving average (SMA, default 400 bars). High volume (≥ 2x SMA), low volume (≤ 0.5x SMA), and strong signal volume (≥ 1.5x SMA) trigger distinct candle colors to highlight bullish (e.g., deep blue, violet) or bearish (e.g., aqua, pink) conditions.
Custom Bands: Nine horizontal levels (0 to 1, divided into eight equal parts) act as dynamic support/resistance zones, useful for grid-based trading or breakout strategies.
How to Use:
Inputs:
Chart Timeframe: Select the timeframe for price data (e.g., 1H, 1D).
Price Type: Choose the price metric (e.g., Close, HL2) for calculations.
ABG Length: Adjust the lookback period (default 37) for sensitivity.
Volume MA Length: Set the SMA period for volume analysis (default 400).
Volume Thresholds: Customize high, low, and strong volume multipliers.
Visual Settings: Toggle labels, custom bands, and table display; adjust line styles, label sizes, and table positions.
Interpretation:
Use Alpha, Beta, and Gamma plots to assess price momentum and range dynamics.
Monitor colored candles for volume-driven signals (e.g., violet for strong bullish volume).
Leverage custom bands for support/resistance or breakout trading.
Check the table for real-time ABG values and percentage changes.
Settings Tips:
For scalping, reduce the ABG Length (e.g., 20) and use a shorter timeframe (e.g., 5M).
For swing trading, increase the Volume MA Length (e.g., 600) for more stable volume signals.
Enable labels and custom bands for visual clarity on key levels.
This indicator is versatile for various trading styles, combining price-based metrics with volume analysis to enhance decision-making.
AE - Aggregated Open InterestAggregated Open Interest
The Aggregated Open Interest indicator provides a comprehensive view of open interest across multiple cryptocurrency exchanges, allowing traders to monitor institutional positioning and market sentiment. By aggregating data from major exchanges like Binance, BitMEX, and Kraken, this indicator offers valuable insights into potential price movements and market shifts.
🔶 CALCULATION
The indicator processes open interest data through multiple analytical methods:
Exchange Aggregation: Collects and normalizes open interest data from multiple exchanges (Binance, BitMEX, Kraken) with proper currency normalization.
Multi-Mode Analysis: Calculates various metrics including raw open interest values, OI change, OI delta, volume-weighted delta, and OI RSI.
Divergence Detection: Uses pivot point analysis to identify divergences between price action and open interest movements.
Activity Assessment: Tracks bullish and bearish activity patterns by correlating open interest changes with price movements.
Formula:
- Aggregate OI = Sum of normalized open interest from selected exchanges
- OI Change = Current OI - Previous OI
- OI Delta = Net change in open interest across timeframes
- OI Delta × Volume = OI Delta weighted by relative volume
- OI RSI = Relative Strength Index applied to open interest values
- OI Heatmap = Multi-timeframe visualization of OI changes across 7 distinct periods
🔶 DETAILS
Visual Features:
Multiple Display Modes:
- Open Interest: Candlestick representation of aggregated open interest
- OI Change: Histogram showing period-to-period changes
- OI Delta: Histogram displaying net OI movements
- OI Delta × Volume: Volume-weighted OI delta for enhanced signals
- OI RSI: Oscillator showing overbought/oversold OI conditions
- OI Heatmap: Multi-timeframe visualization showing OI changes across 7 periods (3, 5, 8, 13,
21, 34, and 55 days)
- Divergence Detection: Color-coded markers (teal for bullish, red for bearish) highlighting - -
significant divergences between price and open interest
- Analysis Table: Real-time summary of key metrics including aggregate OI, recent changes, and
bullish/bearish activity
🔶 Interpretation:
Increasing Open Interest + Rising Price: Strong bullish trend confirmation
Increasing Open Interest + Falling Price: Strong bearish trend confirmation
Decreasing Open Interest + Rising Price: Weak bullish trend (potential reversal)
Decreasing Open Interest + Falling Price: Weak bearish trend (potential reversal)
Divergences: Signal potential trend exhaustion and reversals when price moves in one direction while open interest moves in the opposite direction
Heatmap: Provides at-a-glance insight into open interest trends across multiple timeframes, with green bars indicating rising OI and red bars indicating falling OI
🔶 EXAMPLES
Trend Confirmation: Rising open interest accompanying a price increase confirms strong bullish momentum with institutional backing.
- Example: During January-February 2025, rising OI during price advances confirms institutional
participation in the uptrend.
- Bearish Divergence: Price makes a higher high while open interest makes a lower high,
signaling potential trend reversal.
- Example: Red markers appear at market tops where price continues higher but open interest
fails to confirm, preceding significant corrections.
- Bullish Divergence: Price makes a lower low while open interest makes a higher low,
indicating potential bottoming.
- Example: Teal markers appear at market bottoms where price continues lower but open
interest fails to confirm, preceding significant rallies.
OI Heatmap Analysis: Multiple timeframes showing consistent red signals across short to long-term periods indicate strong institutional selling pressure.
Example: When all 7 periods (3-55 days) show red during a price uptrend, this signals institutional selling into retail strength, often preceding major corrections.
🔶 SETTINGS
Customization Options:
Data Sources: Toggle different exchanges (Binance USDT/USD/BUSD, BitMEX USD/USDT, Kraken USD)
Display Mode: Choose between Open Interest, OI Change, OI Delta, OI Delta × Volume, OI RSI, and OI Heatmap
Currency Units: Display in USD or base cryptocurrency (COIN)
Analysis Tools: Moving Average (length and color), RSI (length and color)
Divergence Detection: Enable/disable signals, adjust lookback period and threshold percentage, customize bullish/bearish divergence colors
OI Heatmap Colors: Customize bullish (green) and bearish (red) signal colors for the multi-timeframe heatmap visualization
The Aggregated Open Interest indicator provides traders with comprehensive insights into institutional positioning across major exchanges, helping identify potential trend continuations, reversals, and key market turning points driven by smart money movements. The addition of the OI Heatmap feature enables traders to quickly visualize open interest trends across multiple timeframes, providing valuable context for institutional positioning over different market cycles.
Smart Market Matrix Smart Market Matrix
This indicator is designed for intraday, scalping, providing automated detection of price pivots, liquidity traps, and breakout confirmations, along with a context dashboard featuring volatility, trend, and volume.
## Summary Description
### Menu Settings & Their Roles
- **Swing Pivot Strength**: Controls the sensitivity for detecting High/Low pivots.
- **Show Pivot Points**: Toggles the display of HH/LL markers on the chart.
- **VWMA Length for Trap Volume** & **Volume Spike Multiplier**: Identify concentrated volume spikes for liquidity traps.
- **Wick Ratio Threshold** & **Max Body Size Ratio**: Detect candles with disproportionate wicks and small bodies (doji-ish) for traps.
- **ATR Length for Trap**: Measures volatility specific to trap detection.
- **VWMA Length for Breakout Volume**, **ATR Multiplier for Breakout**, **ATR Length for Breakout**, **Min Body/Range Ratio**: Set adaptive breakout thresholds based on volatility and volume.
- **OBV Smooth Length**: Smooths OBV momentum for breakout confirmation.
- **Enable VWAP Filter for Confirmations**: Optionally validate breakouts against the VWAP.
- **Enable Higher-TF Trend Filter** & **Trend Filter Timeframe**: Align breakout signals with the 1h/4h/Daily trend.
- **ADX Length**, **EMA Fast/Slow Length for Context**: Parameters for the context dashboard (Volatility, Trend, Volume).
- **Show Intraday VWAP Line**, **VWAP Line Color/Width**: Display the intraday VWAP line with custom style.
### Signal Interpretation Map
| Signal | Description | Recommended Action |
|--------------------------------|-----------------------------------------------------------|-------------------------------------------|
| 📌 **HH / LL (pivot)** | Market structure (support/resistance) | Note key levels |
| **Bull Trap(green diamond)** | Sweep down + volume spike + wick + rejection | Go long with trend filter
| **Bear Trap(red diamond)** | Sweep up + volume spike + wick + rejection | Go short with trend filter
| 🔵⬆️ **Breakout Confirmed Up** | Close > ATR‑scaled high + volume + OBV↑ | Go long with trend filter |
| 🔵⬇️ **Breakout Confirmed Down** | Close < ATR‑scaled low + volume + OBV↓ | Go short with trend filter |
| 📊 **VWAP Line** | Intraday reference to guide price | Use as dynamic support/resistance |
| ⚡ **Volatility** | ATR ratio High/Med/Low | Adjust position size |
| 📈 **Trend Context** | ADX+EMA Strong/Moderate/Weak | Confirm trend direction |
| 🔍 **Volume Context** | Breakout / Rising / Falling / Calm | Check volume momentum |
*This summary gives you a quick overview of the key settings and how to interpret signals for efficient intraday scalping.*
### Suggested Settings
- **Intraday Scalping (5m–15m)**
- `Swing Pivot Strength = 5`
- `VWMA Length for Trap Volume = 10`, `Volume Spike Multiplier = 1.6`
- `ATR Length for Trap = 7`
- `VWMA Length for Breakout Volume = 12`, `ATR Length for Breakout = 9`, `ATR Multiplier for Breakout = 0.5`
- `Min Body/Range Ratio for Breakout = 0.5`, `OBV Smooth Length = 7`
- `Enable Higher-TF Trend Filter = true` (TF = 60)
- `Show Intraday VWAP Line = true` (Color = orange, Width = 2)
- **Swing Trading (4h–Daily)**
- `Swing Pivot Strength = 10`
- `VWMA Length for Trap Volume = 20`, `Volume Spike Multiplier = 2.0`
- `ATR Length for Trap = 14`
- `VWMA Length for Breakout Volume = 30`, `ATR Length for Breakout = 14`, `ATR Multiplier for Breakout = 0.8`
- `Min Body/Range Ratio for Breakout = 0.7`, `OBV Smooth Length = 14`
- `Enable Higher-TF Trend Filter = true` (TF = D)
- `Show Intraday VWAP Line = false`
*Adjust these values based on the symbol and market volatility for optimal performance.*
NR4/NR7 + Trend + MACD + VWAP FilterThe Ultimate Momentum-Compression Strategy
This strategy merges the power of price compression and trend confirmation, ensuring you're trading when the market is coiled and ready to move. By combining multiple filters—NR4/NR7, trend alignment, MACD momentum, and VWAP support—this setup identifies high-probability trade opportunities in dynamic, trending stocks. Here's how it works:
NR4/NR7 Patterns: These are narrow-range days where the current price range is smaller than the previous 4 or 7 days. This signals potential breakout or continuation setups, as the market is compressing before making a move.
Trend Confirmation: To ensure you're not trading against the current trend, the price must be above the 20 EMA, and the 10 EMA must be above the 20 EMA. This confirms a bullish structure, with the price trending in your favour.
MACD Momentum: The fast MACD line must be above the slow MACD line, confirming the trend is not only intact but also gaining momentum.
VWAP Filter: Price must be above the VWAP (Volume Weighted Average Price). This is the final confirmation that the market is in a strong, bullish phase, with buyers dominating the market.
By requiring all these conditions to align, this strategy takes the guesswork out of day trading. It ensures you're trading within a well-established trend, with compression patterns and momentum backing your trade. The result? You’re entering positions with confidence and clarity, poised to ride strong, sustained moves.
This strategy is for the trader who values both flexibility and discipline—able to capture dynamic moves while staying aligned with market structure and momentum. It’s a refined, systematic approach that makes decisions clear, without the emotional second-guessing.
NR4/NR7 + Refined Trend FilterThis version allows the candle to pull toward the 10 EMA without disqualifying the trend—but keeps things on a bullish leash.
Rally Sweep Volume RSV w/ Bollinger Band FilterPrice rallies, sweeps, and closes with more volume at the bollinger bands - helping reduce too many signals and filters out the high probability setups
Returns & Distance from ATHHere’s what that Pine Script does, in everyday terms:
1. **Look back in time**
- It grabs the closing price from **3 months ago** and **1 month ago** by asking TradingView’s “monthly” data for the symbol.
2. **Calculate percentage changes**
- **3-month return** = (today’s close – close 3 months ago) ÷ (close 3 months ago) × 100
- **1-month return** = (today’s close – close 1 month ago) ÷ (close 1 month ago) × 100
3. **Track the highest price ever seen (ATH)**
- It keeps a running “all-time high” variable, updating it any time today’s high exceeds the previous ATH.
4. **Compute how far you are below ATH**
- **% from ATH** = (ATH – today’s close) ÷ ATH × 100
5. **Build a little stats table on your chart**
- It makes a 2-row by 3-column box in the **top-center** of your price panel.
- The **first row** has labels: “3M % Return”, “1M % Return”, “% from ATH”.
- The **second row** shows the three computed numbers, each formatted to two decimal places and suffixed with “%.”
6. **Refresh only once per bar**
- All of these values and the table get updated **at the close** of each bar, so your table always shows the latest stats without cluttering the chart with extra drawings.
In short, this indicator quietly collects the right historical prices, does three simple percent-change math steps, and then displays those three key numbers in a neat, always-visible box at the top of your TradingView chart.
NR4/NR7 + Trend + Refined MACD + VWAP FilterRefined Trend-Following Strategy with NR4/NR7, MACD, and VWAP Filters
This trading strategy combines multiple technical filters to identify high-probability momentum setups, using a refined approach to the MACD for added precision. It’s designed for active traders looking to capitalise on strong trends while avoiding false signals.
Key Features:
Narrow Range Days (NR4/NR7): The strategy first looks for stocks with a narrow range, either NR4 (lowest range of the last four days) or NR7 (lowest range of the last seven days). This identifies stocks that have consolidated and may be preparing for a breakout or strong move.
Trend Analysis with EMAs: Price must be above the 20-period EMA, confirming a bullish trend. Additionally, the 10-period EMA must be above the 20-period EMA, ensuring that the short-term trend is aligned with the longer-term trend, adding to the setup’s strength.
Refined MACD Filter:
If the fast MACD line (12-period) is above the slow MACD line (26-period), the strategy accepts any difference, allowing for a full range of momentum opportunities.
If the fast MACD line is below the slow MACD line, the difference must be no more than 5%. This allows the strategy to capture tight price action setups without excluding potential trends due to a small discrepancy.
VWAP Confirmation: The strategy requires the price to be above the Volume Weighted Average Price (VWAP), adding a layer of volume-based confirmation to ensure that the stock is in a strong, positive trend relative to its average price.
Why This Works: This system is designed to take advantage of stocks that show consolidation (NR4/NR7) and then provide a clear, systematic approach for confirming their breakout potential through trend-following indicators like EMAs, MACD, and VWAP. The nuanced MACD filter adds a layer of flexibility, ensuring that no potential trend is overlooked while preventing false signals due to slight technical discrepancies.
By combining multiple layers of trend confirmation and dynamic filters for volatility, momentum, and volume, the strategy offers a refined approach to capturing high-probability setups, helping traders avoid overfitting to noise and focus on the most promising opportunities.
NR4/NR7 + 10 EMA Trend Filter📝 Description:
This script spots NR4 and NR7 days—those deceptively quiet candles where price volatility contracts... right before a potential breakout.
But here’s the twist:
It only highlights setups when the stock is above the 10 EMA, filtering for bullish trends with real momentum behind them.
We’re not interested in weak sauce. We want spring-loaded coils in strong uptrends.
🧠 What It Does:
🔍 NR4 (Narrow Range 4): Today's range is the smallest of the last 4 days
🧨 NR7 (Narrow Range 7): Today's range is the smallest of the last 7 days
🧭 Trend Filter: Highlights only when price is above the 10-period EMA
🎯 Visual Cues: Orange background and label for NR4, purple for NR7
MA's + VWAP + VIX + BBMy combined indicator that I use for day trading SPY. It is a combination of several indicators, including..
VWAP
Bolinger Bands
Moving Averages
7-day MA
9-day MA
20-day MA
21-day MA
24-day MA
50-day MA
200-day MA
500-day MA
VIX and Skew index
VIX value and % change for the day
Skew value
Table size can be adjusted smaller if on mobile
I use the VIX table to see the current days % change and do a general comparison to what SPY closed at the day before. TradingView has an option to plot a line on where the price closed the previous day, which I enabled on my chart settings. VIX can give a confirmation of downtrends (if VIX goes up) or uptrends (if VIX goes down) and the general strength of the trend.
Please enable/disable whichever option(s) you prefer in the settings - any indicator can be disabled. I have defaulted the settings to what I personally use for SPY which includes 7-day MA, 20-day MA, VWAP, VIX table and BB's. I recommend disabling the "Inputs in status line", "Labels on price scale" and "Values in status line" so as to free up clutter on the chart.
I've also published a TSI indicator which I use for spotting divergences. I hope you enjoy using this combined indicator.
NR4/NR7 + Strong Uptrend FilterNR4/NR7 Tight Range Breakout Scanner with Trend Confirmation
This script identifies explosive breakout candidates by scanning for NR4 (Narrowest Range in 4 days) and NR7 (Narrowest Range in 7 days) setups, only when the underlying stock is showing strong bullish alignment.
Why This Matters
Narrow range candles often precede volatility. When you combine that compression with a strong uptrend, you’re essentially spotting a coiled spring—just before the snap. Most traders chase moves. This one waits—quiet, deliberate, prepared.
Trend Filter Criteria
To ensure quality and avoid weak setups, the scanner only signals when:
The closing price is above the 10 EMA
The 10 EMA is above the 20 EMA
This confirms strong short-term momentum and trend alignment—what some call a “momentum staircase.” It keeps you on the frontside of the move and filters out chop, fakeouts, and death-by-a-thousand-wick scenarios.
Visuals
Orange Label → NR4 in a strong trend
Purple Label → NR7 in a strong trend
Background also highlights to give subtle visual cues
Best Use Case
Scan end-of-day or intraday on your watchlist. Combine it with:
MACD expansion
Low float + news catalysts
Volume surges
Breakout-ready chart structure
Result?
You don’t chase.
You don’t guess.
You stalk high-probability trades like a nobleman with a sniper rifle.
NR4/NR7 + Trend + MACD Filter📈 NR4/NR7 Breakout Scanner — with Trend & Momentum Filters
This script scans for NR4 and NR7 patterns—tight inside days that often precede explosive moves. But we don’t stop there. We filter for high-probability setups only, using:
✅ Trend Confirmation:
Price is above the 20 EMA
10 EMA is above the 20 EMA
(We’re not buying weakness. The structure must be bullish.)
✅ Momentum Confirmation (MACD Filter):
The MACD fast line is above the signal line
(Momentum must already be in gear—not catching a falling knife.)
This combo gives you a coiled spring setup—tight range, in a clear trend, with momentum pushing in your favour.
It’s ideal for breakout traders, swing traders, and anyone who wants to avoid false starts on the wrong side of the tape.
NR4 setups are marked orange,
NR7 setups are marked purple.
Stick to the right side of the trend, and let the squeeze do the rest.
Trailing STOP based on ATR with Offset, SMA, and RMATrailing STOP based on Average True Range (ATR)
Start with Multiplier = 2 and Offset = 1
Triple Confirmation Buy/Sell Engine VWAP + MACD + RSIDescription:
This custom-built indicator generates high-confidence Buy/Sell signals using a powerful combination of MACD momentum, RSI strength, and VWAP trend confirmation — designed for cleaner entries and fewer false signals.
Unlike traditional scripts that rely on only one indicator (and produce noisy or early signals), this system requires triple confirmation, greatly increasing signal quality and reducing false trades.
✅ Buy Signal Conditions:
MACD histogram turns green (momentum shift positive)
RSI crosses above 50 (bullish strength confirmation)
Price closes above VWAP (trend confirmation)
🔻 Sell Signal Conditions:
MACD histogram turns red (momentum shift negative)
RSI crosses below 50 (weakening trend)
Price closes below VWAP (bearish confirmation)
🛠 Best For:
Trend traders seeking higher probability entries
Swing traders who want to catch bigger moves
Crypto, stocks, forex traders looking for simple, effective signals
ka66: ADR EstimationThis is based on Daryl Guppy's Average Daily Range indicator, the link is difficult to find, but it is an estimation/projection indicator for a daily range.
The thesis is (if I understand correctly):
The range (high - low) of a particular day can be determined, with 85% probability, by taking the ranges of the last 5 days, and getting their average, then multiplying this average value by 0.75. This final value is the estimated range for the next day.
The indicator does not say anything about potential direction, so it may be used as a Take Profit or Stop Loss estimator for the trading strategy in use. Either on the daily timeframe, or an intraday timeframe.
And if we enter the market intraday for a day trade, when the day's range has already exceeded or is close to exceeding the estimated/projected value, perhaps the move is already quite exhausted, and the trade needs to be reconsidered.
A further implication is: if 0.75 multiple occurs with 85% probability, then a lower multiple is even more probable, if one was looking for a more conservative estimate.
The indicator shows three things for a visual inspection of the validity of this concept (and allows basic customisation of parameters):
The day's range, shown in a translucent gray/deep green, as columns. This is the current bar's range. If intraday, it will repaint.
The 5 day average up to the current bar, shown as a step-line plot in orange. If intraday, it will repaint.
The projected range: a thinner blue histogram column, this is offset one bar forward, as it is a future estimate/forward-looking. It too will repaint if the current day is still not complete.
To evaluate the historical results of the chosen settings visually (eye-ball it!), compare the blue histogram bar to the gray bar/column, i.e. the estimate vs. actual range:
When the blue bar is generally within the gray column, and close enough to that column's size/range, then the projected estimation has been reasonable.
if the blue bar tends to be relatively smaller than the gray bar, then we are underestimating often. Increase the projection multiple setting, as a simple fix.
if the blue bar tends to exceed the range of the gray bar a lot, we are overestimating often. Lower the projection multiple setting, as a simple fix.
Guppy's document says that they basically calculate this ADR for multiple markets and focus on markets with the top 5 ranges (in descending order, of course), to maximise the profit potential on intraday trades planned for the next day. Because it is an estimation, this calculation can be run at the end of the day on completed bars.
This indicator also allows displaying the value as percentages, taking the logic of the ATR% (ATR Percent) indicator, which divides the ATR by the close value and multiplies it by 100 to get a normalised percentage value, allowing it to be compared across markets (but in the same timeframe!).