VWAP Momentum Oscillator How It Works
 Core Calculation Method
The oscillator combines four key market measurements into a single, normalized reading:
1. Price-VWAP Deviation: `(Close - VWAP) / VWAP × 100`
2. VWAP-MA Momentum: `(VWAP - MovingAverage) / MovingAverage × 100`  
3. Anchored VWAP Strength: Average of high/low anchor deviations from rolling VWAP
4. Range Position: `(Close - PeriodLow) / (PeriodHigh - PeriodLow) × 100 - 50`
 Dynamic Signal Line
The signal line uses an EMA that automatically adjusts its length based on your chart timeframe:
- Futures: Always covers 23 hours of trading (1,380 minutes)
- Stocks: Always covers 6.5 hours of trading (390 minutes)
- Examples: 276 periods on 5-min futures chart, 1,380 periods on 1-min futures chart
 Trading Signals
 🟢 Buy Signals
- Condition: Main oscillator crosses above signal line while below zero
- Logic: Momentum turning bullish from oversold conditions
- Visual: Green "BUY" label below price action
 🔴 Sell Signals  
- Condition: Main oscillator crosses below signal line while above zero
- Logic: Momentum turning bearish from overbought conditions
- Visual: Red "SELL" label above price action
 ⚠️ Extreme Warnings
- Extreme Overbought: Red triangle when oscillator crosses above +4.0
- Extreme Oversold: Green triangle when oscillator crosses below -4.0
- Purpose: Risk management alerts, not entry/exit signals
 Oscillator Zones
 Interpretation Guide
- Above +2.0: Strong bullish momentum zone (green background)
- 0 to +2.0: Mild bullish territory  
- 0 to -2.0: Mild bearish territory
- Below -2.0: Strong bearish momentum zone (red background)
- Above +4.0: Extreme overbought (caution advised)
- Below -4.0: Extreme oversold (potential reversal zone)
 Customization Options
 Moving Average Settings
- EMA/SMA Toggle: Choose between exponential or simple moving average
- Color Customization: Adjust MA line color and width
 Visual Controls  
- Bullish/Bearish Colors: Customize momentum zone colors
- Signal Line: Toggle visibility and adjust color
- Line Widths: Control thickness of all plot lines
 Anchor Modes
- NY Session Only: Anchors reset at NY market open (9:30 AM ET)
- 24H NY Day: Anchors reset at NY calendar day change (midnight ET)
 Best Practices
 Timeframe Selection
- Scalping: 1-5 minute charts for quick momentum changes
- Day Trading: 5-15 minute charts for clearer trend signals  
- Swing Trading: 1-4 hour charts for major momentum shifts
 Signal Confirmation
- Wait for crossovers: Don't trade on oscillator position alone
- Respect extreme levels: Exercise caution above +4 or below -4
- Use with price action: Combine with support/resistance levels
 Risk Management
- Extreme zones: Reduce position size when oscillator is extended
- Failed signals: Exit quickly if momentum doesn't follow through
- Market context: Consider overall trend direction and market volatility
 Technical Specifications
 Calculation Components
- Base Length: 1,380 periods (futures) / 390 periods (stocks)
- Signal Line: Dynamic EMA covering one full trading day
- Smoothing: 3-period SMA on raw oscillator (adjustable)
- Update Frequency: Real-time on every price tick
 Performance Notes
- Resource Efficient: Optimized calculations minimize CPU usage
- Memory Friendly: Uses incremental VWAP calculations
- Fast Loading: Minimal historical data requirements
 Version History & Development
This oscillator evolved from advanced VWAP overlay strategies, transforming complex multi-line analysis into a single, actionable momentum gauge. The indicator maintains the sophistication of institutional VWAP analysis while providing the clarity needed for retail trading decisions.
 Core Philosophy
Traditional VWAP indicators show where price is relative to volume-weighted averages, but they don't quantify momentum or provide clear entry/exit signals. This oscillator solves that problem by normalizing all VWAP relationships into a single, bounded indicator that works consistently across all timeframes and asset classes.
---
Open Source License: This indicator is provided free for the TradingView community. Feel free to modify and enhance according to your trading needs.
Wyszukaj w skryptach "scalp"
Enhanced Chande Momentum OscillatorEnhanced Chande Momentum Oscillator (Enh CMO) 
📊 Description
The Enhanced Chande Momentum Oscillator is an advanced version of the classic Chande Momentum Oscillator with dynamic envelope boundaries that automatically adapt to market volatility. This indicator provides clear visual signals for potential price reversals and momentum shifts.
Key Features:
Original Chande Momentum Oscillator calculation
Dynamic upper and lower boundaries based on statistical analysis
Adaptive envelope that adjusts to market volatility
Visual fill area between boundaries for easy interpretation
Real-time values table with current readings
Built-in alert conditions for boundary touches
Customizable moving average types (SMA, EMA, WMA)
⚙️ Settings
CMO Settings:
CMO Length (9): Period for calculating the base Chande Momentum Oscillator
Source (close): Price source for calculations
Envelope Settings:
Envelope Length (20): Lookback period for calculating the moving average and standard deviation
Envelope Multiplier (1.5): Multiplier for standard deviation to create upper/lower bounds
Moving Average Type (EMA): Type of moving average for envelope calculation
📈 How to Use
Visual Elements
Lines:
White Line: Main Chande Momentum Oscillator
Red Line: Upper boundary (resistance level)
Green Line: Lower boundary (support level)
Yellow Line: Moving average of CMO (trend direction)
Purple Fill: Visual envelope between boundaries
Reference Lines:
Zero Line: Neutral momentum level
+50/-50 Lines: Traditional overbought/oversold levels
Trading Signals
🔴 Sell/Short Signals
CMO touches or crosses above upper boundary → Potential bearish reversal
CMO is above +50 and declining → Weakening bullish momentum
CMO crosses below yellow MA line while above zero → Momentum shift
🟢 Buy/Long Signals
CMO touches or crosses below lower boundary → Potential bullish reversal
CMO is below -50 and rising → Weakening bearish momentum
CMO crosses above yellow MA line while below zero → Momentum shift
⚡ Advanced Signals
Boundary contraction → Decreasing volatility, potential breakout coming
Boundary expansion → High volatility period, use wider stops
CMO hugging upper boundary → Strong uptrend continuation
CMO hugging lower boundary → Strong downtrend continuation
🎯 Trading Strategies
Strategy 1: Reversal Trading
Wait for CMO to touch extreme boundaries (red or green lines)
Look for divergence with price action
Enter counter-trend position when CMO starts moving back toward center
Set stop beyond the boundary breach point
Take profit near zero line or opposite boundary
Strategy 2: Momentum Confirmation
Use CMO direction to confirm trend
Enter positions when CMO crosses above/below yellow MA line
Hold positions while CMO remains on the correct side of MA
Exit when CMO crosses back through MA line
Strategy 3: Volatility Breakout
Monitor boundary width (envelope expansion/contraction)
When boundaries contract significantly, prepare for breakout
Enter in direction of CMO breakout from narrow range
Use boundary expansion as confirmation signal
⚠️ Important Notes
Best Timeframes
Scalping: 1m, 5m charts
Day Trading: 15m, 30m, 1H charts
Swing Trading: 4H, Daily charts
Market Conditions
Trending Markets: Focus on momentum confirmation signals
Ranging Markets: Focus on boundary reversal signals
High Volatility: Increase envelope multiplier (1.8-2.5)
Low Volatility: Decrease envelope multiplier (1.0-1.3)
Risk Management
Always use stop losses beyond boundary levels
Reduce position size during boundary expansion periods
Combine with price action and support/resistance levels
Monitor the real-time table for precise entry/exit levels
🔔 Alerts
The indicator includes built-in alert conditions:
"CMO Above Upper Bound": Potential reversal down signal
"CMO Below Lower Bound": Potential reversal up signal
Set these alerts to catch opportunities without constantly monitoring charts.
💡 Tips for Success
Combine with other indicators: Use with RSI, MACD, or volume indicators for confirmation
Watch for divergences: CMO making new highs/lows while price doesn't follow
Use multiple timeframes: Check higher timeframe CMO for overall trend context
Adjust settings for different assets: Crypto may need different settings than forex
Paper trade first: Test the indicator with your trading style before using real money
🎨 Customization Tips
Change colors in the Pine Script to match your chart theme
Adjust envelope length for faster (shorter) or slower (longer) signals
Modify envelope multiplier based on asset volatility
Hide the table if it obstructs your view by commenting out the table section
 Complete trading solution: Pair with the Optimus Indicator (paid indicator) for multi-timeframe trend analysis and trend signals. 
