Murrey Math Extremes ComparatorHOW IT WORKS
Creates two murrey math oscillators (hidden) one with 256 length another with 32 length and compare each other.
WHAT GIVE ME THIS SCRIPT
The script can give you very valuable information:
- Main Trend
- Pullbacks detections
- Extreme overbought oversold prices alerts
- Divergences
- Any timeframe usage
REFERENCES OF USAGE
Main Trend Indications
****The main trend is indicated with green(bull) or red(bears) small "triangles" on the bottom(bull) or the top(bears) of the chart.
*****To detect the Bull/Bear major trend the script use 256 murrey, if > 0 (green) we are uptrend in other cases we are downtrend
Pullback detection
****The pullbacks are indicated with Green(bull) or red(bears) medium "Arrows"
*****To detect pullbacks the system compare the long term murrey with the short term murrey, if long term is Green(green triangles)
*****so we are in a main bull trend, if the short term murrey make an extreme low then the pullback is indicated
*****The same for the short pullback, if long term murrey is RED and we have an extreme green short term murrey we shot a red arrow
Extreme Overbught/Oversold
****The extreme OO is indicated with fancy diamonds
*****To detect the Extremes price movements we combine the two murrey, if Long Term Murrey is overbought and short term murrey too
*****Then the diamond show on the screen obove or below based on the extreme if overbought or oversold
Strategy Resume:
Triangles indicate Major Trend Up/Down
Arrows Indicate Continuation pullbacks
Diamonds Indicate Extreme Prices
GUIDE HOW TO IMAGES
How it's works Behind Scene
Tìm kiếm tập lệnh với "bear"
MWho is in ControlWho is in Control.
This study shows who is in control by showing just the Bull side, the Bear side or a combined view. This study follows the same philosophy of simplicity I try to use as much as possible in my studies. The least number of parameters and as understandable as possible.
Len : length of the period
Signal : Signal to show change of trend
Disp Bull : Display/Hide Bull Side
Disp Bear : Display/Hide Bear Side
Disp Differential : Display/Hide the differential between Bulls and Bears.
: Volume Zone Oscillator & Price Zone Oscillator LB Update JRMThis is a simple update of Lazy Bear's " Indicators: Volume Zone Indicator & Price Zone Indicator" Script. PZO plots on the same indicator. The horizontal plot lines are taken primarily from two articles by Wahalil and Steckler "In The Volume Zone" May 2011, Stocks and Commodities and "Entering The Price Zone"June 2011, Stocks and Commodities. With both indicators on the same plot it is easier to see divergences between the indicators. I did add a plot line at 80 and -80 as well because that is getting into truly extreme price/volume territory where one might contemplate a close your eyes and sell or cover particularly if confirmed at a higher time frame with the expectation of some type of corrective move..
The inputs and plot lines can be edited as per Lazy Bear's original script and follows the original format. Many thanks to Lazy Bear.
WoAlgo Premium v3.0
WoAlgo Premium v3.0 - Smart Money Analysis
Overview
** WoAlgo Premium v3.0 ** is an advanced technical analysis indicator designed for educational purposes. This tool combines Smart Money Concepts with multi-factor confluence analysis to help traders identify potential market opportunities across multiple timeframes.
The indicator integrates market structure analysis, order flow concepts, and technical momentum indicators into a comprehensive dashboard system. It is designed to assist traders in understanding institutional trading patterns and market dynamics through visual analysis tools.
### What It Does
This indicator provides:
**1. Smart Money Concepts Analysis**
- Market structure identification (Break of Structure and Change of Character patterns)
- Order block detection with volume confirmation
- Fair value gap recognition
- Liquidity zone mapping (equal highs and lows)
- Premium and discount zone calculations
**2. Multi-Factor Confluence Scoring**
The indicator calculates a proprietary confluence score (0-100) based on five key components:
- Price action analysis (30% weight)
- Volume confirmation (20% weight)
- Momentum indicators (25% weight)
- Trend strength measurement (15% weight)
- Money flow analysis (10% weight)
**3. Multi-Timeframe Analysis**
- Scans 5 different timeframes (5M, 15M, 1H, 4H, Daily)
- Calculates alignment percentage across timeframes
- Displays trend and structure status for each period
**4. Visual Dashboard System**
- Comprehensive main dashboard with 13 metrics
- Real-time screener table with 10 data columns
- Multi-timeframe scanner
- Performance tracking panel
### How It Works
**Market Structure Detection**
The indicator identifies key structural changes in price action:
- **BOS (Break of Structure)**: Indicates trend continuation when price breaks previous swing points
- **CHoCH (Change of Character)**: Signals potential trend reversal when market structure shifts
**Order Block Identification**
Order blocks are detected when:
- Significant volume appears at swing points
- Price shows strong directional movement from these levels
- Enhanced detection with extreme volume confirmation (OB++ markers)
**Fair Value Gap Recognition**
Gaps between candles are identified when:
- Price leaves inefficiencies in the market
- Three consecutive candles create a gap pattern
- Gap size exceeds minimum threshold based on ATR
**Confluence Calculation**
The system evaluates multiple technical factors:
1. **Price Position**: Relative to moving averages (EMA 20, 50, 200)
2. **Volume Analysis**: Standard deviation-based volume spikes
3. **Momentum**: RSI, MACD, Stochastic indicators
4. **Trend Strength**: ADX measurements
5. **Money Flow**: MFI indicator readings
Each factor contributes weighted points to create an overall confluence score that helps assess signal strength.
### Signal Types
**Confirmation Signals (▲ / ▼)**
Generated when:
- EMA crossovers occur (20/50 cross)
- Volume confirmation is present
- RSI is in appropriate zone
- Confluence score exceeds 50%
**Strong Signals (▲+ / ▼+)**
Higher-confidence signals requiring:
- Confluence score above 70%
- Extreme volume confirmation
- Alignment with 200 EMA trend
- MACD confirmation
- Bullish or bearish market structure
**Contrarian Signals (⚡)**
Reversal indicators appearing when:
- RSI reaches extreme levels (<30 or >70)
- Stochastic shows oversold/overbought conditions
- Price touches Bollinger Band extremes
- Potential divergence patterns emerge
**Reversal Zones**
Visual boxes highlighting areas where:
- Market structure conflicts with momentum
- High probability of directional change
- Key support/resistance levels interact
**Smart Trail**
Dynamic stop-loss indicator that:
- Adjusts based on ATR (Average True Range)
- Follows trend direction
- Updates automatically as price moves
- Provides risk management reference points
### Dashboard Components
**Main Dashboard (13 Metrics)**
1. **Confluence Score**: Current bull/bear percentage (0-100)
2. **Market Regime**: Trend classification (Strong Up/Down, Range, Squeeze)
3. **Signal Status**: Active buy/sell signal indication
4. **Structure State**: Current market structure (Bullish/Bearish/Neutral)
5. **Trend Strength**: ADX-based measurement
6. **RSI Level**: Momentum indicator with overbought/oversold zones
7. **MACD Direction**: Trend momentum confirmation
8. **Money Flow Index**: Smart money sentiment
9. **Volume Status**: Current volume relative to average
10. **Volatility Rating**: ATR percentage measurement
11. **ATR Value**: Average true range for position sizing
12. **MTF Alignment**: Multi-timeframe agreement percentage
**Screener Table (10 Columns)**
- Current symbol and timeframe
- Real-time price and percentage change
- Quality rating (star system)
- Active signal type
- Smart trail status
- Market structure state
- MACD direction
- Trend strength percentage
- Bollinger Band squeeze detection
**MTF Scanner (5 Timeframes)**
Displays for each timeframe:
- Trend direction indicator
- Market structure classification
- Visual confirmation with color coding
**Performance Metrics**
- Win rate percentage (simplified calculation)
- Total signals generated
- Current confluence score
- MTF alignment status
- Volatility level
### Settings and Customization
**Preset Styles**
Choose from predefined configurations:
- **Conservative**: Fewer, higher-quality signals
- **Moderate**: Balanced approach (recommended)
- **Aggressive**: More frequent signals
- **Scalper**: Short-term focused
- **Swing**: Longer-term oriented
- **Custom**: Full manual control
**Smart Money Concepts Controls**
- Toggle each feature independently
- Adjust swing length (3-50 periods)
- Enable/disable internal structure
- Control order block display
- Manage breaker block visibility
- Show/hide fair value gaps
- Display liquidity zones
- Premium/discount zone visualization
**Signal Configuration**
- Enable/disable confirmation signals
- Toggle strong signal markers
- Control contrarian signal display
- Show/hide reversal zones
- Smart trail activation
- Sensitivity adjustment (5-50)
**Visual Customization**
- Moving average display options
- MA period adjustments (Fast: 20, Slow: 50, Trend: 200)
- Support/resistance line toggle
- Dynamic S/R lookback period
- Candle coloring based on trend
- Color scheme customization
- Dashboard size options (Small/Normal/Large)
- Position placement (4 corners)
### How to Use
**Step 1: Initial Setup**
1. Add indicator to chart
2. Select appropriate preset or use Custom
3. Adjust timeframe to match trading style
4. Configure dashboard visibility preferences
**Step 2: Analysis Workflow**
1. Check MTF Scanner for timeframe alignment
2. Review Main Dashboard confluence score
3. Observe Market Regime classification
4. Identify active signals on chart
5. Confirm with Smart Money Concepts (order blocks, FVG, structure)
**Step 3: Trade Consideration**
Strong signals (▲+ / ▼+) require:
- Confluence score >70%
- MTF alignment >60%
- Confirmation from multiple dashboard metrics
- Support from Smart Money Concepts
- Appropriate volume levels
**Step 4: Risk Management**
- Use Smart Trail as dynamic stop-loss reference
- Consider ATR for position sizing
- Monitor volatility rating
- Respect support/resistance levels
- Combine with personal risk parameters
### Best Practices
**For Scalping (1M-5M timeframes)**
- Use Scalper preset
- Reduce swing length to 5-7
- Focus on strong signals only
- Monitor MTF alignment closely
- Quick entries near order blocks
**For Intraday Trading (15M-1H timeframes)**
- Use Moderate preset (recommended)
- Default swing length (10)
- Combine confirmation and strong signals
- Check MTF scanner before entry
- Use fair value gaps for entries
**For Swing Trading (4H-D timeframes)**
- Use Swing preset
- Increase swing length to 15-20
- Focus on strong signals
- Require high MTF alignment
- Patient approach with major structure levels
### Technical Specifications
**Indicators Used**
- Exponential Moving Averages (20, 50, 200)
- Hull Moving Average
- Relative Strength Index (14)
- MACD (12, 26, 9)
- Money Flow Index (14)
- Stochastic Oscillator (14, 3)
- ADX / DMI (14)
- Bollinger Bands (20, 2)
- ATR (14)
- Volume Analysis (SMA 20 with standard deviation)
**Calculation Methods**
- Swing detection using pivot high/low functions
- Volume confirmation via statistical analysis
- Multi-factor scoring with weighted components
- Dynamic support/resistance using highest/lowest functions
- Real-time MTF data via security() function
### Limitations and Considerations
**Important Notes**
1. This indicator is designed for educational and analytical purposes only
2. Historical performance does not guarantee future results
3. Signals should be confirmed with additional analysis
4. Market conditions vary and affect indicator performance
5. Not all signals will be profitable
6. Risk management is essential for all trading
**Known Limitations**
- Confluence scoring is algorithmic and not predictive
- MTF analysis requires sufficient historical data
- Effectiveness varies across different market conditions
- Sideways markets may produce conflicting signals
- High volatility can affect signal reliability
- Backtesting results shown are simplified calculations
**Not Suitable For**
- Automated trading without human oversight
- Sole basis for trading decisions
- Guaranteed profit expectations
- Inexperienced traders without proper education
- Trading without risk management plans
### Market Applicability
**Effective On**
- Trending markets (any direction)
- Clear structure formation periods
- Liquid instruments with consistent volume
- Multiple asset classes (forex, stocks, crypto, commodities)
- Various timeframes with appropriate settings
**Less Effective During**
- Extended ranging/choppy conditions
- Extremely low volume periods
- Major news events causing gaps
- Early market open with high spread
- Illiquid instruments with erratic price action
### Risk Disclaimer
**⚠️ IMPORTANT NOTICE**
This indicator is provided for **educational and informational purposes only**. It does not constitute financial advice, investment recommendations, or trading signals.
**Key Risk Factors:**
- Trading financial instruments involves substantial risk of loss
- Past performance does not indicate future results
- No indicator can predict market movements with certainty
- Users should conduct independent research and analysis
- Professional financial advice should be sought when appropriate
- Risk management and position sizing are critical to successful trading
- Users are solely responsible for their trading decisions
**Responsible Usage:**
- Combine with comprehensive market analysis
- Use appropriate stop-loss orders
- Never risk more than you can afford to lose
- Maintain realistic expectations
- Continue education on technical analysis principles
- Test thoroughly on demo accounts before live trading
- Understand all indicator features before using
### Educational Resources
**Understanding Smart Money Concepts**
Smart Money Concepts analyze how institutional traders and large market participants operate. Key principles include:
- Institutional order flow patterns
- Market structure changes
- Liquidity manipulation
- Supply and demand imbalances
- Order block formations
**Multi-Timeframe Analysis Theory**
Analyzing multiple timeframes helps:
- Identify overall market direction
- Improve entry timing
- Confirm trend strength
- Recognize consolidation periods
- Reduce conflicting signals
**Confluence Trading Approach**
Using multiple confirming factors:
- Increases signal reliability
- Reduces false signals
- Provides conviction for trades
- Helps with position sizing
- Improves risk-reward ratios
### Version History
**v3.0 (Current)**
- Multi-factor confluence scoring system
- Complete Smart Money Concepts implementation
- Real-time multi-timeframe analysis
- Four professional dashboard panels
- Enhanced order block detection
- Breaker block identification
- Premium/discount zone calculations
- Smart trail stop-loss system
- Customizable preset configurations
- Performance tracking metrics
**Development Philosophy**
This indicator was developed with focus on:
- Educational value for traders
- Transparent methodology
- Comprehensive feature set
- User-friendly interface
- Flexible customization options
### Technical Support
**For Questions About:**
- Indicator functionality
- Parameter optimization
- Signal interpretation
- Dashboard metrics
- Best practice recommendations
Please use TradingView's comment section below. The developer monitors comments and provides assistance to users learning to use the indicator effectively.
### Acknowledgments
This indicator implements concepts from:
- Smart Money Concepts trading methodology
- Multi-timeframe analysis techniques
- Technical indicator theory
- Market structure analysis principles
- Institutional order flow concepts
All implementations are original code and calculations based on established technical analysis principles.
---
## ADDITIONAL INFORMATION SECTION
**Category**: Indicators
**Type**: Market Structure / Multi-Timeframe Analysis
**Complexity**: Intermediate to Advanced
**Open Source**: Code visible for transparency and education
**Pine Script Version**: v6
**Chart Overlay**: Yes
**Maximum Objects**: 500 boxes, 500 lines, 500 labels
Zenith MACD Evolution [JOAT]
Zenith MACD Evolution - Volatility-Normalized Momentum Oscillator
Introduction and Purpose
Zenith MACD Evolution is an open-source oscillator indicator that takes the classic MACD and normalizes it by ATR (Average True Range) to create consistent overbought/oversold levels across different market conditions. The core problem this indicator solves is that traditional MACD values are incomparable across different volatility regimes. A MACD reading of 50 might be extreme in a quiet market but normal in a volatile one.
This indicator addresses that by dividing MACD by ATR and scaling to a consistent range, allowing traders to use fixed overbought/oversold levels that work across all market conditions.
Why ATR Normalization Works
Traditional MACD problems:
- Values vary wildly based on price and volatility
- No consistent overbought/oversold levels
- Hard to compare across different instruments
- Extreme readings in one period may be normal in another
ATR-normalized MACD (Zenith) solves these:
- Values scaled to consistent range
- Fixed overbought/oversold levels work across all conditions
- Comparable across different instruments
- Extreme readings are truly extreme regardless of volatility
How the Normalization Works
// Classic MACD
= ta.macd(close, fastLength, slowLength, signalLength)
// ATR for normalization
float atrValue = ta.atr(atrNormLength)
// Volatility-Normalized MACD
float zenithMACD = atrValue != 0 ? (histLine / atrValue) * 100 : 0
float zenithSignal = ta.ema(zenithMACD, signalLength)
The result is a MACD that typically ranges from -200 to +200, with consistent levels:
- Above +150 = Overbought
- Below -150 = Oversold
- Above +200 = Extreme overbought
- Below -200 = Extreme oversold
Signal Types
Zero Cross Up/Down - Zenith crosses zero line (trend change)
Overbought/Oversold Entry - Zenith enters extreme zones
Overbought/Oversold Exit - Zenith leaves extreme zones (potential reversal)
Momentum Shift - Histogram direction changes (early warning)
Divergence - Price makes new high/low but Zenith does not
Histogram Coloring
The histogram uses four colors to show momentum state:
- Strong Bull (Teal) - Positive and rising
- Weak Bull (Light Teal) - Positive but falling
- Strong Bear (Red) - Negative and falling
- Weak Bear (Light Red) - Negative but rising
This helps identify momentum shifts before crossovers occur.
Dashboard Information
Zenith - Current normalized MACD value with signal line
Zone - Current zone (EXTREME OB/OVERBOUGHT/NORMAL/OVERSOLD/EXTREME OS)
Momentum - Direction (RISING/FALLING/FLAT)
Histogram - Current histogram value
ATR Norm - Current ATR value used for normalization
Classic - Traditional MACD value for reference
How to Use This Indicator
For Mean-Reversion:
1. Wait for Zenith to reach extreme zones (+200/-200)
2. Look for momentum shift (histogram color change)
3. Enter counter-trend when exiting extreme zone
For Trend Following:
1. Enter long on zero cross up
2. Enter short on zero cross down
3. Use histogram color to gauge momentum strength
For Divergence Trading:
1. Watch for DIV labels (price vs Zenith divergence)
2. Bullish divergence at support = potential long
3. Bearish divergence at resistance = potential short
Input Parameters
Fast/Slow/Signal Length (12/26/9) - Standard MACD parameters
ATR Normalization Period (26) - Period for ATR calculation
Overbought/Oversold Zone (150/-150) - Zone thresholds
Extreme Level (200) - Extreme threshold
Show Classic MACD Lines (false) - Toggle traditional lines
Show Divergence Detection (true) - Toggle divergence signals
Divergence Lookback (14) - Bars to scan for divergence
Timeframe Recommendations
All timeframes work due to normalization
Higher timeframes provide smoother signals
Normalization makes cross-timeframe comparison meaningful
Limitations
ATR normalization adds slight lag
Divergence detection is simplified
Extreme zones can persist in strong trends
Works best when combined with price action analysis
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Momentum analysis does not guarantee profitable trades. Always use proper risk management.
- Made with passion by officialjackofalltrades
Trend Harmony🚀 Trend Harmony: Multi-Timeframe Momentum & Trend Dashboard
Trend Harmony is a sophisticated multi-timeframe (MTF) analysis tool designed to help traders identify high-probability setups by spotting "Market Harmony." Instead of flipping through charts, this indicator synthesizes RSI momentum and EMA trend structures from four different time horizons into a single, intuitive dashboard.
🔍 How It Works
The core philosophy of this indicator is that the most powerful moves happen when short-term momentum aligns with long-term trend structure. The script tracks four user-defined timeframes simultaneously.
1. The Trend Scoring Engine
The indicator evaluates the relationship between a Fast EMA (default 20) and a Slow EMA (default 50) across all active timeframes.
Bullish Alignment: Fast EMA > Slow EMA.
Bearish Alignment: Fast EMA < Slow EMA.
2. The Harmony Summary
At the bottom of the dashboard, the "Summary" status calculates the total "Harmony" of the market:
🚀 FULL BULL HARMONY: All selected timeframes are in a bullish trend.
📉 FULL BEAR HARMONY: All selected timeframes are in a bearish trend.
⚠️ CAUTION (Overbought/Oversold): Triggered when the market is in "Full Harmony" but RSI levels suggest the price is overextended (>70 or <30). This warns you not to "chase" the trade.
Neutral/Mixed: Timeframes are in conflict (e.g., 15m is bullish but Daily is bearish).
🛠 Key Features
Unified RSI Pane: View four RSI lines on one chart to spot divergences or "clusters" where all timeframes bottom out at once.
Dynamic Table: Real-time tracking of:
Price vs EMA: Instant visual (▲/▼) showing if price is above/below your key averages.
Smart RSI Coloring: RSI values turn Green during "Power Zones" (0–30 or 50–70) and Red otherwise.
Full Customization: Change timeframes (1m, 5m, 1H, D, etc.), EMA lengths, and RSI parameters to fit your strategy.
📈 Trading Strategy Tips
Wait for the Sync: The "Full Harmony" status is your signal that the "tide" is moving in one direction. Look for long entries when the status is Green and short entries when it is Red.
The Pullback Entry: When the summary says "Caution (Overbought)," wait for the RSI lines to cool down toward the 50 level before entering the trend again.
RSI Clustering: When all four RSI lines converge at extreme levels (30 or 70), a massive volatility expansion is usually imminent.
Vortex Trend Matrix [JOAT]Vortex Trend Matrix - Multi-Factor Trend Confluence System
Introduction and Purpose
Vortex Trend Matrix is an open-source overlay indicator that combines Ichimoku-style equilibrium analysis with the Vortex Indicator to create a comprehensive trend confluence system. The core problem this indicator solves is that single trend indicators often give conflicting signals. Price might be above a moving average but momentum might be weakening.
This indicator addresses that by combining five different trend factors into a single composite score, making it easy to identify when multiple factors align for high-probability trend trades.
Why These Components Work Together
Each component measures trend from a different perspective:
1. Cloud Position - Price above/below the equilibrium cloud indicates overall trend bias. The cloud acts as dynamic support/resistance.
2. TK Relationship - Conversion line vs Base line (like Tenkan/Kijun in Ichimoku). Conversion above Base = bullish momentum.
3. Lagging Span - Current price compared to price N bars ago. Confirms whether current move has follow-through.
4. Vortex Indicator - VI+ vs VI- measures directional movement strength. Provides momentum confirmation.
5. Base Direction - Whether the base line is rising or falling. Indicates medium-term trend direction.
How the Trend Score Works
float trendScore = 0.0
// Cloud position (+2/-2)
trendScore += aboveCloud ? 2.0 : belowCloud ? -2.0 : 0.0
// TK relationship (+1/-1)
trendScore += conversionLine > baseLine ? 1.0 : conversionLine < baseLine ? -1.0 : 0.0
// Lagging span (+1/-1)
trendScore += laggingBull ? 1.0 : laggingBear ? -1.0 : 0.0
// Vortex (+1.5/-1.5)
trendScore += vortexBull ? 1.5 : vortexBear ? -1.5 : 0.0
// Base direction (+0.5/-0.5)
trendScore += baseDirection * 0.5
Score ranges from approximately -6 to +6:
- +4 or higher = STRONG BULL
- +2 to +4 = BULL
- -2 to +2 = NEUTRAL
- -4 to -2 = BEAR
- -4 or lower = STRONG BEAR
Signal Types
TK Cross Up/Down - Conversion line crosses Base line (momentum shift)
Base Direction Change - Base line changes direction (medium-term shift)
Strong Bull/Bear Trend - Score reaches +4/-4 (high confluence)
Dashboard Information
Trend - Overall status with composite score
Cloud - Price position (ABOVE/BELOW/INSIDE)
TK Cross - Conversion vs Base relationship
Lagging - Lagging span bias
Vortex - VI+/VI- relationship
VI+/VI- - Individual vortex values
How to Use This Indicator
For Trend Following:
1. Enter long when trend score reaches +4 or higher (STRONG BULL)
2. Enter short when trend score reaches -4 or lower (STRONG BEAR)
3. Use cloud as dynamic support/resistance for entries
For Momentum Timing:
1. Watch for TK Cross signals for entry timing
2. Base direction changes indicate medium-term shifts
3. Vortex confirmation adds conviction
For Risk Management:
1. Exit when trend score drops to neutral
2. Use cloud edges as stop-loss references
3. Reduce position when score weakens
Input Parameters
Conversion Period (9) - Fast equilibrium line
Base Period (26) - Slow equilibrium line
Lead Span Period (52) - Cloud projection period
Displacement (26) - Cloud and lagging span offset
Vortex Period (14) - Period for vortex calculation
VI+ Strength (1.10) - Threshold for strong bullish vortex
VI- Strength (0.90) - Threshold for strong bearish vortex
Timeframe Recommendations
4H-Daily: Best for equilibrium-based analysis
1H: Good for intraday trend following
Lower timeframes may require adjusted periods
Limitations
Equilibrium calculations have inherent lag
Cloud displacement means signals are delayed
Works best in trending markets
May whipsaw in ranging conditions
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Trend analysis does not guarantee profitable trades. Always use proper risk management.
- Made with passion by officialjackofalltrades
NICHI (NuwenPham's Ichimoku)NICHI (NuwenPham’s Ichimoku)
NICHI is a dual-engine Ichimoku indicator designed for modern, high-volatility markets.
It preserves a faithful traditional Ichimoku while introducing an advanced, filter-driven Ichimoku framework for research, visualization, and discretionary trading.
The goal of NICHI is not to replace Ichimoku — but to extend it.
Overview
NICHI includes two independent Ichimoku systems that can be enabled separately or together.
1. Standard Ichimoku
A clean, traditional Hosoda Ichimoku using Donchian midpoints:
Tenkan-sen (short period)
Kijun-sen (medium period)
Senkou Span A & B (forward displaced)
Chikou Span (lagging)
Design choice:
The Standard Ichimoku is intentionally plotted in a separate pane to avoid cluttering the price chart.
It serves as a reference / regime baseline, not a visual overlay.
2. Advanced Ichimoku
The Advanced system keeps the Ichimoku structure intact but replaces the Donchian calculations with selectable smoothing filters.
Each Ichimoku component (Tenkan, Kijun, Senkou B, Chikou) can be calculated using modern filters designed to handle volatility, noise, and regime shifts.
Supported filters include:
McGinley Dynamic (MD)
VWMA (exchange or tick-derived volume)
EMA / DEMA / SMA / SMMA / WMA
ALMA / LSMA / Hull MA
COVWMA / FRAMA / KAMA
50th Percentile
Moving Median
This allows Ichimoku to behave as:
A smoother trend system
A volatility-adaptive framework
A momentum-responsive overlay
Enhanced Cloud (Kumo) Modeling
Advanced Kumo logic includes:
Independent forward offsets for Span A and Span B
Bull / bear regime classification aligned with how the cloud is actually drawn
Adaptive cloud coloring
Neutral cloud state when spans disagree
This avoids misleading regime signals when different offsets are used.
Directional Persistence Tracking
NICHI tracks directional streaks for key components:
Tenkan direction
Kijun direction
Span A direction
Span B direction
These persistence counters stabilize coloring, reduce flicker, and improve visual clarity during transitions.
Bar Coloring Modes (Advanced)
Three bar-coloring frameworks are included.
Kumo-Based
Above cloud → bullish
Below cloud → bearish
Inside cloud → neutral
Tenkan / Kijun-Based
Above both → bullish
Below both → bearish
Chikou-Based
Chikou above past price → bullish
Chikou below past price → bearish
Each mode is intentionally distinct and serves a different trading style.
Moving Average Overlays
NICHI includes four optional moving average overlays (MA1–MA4):
Configurable type, length, width, and source
Intended for bias, confluence, or higher-timeframe context
Controlled as code-level constants by design
What Changed Since BETA
This release promotes NICHI from beta to stable with the following key improvements:
Chikou regime logic fixed:
Chikou comparisons now reference historical price only, eliminating any future lookahead behavior.
Kumo bull/bear alignment clarified:
Cloud regime classification now matches how the cloud is visually drawn when Span A and Span B use different forward offsets.
Kijun direction tracking corrected:
Kijun coloring now reflects Kijun movement, not Tenkan movement.
Bar coloring gated:
Bar coloring is applied only when Advanced Ichimoku is enabled, preventing unintended behavior when using Standard mode alone.
General stability and cleanup:
Minor bug fixes, consistency improvements, and documentation clarity.
Notes
Advanced Ichimoku is intended for research and visualization, not as a turnkey strategy.
Standard Ichimoku remains a faithful baseline.
If reporting issues, please include symbol, timeframe, and a screenshot.
Daytrading Suite v6.4: Neon TPO + FVG + IB Lines (Stable)Here is the complete **Trading Manual & Strategy Guide** for the **Master Daytrading Suite (Neon + IB Edition)**.
This guide explains exactly **when** to trade and **how** to execute trades using the tools in the script.
---
# 📘 MASTER TRADING MANUAL (Neon + IB)
### 1. THE BASICS
* **Best Assets:** BTCUSDT & ETHUSDT (Futures).
* **Best Timeframe:** 5 Minutes (Entry) / 15 Minutes (Trend).
* **Key Session:** New York Session (High Volatility).
* **Golden Rule:** Never go **LONG** inside a Red Supply Zone. Never go **SHORT** inside a Green Demand Zone.
---
### 2. THE INDICATORS (Legend)
| Indicator | Color | Function | How to use |
| --- | --- | --- | --- |
| **Supply Zone** | 🟥 **Red Box** | Resistance | Look for Short setups here. |
| **Demand Zone** | 🟩 **Green Box** | Support | Look for Long setups here. |
| **Golden Pocket** | 🟧 **Orange** | Retracement | The "Sweet Spot" for trend entries (Fib 0.618). |
| **VWAP** | 🔵 **Blue Line** | Trend Anchor | Price > VWAP = Bullish. Price < VWAP = Bearish. |
| **Initial Balance (IB)** | 🟨 **Yellow Box** | Opening Range | Breakout above = Bullish. Breakdown below = Bearish. |
| **FVG (Gap)** | 🟩/🟥 **Tiny Box** | Trigger | **Green FVG** = Entry Signal for Longs. **Red FVG** = Entry Signal for Shorts. |
---
### 3. STRATEGY A: The Trend Pullback (High Win Rate)
*Use this when the market is trending smoothly.*
#### ✅ HOW TO ENTER A LONG (BUY) POSITION
1. **Trend Check:** Price is trading **ABOVE** the VWAP (Blue Line) and EMA 9 (Yellow Line).
2. **The Wait:** Wait for the price to drop back down (pullback).
3. **The Zone:** Price touches the **Green Demand Zone** OR the **Orange Golden Pocket**.
4. **The Trigger:** A **Green FVG Box** appears on the 5-minute chart.
5. **Execution:** Enter Long. Stop Loss below the recent low. Take Profit at the next Red Zone.
#### 🔻 HOW TO ENTER A SHORT (SELL) POSITION
1. **Trend Check:** Price is trading **BELOW** the VWAP (Blue Line) and EMA 9 (Yellow Line).
2. **The Wait:** Wait for the price to rally up (pullback).
3. **The Zone:** Price touches the **Red Supply Zone** OR the **Orange Golden Pocket**.
4. **The Trigger:** A **Red FVG Box** appears on the 5-minute chart.
5. **Execution:** Enter Short. Stop Loss above the recent high. Take Profit at the next Green Zone.
---
### 4. STRATEGY B: The IB Breakout (Volatility)
*Use this specifically after the first hour of the New York Session (approx. 10:30 NY time).*
* **The Setup:** Look at the **Yellow Box (Initial Balance)** which marks the high/low of the first hour.
* **Bullish Breakout:** If a candle closes **above** the Yellow Box + Price is above VWAP → **Go Long**.
* **Bearish Breakdown:** If a candle closes **below** the Yellow Box + Price is below VWAP → **Go Short**.
* **The Trap (Fakeout):** If price breaks out but immediately falls back inside the Yellow Box, close the trade immediately.
---
### 5. DAILY ROUTINE (Checklist)
1. **Open TradingView:** Switch to the **15m Chart**.
2. **Check Context:** Where are we? Are we near a big Red Box (Supply) or Green Box (Demand)?
3. **Check Trend:** Is price above or below the Blue VWAP line?
4. **Wait for the Open:** Let the first hour of New York pass (to form the Yellow IB Box).
5. **Set Alerts:** Right-click the chart and set alerts for "IB Breakout" or "Golden Pocket".
6. **Execute:** Switch to the **5m Chart** to find your entry trigger (FVG).
---
### 6. RISK MANAGEMENT RULES
* **Stop Loss:** NEVER trade without one. Place it just outside the FVG box or the Zone.
* **Risk per Trade:** 1% to 2% of your account maximum.
* **No Trade Zone:** If the price is "chopping" (moving sideways) inside the Yellow IB Box, **do not trade**. Wait for a breakout.
The SHIFT - Signal Harmonic Inflection Flow Tracker🔄 THE SHIFT — SIGNAL HARMONIC INFLECTION FLOW TRACKER
Precision reversal detection at the exact moment price shifts direction.
📐 CORE CONCEPT: THE INFLECTION POINT
Every sustained price move begins with a single moment — the instant price crosses from one phase to another. THE SHIFT captures this exact inflection point by combining two essential confirmations:
1. The Phase Cross
Price crossing the EMA ribbon midpoint represents a structural change in market bias. The ribbon midpoint is calculated as the average of EMA 21 and EMA 55, creating a dynamic equilibrium zone. When price decisively crosses this level, it signals a potential phase transition.
2. The Confirming Wick
Not every ribbon cross leads to continuation. THE SHIFT filters for quality by requiring the crossing candle to show directional commitment through its wick structure:
✓ Bullish SHIFT: Lower wick ≥ 25% of bar range (buyers absorbed selling pressure)
✓ Bearish SHIFT: Upper wick ≥ 25% of bar range (sellers absorbed buying pressure)
This dual confirmation eliminates weak crosses that occur during sideways chop.
⚙️ HOW IT WORKS
The EMA Ribbon
Five exponential moving averages (8, 13, 21, 34, 55) form an adaptive ribbon that expands during trends and contracts during consolidation. The ribbon serves multiple purposes:
✓ Visual trend identification through color gradient
✓ Dynamic support/resistance zones
✓ Phase boundary definition via ribbon midpoint
Phase Detection
The indicator tracks three distinct market phases:
✓ VELOCITY BULLISH — Price confirmed above ribbon midpoint
✓ VELOCITY BEARISH — Price confirmed below ribbon midpoint
✓ EQUILIBRIUM — Price oscillating around midpoint without confirmation
Phase confirmation requires price to remain on one side of the ribbon for a user-defined number of bars (default: 2), preventing false signals from single-bar noise.
Market Pressure Index (MPI)
MPI quantifies the balance between buying and selling pressure within each bar by analyzing where price closes relative to its range, weighted by volume. This provides momentum context for phase transitions:
✓ Positive MPI confirms bullish pressure
✓ Negative MPI confirms bearish pressure
✓ Strong readings (above threshold) indicate conviction
Consensus Grading System
Each SHIFT signal receives a quality grade (A+, A, B, C) based on five factors:
✓ Phase Strength — EMA alignment plus MPI strength
✓ Trend Alignment — All EMAs properly stacked
✓ Volume Confirmation — Above-average participation
✓ Momentum Convergence — MPI confirms direction
✓ Structure Respect — Price at value area
Higher grades indicate stronger confluence and potentially higher-probability setups.
📊 VISUAL SYSTEM
SHIFT Labels
✓ ▲ SHIFT — Bullish phase flip detected
✓ ▼ SHIFT — Bearish phase flip detected
Labels appear at the exact bar where the phase transition occurs.
Entry Zones
When a qualified SHIFT fires, a colored box appears showing:
✓ Entry zone boundaries
✓ Signal direction (LONG/SHORT)
✓ Wick percentage that triggered the signal
✓ Quality grade
Dynamic Trade Management
THE SHIFT tracks three profit targets (T1, T2, T3) and stop levels with intelligent visual feedback:
✓ Target Lines — Display as dashed lines during active trade
✓ Target Hit — Line turns GREEN with "✓ T1/T2/T3" label
✓ Target Fade — Hit targets progressively fade and disappear after user-defined bars
✓ Stop Hit — Line turns RED with "❌ STOPPED OUT" label
This visual system keeps your chart clean while providing clear feedback on trade progress.
Background Shading
Subtle background color indicates current phase:
✓ Green tint — Bullish phase
✓ Red tint — Bearish phase
✓ Yellow tint — Equilibrium
🧠 SHIFT ASSISTANT — INTELLIGENT COACHING PANEL
The SHIFT Assistant provides real-time contextual guidance that adapts to market conditions:
MARKET READ
Current market assessment:
✓ "💪 Strong bullish trend in play"
✓ "📈 Bullish momentum building"
✓ "🔥 Compression detected - breakout imminent"
✓ "⚖️ Equilibrium - wait for SHIFT"
ACTION
Specific guidance for current situation:
✓ "🟢 SHIFT LONG - Wick confirmed buyers"
✓ "📊 Halfway to T1 - Hold with conviction"
✓ "✅ T1 Hit - Consider partials, move stop to entry"
✓ "👀 Bullish shift but weak wick - skip"
✓ "⏸️ No setup - Patience pays"
CAUTION
Risk warnings when applicable:
✓ "⚠️ Bearish divergence forming - caution on new longs"
✓ "🌊 Volatility expanding - widen mental stops"
INSIGHT
Additional observations:
✓ "✨ Perfect bullish SHIFT setup"
✓ "📊 EMAs fully stacked - trend mature"
✓ "💎 Grade A+ conditions"
TRADE STATUS
When in an active trade:
✓ Current P&L percentage
✓ Bars in trade
✓ Risk buffer remaining (ATR to stop)
📋 MAIN DASHBOARD
The dashboard displays comprehensive real-time information:
Phase Status
✓ Current phase (Velocity Bullish/Bearish/Equilibrium)
✓ Phase strength (Strong/Moderate/Weak)
✓ MPI reading
Consensus Breakdown
✓ Visual progress bar showing consensus score
✓ Individual check status for all five factors
✓ Current quality grade
Wick & Shift Status
✓ Current wick type and percentage
✓ Whether a SHIFT is occurring on current bar
Three Laws Display
✓ Law 1: Direction (SHIFT BULL/BEAR or No Shift)
✓ Law 2: Confirmation (Wick Confirms or Weak Wick)
✓ Law 3: Quality (Grade passes filter or not)
All three laws must be satisfied for a signal to fire.
⚙️ INPUT PARAMETERS
SHIFT Core Engine
✓ MPI Period (14) — Lookback for Market Pressure Index calculation
✓ MPI Sensitivity (1.5) — Amplification factor for pressure readings
✓ Phase Confirmation Bars (2) — Bars required on one side of ribbon to confirm phase
✓ Strong Momentum Threshold (0.5) — MPI level considered "strong"
EMA Ribbon
✓ Show EMA Ribbon — Toggle ribbon visibility
✓ EMA Fast/2/Core/4/Slow (8/13/21/34/55) — Individual EMA periods
Signal Settings
✓ Show Signals — Toggle signal generation
✓ Minimum Signal Grade (B) — Filter signals below this quality threshold
✓ Min Wick Ratio (0.25) — Minimum wick size as percentage of bar range to confirm shift
✓ Show Entry Zones/Stops/Targets — Toggle visual elements
✓ Stop Loss ATR (1.5) — Stop distance in ATR multiples
✓ Zone Width (15) — How many bars entry zones extend forward
✓ Target Fade Duration (8) — Bars before hit targets disappear
Assistant & Dashboard
✓ Position and size options for both panels
✓ Independent show/hide toggles
Visual
✓ Customizable colors for bullish, bearish, neutral, target hit, and stop hit
✓ Background and label transparency controls
🎯 RECOMMENDED USAGE
Best Timeframes
✓ 5-minute to 1-hour for intraday trading
✓ 4-hour to Daily for swing trading
✓ Adjust Min Wick Ratio lower (0.20) on higher timeframes where wicks tend to be smaller
Best Markets
✓ Liquid instruments with clear trending behavior
✓ Futures, Forex, and large-cap equities
✓ Avoid during major news events when price action becomes erratic
Signal Filtering
✓ Grade A+ and A signals have highest confluence
✓ Grade B signals are acceptable with additional confirmation
✓ Grade C signals should generally be skipped
✓ Use the Assistant's ACTION guidance to understand why signals fire or don't fire
Trade Management
✓ T1 at 1× risk (1:1 R) — Consider taking partials
✓ T2 at 2× risk (2:1 R) — Move stop to breakeven
✓ T3 at 3× risk (3:1 R) — Full target, close remaining position
✓ Watch for phase invalidation (opposite SHIFT) as hard stop signal
🔔 ALERTS
THE SHIFT includes comprehensive alert conditions:
✓ SHIFT Long — Bullish entry signal
✓ SHIFT Short — Bearish entry signal
✓ T1/T2/T3 Hit — Target reached notifications
✓ Stopped Out — Stop level breached
✓ Shift Bullish/Bearish — Phase flip events (with or without trade signal)
Dynamic alerts include grade and wick percentage information for complete context.
📝 DEVELOPMENT NOTES
THE SHIFT emerged from extensive research into what makes reversal signals reliable versus unreliable. The key insight was that most failed reversals lack wick confirmation — the candle crosses a level but shows no evidence that the opposing force actually stepped in.
By requiring both the structural cross (price through ribbon midpoint) AND the wick confirmation (evidence of absorption), THE SHIFT filters out the low-quality signals that plague simpler crossover systems.
The intelligent Assistant panel was designed to function as a trading coach, helping traders understand not just WHEN to trade but WHY conditions are or aren't favorable. This educational component helps develop intuition over time.
⚠️ RISK DISCLAIMER
This indicator is a technical analysis tool designed to identify potential trading opportunities. It does not guarantee profits and should not be used as the sole basis for trading decisions.
Past performance of any trading system or methodology is not necessarily indicative of future results. Trading involves substantial risk of loss and is not suitable for all investors.
Always use proper risk management, position sizing appropriate to your account, and never risk more than you can afford to lose. Paper trade any new system extensively before committing real capital.
The developer makes no claims about win rates, profit factors, or expected returns. Your results will vary based on market conditions, timeframe selection, and execution.
🎯 SUMMARY
THE SHIFT provides a unified approach to reversal detection:
✓ Simple Logic — Phase cross + wick confirmation = signal
✓ Quality Grading — Consensus scoring filters for best setups
✓ Visual Clarity — Dynamic trade management keeps charts clean
✓ Intelligent Coaching — Assistant explains market conditions in real-time
✓ Complete System — Entry, targets, stops, and management in one indicator
One objective. One system. Catch the shift.
"The market speaks in inflection points. THE SHIFT translates."
Taking you to school. — Dskyz , Trade with insight. Trade with anticipation.
CVD Flow Dashboard [AMT Edition] + Unified AlertsCVD Flow Dashboard – Live Bar Alerts
1️⃣ Purpose of the Tool
The CVD Flow Dashboard is a reaction-based tool. It does not predict the market; it reacts to real-time order flow imbalances:
Detects strong buying/selling pressure (Delta)
Confirms trend alignment (CVD)
Detects absorption and continuation signals
It is designed to show micro (bar-level) and macro (trend) context simultaneously, allowing you to enter trades after a real market reaction occurs, rather than preempting it.
2️⃣ When to Use It
Use this dashboard in real-time trading for reaction trades:
After an attempted market move is absorbed
Market tests a level (high or low of prior bar) but fails — this is absorption.
Example: buyers push price down but sellers absorb → bullish absorption.
Minimum alignment required:
Delta: strong buy/sell delta
CVD: confirms trend direction
Acceptance: continuation candle breaks prior high/low in alignment with delta/CVD
Optional: Sequence (SEQ) — if the next bar continues the acceptance pattern, confidence rises.
Key point: only act after absorption and alignment, never before.
Recommended Integrations for Best Quality Use:
Auction Session Ranges (AMT Edition) – provides session extremes for context and levels.
CVD Flow Labels for Session Ranges – shows delta alignment across session levels.
All-in-One CVD: Failed Auction + Trap + Flow Classifications – adds absorption, trap, and flow classification confluence.
Using these together provides full micro + macro context, improving trade quality and confidence.
3️⃣ Step-by-Step Usage
Step 1: Monitor the Dashboard
Watch Delta, CVD, Acceptance, and Sequence.
Absorption often occurs without immediate alignment — this is the setup stage.
Step 2: Wait for Absorption
Bullish absorption: strong buy delta, failed auction low, price starting upward reaction
Bearish absorption: strong sell delta, failed auction high, price starting downward reaction
Step 3: Confirm the 3 Minimum Boxes
Delta → strong and aligned with absorption
CVD → trend confirmation
Acceptance → bar closes beyond prior high/low
Proceed only if all three align
Step 4: Check for Sequence (Optional)
Next bar continues pattern → higher-confidence setup
Not required, but reinforces trade quality
4️⃣ Entering Trades
Reaction trade: enter immediately once 3 minimum boxes align after absorption / absorption area re-test.
LONG = Bull absorption + CVD bullish + Acceptance
SHORT = Bear absorption + CVD bearish + Acceptance
Sequence bonus: can add to position or widen stop for confidence
5️⃣ Risk Management / Protecting Positions
Initial Stop-Loss: just beyond failed auction extreme (low for bullish, high for bearish)
Trailing Stop / Sequence Protection: trail below prior bar lows/highs if sequence occurs
Avoid Over-Exposure: multiple trades can occur, but only if alignment is verified
Time Sensitivity: reaction trades are intraday/high-frequency — avoid holding overnight without macro confirmation
6️⃣ Practical Tips
Do not trade solely on absorption — wait for minimum 3-box alignment
Use Sequence only as reinforcement
Watch volume spikes and strong delta — often precede absorption/continuation
Best used on 15-minute timeframe ✅ ✅ or higher for swing intraday confirmation; lower timeframes (5 min) for live reaction trades
Combine with Auction Session Ranges, CVD Flow Labels, and All-in-One CVD tools for best quality trade context
✅ Live Bar Alerts
Alerts trigger on the current live bar best, not just at close make sure it continues if you choose to use at close of candle, when:
Bull alignment: Delta + CVD + Acceptance align (Sequence optional)
Bear alignment: Delta + CVD + Acceptance align (Sequence optional)
Alerts continue after bar close if conditions persist, allowing both immediate reaction entries or confirmation at bar close.
✅ Summary Workflow (Reaction Trade Flow)
Market attempts a move → Absorption occurs
Check 3 minimum boxes: Delta + CVD + Acceptance
Optional: Sequence confirms continuation
Enter trade immediately
Place stop-loss just beyond absorption extreme
Use Sequence for trailing stop or scaling confidence
“Let the market react first, then follow the confirmed flow” — this is why it’s a reaction tool, not predictive.
Adaptive Trend Mapper-ATM [Arjo]Adaptive Trend Mapper (ATM) is a directional pressure indicator designed to visualize how buying and selling commitment evolves during market trends.
Instead of focusing on price direction alone, ATM maps who is exerting stronger pressure —buyers or sellers—and how that pressure expands, weakens, or compresses over time.
Idea
ATM is built around a single concept:
Directional pressure is best understood by weighting trend strength against directional imbalance .
To achieve this, the indicator transforms trend strength into two opposing pressure measures:
Bull Pressure Index
Bear Pressure Index
These indices expand, contract, and converge based on how strongly buyers or sellers are committing, rather than simply tracking momentum or price changes.
How It Works
1. Bull & Bear Pressure Indices
ATM derives two pressure curves by weighting trend strength against directional imbalance:
The Bull Pressure Index increases when upward pressure strengthens.
The Bear Pressure Index increases when downward pressure strengthens.
Both indices operate on a 0–100 scale and are designed to diverge during strong trends and converge during non-directional or compressed phases.
Optional smoothing can be applied to reduce noise and improve readability.
2. Compression / Squeeze Detection
When:
Trend strength weakens,
Bull and Bear pressure converge,
And convergence continues over time,
ATM highlights a compression zone, signaling reduced directional conviction.
These zones often precede directional expansion once pressure rebuilds.
3. Adaptive Trend Context
An adaptive smoothed price curve is displayed on the chart to provide trend context.
Color changes reflect short-term directional shifts, helping align pressure signals with price structure.
This component is contextual only and does not generate signals by itself.
4. Optional Trend Bias Reference
An optional EMA-50 can be enabled to help identify broader directional bias and align pressure behavior with the prevailing trend.
5. Step-Based Visualization
The pressure indices can be optionally step-compressed, improving clarity on fast or noisy charts by reducing minor fluctuations.
How to Use ATM
Rising Bull Pressure → strengthening buyer commitment
Rising Bear Pressure → strengthening seller commitment
Wide separation between indices → strong directional trend
Convergence with compression highlight → range or pre-breakout environment
Notes
ATM uses widely known market concepts such as trend strength, directional imbalance, and adaptive smoothing as conceptual inputs.
All calculations, pressure mapping logic, and compression detection are original implementations developed specifically for this script.
ATM is effective when used to assess participation quality, not as a standalone signal generator.
Disclaimer
This indicator is intended for analysis and educational purposes only.
It does not generate buy or sell signals.
Always apply proper risk management.
Happy Trading.
Vol Compression PRO
## Volatility Compression PRO (Fully Fixed)
This indicator is an **options-theory-inspired “volatility compression → expansion” detector**, enhanced for **crypto trading on 4H/1D**. It is designed as a **two-stage system**:
1. **Environment / Setup (1D)**: Detects a volatility-compressed regime where a breakout is more likely.
2. **Trigger (current chart TF, recommended 4H)**: Confirms the breakout using price structure + volatility expansion + (optional) volume.
A major feature of this script is that it **avoids TradingView’s 5000-bar historical limitation** by recommending a **Daily HV (1D) computation mode**, which is stable and not constrained by intraday bar counts.
---
## Core Concept
### Stage A — “Setup” (Daily Environment Filter)
On the **daily timeframe**, the script estimates realized volatility (HV) and produces an **Environment Score (0–100)** that reflects how “compressed” volatility is versus its own history.
A **Setup window** becomes active when:
* `Environment Score >= Setup Threshold`
* Optional “persistence” can keep Setup active for N days after triggering (to avoid edge flicker).
It also calculates a **daily directional bias** (Bull/Bear) using one of two methods:
* **Price vs Daily EMA** (default): bias is bullish if daily close > daily EMA, bearish if below.
* **MACD > 0**: bias is bullish if daily MACD line > 0, bearish if < 0.
This stage answers:
**“Are we in a volatility-compressed regime worth watching, and what is the higher-timeframe bias?”**
---
## HV / Compression Scoring Model
The script computes:
* **Short-term HV**: standard deviation of log returns over a short window
* **Long-term HV**: standard deviation of log returns over a long window
* **HV Percentile**: percentile rank of short HV over a historical lookback
* **Compression Ratio (S/L)**: short HV divided by long HV (`<1` implies compression, `>1` implies expansion)
* **Log-Z Deviation**: Z-score of log(HV) vs its historical distribution (more stable than raw HV Z-score)
Then it builds a **0–100 score** using weighted components:
* Low HV percentile (lower = more compressed)
* Compression ratio below 1 (more compression)
* Negative log-Z deviation (HV below typical)
This produces a single number: **“Explosion Potential (Environment Score)”**.
---
## Stage B — Trigger Logic (Current Chart Timeframe, recommended 4H)
A **Long Trigger** fires only when **all** of the following are true:
1. **Setup is active** (from daily environment score)
2. **Daily bias is bullish**
3. **Donchian breakout UP**
* Close breaks above the **previous bar’s** highest high of the last N bars
* Uses ` ` to avoid same-bar repaint-style lookback issues
4. **Volatility expansion confirmation**, via either:
* **Bollinger Band Width rising** (BBW turns up and exceeds its mean), and/or
* **ATR% rising** (ATR as % of price increases)
5. **Optional volume confirmation**:
* Volume > SMA(volume) × multiplier (if enabled)
A **Short Trigger** mirrors the long logic (requires bearish bias + downside Donchian break), and can be toggled on/off.
This stage answers:
**“Did price actually escape the compression box, and is volatility expanding with it?”**
---
## Two HV Calculation Modes (5000-bar limitation fix)
### 1) **Daily HV (Recommended)**
* Computes HV + Score + Setup on the **daily timeframe using `request.security(...,"D",...)`**
* This avoids intraday needing thousands of bars to represent many days
* Much more stable and reliable for regime detection
### 2) **Adaptive to Chart TF**
* Computes HV on the **current chart timeframe**
* Includes a strict conversion of “days → bars” and clamps lengths to **<= 4800 bars** to avoid the 5000-bar ceiling
* Still less robust on small timeframes, but won’t crash the script
---
## Visualization
* Plots the **Environment Score** as the main line (colored by score level)
* Draws reference lines at 70 / 50 / 30
* Highlights the background when **Setup** is active
* Optional trigger markers:
* **“L”** for long trigger (triangle up)
* **“S”** for short trigger (triangle down)
* A top-right info panel shows:
* HV short/long, HV percentile, compression ratio, log-Z deviation
* Environment score, Setup active status, daily bias
* Breakout status, expansion confirmation, volume confirmation
* Current mode (“1D fixed” vs “Adaptive”)
---
## Alerts
Built-in alert conditions:
* Setup active (compression window)
* Long Trigger
* Short Trigger
---
## Intended Use (Practical)
* Use **1D** to judge whether volatility is compressed and define bias
* Use **4H** to wait for a clean breakout plus expansion confirmation
* Avoid forcing entries during compression without a real breakout (“don’t catch falling knives” logic)
Trend Speed Analyzer with Entries (Zeiierman)📈 Trend Speed Analyzer with Entry Signals (Zeiierman – Modified)
🔹 Overview
This indicator is a trend-following momentum system built around an adaptive (dynamic) moving average and a proprietary trend speed / wave strength engine.
It is designed to identify high-quality continuation entries after price confirms direction, not to predict tops or bottoms.
Best suited for:
Index futures (ES, NQ)
ETFs (SPY, QQQ)
Strongly trending stocks
Intraday or swing trading
🔹 Core Concepts
1️⃣ Dynamic Trend Line (Adaptive EMA)
Instead of using a fixed EMA length, this script dynamically adjusts:
EMA length based on normalized price movement
EMA responsiveness using an accelerator factor
Result:
Fast reaction during strong trends
Smooth behavior during choppy markets
Fewer false flips compared to traditional EMAs
This trend line acts as the primary regime filter.
2️⃣ Trend Speed & Wave Analysis
The indicator tracks trend speed, which represents cumulative directional pressure over time.
It also records:
Bullish wave sizes
Bearish wave sizes
Average vs maximum wave strength
Bull/Bear dominance
These statistics are displayed in an optional table to help assess:
Market bias
Momentum asymmetry
Whether the current move is weak, average, or exceptional
🔹 Entry Signal Logic (One Signal per Trend Shift)
Signals are not spammy.
Only one entry signal is allowed per crossover.
Long Entry Conditions
A long signal is generated when:
Price crosses above the dynamic trend line
A bullish candle forms
The candle body is at least X% of ATR (filters weak/doji candles)
The entire candle body is above the trend line
(Optional) Trend speed is positive
Short Entry Conditions
A short signal is generated when:
Price crosses below the dynamic trend line
A bearish candle forms
The candle body is at least X% of ATR
The entire candle body is below the trend line
(Optional) Trend speed is negative
📌 Once a signal fires, no additional signals will appear until a new crossover occurs.
🔹 What this indicator is NOT
❌ Not a mean-reversion system
❌ Not a prediction tool
❌ Not meant for sideways markets
This tool assumes structure → confirmation → continuation.
🔹 How to Trade It (Suggested Use)
Use higher timeframes (5m–30m) for cleaner signals
Trade in the direction of higher-timeframe bias
Combine with:
VWAP
Key levels (PDH / PDL / PMH / PML)
Market session context
🔹 Customization
Adjust Maximum Length for smoother vs faster trends
Adjust Accelerator Multiplier for sensitivity
Enable/disable speed filter for stricter momentum confirmation
ATR candle filter removes weak signals automatically
⚠️ Disclaimer
This indicator provides technical signals only and does not include trade management, stops, or targets.
Always apply proper risk management.
Biller Project//@version=6
indicator("Hoon Fib Project", shorttitle ="Hoon Fib", overlay = true, max_bars_back = 5000)
// -----------------------------------------------------------------------------
// ~~ Tooltips & Constants
// -----------------------------------------------------------------------------
var string t1 = "Period:\nNumber of bars used to detect swing highs and swing lows."
var string t2 = "Projection Level:\nFibonacci ratio used to calculate the projected future targets."
var string t2_b = "Trend Projection Ratio:\nThe secondary Fibonacci ratio for extensions."
var string t15 = "Fib Volume Profile:\nEnable volume profile drawn between the last swing high and low."
var string t20 = "Fib Volume Delta:\nEnable volume delta profile between Fibonacci price bands."
// -----------------------------------------------------------------------------
// ~~ Inputs
// -----------------------------------------------------------------------------
// Group: General Settings
prd = input.int(100, "Period", group = "Fib Settings", tooltip = t1)
lvl = input.float(0.618, "Projection Level", options = , group = "Fib Settings", tooltip = t2)
trendFibbRatio = input.float(1.272, "Trend Projection Ratio", step = 0.001, group = "Fib Settings", tooltip = t2_b)
// Group: Fib Levels Style
fibLvl1 = input.float(0.236, "Level 1", group = "Fib Levels Style", inline = "f1")
fibColor236 = input.color(#f23645, "", group = "Fib Levels Style", inline = "f1")
fibLvl2 = input.float(0.382, "Level 2", group = "Fib Levels Style", inline = "f2")
fibColor382 = input.color(#81c784, "", group = "Fib Levels Style", inline = "f2")
fibLvl3 = input.float(0.500, "Level 3", group = "Fib Levels Style", inline = "f3")
fibColor500 = input.color(#4caf50, "", group = "Fib Levels Style", inline = "f3")
fibLvl4 = input.float(0.618, "Level 4", group = "Fib Levels Style", inline = "f4")
fibColor618 = input.color(#089981, "", group = "Fib Levels Style", inline = "f4")
fibLvl5 = input.float(0.786, "Level 5", group = "Fib Levels Style", inline = "f5")
fibColor786 = input.color(#64b5f6, "", group = "Fib Levels Style", inline = "f5")
// Golden Pocket - FIXED COLOR HERE
showGP = input.bool(true, "Show Golden Pocket (0.65)", group = "Fib Levels Style")
gpColor = input.color(color.new(#FFD700, 85), "GP Color", group = "Fib Levels Style")
fibLineWidth = input.int(2, "Fib Line Width", minval = 1, maxval = 5, group = "Fib Levels Style")
showlab = input.bool(true, "Show Labels", group = "Fib Levels Style", inline = "fiblab")
fibLabelColor = input.color(color.white, "Text Color", group = "Fib Levels Style", inline = "fiblab")
fibLabelSizeStr = input.string("Small", "Size", options = , group = "Fib Levels Style", inline = "fiblab")
fibLabelSize = switch fibLabelSizeStr
"Tiny" => size.tiny
"Small" => size.small
"Large" => size.large
=> size.normal
// Group: Swing High/Low Lines
loLineColor = input.color(color.new(color.green, 0), "Low Line", group = "Swing High/Low Lines Style", inline = "hi")
hiLineColor = input.color(color.new(color.red, 0), "High Line", group = "Swing High/Low Lines Style", inline = "hi")
hiloLineWidth = input.int(2, "Width", 1, 5, group = "Swing High/Low Lines Style", inline = "hi")
// Group: Fib Volume Profile
showFibProfile = input.bool(true, "Show Volume Profile", group = "Fib Volume Profile", tooltip = t15)
rows = input.int(24, "Rows", 2, 100, group = "Fib Volume Profile")
flipOrder = input.bool(false, "Flip Bull/Bear", group = "Fib Volume Profile")
bull_color = input.color(color.new(color.teal, 30), "Bull Vol", group = "Fib Volume Profile", inline = "volColor")
bear_color = input.color(color.new(color.orange, 30), "Bear Vol", group = "Fib Volume Profile", inline = "volColor")
showVolText = input.bool(true, "Show Values", group = "Fib Volume Profile", inline = "vtxt")
// Point of Control (POC)
showPOC = input.bool(true, "Show POC Line", group = "Fib Volume Profile")
pocColor = input.color(color.yellow, "POC Color", group = "Fib Volume Profile")
// Group: Fib Volume Delta
showFibDelta = input.bool(false, "Show Volume Delta", group = "Fib Volume Delta Profile", tooltip = t20)
deltaMaxWidth = input.int(30, "Max Width (Bars)", minval = 5, maxval = 200, group = "Fib Volume Delta Profile")
deltaBullColor = input.color(color.new(color.lime, 80), "Bull Delta", group = "Fib Volume Delta Profile", inline = "dc")
deltaBearColor = input.color(color.new(color.red, 80), "Bear Delta", group = "Fib Volume Delta Profile", inline = "dc")
// Group: Projection Style
projLineBullColor = input.color(color.new(color.green, 0), "Proj Bull", group = "Projection Style", inline = "plc")
projLineBearColor = input.color(color.new(color.red, 0), "Proj Bear", group = "Projection Style", inline = "plc")
projLineWidth = input.int(2, "Width", 1, 5, group = "Projection Style", inline = "plc")
projLineStyleStr = input.string("Arrow Right", "Style", options = , group = "Projection Style")
projLineStyle = switch projLineStyleStr
"Solid" => line.style_solid
"Dashed" => line.style_dashed
"Dotted" => line.style_dotted
=> line.style_arrow_right
// Group: Projection Box
projBoxBgOn = input.bool(true, "Box Bg", group = "Projection Box Style", inline = "pbg")
projBoxBgColor = input.color(color.new(color.blue, 80), "", group = "Projection Box Style", inline = "pbg")
projBoxTextColor = input.color(color.white, "Text", group = "Projection Box Style", inline = "pbg")
// NEW: Biller's Info Box Inputs
showBillerBox = input.bool(true, "Show Biller's Insight", group = "Biller's Insight")
billerPos = input.string("Top Right", "Position", options = , group = "Biller's Insight")
// -----------------------------------------------------------------------------
// ~~ Calculations
// -----------------------------------------------------------------------------
// Swing detection
hi = ta.highest(high, prd)
lo = ta.lowest(low, prd)
isHi = high == hi
isLo = low == lo
HB = ta.barssince(isHi)
LB = ta.barssince(isLo)
hiPrice = ta.valuewhen(isHi, high, 0)
loPrice = ta.valuewhen(isLo, low, 0)
hiBar = ta.valuewhen(isHi, bar_index, 0)
loBar = ta.valuewhen(isLo, bar_index, 0)
// Persistent Drawing Objects
var line hiLine = line.new(na, na, na, na, color = hiLineColor, width = hiloLineWidth)
var line loLine = line.new(na, na, na, na, color = loLineColor, width = hiloLineWidth)
var array fibbLines = array.new_line()
var array fibbLabels = array.new_label()
var array gpBoxes = array.new_box()
var array forecastLines = array.new_line()
var array areas = array.new_box()
var array perc = array.new_label()
var array fibProfileBoxes = array.new_box()
var array pocLines = array.new_line()
var array fibDeltaBoxes = array.new_box()
// Helper Functions
fibbFunc(v, last, h, l) => last ? h - (h - l) * v : l + (h - l) * v
cleaner(a, idx) =>
if idx >= 0 and idx < array.size(a)
el = array.get(a, idx)
if not na(el)
el.delete()
array.remove(a, idx)
// -----------------------------------------------------------------------------
// ~~ Logic Execution
// -----------------------------------------------------------------------------
if not na(HB) and not na(LB) and not na(hiPrice) and not na(loPrice)
// 1. Update Swing High/Low Lines
line.set_xy1(hiLine, hiBar, hiPrice)
line.set_xy2(hiLine, bar_index, hiPrice)
line.set_color(hiLine, hiLineColor)
line.set_xy1(loLine, loBar, loPrice)
line.set_xy2(loLine, bar_index, loPrice)
line.set_color(loLine, loLineColor)
// 2. Clear old drawings
while array.size(fibbLines) > 0
cleaner(fibbLines, 0)
while array.size(fibbLabels) > 0
cleaner(fibbLabels, 0)
while array.size(gpBoxes) > 0
cleaner(gpBoxes, 0)
while array.size(forecastLines) > 0
cleaner(forecastLines, 0)
while array.size(areas) > 0
cleaner(areas, 0)
while array.size(perc) > 0
cleaner(perc, 0)
// 3. Draw Fib Retracements
lvls = array.from(fibLvl1, fibLvl2, fibLvl3, fibLvl4, fibLvl5)
cols = array.from(fibColor236, fibColor382, fibColor500, fibColor618, fibColor786)
baseOffset = HB > LB ? LB : HB
xFibStart = bar_index - baseOffset
// Golden Pocket Logic
if showGP
gp618 = fibbFunc(0.618, HB < LB, hiPrice, loPrice)
gp65 = fibbFunc(0.65, HB < LB, hiPrice, loPrice)
gpBox = box.new(xFibStart, gp618, bar_index + 5, gp65, bgcolor = gpColor, border_color = na)
array.push(gpBoxes, gpBox)
for in lvls
f = fibbFunc(e, HB < LB, hiPrice, loPrice)
ln = line.new(xFibStart, f, bar_index, f, color = cols.get(i), width = fibLineWidth)
array.push(fibbLines, ln)
if showlab
lbl = label.new(bar_index + 1, f, str.tostring(e * 100, "#.##") + "%",
textcolor = fibLabelColor, style = label.style_label_left, size = fibLabelSize, color = cols.get(i))
array.push(fibbLabels, lbl)
// 4. Draw Projections
bars = math.abs(HB - LB)
fibb = fibbFunc(lvl, LB > HB, hiPrice, loPrice)
fibb2 = LB < HB ? fibbFunc(lvl, true, fibb, loPrice) : fibbFunc(lvl, false, hiPrice, fibb)
trendfibb = LB > HB ? fibbFunc(trendFibbRatio, true, hiPrice, loPrice) : fibbFunc(trendFibbRatio, false, hiPrice, loPrice)
forecast = array.from(HB < LB ? hiPrice : loPrice, fibb, fibb2, trendfibb)
segment = math.min(bars, math.floor(500.0 / 4.0))
future = bar_index
for i = 0 to forecast.size() - 2
y1 = forecast.get(i)
y2 = forecast.get(i + 1)
x2 = math.min(future + segment, bar_index + 500)
// Draw Projection Line
lnForecast = line.new(future, y1, x2, y2, color = y1 < y2 ? projLineBullColor : projLineBearColor, width = projLineWidth, style = projLineStyle)
array.push(forecastLines, lnForecast)
// Draw Target Box
midBoxLeft = x2 - math.round((future - x2) / 4.0)
txtLevel = i == forecast.size() - 2 ? str.tostring(trendFibbRatio, "#.###") : str.tostring(lvl * 100, "#.##")
boxHeight = math.abs(y1 - y2) / 10.0
bx = box.new(midBoxLeft, y2 + boxHeight, x2 + math.round((future - x2) / 4.0), y2 - boxHeight,
bgcolor = projBoxBgOn ? projBoxBgColor : na, border_width = 1,
text = txtLevel, text_color = projBoxTextColor)
array.push(areas, bx)
future += segment
// 5. Volume Profile Logic
if showFibProfile and hiBar != loBar
while array.size(fibProfileBoxes) > 0
cleaner(fibProfileBoxes, 0)
while array.size(pocLines) > 0
cleaner(pocLines, 0)
top = math.max(hiPrice, loPrice)
bottom = math.min(hiPrice, loPrice)
step = (top - bottom) / rows
// Define bins
volUp = array.new_float(rows, 0.0)
volDn = array.new_float(rows, 0.0)
startBar = math.min(hiBar, loBar)
endBar = math.max(hiBar, loBar)
for bi = startBar to endBar
offset = bar_index - bi
if offset < 4999
p = hlc3
v = nz(volume )
isBull = close > open
// Find correct bin
if p >= bottom and p <= top
idx = int((p - bottom) / step)
idx := math.min(idx, rows - 1)
if isBull
array.set(volUp, idx, array.get(volUp, idx) + v)
else
array.set(volDn, idx, array.get(volDn, idx) + v)
// Draw Volume Boxes and Calc POC
maxTot = 0.0
maxTotIdx = 0 // Track index of max volume
for i = 0 to rows - 1
tot = array.get(volUp, i) + array.get(volDn, i)
if tot > maxTot
maxTot := tot
maxTotIdx := i
span = endBar - startBar + 1
blendTxtColor = color.new(color.white, 30)
minWidthForText = 2
if maxTot > 0
for r = 0 to rows - 1
upV = array.get(volUp, r)
dnV = array.get(volDn, r)
if upV + dnV > 0
normUp = int((upV / maxTot) * span)
normDn = int((dnV / maxTot) * span)
yTop = bottom + step * (r + 1)
yBot = bottom + step * r
// Draw Bull Box
if normUp > 0
txtBull = (showVolText and normUp > minWidthForText) ? str.tostring(upV, format.volume) : ""
bxBull = box.new(startBar + (flipOrder ? 0 : normDn), yTop, startBar + (flipOrder ? normUp : normUp + normDn), yBot,
bgcolor = bull_color, border_style = line.style_dotted, border_color = color.new(bull_color, 50),
text = txtBull, text_color = blendTxtColor, text_size = size.tiny, text_halign = text.align_center, text_valign = text.align_center)
array.push(fibProfileBoxes, bxBull)
// Draw Bear Box
if normDn > 0
txtBear = (showVolText and normDn > minWidthForText) ? str.tostring(dnV, format.volume) : ""
bxBear = box.new(startBar + (flipOrder ? normUp : 0), yTop, startBar + (flipOrder ? normUp + normDn : normDn), yBot,
bgcolor = bear_color, border_style = line.style_dotted, border_color = color.new(bear_color, 50),
text = txtBear, text_color = blendTxtColor, text_size = size.tiny, text_halign = text.align_center, text_valign = text.align_center)
array.push(fibProfileBoxes, bxBear)
// Draw POC Line
if showPOC
pocY = bottom + step * (maxTotIdx + 0.5) // Midpoint of max bin
pocLn = line.new(startBar, pocY, bar_index + 10, pocY, color = pocColor, width = 2, style = line.style_solid)
array.push(pocLines, pocLn)
// 6. Volume Delta Logic
if showFibDelta and hiBar != loBar
while array.size(fibDeltaBoxes) > 0
cleaner(fibDeltaBoxes, 0)
fibPrices = array.new_float()
array.push(fibPrices, hiPrice)
array.push(fibPrices, loPrice)
for e in lvls
array.push(fibPrices, fibbFunc(e, HB < LB, hiPrice, loPrice))
array.sort(fibPrices)
bandsCount = array.size(fibPrices) - 1
bandBull = array.new_float(bandsCount, 0.0)
bandBear = array.new_float(bandsCount, 0.0)
startBar = math.min(hiBar, loBar)
endBar = math.max(hiBar, loBar)
for bi = startBar to endBar
offset = bar_index - bi
if offset < 4999
p = hlc3
v = nz(volume )
isBull = close > open
for b = 0 to bandsCount - 1
bLow = array.get(fibPrices, b)
bHigh = array.get(fibPrices, b + 1)
if p >= bLow and p < bHigh
if isBull
array.set(bandBull, b, array.get(bandBull, b) + v)
else
array.set(bandBear, b, array.get(bandBear, b) + v)
break
maxAbsDelta = 0.0
for b = 0 to bandsCount - 1
maxAbsDelta := math.max(maxAbsDelta, math.abs(array.get(bandBull, b) - array.get(bandBear, b)))
if maxAbsDelta > 0
for b = 0 to bandsCount - 1
delta = array.get(bandBull, b) - array.get(bandBear, b)
if delta != 0
widthBars = int((math.abs(delta) / maxAbsDelta) * deltaMaxWidth)
widthBars := math.max(widthBars, 1)
col = delta >= 0 ? deltaBullColor : deltaBearColor
dBox = box.new(startBar - widthBars, array.get(fibPrices, b+1), startBar, array.get(fibPrices, b),
bgcolor = col, border_color = na,
text = "Δ " + str.tostring(delta, format.volume), text_color = color.new(color.white, 20), text_size = size.small)
array.push(fibDeltaBoxes, dBox)
// -----------------------------------------------------------------------------
// ~~ Biller's Info Box Logic
// -----------------------------------------------------------------------------
var table infoTable = table.new(
position = billerPos == "Top Right" ? position.top_right : billerPos == "Bottom Right" ? position.bottom_right : billerPos == "Bottom Left" ? position.bottom_left : position.top_left,
columns = 1,
rows = 3,
bgcolor = color.new(color.black, 40),
border_width = 1,
border_color = color.new(color.white, 80)
)
if showBillerBox and barstate.islast
// Determine Bias: If the last Pivot was a LOW (LB < HB), market is technically trending UP from that low.
bool isBullish = LB < HB
string biasTitle = isBullish ? "🐂 BULLISH BIAS" : "🐻 BEARISH BIAS"
color biasColor = isBullish ? color.new(color.green, 20) : color.new(color.red, 20)
string biasMsg = isBullish ? "Don't look for shorts, Biller!" : "Don't look for longs, Biller!"
// Array of Quotes
string quotes = array.from(
"Biller, you're not gonna pass ur eval looking at the chart all day.",
"Fuck it, go in. I believe in u.",
"Trust JD's Signals.",
"Scared money makes no money, Biller.",
"Evaluation is just a mindset.",
"JD is watching... don't fumble.",
"Are you really gonna take that trade?",
"Wait for the setup, Biller.",
"Don't be a liquidity exit, Biller."
)
int quoteIdx = bar_index % array.size(quotes)
string currentQuote = array.get(quotes, quoteIdx)
// Row 1: Bias Header
table.cell(infoTable, 0, 0, biasTitle, bgcolor = biasColor, text_color = color.white, text_size = size.normal)
// Row 2: Instruction
table.cell(infoTable, 0, 1, biasMsg, text_color = color.white, text_size = size.small)
// Row 3: Motivation/Quote
table.cell(infoTable, 0, 2, "\"" + currentQuote + "\"", text_color = color.yellow, text_size = size.small, text_halign = text.align_center)
Quantum Reversal Detector [JOAT]
Quantum Reversal Detector - Multi-Factor Reversal Probability Analysis
Introduction and Purpose
Quantum Reversal Detector is an open-source overlay indicator that combines multiple reversal detection methods into a unified probability-based framework. The core problem this indicator addresses is the unreliability of single-factor reversal signals. A price touching support means nothing without momentum confirmation; an RSI oversold reading means nothing without price structure context.
This indicator solves that by requiring multiple independent factors to align before generating reversal signals, then expressing the result as a probability score rather than a binary signal.
Why These Components Work Together
The indicator combines five analytical approaches, each addressing a different aspect of reversal detection:
1. RSI Extremes - Identifies momentum exhaustion (overbought/oversold)
2. MACD Crossovers - Confirms momentum direction change
3. Support/Resistance Proximity - Ensures price is at a significant level
4. Multi-Depth Momentum - Analyzes momentum across multiple timeframes
5. Statistical Probability - Quantifies reversal likelihood using Bayesian updating
These components are not randomly combined. Each filter catches reversals that others miss:
RSI catches momentum exhaustion but misses structural reversals
MACD catches momentum shifts but lags price action
S/R proximity catches structural levels but ignores momentum
Multi-depth momentum catches divergences across timeframes
Probability scoring combines all factors into actionable confidence levels
How the Detection System Works
Step 1: Pattern Detection
The indicator first identifies potential reversal conditions:
// Check if price is at support/resistance
float lowestLow = ta.lowest(low, period)
float highestHigh = ta.highest(high, period)
bool atSupport = low <= lowestLow * 1.002
bool atResistance = high >= highestHigh * 0.998
// Check RSI conditions
float rsi = ta.rsi(close, 14)
bool oversold = rsi < 30
bool overbought = rsi > 70
// Check MACD crossover
float macd = ta.ema(close, 12) - ta.ema(close, 26)
float signal = ta.ema(macd, 9)
bool macdBullish = ta.crossover(macd, signal)
bool macdBearish = ta.crossunder(macd, signal)
// Combine for reversal detection
if atSupport and oversold and macdBullish
bullishReversal := true
Step 2: Multi-Depth Momentum Analysis
The indicator calculates momentum across multiple periods to detect divergences:
calculateQuantumMomentum(series float price, simple int period, simple int depth) =>
float totalMomentum = 0.0
for i = 0 to depth - 1
int currentPeriod = period * (i + 1)
float momentum = ta.roc(price, currentPeriod)
totalMomentum += momentum
totalMomentum / depth
This creates a composite momentum reading that smooths out noise while preserving genuine momentum shifts.
Step 3: Bayesian Probability Calculation
The indicator uses Bayesian updating to calculate reversal probability:
bayesianProbability(series float priorProb, series float likelihood, series float evidence) =>
float posterior = evidence > 0 ? (likelihood * priorProb) / evidence : priorProb
math.min(math.max(posterior, 0.0), 1.0)
The prior probability starts at 50% and updates based on:
RSI extreme readings increase likelihood
MACD crossovers increase likelihood
S/R proximity increases likelihood
Momentum divergence increases likelihood
Step 4: Confidence Intervals
Using Monte Carlo simulation concepts, the indicator estimates price distribution:
monteCarloSimulation(series float price, series float volatility, simple int iterations) =>
float sumPrice = 0.0
float sumSqDiff = 0.0
for i = 0 to iterations - 1
float randomFactor = (i % 10 - 5) / 10.0
float simulatedPrice = price + volatility * randomFactor
sumPrice += simulatedPrice
float avgPrice = sumPrice / iterations
// Calculate standard deviation for confidence intervals
This provides 95% and 99% confidence bands around the current price.
Signal Classification
Signals are classified by confirmation level:
Confirmed Reversal : Pattern detected for N consecutive bars (default 3)
High Probability : Confirmed + Bayesian probability > 70%
Ultra High Probability : High probability + PDF above average
Dashboard Information
The dashboard displays:
Bayesian Probability - Updated reversal probability (0-100%)
Quantum Momentum - Multi-depth momentum average
RSI - Current RSI value with overbought/oversold status
Volatility - Current ATR as percentage of price
Reversal Signal - BULLISH, BEARISH, or NONE
Divergence - Momentum divergence detection
MACD - Current MACD histogram value
S/R Zone - AT SUPPORT, AT RESISTANCE, or NEUTRAL
95% Confidence - Price range with 95% probability
Bull/Bear Targets - ATR-based reversal targets
Visual Elements
Quantum Bands - ATR-based upper and lower channels
Probability Field - Circle layers showing probability distribution
Confidence Bands - 95% and 99% confidence interval circles
Reversal Labels - REV markers at confirmed reversals
High Probability Markers - Star diamonds at high probability setups
Reversal Zones - Boxes around confirmed reversal areas
Divergence Markers - Triangles at momentum divergences
How to Use This Indicator
For Reversal Trading:
1. Wait for Bayesian Probability to exceed 70%
2. Confirm price is at S/R zone (dashboard shows AT SUPPORT or AT RESISTANCE)
3. Check that RSI is in extreme territory (oversold for longs, overbought for shorts)
4. Enter when REV label appears with high probability marker
For Risk Management:
1. Use the 95% confidence band as a stop-loss reference
2. Use Bull/Bear Targets for take-profit levels
3. Higher probability readings warrant larger position sizes
For Filtering False Signals:
1. Increase Confirmation Bars to require more consecutive signals
2. Only trade when probability exceeds 70%
3. Require divergence confirmation for highest conviction
Input Parameters
Reversal Period (21) - Lookback for S/R and momentum calculations
Quantum Depth (5) - Number of momentum layers for multi-depth analysis
Confirmation Bars (3) - Consecutive bars required for confirmation
Detection Sensitivity (1.2) - Band width and target multiplier
Bayesian Probability (true) - Enable probability calculation
Monte Carlo Simulation (true) - Enable confidence interval calculation
Normal Distribution (true) - Enable PDF calculation
Confidence Intervals (true) - Enable confidence bands
Timeframe Recommendations
1H-4H: Best for swing trading reversals
Daily: Fewer but more significant reversal signals
15m-30m: More signals, requires higher probability threshold
Limitations
Statistical concepts are simplified implementations for Pine Script
Monte Carlo uses deterministic pseudo-random factors, not true randomness
Bayesian probability uses simplified prior/likelihood model
Reversal detection does not guarantee actual reversals will occur
Confirmation bars add lag to signal generation
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied to understand how each component works.
This indicator does not constitute financial advice. Reversal detection is probabilistic, not predictive. The probability scores represent statistical likelihood based on historical patterns, not guaranteed outcomes. Past performance does not guarantee future results. Always use proper risk management, position sizing, and stop-losses.
- Made with passion by officialjackofalltrades
Photon Price Action Scanner [JOAT]Photon Price Action Scanner - Multi-Pattern Recognition with Adaptive Filtering
Introduction and Purpose
Photon Price Action Scanner is an open-source overlay indicator that automates the detection of 15+ candlestick patterns while filtering them through multiple confirmation layers. The core problem this indicator solves is pattern noise: raw candlestick pattern detection produces too many signals, most of which fail because they lack context. This indicator addresses that by combining pattern recognition with trend alignment, volume-weighted strength scoring, velocity confirmation, and an adaptive neural bias filter.
The combination of these components is not arbitrary. Each filter addresses a specific weakness in standalone pattern detection:
Trend alignment ensures patterns appear in favorable market structure
Volume-weighted strength filters out weak patterns with low conviction
Velocity confirmation identifies momentum behind the pattern
Neural bias filter adapts to recent price behavior to avoid counter-trend signals
What Makes This Indicator Original
While candlestick pattern scanners exist, this indicator's originality comes from:
1. Multi-Layer Filtering System - Patterns must pass through trend, strength, velocity, and neural bias filters before generating signals. This dramatically reduces false positives compared to simple pattern detection.
2. Adaptive Neural Bias Filter - A custom momentum-adjusted EMA that learns from recent price action using a configurable learning rate. This is not a standard moving average but an adaptive filter that accelerates during trends and smooths during consolidation.
3. Pattern Strength Scoring - Each pattern receives a strength score based on volume ratio and body size, allowing traders to focus on high-conviction setups rather than every pattern occurrence.
4. Smart Cooldown System - Prevents signal overlap by enforcing minimum bar spacing between pattern labels, keeping charts clean even when "Show All Patterns" is enabled.
How the Components Work Together
Step 1: Pattern Detection
The indicator scans for 15 candlestick patterns using precise mathematical definitions:
// Example: Bullish Engulfing requires the current bullish candle to completely
// engulf the previous bearish candle with a larger body
isBullishEngulfing() =>
bool pattern = close < open and close > open and
open <= close and close >= open and
close - open > open - close
pattern
// Example: Three White Soldiers requires three consecutive bullish candles
// with each opening within the previous body and closing higher
isThreeWhiteSoldiers() =>
bool pattern = close > open and close > open and close > open and
close < close and close < close and
open > open and open < close and
open > open and open < close
pattern
Step 2: Strength Calculation
Each detected pattern receives a strength score combining volume and body size:
float volRatio = avgVolume > 0 ? volume / avgVolume : 1.0
float bodySize = math.abs(close - open) / close
float baseStrength = (volRatio + bodySize * 100) / 2
This ensures patterns with above-average volume and large bodies score higher than weak patterns on low volume.
Step 3: Trend Alignment
Patterns are checked against the trend direction using an EMA:
float trendEMA = ta.ema(close, i_trendPeriod)
int trendDir = close > trendEMA ? 1 : close < trendEMA ? -1 : 0
Bullish patterns in uptrends and bearish patterns in downtrends receive priority.
Step 4: Neural Bias Filter
The adaptive filter uses a momentum-adjusted EMA that responds to price changes:
neuralEMA(series float src, simple int period, simple float lr) =>
var float neuralValue = na
var float momentum = 0.0
if na(neuralValue)
neuralValue := src
float error = src - neuralValue
float adjustment = error * lr
momentum := momentum * 0.9 + adjustment * 0.1
neuralValue := neuralValue + adjustment + momentum
neuralValue
The learning rate (lr) controls how quickly the filter adapts. Higher values make it more responsive; lower values make it smoother.
Step 5: Velocity Confirmation
Price velocity (rate of change) must exceed the average velocity for strong signals:
float velocity = ta.roc(close, i_trendPeriod)
float avgVelocity = ta.sma(velocity, i_trendPeriod)
bool velocityBull = velocity > avgVelocity * 1.5
Step 6: Signal Classification
Signals are classified based on how many filters they pass:
Strong Pattern : Pattern + strength threshold + trend alignment + neural bias + velocity
Ultra Pattern : Strong pattern + gap in same direction + velocity confirmation
Watch Pattern : Pattern detected but not all filters passed
Detected Patterns
Classic Reversal Patterns:
Bullish/Bearish Engulfing - Complete body engulfment with larger body
Hammer - Long lower wick (2x body), small upper wick, bullish context
Shooting Star - Long upper wick (2x body), small lower wick, bearish context
Morning Star - Three-bar bullish reversal with small middle body
Evening Star - Three-bar bearish reversal with small middle body
Piercing Line - Bullish candle closing above midpoint of previous bearish candle
Dark Cloud Cover - Bearish candle closing below midpoint of previous bullish candle
Bullish/Bearish Harami - Small body contained within previous larger body
Doji - Body less than 10% of total range (indecision)
Advanced Patterns (Optional):
Three White Soldiers - Three consecutive bullish candles with rising closes
Three Black Crows - Three consecutive bearish candles with falling closes
Tweezer Top - Equal highs with reversal candle structure
Tweezer Bottom - Equal lows with reversal candle structure
Island Reversal - Gap isolation creating reversal structure
Dashboard Information
The dashboard displays real-time analysis:
Pattern - Current detected pattern name or "SCANNING..."
Bull/Bear Strength - Volume-weighted strength scores
Trend - UPTREND, DOWNTREND, or SIDEWAYS based on EMA
RSI - 14-period RSI for momentum context
Momentum - 10-period momentum reading
Volatility - ATR as percentage of price
Neural Bias - BULLISH, BEARISH, or NEUTRAL from adaptive filter
Action - ULTRA BUY/SELL, BUY/SELL, WATCH BUY/SELL, or WAIT
Visual Elements
Pattern Labels - Abbreviated codes (BE=Engulfing, H=Hammer, MS=Morning Star, etc.)
Neural Bias Line - Adaptive trend line showing filter direction
Gap Boxes - Cyan boxes highlighting price gaps
Action Zones - Dashed boxes around strong pattern areas
Velocity Markers - Small circles when velocity confirms direction
Ultra Signals - Large labels for highest conviction setups
How to Use This Indicator
For Reversal Trading:
1. Wait for a pattern to appear at a key support/resistance level
2. Check that the Action shows "BUY" or "SELL" (not just "WATCH")
3. Confirm the Neural Bias aligns with your trade direction
4. Use the strength score to gauge conviction (higher is better)
For Trend Continuation:
1. Identify the trend using the Trend row in the dashboard
2. Look for patterns that align with the trend (bullish patterns in uptrends)
3. Ultra signals indicate the strongest continuation setups
For Filtering Noise:
1. Keep "Show All Patterns" disabled to see only filtered signals
2. Increase "Pattern Strength Filter" to see fewer, higher-quality patterns
3. Enable "Velocity Confirmation" to require momentum behind patterns
Input Parameters
Scan Sensitivity (1.0) - Overall detection sensitivity multiplier
Pattern Strength Filter (3) - Minimum strength score for strong signals
Trend Period (20) - EMA period for trend determination
Show All Patterns (false) - Display all patterns regardless of filters
Advanced Patterns (true) - Enable soldiers/crows/tweezer detection
Gap Analysis (true) - Enable gap detection and boxes
Velocity Confirmation (true) - Require velocity for strong signals
Neural Bias Filter (true) - Enable adaptive trend filter
Neural Period (50) - Lookback for neural bias calculation
Neural Learning Rate (0.12) - Adaptation speed (0.01-0.5)
Timeframe Recommendations
1H-4H: Best balance of signal frequency and reliability
Daily: Fewer but more significant patterns
15m-30m: More signals, requires tighter filtering (increase strength threshold)
Limitations
Pattern detection is mechanical and does not consider fundamental context
Neural bias filter may lag during rapid trend reversals
Gap detection requires clean price data without after-hours gaps
Strength scoring favors high-volume patterns, which may miss valid low-volume setups
- Made with passion by officialjackofalltrades
Ichimoku With GradingDescription:
This indicator is an enhanced version of the classic Ichimoku Kinko Hyo, designed to provide traders with an objective, quantitative assessment of trend strength. By breaking down the complex Ichimoku system into specific conditions, this script calculates a "Total Score" to help visualize the confluence of bullish or bearish signals.
How It Works
The core of this script is a 7-Point Grading System. Instead of relying on a single crossover, the script evaluates 7 distinct Ichimoku conditions simultaneously.
The Grading Criteria:
Tenkan > Kijun: Checks for the classic TK Cross (1 point if Bullish, -1 if Bearish).
Price vs TK/KJ: Checks if the Close is above both the Tenkan and Kijun (Bullish) or below both (Bearish).
Future Cloud: Analyzes the Kumo (Cloud) projected 26 bars ahead. If Senkou Span A > Senkou Span B, it is bullish.
Chikou Span: The Lagging Span validation. It compares the current Close to the Highs, Lows, and Cloud levels of 26 bars ago to ensure there are no obstacles.
Close > Tenkan: Checks immediate short-term momentum.
Close > Current Senkou Span A: Checks if price is above the current cloud's Span A.
Close > Current Senkou Span B: Checks if price is above the current cloud's Span B.
Total Score & Signals:
Maximum Score (+7): When all 7 conditions are met, a Green Triangle is plotted above the bar, indicating a strong trend confluence.
Minimum Score (-7): When all 7 conditions are negative, a Red Triangle is plotted below the bar.
Neutral/Mixed: Scores between -6 and +6 indicate a mixed trend or consolidation phase.
Dashboard Features
A table is displayed in the top-right corner to provide real-time data:
Score Breakdown: Shows the status of every individual metric (1 or -1).
Total Score: The sum of all metrics.
Distance to Tenkan %: This calculates the percentage distance between the Close and the Tenkan-sen.
Usage: Traders often use the Tenkan-sen as a trailing stop-loss level. This percentage helps gauge how extended the price is from the mean; a high percentage may indicate an overextended move, while a low percentage indicates a tight consolidation.
How to Use Ichimoku Lines
Beyond the grading system, this indicator plots the standard Ichimoku lines, which are powerful tools for price action analysis:
Support & Resistance: The Tenkan-sen (Conversion Line) and Kijun-sen (Base Line) act as dynamic support and resistance levels. In a strong trend, price will often respect the Tenkan-sen. In a moderate trend, it may pull back to the Kijun-sen before continuing.
The Kumo (Cloud): The edges of the current cloud (Senkou Span A and B) act as major support and resistance zones. A thick cloud represents strong S/R, while a thin cloud is easily broken.
Trend Identification: Generally, if the price is above the Cloud, the trend is bullish. If below, it is bearish. If the price is inside the Cloud, the market is considered to be in a noise/ranging zone.
Screenshots
1. Bitcoin Daily View:
Here you can see the dashboard in action. The grading system helps filter out noise by requiring all conditions to align before generating a signal.
2. Gold (XAUUSD) Example:
An example of a bearish confluence where the score hit -7, triggering a sell signal as the price broke through all Ichimoku support levels.
3. Euro (EURUSD) Mixed State:
This example shows a market in transition. While some metrics are positive (Green), others are negative (Red), resulting in a score of 4. This prevents premature entries during choppy market conditions.
Settings
Lengths: All Ichimoku periods (Tenkan, Kijun, Senkou B, Displacement) are fully customizable in the settings menu to fit your preferred timeframe or trading style (e.g., Doubled settings for crypto).
Disclaimer: This tool is for educational and informational purposes only. Past performance does not guarantee future results. Always manage your risk.
Adaptive Trend Envelope [BackQuant]Adaptive Trend Envelope
Overview
Adaptive Trend Envelope is a volatility-aware trend-following overlay designed to stay responsive in fast markets while remaining stable during slower conditions. It builds a dynamic trend spine from two exponential moving averages and surrounds it with an adaptive envelope whose width expands and contracts based on realized return volatility. The result is a clean, self-adjusting trend structure that reacts to market conditions instead of relying on fixed parameters.
This indicator is built to answer three core questions directly on the chart:
Is the market trending or neutral?
If trending, in which direction is the dominant pressure?
Where is the dynamic trend boundary that price should respect?
Core trend spine
At the heart of the indicator is a blended trend spine:
A fast EMA captures short-term responsiveness.
A slow EMA captures structural direction.
A volatility-based blend weight dynamically shifts influence between the two.
When short-term volatility is low relative to long-term volatility, the fast EMA has more influence, keeping the trend responsive. When volatility rises, the blend shifts toward the slow EMA, reducing noise and preventing overreaction. This blended output is then smoothed again to form the final trend spine, which acts as the structural backbone of the system.
Volatility-adaptive envelope
The envelope surrounding the trend spine is not based on ATR or fixed percentages. Instead, it is derived from:
Log returns of price.
An exponentially weighted variance estimate.
A configurable multiplier that scales envelope width.
This creates bands that automatically widen during volatile expansions and tighten during compression. The envelope therefore reflects the true statistical behavior of price rather than an arbitrary distance.
Inner hysteresis band
Inside the main envelope, an inner band is constructed using a hysteresis fraction. This inner zone is used to stabilize regime transitions:
It prevents rapid flipping between bullish and bearish states.
It allows trends to persist unless price meaningfully invalidates them.
It reduces whipsaws in sideways conditions.
Trend regime logic
The indicator operates with three regime states:
Bullish
Bearish
Neutral
Regime changes are confirmed using a configurable number of bars outside the adaptive envelope:
A bullish regime is confirmed when price closes above the upper envelope for the required number of bars.
A bearish regime is confirmed when price closes below the lower envelope for the required number of bars.
A trend exits back to neutral when price reverts through the trend spine.
This structure ensures that trends are confirmed by sustained pressure rather than single-bar spikes.
Active trend line
Once a regime is active, the indicator plots a single dominant trend line:
In a bullish regime, the lower envelope becomes the active trend support.
In a bearish regime, the upper envelope becomes the active trend resistance.
In neutral conditions, price itself is used as a placeholder.
This creates a simple, actionable visual reference for trend-following decisions.
Directional energy visualization
The indicator uses layered fills to visualize directional pressure:
Bullish energy fills appear when price holds above the active trend line.
Bearish energy fills appear when price holds below the active trend line.
Opacity gradients communicate strength and persistence rather than binary states.
A subtle “rim” effect is added using ATR-based offsets to give depth and reinforce the active side of the trend without cluttering the chart.
Signals and trend starts
Discrete signals are generated only when a new trend regime begins:
Buy signals appear at the first confirmed transition into a bullish regime.
Sell signals appear at the first confirmed transition into a bearish regime.
Signals are intentionally sparse. They are designed to mark regime shifts, not every pullback or continuation, making them suitable for higher-quality trend entries rather than frequent trading.
Candle coloring
Optional candle coloring reinforces regime context:
Bullish regimes tint candles toward the bullish color.
Bearish regimes tint candles toward the bearish color.
Neutral states remain visually muted.
This allows the chart to communicate trend state even when the envelope itself is partially hidden or de-emphasized.
Alerts
Built-in alerts are provided for key trend events:
Bull trend start.
Bear trend start.
Transition from trend to neutral.
Price crossing the trend spine.
These alerts support hands-off trend monitoring across multiple instruments and timeframes.
How to use it for trend following
Trend identification
Only trade in the direction of the active regime.
Ignore counter-trend signals during confirmed trends.
Entry alignment
Use the first regime signal as a structural entry.
Use pullbacks toward the active trend line as continuation opportunities.
Trend management
As long as price respects the active envelope boundary, the trend remains valid.
A move back through the spine signals loss of trend structure.
Market filtering
Periods where the indicator remains neutral highlight non-trending environments.
This helps avoid forcing trades during chop or compression.
Adaptive Trend Envelope is designed to behave like a living trend structure. Instead of forcing price into static rules, it adapts to volatility, confirms direction through sustained pressure, and presents trend information in a clean, readable form that supports disciplined trend-following workflows.
Barometer Barometer is a comprehensive market state analysis tool that synthesizes multiple market dimensions into a single, actionable reading. Like a weather barometer predicts atmospheric conditions, this indicator forecasts market "weather" by combining trend, volatility, volume, range, and momentum analysis.
Stop guessing about market conditions. The Barometer tells you exactly what state the market is in and quantifies it with a score from -12 to +12.
█ THE BAROMETER CONCEPT
The indicator creates a composite score by analyzing five key market dimensions:
📈 TREND ANALYSIS (Score: -3 to +3)
• Short-term trend (fast EMA)
• Medium-term trend (intermediate EMA)
• Long-term trend (slow EMA)
• MA alignment bonus when all aligned
📊 VOLATILITY ANALYSIS (Score: -2 to +2)
• ATR percentile ranking
• High/Low volatility detection
• Expansion/Contraction identification
📦 VOLUME ANALYSIS (Score: -2 to +2)
• Volume relative to moving average
• Climax and dry-up detection
• Volume trend analysis
📐 RANGE ANALYSIS (Score: -2 to +2)
• Bar range vs average range
• Expansion/Contraction states
• Wide bar and narrow bar detection
🚀 MOMENTUM ANALYSIS (Score: -2 to +2)
• RSI-based momentum scoring
• Overbought/Oversold detection
• Optional component
█ MARKET STATES
The composite score translates into five market states:
🔥 STRONG BULL (Score ≥ 5)
Most conditions aligned bullish
High probability trend continuation
Aggressive long opportunities
📈 BULL (Score 2-4)
Generally bullish conditions
Some components may be neutral
Standard long setups favored
➖ NEUTRAL (Score -1 to +1)
Mixed or transitional conditions
Caution advised
Wait for clarity
📉 BEAR (Score -2 to -4)
Generally bearish conditions
Some components may be neutral
Standard short setups favored
❄️ STRONG BEAR (Score ≤ -5)
Most conditions aligned bearish
High probability trend continuation
Aggressive short opportunities
ORB W/ Custom time FramesRelease Notes: Simplified ORB (Opening Range Breakout)
This indicator is a streamlined, high-performance tool designed to identify the Opening Range—one of the most widely used concepts by professional floor traders and institutional scalpers. It marks the high, low, and midpoint of the initial balance of the market, providing you with a "map" for the rest of the trading session.
Key Features
Customizable Timeframes: Define your opening range window (e.g., the first 5, 15, or 30 minutes) regardless of what timeframe you are currently viewing.
Custom Session Support: Choose between standard market hours (09:30–16:00) or define your own custom window (e.g., the London Open or the first hour of "Power Hour").
Real-Time Midpoint Calculation: Automatically plots the 50% Equilibrium level between the high and low, serving as a pivot point for intraday bias.
Dynamic Updating: During the ORB window, the lines adjust in real-time as new highs or lows are set. Once the window expires, the levels lock in place to act as support and resistance.
Clean Visuals: Utilizes a lightweight line drawing system that is easy on your GPU and keeps the chart clutter-free.
Why This is Essential for Scalping
Scalpers rely on volatility and clear "lines in the sand." The Opening Range Breakout (ORB) provides exactly that:
The "Opening Drive": If price breaks the ORB High with high volume, scalpers look for quick "long" momentum plays. Conversely, a break below the ORB Low signals a bearish trend.
The Midpoint Pivot: The 50% level (Mid) is often treated as the "Fair Value" of the morning. If price is above the mid, the bias is bullish; if below, the bias is bearish.
Stop Loss / Take Profit Anchor: The ORB High and Low act as natural areas for placing stops or targets. A failed breakout that returns inside the range often targets the opposite side of the box.
Smart Money Concept, Modern ViewSmart Money Concept, Modern View (SMCMV)
Institutional Volume Flow Analysis with VWMA Matrix
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 OVERVIEW
SMCMV is an advanced institutional-grade indicator that combines Volume-Weighted Moving Average (VWMA) matrix analysis with sophisticated volume decomposition to detect buyer and seller entry points. The indicator provides a comprehensive real-time dashboard displaying market structure, volume dynamics, and validated trading signals.
Key Features:
• Dual Volume Model: Geometry-based (candle range split) and Intrabar (precise LTF data)
• 10-Period VWMA Spectrum: Multi-timeframe support/resistance matrix (7, 13, 19, 23, 31, 41, 47, 67, 83, 97)
• 5-Layer Scoring System: 100-point institutional-grade signal quality assessment
• State Machine Signal Engine: Validated entry/exit signals with timer and range confirmation
• Real-time Prediction Engine: Candle-by-candle buyer/seller probability estimation
• High Volume Node Detection: Automatic identification of significant volume zones
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 DASHBOARD REFERENCE
1) NOW VECTOR (Current Market State)
This section captures the immediate market conditions:
• FLOW ANGLE: Directional angle of price movement in degrees (from VWMA-5). Positive = bullish, Negative = bearish.
• LTP: Last Traded Price - current close price.
• NET FLOW (Δ): Volume Delta - net difference between buying and selling volume. Shows ⚡+ or ⚡-.
• LIQUIDITY: Total volume on the current bar (K/M format).
• BUY VOL: Estimated buying volume based on selected model.
• SELL VOL: Estimated selling volume.
• BID PRES.: Buying volume as percentage of total volume.
• ASK PRES.: Selling volume as percentage of total volume.
• DIRECTION: Current state with hysteresis: BULL (🐂), BEAR (🐻), or NEUT (⚪).
2) DATA QUALITY / CONFIG
Configuration status and data integrity monitoring:
• VOL MODEL: INTRABAR (uses LTF data) or GEOMETRY (estimates from candle structure).
• IB LTF: Intrabar Lower Timeframe for precise volume decomposition.
• MODE: Micro (7 periods: 7-47) or Macro (10 periods: 7-97).
• IB OK: Intrabar data validity - OK or NO.
• IB STREAK: Consecutive bars with valid intrabar data.
• LATENCY: Data freshness indicator. ✓ = current, ↺ = using historical reference.
3) STRUCTURE RADAR
Market structure analysis showing price position relative to VWMA matrix:
• WIRES ▲/▼: Count of VWMAs above (resistance) and below (support).
• RES: Nearest Resistance - shows MA period, "ZN RES", or "BLUE SKY".
• SUPP: Nearest Support - shows MA period, "ZN SUPP", or "FREE FALL".
4) ACTIVE INTERACTION
Real-time analysis of price interaction with key levels:
• Header Status: "⚠ TESTING SUPPLY (ASK SIDE)" / "⚠ TESTING DEMAND (BID SIDE)" / "--- NO KEY INTERACTION ---"
• TARGET: Active level being tested (MA period or zone type).
• TEST LEVEL: Exact price level being tested.
• SCORE: Total score (0-100%) with letter grade .
• VOLUME POWER: Volume ratio vs historical average (e.g., "2.5x").
• BREAKOUT: "CONFIRMED" if attacking volume exceeds defending, "REJECTED" otherwise.
• DELTA DIR: "ALIGNED" if delta matches accumulation trend, "CONFLICT" if opposing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 5-LAYER SCORING SYSTEM (100 Points Total)
Layer 1: Volume Quality (Max 25 pts)
• Mass (0-10): Volume ratio vs average. 0.5x=0, 1.0x=5, 2.0x=8, 3.0x+=10
• Spike (0-8): Volume Z-Score intensity
• Trend (0-7): Volume trend alignment with price direction
Layer 2: Battle Structure (Max 25 pts)
• Break (0-10): Breakout intensity ratio (attacker vs defender)
• Dom (0-8): Internal dominance ratio
• Pres (0-7): Pressure imbalance percentage
Layer 3: Flow & Energy (Max 20 pts)
• Delta (0-8): Delta alignment with accumulation trend
• Accel (0-6): Delta acceleration
• Mom (0-6): Flow momentum
Layer 4: Geometry (Max 15 pts)
• Impact (0-7): Impact angle directness
• Vec (0-5): Vector alignment
• PriceZ (0-3): Price Z-Score position
Layer 5: Army Structure (Max 15 pts)
• Stack (0-5): MA stack depth
• Conf (0-5): Confluence percentage
• Trend (0-5): Trend alignment count (7>13, 13>23, 23>97)
Grade Scale:
• A+ = 90-100 pts (Exceptional)
• A = 80-89 pts (Strong)
• B+ = 70-79 pts (Good)
• B = 60-69 pts (Moderate)
• C+ = 50-59 pts (Below average)
• C/D/F = Below 50 pts (Weak)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5) SIGNAL STATUS PANEL
Real-time signal state machine status:
• Header: "🐂 BUYERS ACTIVE" / "🐻 SELLERS ACTIVE" / "⏳ VALIDATING..." / "⏸ RANGE / FLAT"
• LOCK PRICE: Price at which signal was locked/confirmed.
• RANGE ±: Validation range percentage.
• POSITION: Price vs lock: "▲ ABOVE" / "▼ BELOW" / "● AT LOCK"
• DISTANCE: Percentage distance from lock price.
• vs RANGE: Position vs validation range: "IN_RANGE" / "ABOVE" / "BELOW"
• VAL TICKS: Validation progress (current/required ticks).
6) REALTIME PREDICTION PANEL
Candle prediction engine:
• WINNER: Predicted dominant side: "BUYERS" / "SELLERS" / "NEUTRAL"
• CONFIDENCE: Prediction confidence percentage.
• ACCURACY: Historical prediction accuracy (session-specific).
• BUY/SELL PROB: Individual probabilities for each side.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷️ SIGNAL LABELS REFERENCE
• 🐂 BUYER ENTRY (Green): Confirmed buyer entry signal. Validation complete.
• 🐻 SELLER ENTRY (Red): Confirmed seller entry signal. Validation complete.
• 🔻 REVERSAL BUY→SELL (Magenta): Reversal from buyer to seller position.
• 🔺 REVERSAL SELL→BUY (Cyan): Reversal from seller to buyer position.
• ⏹ EXIT → FLAT (Gray): Position exit to flat/neutral state.
• ⬆ BUYER STRONGER (Small Green): Lock price updated higher during buyer state.
• ⬇ SELLER STRONGER (Small Red): Lock price updated lower during seller state.
Display Modes:
• Minimal: Icon only (hover for tooltip details)
• Normal: Icon + Price level
• Detailed: Full information (price, score, grade)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 CHART ELEMENTS
VWMA Spectrum Lines
Colored gradient lines representing the 10-period VWMA matrix. Color progresses from light blue (fast: 7-period) through purple to orange (slow: 97-period). These act as dynamic support/resistance levels weighted by volume.
High Volume Node Lines
• Blue Lines: High Buy Volume zones - potential demand areas
• Red Lines: High Sell Volume zones - potential supply areas
• Yellow Lines: Overlapping zones (buy + sell extremes) - high conflict areas
Lock Price Line & Range Band
• Dashed Line: Locked price level (green for buyers, red for sellers)
• Dotted Lines: Upper/lower bounds of validation range
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ INPUT SETTINGS GUIDE
Volume Model
• Calculation Method: "Geometry (Candle-Range Split)" for universal compatibility or "Intrabar (Precise)" for accurate buy/sell separation.
• Intrabar LTF: Lower timeframe for Intrabar mode (e.g., "1" for 1-minute).
Direction Filter
• Direction Trigger Angle: Threshold for directional state change (default: 1.5°)
• Neutral Reset Angle: Threshold for returning to neutral (default: 0.7°)
Testing Filter
• Level Proximity (%): How close price must be to "test" a level (default: 0.25%)
• Require Wick Touch: If enabled, requires high/low to touch proximity band.
Signal Validation
• Lock Range (%): Price range for validation (default: 0.5%)
• Validation Ticks: Consecutive bars required (default: 3)
• Validation Time: Minimum seconds for real-time confirmation (default: 5)
• Minimum Hold Bars: Stay in position for at least this many bars (default: 5)
• Exit Mode: "Reversal Only" / "Signal Loss" / "Price Stop"
• Stop Loss (%): Exit threshold (default: 1.0%)
Signal Score Filter
• Score Range Minimum: Minimum score for signal generation (default: 10%)
• Score Range Maximum: Maximum score threshold (default: 100%)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 USAGE RECOMMENDATIONS
1. Start with Macro mode to see the complete VWMA spectrum, then switch to Micro for cleaner charts.
2. Use Intrabar mode when your broker provides lower timeframe data.
3. Focus on high-grade signals (B+ or better) for higher probability setups.
4. Wait for validation to complete before acting on signals.
5. Use the Lock Price line as your reference for position management.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT NOTES
• This indicator is designed for educational and analytical purposes.
• Always combine with proper risk management and additional confirmation.
• Past performance and signal quality do not guarantee future results.
• The prediction accuracy is session-specific and resets on chart reload.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Volume-Based Indicator — Data Granularity & Table Guide
1) Critical warning about data granularity (read first)
Important: This indicator is built entirely on volume-derived calculations (volume, volume delta, and related flow metrics). Because of that, its precision is only as good as the granularity and history of the data you feed it.
The most granular view is a tick-based interval (e.g., 1T = one trade/tick). If tick-based intervals are not available for your symbol or your plan, the closest time-based approximation is a 1-second chart (1S).
If you enable any "high-precision / intrabar" options (anything that relies on the smallest updates), make sure you understand which TradingView plan you are using, because intrabar historical depth (how many bars you can load) varies by plan. More history generally means more stable baselines for volume statistics, regime detection, and long lookback features.
Plan-related notes (TradingView)
TradingView limits how many intrabar historical bars can be loaded, depending on your plan. The exact limits are defined by TradingView and can change over time, but as of the current documentation, the intrabar limits are:
• Basic: 5,000 bars
• Essential: 10,000 bars
• Plus: 10,000 bars
• Premium: 20,000 bars
• Expert: 25,000 bars
• Ultimate: 40,000 bars
Tick charts / tick-based intervals are currently positioned as a feature of professional-tier plans (e.g., Expert/Elite/Ultimate). Availability may also vary by symbol and data feed.
SB - HULL MANifty Options Scalping @ 1 Minute TF
Call Entry - If both MA turns bullish.
Put Entry - If Both MAs turns bearish.
Best results - If both MAs complement each other in the same direction.
Exit Plan - My opinion, If slow MA turns bearish. However one can also plan to exit if any one of the MA turns bearish.
Display - Make your own setting as per your own comfort
Keep this indicator in a separate pane below the chart. It will give clarity view of the chart.
Works well on nifty derivatives @ 1 minute TF , can do well on other instruments too.






