Together they create a powerful confluence system for professional trading setups.
Advanced Trading System - [WOLONG X DBG]Advanced Multi-Timeframe Trading System
Overview
This technical analysis indicator combines multiple established methodologies to provide traders with market insights across various timeframes. The system integrates SuperTrend analysis, moving average clouds, MACD-based candle coloring, RSI analysis, and multi-timeframe trend detection to suggest potential entry and exit opportunities for both swing and day trading approaches.
Methodology
The indicator employs a multi-layered analytical approach based on established technical analysis principles:
Core Signal Generation
SuperTrend Engine: Utilizes adaptive SuperTrend calculations with customizable sensitivity (1-20) combined with SMA confirmation filters to identify potential trend changes and continuations
Braid Filter System: Implements moving average filtering using multiple MA types (McGinley Dynamic, EMA, DEMA, TEMA, Hull, Jurik, FRAMA) with percentage-based strength filtering to help reduce false signals
Multi-Timeframe Analysis: Analyzes trend conditions across 10 different timeframes (1-minute to Daily) using EMA-based trend detection for broader market context
Advanced Features
MACD Candle Coloring: Applies dynamic 4-level candle coloring system based on MACD histogram momentum and signal line relationships for visual trend strength assessment
RSI Analysis: Identifies potential reversal areas using RSI oversold/overbought conditions with SuperTrend confirmation
Take Profit Analysis: Features dual-mode TP detection using statistical slope analysis and Parabolic SAR integration for exit timing analysis
Key Components
Signal Types
Primary Signals: Green ▲ for potential long entries, Red ▼ for potential short entries with trend and SMA alignment
Reversal Signals: Small circular indicators for RSI-based counter-trend possibilities
Take Profit Markers: X-cross symbols indicating statistical TP analysis zones
Pullback Signals: Purple arrows for potential trend continuation entries using Parabolic SAR
Visual Elements
8-Layer MA Cloud: Customizable moving average cloud system with 3 color themes for trend visualization
Real-Time Dashboard: Multi-timeframe trend analysis table showing bullish/bearish status across all timeframes
Dynamic Candle Colors: 4-intensity MACD-based coloring system (ranging from light to strong trend colors)
Entry/SL/TP Labels: Automatic calculation and display of suggested entry points, stop losses, and multiple take profit levels
Usage Instructions
Basic Configuration
Sensitivity Setting: Start with default value 6
Increase (7-15) for more frequent signals in volatile markets
Decrease (3-5) for higher quality signals in trending markets
MA Filter Type: McGinley Dynamic recommended for smoother signals
Filter Strength: Set to 80% for balanced filtering, adjust based on market conditions
Signal Interpretation
Long Entry: Green ▲ suggests when price crosses above SuperTrend with bullish SMA alignment
Short Entry: Red ▼ suggests when price crosses below SuperTrend with bearish SMA alignment
Reversal Opportunities: Small circles indicate RSI-based counter-trend analysis
Take Profit Zones: X-crosses mark statistical TP areas based on slope analysis
Dashboard Analysis
Green Cells: Bullish trend detected on that timeframe
Red Cells: Bearish trend detected on that timeframe
Multi-Timeframe Confluence: Look for alignment across multiple timeframes for stronger signal confirmation
Risk Management Features
Automatic Calculations
ATR-Based Stop Loss: Dynamic stop loss calculation using ATR multiplier (default 1.9x)
Multiple Take Profit Levels: Three TP targets with 1:1, 1:2, and 1:3 risk-reward ratios
Position Sizing Guidance: Entry labels display suggested price levels for order placement
Confirmation Requirements
Trend Alignment: Requires SuperTrend and SMA confirmation before signal generation
Filter Validation: Braid filter must show sufficient strength before signals activate
Multi-Timeframe Context: Dashboard provides broader market context for decision making
Optimal Settings
Timeframe Recommendations
Scalping: 1M-5M charts with sensitivity 8-12
Day Trading: 15M-1H charts with sensitivity 6-8
Swing Trading: 4H-Daily charts with sensitivity 4-6
Market Conditions
Trending Markets: Reduce sensitivity, increase filter strength
Ranging Markets: Increase sensitivity, enable reversal signals
High Volatility: Adjust ATR risk factor to 2.0-2.5
Advanced Features
Customization Options
MA Cloud Periods: 8 customizable periods for cloud layers (default: 2,6,11,18,21,24,28,34)
Color Themes: Three professional color schemes plus transparent option
Dashboard Position: 9 positioning options with 4 size settings
Signal Filtering: Individual toggle controls for each signal type
Technical Specifications
Moving Average Types: 21 different MA calculations including advanced types (Jurik, FRAMA, VIDA, CMA)
Pullback Detection: Parabolic SAR with customizable start, increment, and maximum values
Statistical Analysis: Linear regression slope calculation for trend-based TP analysis
Important Limitations
Lagging Nature: Some signals may appear after potential entry points due to confirmation requirements
Ranging Markets: May produce false signals during extended sideways price action
High Volatility: Requires parameter adjustment during news events or unusual market conditions
Computational Load: Multiple timeframe analysis may impact performance on slower devices
No Guarantee: All signals are suggestions based on technical analysis and may be incorrect
Educational Disclaimers
This indicator is designed for educational and analytical purposes only. It represents a technical analysis tool based on mathematical calculations of historical price data and should not be considered as financial advice or trading recommendations.
Risk Warning: Trading involves substantial risk of loss and is not suitable for all investors. Past performance of any trading system or methodology is not necessarily indicative of future results. The high degree of leverage can work against you as well as for you.
Important Notes:
Always conduct your own analysis before making trading decisions
Use appropriate position sizing and risk management strategies
Never risk more than you can afford to lose
Consider your investment objectives, experience level, and risk tolerance
Seek advice from qualified financial professionals when needed
Performance Disclaimer: Backtesting results do not guarantee future performance. Market conditions change constantly, and what worked in the past may not work in the future. Always paper trade new strategies before risking real capital.
Heikin Ashi Overlay SuiteHeikin Ashi Overlay Suite is designed to give traders more control and clarity when working with Heikin Ashi candles — whether you're analyzing trend strength, reducing chart noise, or simply improving your visual read of market momentum. It works by layering multiple types of HA overlays and color systems on top of your standard candlestick chart — without switching chart types. With dynamic gradient coloring, smoothing options, and a predictive line tool, this script helps you see not just what the current trend is, but how strong it is, and what it would take to reverse it.
Heikin Ashi candles help reduce noise but this script goes further by:
➡️adding color intelligence that shows trend strength using a streak counter
➡️uses smoothing logic to clean up chop and whipsaws
➡️introduces a predictive close line — a subtle but powerful guide for anticipating trend flips before they happen
Everything is configurable: colors, candle sources, overlays, predictive tools, and line styles. It’s built for traders who want visual speed, but don’t want to sacrifice signal quality.
At its core, the script offers two powerful dropdown controls:
💥HA Color Scheme (Colors Regular Candles) — Applies Heikin Ashi-derived coloring to your regular candles based on trend direction or streak strength. This gives you instant visual context without switching to a separate chart type.
💥HA Candle Overlay Mode — Overlays actual Heikin Ashi-style candles directly on top of your chart, using your preferred source:
➡️Custom HA candles using internal formula logic
➡️TradingView’s built-in Heikin Ashi source with your own colors
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
🎨 Custom + Gradient HA Coloring🎨
See trend strength at a glance:
➡️1–4 bar streaks → lighter tone
➡️5–8 bars → medium tone
➡️9+ bars → bold tone, ideal for momentum-based entries, exits, or scaling strategies
→ Choose from:
➡️Your own custom color set
➡️A simple 2-color base mode
➡️Or a 3-level gradient for progressive trend analysis (using the streak counter)
🏛️ TradingView Official Heikin Ashi Overlay
Prefer native HA candles but want your own colors?
This mode plots TradingView's Heikin Ashi source, with your personal bullish/bearish color scheme.
➡️Ensures consistency with built-in charts while still leveraging your visual style.
🌊 Smoothed Heikin Ashi Candles — Clarity in Chaos🌊
These aren’t your standard HA candles. Smoothed Heikin Ashi uses a two-step EMA process to transform chaotic price action into a cleaner, slower-moving trend structure:
🔹 First, it smooths the raw OHLC data using EMA — filtering out minor price fluctuations.
🔹 Then, it applies the Heikin Ashi transformation on top of the smoothed data.
🔹 Finally, it applies a second EMA smoothing pass to the HA values — creating ultra-smooth candles.
📈 What You See:
Trends appear more fluid and consistent.
Choppy ranges and fakeouts are visually suppressed.
Minor pullbacks within a trend are de-emphasized, helping you avoid premature exits.
🎯 Best For:
Swing traders looking to stay in positions longer.
Intraday traders dealing with volatile or noisy instruments.
Anyone who wants a "trend map" overlay without the distractions of raw price action.
✅ Reduces whipsaws
✅ Delivers high-contrast trend zones
✅ Makes reversals more visually apparent (but with a slight lag)
📍 Predictive Close Line📍
Shows where the real close must land to flip the current HA candle's color.
✅ Use it like predictive support/resistance
✅ Know if the trend is actually at risk
✅Visualize potential fakeouts or confirmation
Color-coded based on current HA direction (bullish, bearish, or neutral).
📈 Tick by tick & bar-to-bar Plots📈
Provides 2 plot types:
1)1 plot that tracks a bar tick by tick 
2)another plot that tracks the close from bar to bar
For the bar to bar plot, you can choose between 2 options:
✅Full Plot — continuous line colored by HA trend
✅Recent Segments — color just the last few bars (configurable) to reduce chart clutter
✅ Customize width, number of bars, and visibility
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
📘 How to Use this script📘
Imagine you're watching a choppy 15-minute chart on a volatile crypto pair — price action is messy, and it’s hard to tell if a trend is forming or just noise.
Here’s how to cut through the chaos using Heikin Ashi Overlay Suite:
🔹 Step 1: Enable "Smoothed HA Candles"
Start by turning on the smoothed candles. You’ll immediately notice the noise fades, and broader directional moves become easier to follow. It's like switching from static to clean trend zones.
🧠 Why: Smoothed HA uses a double EMA process that filters out small reversals and lets larger moves stand out. Perfect for sideways or jittery charts.
🔹 Step 2: Watch the Color Gradient Build
As the smoothed candles begin to align in one direction, the gradient coloring (1–4, 5–8, 9+ streaks) gives you an at-a-glance visual of how strong the trend is.
✅ If you see 9+ same-colored candles? You’re likely in a mature trend.
✅ If it resets often? You’re in chop — consider staying out.
🔹 Step 3: Use the Predictive Close Line for Anticipation
Now here’s the edge — this line tells you where the candle would have to close to flip colors.
📉 If price is hovering just above it during a bullish run — momentum may be weakening.
📈 If price bounces off it — the trend may be strengthening.
This is excellent for confirming entries, exits, or spotting early warning signs.
🔹 Step 4: Switch Between Candle Modes as Needed
You can flip between:
✅ Custom HA: Gradient candles with your colors
✅ TradingView HA: The official source with your styling
✅ None: Just color regular candles using the HA logic
Use what fits your style — everything is modular.
🔹 Step 5: Tune It to Your Chart
Lastly, tweak streak thresholds (currently only can do this within the source code), smoothing lengths, and line styles to match your timeframe and strategy.
🎯 Tailor The Settings to Fit Your Trading Style🎯
🔹 🧪 Scalper (1–5 min charts) 
If you’re trading fast intraday moves, you want quicker responsiveness and less lag.
Try these settings:
🔸Smoothing Lengths: Use lower values (e.g. len = 3, len2 = 5)
🔸Candle Mode: Use Custom HA or TV’s HA for real-time color flips
🔸Predictive Close Line: Great for ultra-fast anticipation of color reversals
🔸Line Mode: Use Recent Segments mode to track short bursts of trend
🔸Colors: Use high-contrast, opaque colors for clarity
✅ These settings help you catch micro-trends and flip signals faster, while still filtering out the worst of the noise.
🔹 🧪 Swing Trader (30m–4h charts and beyond)
If you’re looking for multi-hour or multi-day trend confirmation, prioritize clarity and staying in moves longer.
Recommended setup:
🔸Smoothing Lengths: Medium to high values (e.g. len = 8, len2 = 21)
🔸Candle Mode: Use Smoothed HA Candles to block out intrabar chop
🔸Gradient Colors: Enable to visualize trend maturity and strength
🔸Predictive Close Line: Helps confirm trend continuation or spot early reversals
🔸Line Mode: Use Full Plot Line for clean HA-based trend tracking
✅ These settings give you a calm, clean view of the bigger picture — ideal for holding positions longer and avoiding early exits.
🔧 This script isn’t just a chart overlay — it’s a visual trend engine.🔧
Ideal For:
🔶 Trend-followers who want clean, color-coded confirmation
🔶 Reversal traders spotting exhaustion via predictive flips
🔶 Scalpers filtering noise with lighter smoothing
🔶 Swing traders using smoothed visuals to hold longer
📌 Final Note
Heikin Ashi Overlay Pro is designed to help you see momentum, trend shifts, and market structure with greater clarity — not to predict price on its own. For best results:
✔️ Combine with support/resistance, moving averages, or price action patterns
✔️ Use Predictive Close as a confirmation tool, not a signal generator
✔️ Pair gradient colors with structure to gauge trend maturity
✔️ Always zoom out and check higher timeframes for context
🧠 Use this as part of a layered approach — not a standalone system.
🙏 Credits🙏
⚡HA logic based on SimpleCryptoLife
⚡Smoothed HA concept adapted from a script by Jackvmk
💡💡💡Turn logic into clarity. Structure into trades. And uncertainty into confidence.💡💡💡
[blackcat] L2 Trend LinearityOVERVIEW 
The L2 Trend Linearity indicator is a sophisticated market analysis tool designed to help traders identify and visualize market trend linearity by analyzing price action relative to dynamic support and resistance zones. This powerful Pine Script indicator utilizes the Arnaud Legoux Moving Average (ALMA) algorithm to calculate weighted price calculations and generate dynamic support/resistance zones that adapt to changing market conditions. By visualizing market zones through colored candles and histograms, the indicator provides clear visual cues about market momentum and potential trading opportunities. The script generates buy/sell signals based on zone crossovers, making it an invaluable tool for both technical analysis and automated trading strategies. Whether you're a day trader, swing trader, or algorithmic trader, this indicator can help you identify market regimes, support/resistance levels, and potential entry/exit points with greater precision.
 FEATURES 
Dynamic Support/Resistance Zones: Calculates dynamic support (bear market zone) and resistance (bull market zone) using weighted price calculations and ALMA smoothing
Visual Market Representation: Color-coded candles and histograms provide immediate visual feedback about market conditions
Smart Signal Generation: Automatic buy/sell signals generated from zone crossovers with clear visual indicators
Customizable Parameters: Four different ALMA smoothing parameters for various timeframes and trading styles
Multi-Timeframe Compatibility: Works across different timeframes from 1-minute to weekly charts
Real-time Analysis: Provides instant feedback on market momentum and trend direction
Clear Visual Cues: Green candles indicate bullish momentum, red candles indicate bearish momentum, and white candles indicate neutral conditions
Histogram Visualization: Blue histogram shows bear market zone (below support), aqua histogram shows bull market zone (above resistance)
Signal Labels: "B" labels mark buy signals (price crosses above resistance), "S" labels mark sell signals (price crosses below support)
Overlay Functionality: Works as an overlay indicator without cluttering the chart with unnecessary elements
Highly Customizable: All parameters can be adjusted to suit different trading strategies and market conditions
 HOW TO USE 
Add the Indicator to Your Chart
Open TradingView and navigate to your desired trading instrument
Click on "Indicators" in the top menu and select "New"
Search for "L2 Trend Linearity" or paste the Pine Script code
Click "Add to Chart" to apply the indicator
Configure the Parameters
ALMA Length Short: Set the short-term smoothing parameter (default: 3). Lower values provide more responsive signals but may generate more false signals
ALMA Length Medium: Set the medium-term smoothing parameter (default: 5). This provides a balance between responsiveness and stability
ALMA Length Long: Set the long-term smoothing parameter (default: 13). Higher values provide more stable signals but with less responsiveness
ALMA Length Very Long: Set the very long-term smoothing parameter (default: 21). This provides the most stable support/resistance levels
Understand the Visual Elements
Green Candles: Indicate bullish momentum when price is above the bear market zone (support)
Red Candles: Indicate bearish momentum when price is below the bull market zone (resistance)
White Candles: Indicate neutral market conditions when price is between support and resistance zones
Blue Histogram: Shows bear market zone when price is below support level
Aqua Histogram: Shows bull market zone when price is above resistance level
"B" Labels: Mark buy signals when price crosses above resistance
"S" Labels: Mark sell signals when price crosses below support
Identify Market Regimes
Bullish Regime: Price consistently above resistance zone with green candles and aqua histogram
Bearish Regime: Price consistently below support zone with red candles and blue histogram
Neutral Regime: Price oscillating between support and resistance zones with white candles
Generate Trading Signals
Buy Signals: Look for price crossing above the bull market zone (resistance) with confirmation from green candles
Sell Signals: Look for price crossing below the bear market zone (support) with confirmation from red candles
Confirmation: Always wait for confirmation from candle color changes before entering trades
Optimize for Different Timeframes
Scalping: Use shorter ALMA lengths (3-5) for 1-5 minute charts
Day Trading: Use medium ALMA lengths (5-13) for 15-60 minute charts
Swing Trading: Use longer ALMA lengths (13-21) for 1-4 hour charts
Position Trading: Use very long ALMA lengths (21+) for daily and weekly charts
 LIMITATIONS 
Whipsaw Markets: The indicator may generate false signals in choppy, sideways markets where price oscillates rapidly between support and resistance
Lagging Nature: Like all moving average-based indicators, there is inherent lag in the calculations, which may result in delayed signals
Not a Standalone Tool: This indicator should be used in conjunction with other technical analysis tools and risk management strategies
Market Structure Dependency: Performance may vary depending on market structure and volatility conditions
Parameter Sensitivity: Different markets may require different parameter settings for optimal performance
No Volume Integration: The indicator does not incorporate volume data, which could provide additional confirmation signals
Limited Backtesting: Pine Script limitations may restrict comprehensive backtesting capabilities
Not Suitable for All Instruments: May perform differently on stocks, forex, crypto, and futures markets
Requires Confirmation: Signals should always be confirmed with other indicators or price action analysis
Not Predictive: The indicator identifies current market conditions but does not predict future price movements
 NOTES 
ALMA Algorithm: The indicator uses the Arnaud Legoux Moving Average (ALMA) algorithm, which is known for its excellent smoothing capabilities and reduced lag compared to traditional moving averages
Weighted Price Calculations: The bear market zone uses (2low + close) / 3, while the bull market zone uses (high + 2close) / 3, providing more weight to recent price action
Dynamic Zones: The support and resistance zones are dynamic and adapt to changing market conditions, making them more responsive than static levels
Color Psychology: The color scheme follows traditional trading psychology - green for bullish, red for bearish, and white for neutral
Signal Timing: The signals are generated on the close of each bar, ensuring they are based on complete price action
Label Positioning: Buy signals appear below the bar (red "B" label), while sell signals appear above the bar (green "S" label)
Multiple Timeframes: The indicator can be applied to multiple timeframes simultaneously for comprehensive analysis
Risk Management: Always use proper risk management techniques when trading based on indicator signals
Market Context: Consider the overall market context and trend direction when interpreting signals
Confirmation: Look for confirmation from other indicators or price action patterns before entering trades
Practice: Test the indicator on historical data before using it in live trading
Customization: Feel free to experiment with different parameter combinations to find what works best for your trading style
 THANKS 
Special thanks to the TradingView community and the Pine Script developers for creating such a powerful and flexible platform for technical analysis. This indicator builds upon the foundation of the ALMA algorithm and various moving average techniques developed by technical analysis pioneers. The concept of dynamic support and resistance zones has been refined over decades of market analysis, and this script represents a modern implementation of these timeless principles. We acknowledge the contributions of all traders and developers who have contributed to the evolution of technical analysis and continue to push the boundaries of what's possible with algorithmic trading tools.
Savitzky-Golay Hampel Filter | AlphaNattSavitzky-Golay Hampel Filter | AlphaNatt 
A revolutionary indicator combining  NASA's satellite data processing  algorithms with  robust statistical outlier detection  to create the most scientifically advanced trend filter available on TradingView.
 "This is the same mathematics that processes signals from the Hubble Space Telescope and analyzes data from the Large Hadron Collider - now applied to financial markets." 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 🚀 SCIENTIFIC PEDIGREE 
 Savitzky-Golay Filter Applications: 
 
 NASA:  Satellite telemetry and space probe data processing
 CERN:  Particle physics data analysis at the LHC
 Pharmaceutical:  Chromatography and spectroscopy analysis
 Astronomy:  Processing signals from radio telescopes
 Medical:  ECG and EEG signal processing
 
 Hampel Filter Usage: 
 
 Aerospace:  Cleaning sensor data from aircraft and spacecraft
 Manufacturing:  Quality control in precision engineering
 Seismology:  Earthquake detection and analysis
 Robotics:  Sensor fusion and noise reduction
 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 🧬 THE MATHEMATICS 
 1. Savitzky-Golay Filter 
The SG filter performs  local polynomial regression  on data points:
 
 Fits a polynomial of degree  n  to a sliding window of data
 Evaluates the polynomial at the center point
 Preserves higher moments (peaks, valleys) unlike moving averages
 Maintains derivative information for true momentum analysis
 Originally published in  Analytical Chemistry  (1964)
 
 Mathematical Properties: 
 
 Optimal smoothing  in the least-squares sense
 Preserves statistical moments  up to polynomial order
 Exact derivative calculation  without additional lag
 Superior frequency response  vs traditional filters
 
 2. Hampel Filter 
A robust outlier detector based on  Median Absolute Deviation  (MAD):
 
 Identifies outliers using robust statistics
 Replaces spurious values with polynomial-fitted estimates
 Resistant to up to 50% contaminated data
 MAD is 1.4826 times more robust than standard deviation
 
 Outlier Detection Formula: 
 |x - median| > k × 1.4826 × MAD 
Where k is the threshold parameter (typically 3 for 99.7% confidence)
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 💎 WHY THIS IS SUPERIOR 
 vs Moving Averages: 
 
 Preserves peaks and valleys (critical for catching tops/bottoms)
 No lag penalty for smoothness
 Maintains derivative information
 Polynomial fitting > simple averaging
 
 vs Other Filters: 
 
 Outlier immunity (Hampel component)
 Scientifically optimal smoothing
 Preserves higher-order features
 Used in billion-dollar research projects
 
 Unique Advantages: 
 
 Feature Preservation:  Maintains market structure while smoothing
 Spike Immunity:  Ignores false breakouts and stop hunts
 Derivative Accuracy:  True momentum without additional indicators
 Scientific Validation:  60+ years of academic research
 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 ⚙️ PARAMETER OPTIMIZATION 
 1. Polynomial Order (2-5) 
 
 2 (Quadratic):  Maximum smoothing, gentle curves
 3 (Cubic):  Balanced smoothing and responsiveness  (recommended) 
 4-5 (Higher):  More responsive, preserves more features
 
 2. Window Size (7-51) 
 
 Must be odd number
 Larger = smoother but more lag
 Formula: 2×(desired smoothing period) + 1
 Default 21 = analyzes 10 bars each side
 
 3. Hampel Threshold (1.0-5.0) 
 
 1.0:  Aggressive outlier removal (68% confidence)
 2.0:  Moderate outlier removal (95% confidence)
 3.0:  Conservative outlier removal (99.7% confidence)  (default) 
 4.0+:  Only extreme outliers removed
 
 4. Final Smoothing (1-7) 
 
 Additional WMA smoothing after filtering
 1 = No additional smoothing
 3-5 = Recommended for most timeframes
 7 = Ultra-smooth for position trading
 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 📊 TRADING STRATEGIES 
 Signal Recognition: 
 
 Cyan Line:  Bullish trend with positive derivative
 Pink Line:  Bearish trend with negative derivative
 Color Change:  Trend reversal with polynomial confirmation
 
 1. Trend Following Strategy 
 
 Enter when price crosses above cyan filter
 Exit when filter turns pink
 Use filter as dynamic stop loss
 Best in trending markets
 
 2. Mean Reversion Strategy 
 
 Enter long when price touches filter from below in uptrend
 Enter short when price touches filter from above in downtrend
 Exit at opposite band or filter color change
 Excellent for range-bound markets
 
 3. Derivative Strategy (Advanced) 
 
 The SG filter preserves derivative information
 Acceleration = second derivative > 0
 Enter on positive first derivative + positive acceleration
 Exit on negative second derivative (momentum slowing)
 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 📈 PERFORMANCE CHARACTERISTICS 
 Strengths: 
 
 Outlier Immunity:  Ignores stop hunts and flash crashes
 Feature Preservation:  Catches tops/bottoms better than MAs
 Smooth Output:  Reduces whipsaws significantly
 Scientific Basis:  Not curve-fitted or optimized to markets
 
 Considerations: 
 
 Slight lag in extreme volatility (all filters have this)
 Requires odd window sizes (mathematical requirement)
 More complex than simple moving averages
 Best with liquid instruments
 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 🔬 SCIENTIFIC BACKGROUND 
 Savitzky-Golay Publication: 
 "Smoothing and Differentiation of Data by Simplified Least Squares Procedures" 
- Abraham Savitzky & Marcel Golay
- Analytical Chemistry, Vol. 36, No. 8, 1964
 Hampel Filter Origin: 
 "Robust Statistics: The Approach Based on Influence Functions" 
- Frank Hampel et al., 1986
- Princeton University Press
These techniques have been validated in thousands of scientific papers and are standard tools in:
 
 NASA's Jet Propulsion Laboratory
 European Space Agency
 CERN (Large Hadron Collider)
 MIT Lincoln Laboratory
 Max Planck Institutes
 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 💡 ADVANCED TIPS 
 
 News Trading:  Lower Hampel threshold before major events to catch spikes
 Scalping:  Use Order=2 for maximum smoothness, Window=11 for responsiveness
 Position Trading:  Increase Window to 31+ for long-term trends
 Combine with Volume:  Strong trends need volume confirmation
 Multiple Timeframes:  Use daily for trend, hourly for entry
 Watch the Derivative:  Filter color changes when first derivative changes sign
 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 ⚠️ IMPORTANT NOTICES 
 
 Not financial advice - educational purposes only
 Past performance does not guarantee future results
 Always use proper risk management
 Test settings on your specific instrument and timeframe
 No indicator is perfect - part of complete trading system
 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 🏆 CONCLUSION 
The Savitzky-Golay Hampel Filter represents the  pinnacle of scientific signal processing  applied to financial markets. By combining polynomial regression with robust outlier detection, traders gain access to the same mathematical tools that:
 
 Guide spacecraft to other planets
 Detect gravitational waves from black holes
 Analyze particle collisions at near light-speed
 Process signals from deep space
 
This isn't just another indicator - it's  rocket science for trading .
 "When NASA needs to separate signal from noise in billion-dollar missions, they use these exact algorithms. Now you can too." 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 Developed by AlphaNatt 
 Version:  1.0
 Release:  2025
 Pine Script:  v6
 "Where Space Technology Meets Market Analysis" 
 Not financial advice. Always DYOR
Advanced Pattern Detection System [50+ Patterns]【Advanced Pattern Detection System - Auto-detects 50+ Chart Patterns】
Introducing the most powerful pattern detection indicator for TradingView!
◆ What is this?
An automated tool that finds and displays over 50 chart patterns on your charts. It detects all the patterns professional traders use - Double Tops, Triangles, Head & Shoulders, and more - all in ONE indicator.
◆ Main Features
・Detects 50+ patterns in real-time
・Shows visual explanation of WHY each pattern was identified
・Automatically calculates theoretical target prices
・Displays confidence levels in % (60-95%)
・Choose panel position from 9 locations
・Works on all timeframes (1min to Monthly)
◆ Detectable Patterns
1. Classic Patterns (Double Top/Bottom, Head & Shoulders, etc.)
2. Triangle Patterns (Ascending, Descending, Symmetrical, Expanding)
3. Continuation Patterns (Flags, Pennants, Wedges, etc.)
4. Harmonic Patterns (Gartley, Butterfly, Bat, etc.)
5. Price Action (Pin Bar, Engulfing, Hammer, etc.)
6. Special Patterns (Cup & Handle, V-formations, etc.)
◆ What Makes It Different
・Not just detection - shows the reasoning behind it
・Auto-draws pivot points and necklines
・Displays target prices with % gain/loss from current price
・Detects multiple patterns simultaneously, sorted by confidence
・Available in both Japanese and English versions
◆ Perfect For
✓ Anyone tired of using multiple indicators
✓ Beginners wanting to learn pattern trading
✓ Traders who don't want to miss entry points
✓ Those looking to improve discretionary trading accuracy
◆ How to Use (Easy 3 Steps)
1. Open TradingView and paste code in Pine Editor
2. Click "Add to Chart"
3. Enable only the patterns you need in settings
◆ Color Meanings
Green → Bullish potential (Buy signal)
Red → Bearish potential (Sell signal)
Yellow → Neutral direction (Wait and see)
◆ Recommended Settings
Scalping: Detection period 20, Sensitivity 0.0025
Day Trading: Detection period 50, Sensitivity 0.002
Swing Trading: Detection period 100, Sensitivity 0.0015
◆ Real Trading Example
"Detects Double Bottom → 85% confidence → Enter on neckline break → Take profit at displayed target price"
This is how you can use it in practice.
◆ Important Notes
・This is an analysis tool, not investment advice
・Always combine with other indicators
・Always set stop losses
・Practice on demo account before live trading
◆ Performance
If running slow, turn OFF unused pattern categories. Reducing max display count to 3 also helps.
◆ Summary
This single tool provides functionality that would normally require multiple paid indicators (worth $100-200 total). It's the ultimate pattern detection system recommended for all traders, from beginners to professionals.
Give it a try if interested! Feel free to ask questions in the comments.
RSI deyvidholnik
📊 Overview
RSI deyvidholnik is an advanced technical indicator that combines the power of traditional RSI (Relative Strength Index) with automatic divergence detection to identify potential market reversal points. This indicator was developed by kingthies and offers clear visual analysis of overbought/oversold conditions along with highly precise divergence signals.
🔧 Key Features
Customizable RSI
Data Source: Configurable (default: close)
Period: Adjustable (default: 14)
Moving Average: Multiple types available (SMA, EMA, SMMA, WMA, VWMA, MMS)
MA Period: Configurable (default: 14)
Divergence Detection
The indicator identifies four types of divergences:
🟢 Bullish Divergence
Occurs when price makes lower lows, but RSI makes higher lows
Indicates possible trend reversal from bearish to bullish
Signaled with green dots on RSI
🔴 Bearish Divergence
Occurs when price makes higher highs, but RSI makes lower highs
Indicates possible trend reversal from bullish to bearish
Signaled with red dots on RSI
🟢 Hidden Bullish Divergence (Optional)
Price makes higher lows while RSI makes lower lows
Confirms continuation of bullish trend
Useful in trending markets
🔴 Hidden Bearish Divergence (Optional)
Price makes lower highs while RSI makes higher highs
Confirms continuation of bearish trend
Useful in trending markets
⚙️ Pivot Settings
Optimized Default Configuration
Right Bars: 1 (quick confirmation)
Left Bars: 5 (noise filtering)
Maximum Bars Between Pivots: 60
Minimum Bars Between Pivots: 3
These settings have been adjusted to provide:
✅ Faster and more responsive signals
✅ Reduction of false signals
✅ Better identification of significant pivots
🎨 Visual Interface
RSI Levels
Line 70: Overbought zone (red)
Line 50: Neutral centerline
Line 30: Oversold zone (green)
Gradient fill: Visually intensifies extreme zones
Graphical Elements
RSI: Main line in white
Moving Average: Smoothed yellow line
Divergence Points: Colored markers on pivots
Background: Subtle fill for better readability
📈 How to Use
For Reversal Trading
Enable only: Bullish and Bearish (default)
Look for: Divergences in overbought/oversold zones
Confirm with: Other indicators or price analysis
For Trend Trading
Enable: Hidden Bull and Hidden Bear
Use in: Markets with clear established trends
Combine with: Market structure analysis
Alert Configuration
The indicator includes automatic alerts for:
⚠️ Bullish Divergence
⚠️ Bearish Divergence
⚠️ Hidden Bullish Divergence
⚠️ Hidden Bearish Divergence
💡 Main Advantages
✅ Automatic Detection: Identifies divergences without manual interpretation
✅ Optimized Configuration: Default values tested for maximum efficiency
✅ Clean Interface: Clear and professional visual
✅ Integrated Alerts: Automatic signal notifications
✅ Flexibility: Multiple customization options
✅ Performance: Optimized code for efficient execution
🎯 Recommended Timeframes
Scalping: 1m, 5m (with more sensitive settings)
Intraday: 15m, 30m, 1h (default configuration)
Swing: 4h, 1D (for medium-term signals)
⚠️ Important Considerations
Not infallible: Always use in conjunction with other analysis methods
Sideways markets: More effective in markets with directional movement
Confirmation: Always wait for signal confirmation before trading
Risk management: Always implement adequate stop-loss and take-profit
IBS markerIndicator Description
This indicator provides a detailed analysis of the structure and volatility of each candlestick. It is designed to help traders better understand the balance between buying and selling pressure within individual bars, as well as the short-term volatility environment.
📌 Features
Candlestick Structure Analysis
Calculates the relative percentage of the upper wick, lower wick, and real body of each candle.
Helps traders visually and numerically evaluate whether a candle is dominated by bullish, bearish, or indecisive pressure.
IBS (Intraday Bar Strength)
Computes the Intraday Bar Strength value, showing where the close is located relative to the high-low range.
A high IBS indicates strong closing near the high, while a low IBS indicates weakness near the low.
Range Measurements
Displays the candlestick range in both price units and ticks.
Useful for traders who need precise range data for scalping or range-based strategies.
ATR (Average True Range) Volatility Filter
ATR is included with a configurable period setting.
Provides a contextual measure of volatility, helping traders compare current bar size against recent market behavior.
Dynamic Chart Labels
Key values (such as wick percentages, IBS, and range) are displayed directly on the chart through dynamic labels.
This allows for quick interpretation without opening extra panels or indicators.
📈 How to Use
Add the indicator to any chart and configure the settings (ATR period, label visibility, etc.) according to your trading style.
Use wick/body ratios to spot candles with unusual buying/selling pressure.
Combine IBS with ATR to identify potential exhaustion or continuation setups.
The dynamic labels are best used on lower timeframes for scalpers, but they can also provide insights on higher timeframes for swing traders.
🔍 Practical Applications
Identify reversal candles where one wick dominates.
Measure strength of breakouts by comparing candle body % and IBS values.
Detect volatility shifts by monitoring when bar ranges deviate from the ATR baseline.
Support scalping strategies that rely on tick-based range detection.
✅ Notes
This is a standalone indicator and does not require any other script to function.
Works on all markets (stocks, futures, forex, crypto).
For best results, use in conjunction with price action analysis or your preferred trading strategy.
IBS_WickandBody_ATRIndicator Description
This indicator provides a detailed analysis of the structure and volatility of each candlestick. It is designed to help traders better understand the balance between buying and selling pressure within individual bars, as well as the short-term volatility environment.
📌 Features
Candlestick Structure Analysis
Calculates the relative percentage of the upper wick, lower wick, and real body of each candle.
Helps traders visually and numerically evaluate whether a candle is dominated by bullish, bearish, or indecisive pressure.
IBS (Intraday Bar Strength)
Computes the Intraday Bar Strength value, showing where the close is located relative to the high-low range.
A high IBS indicates strong closing near the high, while a low IBS indicates weakness near the low.
Range Measurements
Displays the candlestick range in both price units and ticks.
Useful for traders who need precise range data for scalping or range-based strategies.
ATR (Average True Range) Volatility Filter
ATR is included with a configurable period setting.
Provides a contextual measure of volatility, helping traders compare current bar size against recent market behavior.
Dynamic Chart Labels
Key values (such as wick percentages, IBS, and range) are displayed directly on the chart through dynamic labels.
This allows for quick interpretation without opening extra panels or indicators.
📈 How to Use
Add the indicator to any chart and configure the settings (ATR period, label visibility, etc.) according to your trading style.
Use wick/body ratios to spot candles with unusual buying/selling pressure.
Combine IBS with ATR to identify potential exhaustion or continuation setups.
The dynamic labels are best used on lower timeframes for scalpers, but they can also provide insights on higher timeframes for swing traders.
🔍 Practical Applications
Identify reversal candles where one wick dominates.
Measure strength of breakouts by comparing candle body % and IBS values.
Detect volatility shifts by monitoring when bar ranges deviate from the ATR baseline.
Support scalping strategies that rely on tick-based range detection.
✅ Notes
This is a standalone indicator and does not require any other script to function.
Works on all markets (stocks, futures, forex, crypto).
For best results, use in conjunction with price action analysis or your preferred trading strategy.
RSI Dynamic Bands█ OVERVIEW
The "RSI Dynamic Bands" indicator is a variant of the Relative Strength Index (RSI) oscillator that brings its signals directly onto the price chart. It displays dynamic bands around the price, adjusted based on RSI levels, enabling easy identification of potential overbought or oversold conditions. The indicator also integrates a multi-timeframe RSI table, facilitating the analysis of trend strength across different timeframes.
█ CONCEPTS
The "RSI Dynamic Bands" indicator is designed to simplify the interpretation of price levels in the context of support and resistance zones, which can be correlated with other technical indicators and RSI values. Since the price itself does not display RSI values, a table showing RSI for four selected timeframes has been added, allowing traders to quickly assess trend strength across different time intervals. The most effective approach is to combine the indicator with other technical analysis tools, such as Fibonacci levels or pivot points, to confirm signals when the price approaches the bands and RSI values indicate a potential reversal.
Band Calculation
The bands are calculated based on the current closing price and RSI values, incorporating dynamic scaling to better adapt to market conditions. The formulas for the bands are as follows:
 • Upper Band: close + (rsiUpper - rsi) * scaleFactor, where rsiUpper is the upper RSI level (default: 70), and scaleFactor accounts for market volatility.
 • Lower Band: close + (rsiLower - rsi) * scaleFactor, where rsiLower is the lower RSI level (default: 30).
 • Midline: The arithmetic average of the upper and lower bands: (upperBand + lowerBand) / 2.
Why Scaling? Without scaling, the bands would be chaotic and jagged, making them difficult to interpret. Scaling smooths the bands, making them wider during periods of high volatility and narrower during consolidation, better reflecting potential support and resistance levels.
Indicator Features
 • Dynamic Price Bands: The bands adapt to market conditions, facilitating the identification of key price levels.
 • Multi-Timeframe RSI Table: Displays RSI values for four selected timeframes (default: 15m, 1h, 4h, Daily), enabling comparison of trend strength across different perspectives.
 • Style Customization: Users can adjust band colors, line thickness, and toggle the visibility of bands, fills, and the table.
How to Set Up the Indicator
1 — Add the "RSI Dynamic Bands" indicator to your TradingView chart.
2 — Configure parameters in the settings, such as RSI length, upper/lower levels, and scaling multiplier, to match your trading style.
3 — Enable or disable the display of bands, fills, or the RSI table based on your needs.
4 — Adjust band and table colors in the input section and line thickness in the "Style" section to better align the indicator with your chart.
█ OTHER SECTIONS
FEATURES
 • RSI Length: The period for calculating RSI (default: 14).
 • RSI Levels: Thresholds for overbought (default: 70) and oversold (default: 30).
 • Scaling Multiplier: Adjusts bands based on market volatility (default: 0.15).
 • Table Timeframes: Select four timeframes for the RSI table (default: 15m, 1h, 4h, Daily).
 • Style Options: Customize band colors, fills, table, and line thickness.
HOW TO USE
Add the indicator to your chart, configure the parameters, and observe price interactions with the bands to identify potential entry and exit points. The RSI table allows you to compare RSI values across different timeframes, aiding in trading decisions. The most effective approach is to combine the indicator with other technical analysis tools, such as Fibonacci levels or pivot points, to confirm signals when the price approaches the bands and RSI values indicate a potential reversal.
Trading Strategies:
 • Scalping: Use lower timeframes (e.g., 5m, 15m) in the RSI table to quickly identify short-term lows and highs. Wait for the price to approach the lower band in the RSI oversold zone, with RSI on lower timeframes starting to rise, and other tools, such as Fibonacci levels (e.g., 38.2%) or pivot points, confirming support.
 • Medium-Term Trading: Focus on 1h and 4h timeframes. Look for confirmation of a low on a lower timeframe (e.g., 1h), where RSI indicates oversold conditions or starts rising, then check if RSI on a higher timeframe (e.g., 4h) confirms the trend. Confirmation from other tools, such as a Fibonacci level (e.g., 50%) or pivot point near the bands, strengthens the signal.
 • Long-Term Trading: Use Daily and higher timeframes (e.g., Weekly). Wait for all relevant timeframes to confirm a low (e.g., RSI near oversold and price at the lower band), with lower timeframes (e.g., 4h) showing rising RSI. Other tools, such as Fibonacci levels (e.g., 61.8%) or pivot points near the bands, can further confirm a trend reversal signal.
Dip Hunter [BackQuant]Dip Hunter  
 What this tool does in plain language 
Dip Hunter is a pullback detector designed to find high quality buy-the-dip opportunities inside healthy trends and to avoid random knife catches. It watches for a quick drop from a recent high, checks that the drop happened with meaningful participation and volatility, verifies short-term weakness inside a larger uptrend, then scores the setup and paints the chart so you can act with confidence. It also draws clean entry lines, provides a meter that shows dip strength at a glance, and ships with alerts that match common execution workflows.
 How Dip Hunter thinks 
It defines a recent swing reference, measures how far price has dipped off that high, and only looks at candidates that meet your minimum percentage drop.
It confirms the dip with real activity by requiring a volume spike and a volatility spike.
It checks structure with two EMAs. Price should be weak in the short term while the larger context remains constructive.
It optionally requires a higher-timeframe trend to be up so you focus on pullbacks in trending markets.
It bundles those checks into a score and shows you the score on the candles and on a gradient meter.
When everything lines up it paints a green triangle below the bar, shades the background, and (if you wish) draws a horizontal entry line at your chosen level.
 Inputs and what they mean 
 Dip Hunter Settings 
•  Vol Lookback  and  Vol Spike : The script computes an average volume over the lookback window and flags a spike when current volume is a multiple of that average. A multiplier of 2.0 means today’s volume must be at least double the average. This helps filter noise and focuses on dips that other traders actually traded.
•  Fast EMA  and  Slow EMA : Short-term and medium-term structure references. A dip is more credible if price closes below the fast EMA while the fast EMA is still below the slow EMA during the pullback. That is classic corrective behavior inside a larger trend.
•  Price Smooth : Optional smoothing length for price-derived series. Use this if you trade very noisy assets or low timeframes.
•  Volatility Len  and  Vol Spike (volatility) : The script checks both standard deviation and true range against their own averages. If either expands beyond your multiplier the market confirms the move with range.
•  Dip %  and  Lookback Bars : The engine finds the highest high over the lookback window, then computes the percentage drawdown from that high to the current close. Only dips larger than your threshold qualify.
 Trend Filter 
•  Enable Trend Filter : When on, Dip Hunter will only trigger if the market is in an uptrend.
•  Trend EMA Period : The longer EMA that defines the session’s backbone trend.
•  Minimum Trend Strength : A small positive slope requirement. In practice this means the trend EMA should be rising, and price should be above it. You can raise the value to be more selective.
 Entries 
•  Show Entry Lines : Draws a horizontal guide from the signal bar for a fixed number of bars. Great for limit orders, scaling, or re-tests.
•  Line Length (bars) : How far the entry guide extends.
•  Min Gap (bars) : Suppresses new entry lines if another dip fired recently. Prevents clutter during choppy sequences.
•  Entry Price : Choose the line level. “Low” anchors at the signal candle’s low. “Close” anchors at the signal close. “Dip % Level” anchors at the theoretical level defined by recent_high × (1 − dip%). This lets you work resting orders at a consistent discount.
 Heat / Meter 
•  Color Bars by Score : Colors each candle using a red→white→green gradient. Red is overheated, green is prime dip territory, white is neutral.
•  Show Meter Table : Adds a compact gradient strip with a pointer that tracks the current score.
•  Meter Cells  and  Meter Position : Resolution and placement of the meter.
 UI Settings 
•  Show Dip Signals : Plots green triangles under qualifying bars and tints the background very lightly.
•  Show EMAs : Plots fast, slow, and the trend EMA (if the trend filter is enabled).
•  Bullish, Bearish, Neutral colors : Theme controls for shapes, fills, and bar painting.
 Core calculations explained simply 
 Recent high and dip percent 
The script finds the highest high over  Lookback Bars , calls it “recent high,” then calculates:
dip% = (recent_high − close) ÷ recent_high × 100.
If dip% is larger than  Dip % , condition one passes.
 Volume confirmation 
It computes a simple moving average of volume over  Vol Lookback . If current volume ÷ average volume >  Vol Spike , we have a participation spike. It also checks 5-bar ROC of volume. If ROC > 50 the spike is forceful. This gets an extra score point.
 Volatility confirmation 
Two independent checks:
• Standard deviation of closes vs its own average.
• True range vs ATR.
If either expands beyond  Vol Spike (volatility)  the move has range. This prevents false triggers from quiet drifts.
 Short-term structure 
Price should close below the  Fast EMA  and the fast EMA should be below the  Slow EMA  at the moment of the dip. That is the anatomy of a pullback rather than a full breakdown.
 Macro trend context (optional) 
When  Enable Trend Filter  is on, the  Trend EMA  must be rising and price must be above it. The logic prefers “micro weakness inside macro strength” which is the highest probability pattern for buying dips.
 Signal formation 
A valid dip requires:
• dip% > threshold
• volume spike true
• volatility spike true
• close below fast EMA
• fast EMA below slow EMA
If the trend filter is enabled, a rising trend EMA with price above it is also required. When all true, the triangle prints, the background tints, and optional entry lines are drawn.
 Scoring and visuals 
 Binary checks into a continuous score 
Each component contributes to a score between 0 and 1. The script then rescales to a centered range (−50 to +50).
• Low or negative scores imply “overheated” conditions and are shaded toward red.
• High positive scores imply “ripe for a dip buy” conditions and are shaded toward green.
• The gradient meter repeats the same logic, with a pointer so you can read the state quickly.
 Bar coloring 
If you enable “Color Bars by Score,” each candle inherits the gradient. This makes sequences obvious. Red clusters warn you not to buy. White means neutral. Increasing green suggests the pullback is maturing.
 EMAs and the trend EMA 
• Fast EMA turns down relative to the slow EMA inside the pullback.
• Trend EMA stays rising and above price once the dip exhausts, which is your cue to focus on long setups rather than bottom fishing in downtrends.
 Entry lines 
When a fresh signal fires and no other signal happened within  Min Gap (bars) , the indicator draws a horizontal level for  Line Length  bars. Use these lines for limit entries at the low, at the close, or at the defined dip-percent level. This keeps your plan consistent across instruments.
 Alerts and what they mean 
•  Market Overheated : Score is deeply negative. Do not chase. Wait for green.
•  Close To A Dip : Score has reached a healthy level but the full signal did not trigger yet. Prepare orders.
•  Dip Confirmed : First bar of a fresh validated dip. This is the most direct entry alert.
•  Dip Active : The dip condition remains valid. You can scale in on re-tests.
•  Dip Fading : Score crosses below 0.5 from above. Momentum of the setup is fading. Tighten stops or take partials.
•  Trend Blocked Signal : All dip conditions passed but the trend filter is offside. Either reduce risk or skip, depending on your plan.
 How to trade with Dip Hunter 
 Classic pullback in uptrend 
Turn on the trend filter.
Watch for a  Dip Confirmed  alert with green triangle.
Use the entry line at “Dip % Level” to stage a limit order. This keeps your entries consistent across assets and timeframes.
Initial stop under the signal bar’s low or under the next lower EMA band.
First target at prior swing high, second target at a multiple of risk.
If you use partials, trail the remainder under the fast EMA once price reclaims it.
 Aggressive intraday scalps 
Lower  Dip %  and  Lookback Bars  so you catch shallow flags.
Keep  Vol Spike  meaningful so you only trade when participation appears.
Take quick partials when price reclaims the fast EMA, then exit on  Dip Fading  if momentum stalls.
 Counter-trend probes 
Disable the trend filter if you intentionally hunt reflex bounces in downtrends.
Require strong volume and volatility confirmation.
Use smaller size and faster targets. The meter should move quickly from red toward white and then green. If it does not, step aside.
 Risk management templates 
 Stops 
• Conservative: below the entry line minus a small buffer or below the signal bar’s low.
• Structural: below the slow EMA if you aim for swing continuation.
• Time stop: if price does not reclaim the fast EMA within N bars, exit.
 Position sizing 
Use the distance between the entry line and your structural stop to size consistently. The script’s entry lines make this distance obvious.
 Scaling 
• Scale at the entry line first touch.
• Add only if the meter stays green and price reclaims the fast EMA.
• Stop adding on a  Dip Fading  alert.
 Tuning guide by market and timeframe 
 Equities daily 
• Dip %: 1.5 to 3.0
• Lookback Bars: 5 to 10
• Vol Spike: 1.5 to 2.5
• Volatility Len: 14 to 20
• Trend EMA: 100 or 200
• Keep trend filter on for a cleaner list.
 Futures and FX intraday 
• Dip %: 0.4 to 1.2
• Lookback Bars: 3 to 7
• Vol Spike: 1.8 to 3.0
• Volatility Len: 10 to 14
• Use Min Gap to avoid clusters during news.
 Crypto 
• Dip %: 3.0 to 6.0 for majors on higher timeframes, lower on 15m to 1h
• Lookback Bars: 5 to 12
• Vol Spike: 1.8 to 3.0
• ATR and stdev checks help in erratic sessions.
 Reading the chart at a glance 
• Green triangle below the bar: a validated dip.
• Light green background: the current bar meets the full condition.
• Bar gradient: red is overheated, white is neutral, green is dip-friendly.
• EMAs: fast below slow during the pullback, then reclaim fast EMA on the bounce for quality continuation.
• Trend EMA: a rising spine when the filter is on.
• Entry line: a fixed level to anchor orders and risk.
• Meter pointer: right side toward “Dip” means conditions are maturing.
 Why this combination reduces false positives 
Any single criterion will trigger too often. Dip Hunter demands a dip off a recent high plus a volume surge plus a volatility expansion plus corrective EMA structure. Optional trend alignment pushes odds further in your favor. The score and meter visualize how many of these boxes you are actually ticking, which is more reliable than a binary dot.
 Limitations and practical tips 
• Thin or illiquid symbols can spoof volume spikes. Use larger  Vol Lookback  or raise  Vol Spike .
• Sideways markets will show frequent small dips. Increase  Dip %  or keep the trend filter on.
• News candles can blow through entry lines. Widen stops or skip around known events.
• If you see many back-to-back triangles, raise  Min Gap  to keep only the best setups.
 Quick setup recipes 
• Clean swing trader: Trend filter on, Dip % 2.0 to 3.0, Vol Spike 2.0, Volatility Len 14, Fast 20 EMA, Slow 50 EMA, Trend 100 EMA.
• Fast intraday scalper: Trend filter off, Dip % 0.7 to 1.0, Vol Spike 2.5, Volatility Len 10, Fast 9 EMA, Slow 21 EMA, Min Gap 10 bars.
• Crypto swing: Trend filter on, Dip % 4.0, Vol Spike 2.0, Volatility Len 14, Fast 20 EMA, Slow 50 EMA, Trend 200 EMA.
 Summary 
Dip Hunter is a focused pullback engine. It quantifies a real dip off a recent high, validates it with volume and volatility expansion, enforces corrective structure with EMAs, and optionally restricts signals to an uptrend. The score, bar gradient, and meter make reading conditions instant. Entry lines and alerts turn that read into an executable plan. Tune the thresholds to your market and timeframe, then let the tool keep you patient in red, selective in white, and decisive in green.
Adaptive Weighted Regression Channel (AWRC)Short Description: 
The Adaptive Weighted Regression Channel (AWRC) is an advanced technical analysis tool that plots a dynamic regression channel based on the recent price action. The centerline is a linear regression (trendline) fitted to the selected price source over a rolling window. The channel boundaries are placed above and below the regression line by a user-selected multiple of the weighted standard deviation.
What makes AWRC unique is its ability to optionally weight each bar’s importance in the regression using Volume, ATR (Average True Range), or Recency Decay, offering a channel that can adapt to market volatility, participation, or trend acceleration.
 Parameter Explanations: 
length: Number of bars for the regression window (how many recent candles are included). Higher values = smoother, less sensitive channel.
StdDev Multiplier (mult): Controls the channel width. 2.0 is classic; higher = wider channels, lower = tighter.
Enable Weighting?: Turn ON to activate weighting of each bar. If OFF, all bars are equally weighted (classic regression channel).
Weight Type: Select what to use for weights (only active if Enable Weighting is ON):
 
 "Volume": Higher volume bars have more influence on the regression.
 "ATR": Bars with higher volatility (as measured by ATR) have more influence.
 "Decay": More recent bars are given more weight (controlled by Decay parameter).
 
Decay: If Weight Type is "Decay", this controls the rate of recency decay. (e.g. 0.98 = slow decay; 0.90 = fast decay; values close to 1 mean a longer memory.)
Source for the calculation (src): Selects which price is regressed. Default is hl2 (average of high and low); you can choose close, open, etc.
Recommended Parameters:
For general use: length = 34, mult = 2.0, Enable Weighting = OFF, src = hl2
For volume-aware channel: Enable Weighting = ON, Weight Type = "Volume"
For volatility sensitivity: Enable Weighting = ON, Weight Type = "ATR"
For extra focus on recent price: Enable Weighting = ON, Weight Type = "Decay", Decay = 0.95 or 0.98
For swing trading: length = 21–55, mult = 1.5–2.5
For intraday/scalping: length = 10–20, mult = 1.0–1.5
Usage Tips:
 
 The regression line shows the "best fit" trend for the selected window.
 
 The channel captures the typical range; price breaking outside the channel can signal strength, exhaustion, or breakout.
 
 Volume and ATR weighting help the channel adapt to market participation or volatility spikes.
 
 Decay weighting locks onto the most recent trend direction quickly.
 
 Adjust parameters to fit your timeframe and market volatility.
 
 Use AWRC to spot trending moves, reversals, or overextensions.
 
Try different weighting and channel settings to match your trading style!
RSI, CCI, ADX Panel (Custom TF for Each)RSI, CCI, and ADX Combined – Multi-Timeframe, Fully Customizable Panel Indicator for TradingView
Overview
This Pine Script indicator integrates the Relative Strength Index (RSI), Commodity Channel Index (CCI), and Average Directional Index (ADX) into a single, clean panel for effortless technical analysis. Each indicator operates independently, with customizable length, smoothing, and time frame for maximum flexibility. Traders can now monitor momentum, trend strength, and overbought/oversold conditions across different time frames—all in one place.
Key Features
Independent Controls: Set length, smoothing (ADX), and time frame individually for each indicator via the settings panel.
Multi-Timeframe Support: Each oscillator (RSI, CCI, ADX) can be calculated on its own time frame, enabling nuanced inter-timeframe analysis.
Customizable Visualization: Adjust line color and thickness for each indicator to match your chart style.
Clean, Non-Overlay Display: All three indicators are plotted in a dedicated panel beneath the price chart, reducing clutter.
Reference Levels: Includes standard reference lines for oversold/overbought (RSI, CCI) and trend threshold (ADX) for quick visual cues.
Usage Ideas
Swing Trading: Compare short- and long-term momentum using different time frames for RSI, CCI, and ADX.
Trend Confirmation: Use ADX to filter RSI and CCI signals—only trade overbought/oversold conditions during strong trends.
Divergence Hunting: Spot divergences between time frames for early reversal signals.
Scalping: Set RSI and CCI to lower time frames for entry, while monitoring higher timeframe ADX for trend context.
How to Install
Paste the script into the Pine Editor on TradingView.
Add to chart. Adjust settings as desired.
Save as a template for quick reuse on any chart—all your custom settings will be preserved.
Customization
Edit lengths and time frames in the indicator’s settings dialog.
Toggle reference lines on/off as needed.
Fine-tune line appearance (color, thickness) for clarity.
Note:
This indicator does not provide automated buy/sell signals. It is a customizable analytical tool for manual or semi-automated trading. Use in combination with other technical or fundamental analysis for best results.
Combine Momentum, Trend, and Volatility—Seamlessly and Visually—With One Indicator.
TREV Candles - Range-Based Trend ReversalTREV Candles - Range-Based Trend Reversal Chart Implementation 
 What is a Trend Reversal (TREV) Chart? 
A Trend Reversal chart, also known as a Point & Figure chart variation, is a unique charting method that focuses on  price movement thresholds  rather than time intervals. Unlike traditional candlestick charts where each candle represents a fixed time period, TREV candles form only when price moves by predefined amounts in ticks.
 
TREV charts eliminate time-based noise and focus purely on significant price movements, making them ideal for identifying genuine trend changes and continuation patterns.
 
 How TREV Candles Work 
This indicator implements true TREV logic with two critical thresholds:
 
 Trend Size:  The number of ticks price must move in the current direction to form a trend continuation candle
 Reversal Size:  The number of ticks price must move against the current direction to form a reversal candle and change the overall trend direction
 
 Key TREV Rules Enforced: 
 
 Direction Changes Only Through Reversals:  You cannot go from bullish trend directly to bearish trend - a reversal candle must occur first
 Threshold-Based Formation:  Candles form only when price thresholds are breached, not on time
 Logical Wick Placement:  Wicks only appear on the "open" side of candles where price temporarily moved against the formation direction
 Multiple Candles Per Bar:  When price moves significantly, several TREV candles can form within a single time-based bar
 
 Four Distinct Candle Types 
 
 Bullish Trend (Green):  Continues upward movement when trend threshold is hit
 Bearish Trend (Red):  Continues downward movement when trend threshold is hit  
 Bullish Reversal (Blue):  Changes from bearish to bullish direction when reversal threshold is breached
 Bearish Reversal (Orange):  Changes from bullish to bearish direction when reversal threshold is breached
 
 Practical Trading Applications 
 
 Trend Identification:  Clear visual representation of when trends are continuing vs. reversing
 Noise Reduction:  Filters out insignificant price movements that don't meet threshold requirements
 Support/Resistance:  TREV levels often act as significant support and resistance zones
 Breakout Confirmation:  When price forms multiple trend candles in succession, it confirms strong directional movement
 Reversal Signals:  Reversal candles provide early warning of potential trend changes
 
 Technical Implementation Features 
 
 Intelligent Price Path Processing:  Analyzes the assumed price path within each bar (Low→High→Close for bullish bars, High→Low→Close for bearish bars)
 Automatic Tick Size Detection:  Works with any instrument by automatically detecting the correct tick size
 Manual Override Option:  Allows manual tick size specification for custom analysis
 Impossible Scenario Prevention:  Built-in logic prevents impossible wick configurations and direction changes
 PineScript Optimization:  Efficient state management and drawing limits handling for smooth performance
 
 Comprehensive Styling Options 
Each of the four candle types offers complete visual customization:
 
 Body Colors:  Independent color settings for each candle type's body
 Border Colors:  Separate border color customization  
 Border Styles:  Choose from solid, dashed, or dotted borders
 Wick Colors:  Individual wick color settings for each candle type
 
 Default Color Scheme: 
 
 🟢  Bullish Trend:  Green body and wicks
 🔵  Bullish Reversal:  Blue body and wicks
 🔴  Bearish Trend:  Red body and wicks  
 🟠  Bearish Reversal:  Orange body and wicks
 
 Configuration Guidelines 
 
 Trend Size:  Larger values create fewer, more significant trend candles. Smaller values increase sensitivity
 Reversal Size:  Should typically be smaller than trend size. Controls how easily the trend direction can change
 Tick Size:  Use "auto" for most instruments. Manual override useful for custom point values or backtesting
 
 Ideal Use Cases 
 
 Swing Trading:  Identify major trend changes and continuation patterns
 Scalping:  Use smaller thresholds to catch quick reversals and momentum shifts  
 Position Trading:  Use larger thresholds to filter noise and focus on major trend moves
 Multi-Timeframe Analysis:  Compare TREV patterns across different threshold settings
 Support/Resistance Trading:  TREV close levels often become significant price zones
 
 Why This Implementation is Superior 
 
 True TREV Logic:  Enforces proper trend reversal rules that many implementations ignore
 No Impossible Scenarios:  Prevents wicks on both sides of candles and impossible direction changes
 Professional Visualization:  Clean, customizable appearance suitable for serious analysis
 Performance Optimized:  Handles large datasets without lag or drawing limit issues
 Educational Value:  Helps traders understand the difference between time-based and threshold-based charting
 
 Perfect for traders who want to see beyond time-based noise and focus on what price is actually doing - moving in significant, measurable amounts that matter for trading decisions.  
EMA Curl Strength+EMA Curl Strength+
Description:
This indicator provides a statistically normalized view of EMA slope momentum using Z-score transformation. By evaluating the rate of change of an EMA and comparing it against its historical behavior, the script highlights momentum shifts in a dynamic, adaptive way.
⸻
How It Works:
    •    Calculates the slope (percentage change) of a chosen EMA.
    •    Normalizes the slope using Z-score over a custom lookback period.
    •    Smooths the resulting signal and computes two signal lines for comparison.
    •    Assigns dynamic colors based on user-defined Z-score thresholds for mild, moderate, and strong momentum in both directions.
⸻
Visual Features:
    •    Gradient fill between the Z Curl Line and Signal 1 to highlight slope acceleration.
    •    Histogram showing the difference between the Z Curl Line and its signal.
    •    Optional signal crossover shapes between configurable pairs (e.g., Z Curl vs. Signal).
    •    Background highlights when the Z Curl Line exceeds ±2, indicating strong trending behavior.
⸻
Customization:
    •    Adjustable EMA length, smoothing lengths, signal lengths, histogram smoothing, and Z-score lookback.
    •    Separate color controls for:
    •    Z-score strength bands (mild/moderate/strong up/down)
    •    Histogram bars
    •    Signal lines
    •    Background highlight zones
    •    Crossover shapes
⸻
Use Cases:
    •    Momentum Confirmation: Confirm strength when Z Curl exceeds ±2 with matching background highlights.
    •    Trend Entry Timing: Look for trades when Z Curl crosses above or below the 0-line.
    •    Scalping: Capture quick directional moves when momentum accelerates.
    •    Trend Following: Use strong Z Curl values to confirm trade direction and filter sideways action.
    •    Divergence Detection: Spot divergences between price and Z Curl movement to anticipate reversals.
Pivot Channel LevelsPivot Channel Levels 
 Indicator Description 
“Pivot Channel Levels” is an advanced technical analysis tool that identifies key price pivots (highs and lows) and creates dynamic support and resistance levels based on the wicks of candles at these points (or bodies if wicks are minimal). The indicator analyzes the volume at the time of a pivot’s formation, displaying its value and percentage change relative to the volume’s simple moving average (SMA).  
It does not generate buy/sell signals but provides a clear visualization of market structure, helping traders identify potential price reaction zones and assess the strength of market movements.
 Why Are Wicks Important? 
Candle wicks at price pivots indicate significant market reactions in key areas. Depending on the context, they may signal rejection, testing, or absorption of a support or resistance level. Long wicks often appear where large players are active, and the marked zones are frequently retested. The indicator allows for quick identification and observation of their impact on future price action.
 Why Use It? 
- Precise Support and Resistance Levels: The indicator draws price channels based on candle wicks at pivots (or bodies if wicks are absent), enabling better identification of zones where price may react.  
- Volume Analysis: It shows how the volume at a pivot differs from the average, indicating potential activity by large players or key market moments.  
- Visual Clarity: Colored lines, channel fills, and clear labels facilitate quick chart analysis, even on short timeframes.  
- Flexibility: Adjustable pivot length, volume average, and label colors allow customization to various trading strategies.
 How It Works 
- Pivot Detection: Automatically identifies local highs and lows based on the “Pivot Length” parameter (default: 20 candles). This means a pivot appears on the chart with a 20-candle delay. Reducing this value allows faster pivot detection (after fewer candles), increasing their number but potentially generating more noise.  
- Channel Creation: Draws support and resistance levels based on the wicks of candles at pivot points (or bodies if wicks are minimal) with a delay to confirm zones. A pivot channel is drawn until the next pivot is identified, but if not previously broken, it remains valid as active support or resistance.  
- Volume Analysis: Displays the volume at the pivot’s formation and its percentage change relative to the volume’s SMA.  
- Visualization: Pivot and channel levels are shown as lines with fills, and labels display volume and its deviation from the average.
 Trading Applications 
- Swing Trading: Use pivot levels and channels to identify price reversal points or consolidation zones.  
- Scalping: Monitor price reactions to channels on short timeframes, especially with high volume.  
- Faster Pivot Identification: Switch to a lower timeframe (e.g., from H1 to M15) to identify pivots more quickly, allowing earlier reactions to price changes.  
- Market Context Analysis: High volume at pivots may indicate significant levels likely to be retested.  
- Combining with Other Tools: The indicator pairs well with Fibonacci retracement, supply/demand zones, or oscillators like RSI.
 Settings and Customization 
- Pivot Length: Determines how many candles back and forward are analyzed to detect pivots (default: 20). A smaller value increases sensitivity, a larger one enhances stability.  
- Volume Average: Length of the SMA for volume (default: 20). Adjust to better reflect market characteristics.  
- Label Colors: Choose colors for bullish and bearish pivot labels to match your chart style.
 Usage Examples 
- Identifying Key Zones: If the price approaches a pivot level with high volume (e.g., +50% relative to SMA), it may signal strong support or resistance.  
- Breakout Confirmation: A channel breakout with high volume can indicate trend continuation.  
- Price Reaction Analysis: Long wicks at pivots with high volume may signal level rejection by large players.
 Notes for Users 
- The indicator performs best on highly liquid markets (e.g., Forex, indices, cryptocurrencies).  
- On short timeframes (e.g., M1, M5), it may generate more noise—adjust “Pivot Length” to suit your needs.  
- Consider combining with other indicators to confirm signals derived from pivot and volume analysis.
F&O Time Zones – Final Fixed📌 This indicator highlights high-probability intraday time zones used in Indian F&O (Futures & Options) strategies. Ideal for scalping, breakout setups, and trap avoidance. 
 🕒 Covered Time Zones: 
• 9:15 – 9:21 AM → Flash Trades (first 1-minute volatility)
• 9:21 – 9:30 AM → Smart Money Trap (VWAP fakeouts)
• 9:30 – 9:50 AM → Fake Breakout Zone
• 9:50 – 10:15 AM → Institutional Entry Timing
• 10:15 – 10:45 AM → VWAP Range Scalps
• 10:45 – 11:15 AM → Second Trap Zone
• 11:15 – 1:00 PM → Trend Continuation Window
• 1:00 – 1:45 PM → Volatility Compression
• 1:45 – 2:15 PM → Institutional Exit Phase 1
• 2:15 – 2:45 PM → Trend Acceleration / Reversals
• 2:45 – 3:15 PM → Expiry Scalping Zone
• 3:15 – 3:30 PM → Dead Zone (square-off time)
 🔧 Features: 
✓ Clean vertical lines per zone
✓ Optional label positions (top or bottom)
✓ Adjustable line style, width, and color
 🧠 Best used on:  NIFTY, BANKNIFTY, FINNIFTY (5-min or lower)
---
 🔒 **Disclaimer**:   
This script is for **educational purposes only**. It is not financial advice. Trading involves risk. Please consult a professional or do your own research before taking any positions.
—
 👤 Script by:  **JoanJagan**  
🛠️ Built in Pine Script v5
TEMA with Slope Color [MrBuCha]This TEMA indicator is particularly useful for trend following strategies. The key innovation here is using a higher timeframe (default 1-hour) to get a broader perspective on the trend direction, while the color-coding makes it immediately obvious whether the momentum is bullish (blue) or bearish (orange).
The 200-period length makes this more suitable for swing trading rather than day trading, as it filters out short-term noise and focuses on significant trend movements.
//
What is TEMA and How Does It Work?
TEMA (Triple Exponential Moving Average) is a technical indicator that builds upon the standard EMA to reduce lag and provide faster response to price changes. The calculation process is:
EMA1 = EMA of closing price with specified length
EMA2 = EMA of EMA1 with the same length
EMA3 = EMA of EMA2 with the same length
TEMA = 3 × (EMA1 - EMA2) + EMA3
This formula helps reduce the lag inherent in smoothing calculations, making TEMA more responsive to price movements compared to other moving averages.
Default Values
Length: 200 periods
Timeframe: "60" (1 hour)
Slope Colors
Blue: When TEMA is trending upward (tema_current > tema_previous)
Orange: When TEMA is trending downward (tema_current ≤ tema_previous)
Pros and Cons Summary
Advantages:
Fast Response: Reduces lag better than SMA and regular EMA
Easy to Use: Color-coded slope makes trend direction immediately visible
Multi-timeframe Capability: Can display TEMA from higher timeframes
Trend Following: Excellent for identifying trend direction
Visual Clarity: Clear color signals help with quick decision making
Disadvantages:
False Signals: Prone to whipsaws in sideways/choppy markets
Noise in Volatility: Frequent color changes during high volatility periods
Not Suitable for Scalping: Length of 200 is quite long for short-term trading
Still Lagging: Despite improvements, it remains a lagging indicator
Requires Confirmation: Should be used with other indicators for better accuracy
Best Use Cases:
Medium to long-term trend following
Identifying major trend changes
Multi-timeframe analysis
Combine with momentum oscillators for confirmation
Trading Tips:
Wait for color confirmation before entering trades
Use higher timeframe TEMA for overall trend bias
Combine with support/resistance levels
Avoid trading during consolidation periods
Dual Bollinger BandsIndicator Name:
Double Bollinger Bands (2-9 & 2-20)
Description:
This indicator plots two sets of Bollinger Bands on a single chart for enhanced volatility and trend analysis:
Fast Bands (2-9 Length) – Voilet
More responsive to short-term price movements.
Useful for spotting quick reversals or scalping opportunities.
Slow Bands (2-20 Length) – Black
Smoother, trend-following bands for longer-term context.
Helps confirm broader market direction.
Both bands use the standard settings (2 deviations, SMA basis) for consistency. The transparent fills improve visual clarity while keeping the chart uncluttered.
Use Cases:
Trend Confirmation: When both bands expand together, it signals strong momentum.
Squeeze Alerts: A tight overlap suggests low volatility before potential breakouts.
Multi-Timeframe Analysis: Compare short-term vs. long-term volatility in one view.
How to Adjust:
Modify lengths (2-9 and 2-20) in the settings.
Change colors or transparency as needed.
Why Use This Script?
No Repainting – Uses standard Pine Script functions for reliability.
Customizable – Easy to tweak for different trading styles.
Clear Visuals – Color-coded bands with background fills for better readability.
Ideal For:
Swing traders, day traders, and volatility scalpers.
Combining short-term and long-term Bollinger Band strategies.
PhenLabs - Market Fluid Dynamics📊 Market Fluid Dynamics -  
 Version: PineScript™ v6 
 📌 Description 
The Market Fluid Dynamics - Phen indicator is a new thinking regarding market analysis by modeling price action, volume, and volatility using a fluid system. It attempts to offer traders control over more profound market forces, such as momentum (speed), resistance (thickness), and buying/selling pressure. By visualizing such dynamics, the script allows the traders to decide on the prevailing market flow, its power, likely continuations, and zones of calmness and chaos, and thereby allows improved decision-making.
This measure avoids the usual difficulty of reconciling multiple, often contradictory, market indications by including them within a single overarching model. It moves beyond traditional binary indicators by providing a multi-dimensional view of market behavior, employing fluid dynamic analogs to describe complex interactions in an accessible manner.
 🚀 Points of Innovation 
 
 Integrated Fluid Dynamics Model: Combines velocity, viscosity, pressure, and turbulence into a single indicator.
 Normalized Metrics: Uses ATR and other normalization techniques for consistent readings across different assets and timeframes.
 Dynamic Flow Visualization: Main flow line changes color and intensity based on direction and strength.
 Turbulence Background: Visually represents market stability with a gradient background, from calm to turbulent.
 Comprehensive Dashboard: Provides an at-a-glance summary of key fluid dynamic metrics.
 Multi-Layer Smoothing: Employs several layers of EMA smoothing for a clearer, more responsive main flow line.
 
 🔧 Core Components 
 
 Velocity Component: Measures price momentum (first derivative of price), normalized by ATR. It indicates the speed and direction of price changes.
 Viscosity Component: Represents market resistance to price changes, derived from ATR relative to its historical average. Higher viscosity suggests it’s harder for prices to move.
 Pressure Component: Quantifies the force created by volume and price range (close - open), normalized by ATR. It reflects buying or selling pressure.
 Turbulence Detection: Calculates a Reynolds number equivalent to identify market stability, ranging from laminar (stable) to turbulent (chaotic).
 Main Flow Indicator: Combines the above components, applying sensitivity and smoothing, to generate a primary signal of market direction and strength.
 
 🔥 Key Features 
 
 Advanced Smoothing Algorithm: Utilizes multiple EMA layers on the raw flow calculation for a fluid and responsive main flow line, reducing noise while maintaining sensitivity.
 Gradient Flow Coloring: The main flow line dynamically changes color from light to deep blue for bullish flow and light to deep red for bearish flow, with intensity reflecting flow strength. This provides an immediate visual cue of market sentiment and momentum.
 Turbulence Level Background: The chart background changes color based on calculated turbulence (from calm gray to vibrant orange), offering an intuitive understanding of market stability and potential for erratic price action.
 Informative Dashboard: A customizable on-screen table displays critical metrics like Flow State, Flow Strength, Market Viscosity, Turbulence, Pressure Force, Flow Acceleration, and Flow Continuity, allowing traders to quickly assess current market conditions.
 Configurable Lookback and Sensitivity: Users can adjust the base lookback period for calculations and the sensitivity of the flow to viscosity, tailoring the indicator to different trading styles and market conditions.
 Alert Conditions: Pre-defined alerts for flow direction changes (positive/negative crossover of zero line) and detection of high turbulence states.
 
 🎨 Visualization 
 
 Main Flow Line: A smoothed line plotted below the main chart, colored blue for bullish flow and red for bearish flow. The intensity of the color (light to dark) indicates the strength of the flow. This line crossing the zero line can signal a change in market direction.
 Zero Line: A dotted horizontal line at the zero level, serving as a baseline to gauge whether the market flow is positive (bullish) or negative (bearish).
 Turbulence Background: The indicator pane’s background color changes based on the calculated turbulence level. A calm, almost transparent gray indicates low turbulence (laminar flow), while a more vibrant, semi-transparent orange signifies high turbulence. This helps traders visually assess market stability.
 Dashboard Table: An optional table displayed on the chart, showing key metrics like ‘Flow State’, ‘Flow Strength’, ‘Market Viscosity’, ‘Turbulence’, ‘Pressure Force’, ‘Flow Acceleration’, and ‘Flow Continuity’ with their current values and qualitative descriptions (e.g., ‘Bullish Flow’, ‘Laminar (Stable)’).
 
 📖 Usage Guidelines 
 Setting Categories 
 
 Show Dashboard - Default: true; Range: true/false; Description: Toggles the visibility of the Market Fluid Dynamics dashboard on the chart. Enable to see key metrics at a glance.
 Base Lookback Period - Default: 14; Range: 5 - (no upper limit, practical limits apply); Description: Sets the primary lookback period for core calculations like velocity, ATR, and volume SMA. Shorter periods make the indicator more sensitive to recent price action, while longer periods provide a smoother, slower signal.
 Flow Sensitivity - Default: 0.5; Range: 0.1 - 1.0 (step 0.1); Description: Adjusts how much the market viscosity dampens the raw flow. A lower value means viscosity has less impact (flow is more sensitive to raw velocity/pressure), while a higher value means viscosity has a greater dampening effect.
 Flow Smoothing - Default: 5; Range: 1 - 20; Description: Controls the length of the EMA smoothing applied to the main flow line. Higher values result in a smoother flow line but with more lag; lower values make it more responsive but potentially noisier.
 Dashboard Position - Default: ‘Top Right’; Range: ‘Top Right’, ‘Top Left’, ‘Bottom Right’, ‘Bottom Left’, ‘Middle Right’, ‘Middle Left’; Description: Determines the placement of the dashboard on the chart.
 Header Size - Default: ‘Normal’; Range: ‘Tiny’, ‘Small’, ‘Normal’, ‘Large’, ‘Huge’; Description: Sets the text size for the dashboard header.
 Values Size - Default: ‘Small’; Range: ‘Tiny’, ‘Small’, ‘Normal’, ‘Large’; Description: Sets the text size for the metric values in the dashboard.
 
 ✅ Best Use Cases 
 
 Trend Identification: Identifying the dominant market flow (bullish or bearish) and its strength to trade in the direction of the prevailing trend.
 Momentum Confirmation: Using the flow strength and acceleration to confirm the conviction behind price movements.
 Volatility Assessment: Utilizing the turbulence metric to gauge market stability, helping to adjust position sizing or avoid choppy conditions.
 Reversal Spotting: Watching for divergences between price and flow, or crossovers of the main flow line above/below the zero line, as potential reversal signals, especially when combined with changes in pressure or viscosity.
 Swing Trading: Leveraging the smoothed flow line to capture medium-term market swings, entering when flow aligns with the desired trade direction and exiting when flow weakens or reverses.
 Intraday Scalping: Using shorter lookback periods and higher sensitivity to identify quick shifts in flow and turbulence for short-term trading opportunities, particularly in liquid markets.
 
 ⚠️ Limitations 
 
 Lagging Nature: Like many indicators based on moving averages and lookback periods, the main flow line can lag behind rapid price changes, potentially leading to delayed signals.
 Whipsaws in Ranging Markets: During periods of low volatility or sideways price action (high viscosity, low flow strength), the indicator might produce frequent buy/sell signals (whipsaws) as the flow oscillates around the zero line.
 Not a Standalone System: While comprehensive, it should be used in conjunction with other forms of analysis (e.g., price action, support/resistance levels, other indicators) and not as a sole basis for trading decisions.
 Subjectivity in Interpretation: While the dashboard provides quantitative values, the interpretation of “strong” flow, “high” turbulence, or “significant” acceleration can still have a subjective element depending on the trader’s strategy and risk tolerance.
 
 💡 What Makes This Unique 
 
 Fluid Dynamics Analogy: Its core strength lies in translating complex market interactions into an intuitive fluid dynamics framework, making concepts like momentum, resistance, and pressure easier to visualize and understand.
 Market View: Instead of focusing on a single aspect (like just momentum or just volatility), it integrates multiple factors (velocity, viscosity, pressure, turbulence) to provide a more comprehensive picture of market conditions.
 Adaptive Visualization: The dynamic coloring of the flow line and the turbulence background provide immediate, adaptive visual feedback that changes with market conditions.
 
 🔬 How It Works 
 
 Price Velocity Calculation: The indicator first calculates price velocity by measuring the rate of change of the closing price over a given ‘lookback’ period. The raw velocity is then normalized by the Average True Range (ATR) of the same lookback period. Normalization enables comparison of momentum between assets or timeframes by scaling for volatility. This is the direction and speed of initial price movement.
 Viscosity Calculation: Market ‘viscosity’ or resistance to price movement is determined by looking at the current ATR relative to its longer-term average (SMA of ATR over lookback * 2). The further the current ATR is above its average, the lower the viscosity (less resistance to price movement), and vice-versa. The script inverts this relationship and bounds it so that rising viscosity means more resistance.
 Pressure Force Measurement: A ‘pressure’ variable is calculated as a function of the ratio of current volume to its simple moving average, multiplied by the price range (close - open) and normalized by ATR. This is designed to measure the force behind price movement created by volume and intraday price thrusts. This pressure is smoothed by an EMA.
  Turbulence State Evaluation: A equivalent ‘Reynolds number’ is calculated by dividing the absolute normalized velocity by the viscosity. This is the proclivity of the market to move in a chaotic or orderly fashion. This ‘reynoldsValue’ is smoothed with an EMA to get the ‘turbulenceState’, which indicates if the market is laminar (stable), transitional, or turbulent.
 Main Flow Derivation: The ‘rawFlow’ is calculated by taking the normalized velocity, dampening its impact based on the ‘viscosity’ and user-input ‘sensitivity’, and orienting it by the sign of the smoothed ‘pressureSmooth’. The ‘rawFlow’ is then put through multiple layers of exponential moving average (EMA) smoothing (with ‘smoothingLength’ and derived values) to reach the final ‘mainFlow’ line. The extensive smoothing is designed to give a smooth and clear visualization of the overall market direction and magnitude.
 Dashboard Metrics Compilation: Additional metrics like flow acceleration (derivative of mainFlow), and flow continuity (correlation between close and volume) are calculated. All primary components (Flow State, Strength, Viscosity, Turbulence, Pressure, Acceleration, Continuity) are then presented in a user-configurable dashboard for ease of monitoring.
 
 💡 Note: 
The “Market Fluid Dynamics - Phen” indicator is designed to offer a unique perspective on market behavior by applying principles from fluid dynamics. It’s most effective when used to understand the underlying forces driving price rather than as a direct buy/sell signal generator in isolation. Experiment with the settings, particularly the ‘Base Lookback Period’, ‘Flow Sensitivity’, and ‘Flow Smoothing’, to find what best suits your trading style and the specific asset you are analyzing. Always combine its insights with robust risk management practices.
MACD of RSI [TORYS]MACD of RSI   — Momentum & Divergence Scanner 
 Description: 
This enhanced oscillator applies MACD logic directly to the Relative Strength Index (RSI) rather than price, giving traders a clearer look at internal momentum and early shifts in trend strength. Now featuring a custom histogram, dual MA types, and RSI-based divergence detection — it’s a complete toolkit for identifying exhaustion, acceleration, and hidden reversal points in real time.
 How It Works: 
Calculates the MACD line as the difference between a fast and slow moving average of RSI. Adds a Signal Line (MA of the MACD) and plots a Histogram to show momentum acceleration/deceleration. Both RSI MAs and the Signal Line can be toggled between EMA and SMA for custom tuning.
 Divergence Detection: 
 
   Bullish Divergence : Price makes a lower low while RSI makes a higher low → labeled with a green “D” below the curve.
   Bearish Divergence : Price makes a higher high while RSI makes a lower high → labeled with a red “D” above the curve.
 
Configurable lookback window for tuning sensitivity to pivots, with 4 as the sweet spot.
 RSI Pivot Dot Signals: 
 
  Plots green dots at RSI oversold pivot lows below 30,
  Plots red dots at overbought pivot highs above 70. 
 
Helps detect short-term exhaustion or bounce zones, plotted right on the MACD-RSI curve.
 RSI 50 Crosses (Optional): 
Optional ▲ and ▼ labels when RSI crosses its 50 midline — useful for momentum trend shifts or pullback confirmation, or to detect consolidation.
 Histogram: 
Plotted as a column chart showing the distance between MACD and Signal Line.
 Colored dynamically: 
 
   Bright green : Momentum rising above zero
   Light green : Weakening above zero
   Bright red : Momentum falling below zero
   Light red : Weakening below zero
 
 The zero line serves as the mid-point: 
 
  Above = Bullish Bias
  Below = Bearish Bias
 
 How to Interpret: 
 Momentum Confirmation: 
Use MACD cross above Signal Line with a rising histogram to confirm breakouts or trend entries.
Histogram shrinking near zero = momentum weakening → caution or reversal.
 Exhaustion & Reversals: 
Dot signals near RSI extremes + histogram peak can suggest overbought/oversold pressure.
Use divergence labels ("D") to spot early reversal signals before price breaks structure.
 Inputs & Settings: 
 
  RSI Length
  Fast/Slow MA Lengths for MACD (applied to RSI)
  Signal Line Length
  MA Type: Choose between EMA and SMA for MACD and Signal Line
  Pivot Sensitivity for dot markers
  Divergence Logic Toggle
  Show/hide RSI 50 Crosses
 
 Best For: 
 
  Traders who want momentum insight from inside RSI, not price
  Scalpers using divergence or exhaustion entries
  Swing traders seeking entry confirmation from signal crossovers
  Anyone using multi-timeframe confluence with RSI and trend filters
 
 Pro Tips: 
 Combine this with: 
 
  Bollinger Bands breakouts and reversals
  VWAP or EMAs to filter entries by trend
  Volume spikes or BBW squeezes for volatility confirmation
  TTM Scalper Alert to sync structure and momentum
 
Volume Intelligence Suite (VIS) v2📊 Volume Intelligence Suite – Smart Volume, Smart Trading
The Volume Intelligence Suite is a powerful, all-in-one TradingView indicator designed to give traders deeper insight into market activity by visualizing volume behavior with price action context. Whether you're a scalper, day trader, or swing trader, this tool helps uncover hidden momentum, institutional activity, and potential reversals with precision.
🔍 Key Features:
Dynamic Volume Zones – Highlights high and low volume areas to spot accumulation/distribution ranges.
Volume Spikes Detector – Automatically marks abnormal volume bars signaling potential breakout or trap setups.
Smart Delta Highlighting – Compares bullish vs bearish volume in real time to reveal buyer/seller strength shifts.
Session-Based Volume Profiling – Breaks volume into key trading sessions (e.g., London, New York) for clearer context.
Volume Heatmap Overlay – Optional heatmap to show intensity and velocity of volume flow per candle.
Custom Alerts – Built-in alerts for volume surges, divergences, and exhaustion signals.
Optimized for Kill Zone Analysis – Pairs perfectly with ICT-style session strategies and Waqar Asim’s trading methods.
🧠 Why Use Volume Intelligence?
Most traders overlook the story behind each candle. Volume Intelligence Suite helps you "see the why behind the move" — exposing key areas of interest where smart money may be active. Instead of reacting late, this tool puts you in position to anticipate.
Use it to:
Validate breakouts
Detect fakeouts and liquidity grabs
Confirm bias during kill zones
Analyze volume divergence with price swings
⚙️ Fully Customizable:
From volume thresholds to visual styles and session timings, everything is user-adjustable to fit your market, timeframe, and strategy.
✅ Best For:
ICT/Smart Money Concepts (SMC) traders
Breakout & reversal traders
Kill zone session scalpers
Institutional footprint followers






















