Trend Analysis
Ant_JJun 5-Minute Day-Trading IndicatorThis invite-only indicator is designed for short-term BTC and crypto trading, focusing on precision during volatile data-driven markets and capital protection during sideways conditions.
It integrates Ichimoku-based structure mapping with volume asymmetry analysis and proprietary rule-based filters.
Unlike a traditional mashup, this system does not simply overlay multiple indicators.
It uses Ichimoku’s leading spans to classify structural bias (trend vs. neutral), then evaluates directional confirmation through candle displacement and volume pressure imbalance.
Only when both structure and momentum align is a directional label printed.
If the system detects indecision (flat or overlapping clouds with contracting volume), it enters a neutral state to avoid unnecessary exposure.
Key concept:
— Preventing bleed during non-trending phases
— Adaptive response around macro/volatility events (e.g., CPI, PMI)
— Rule-based execution to remove emotional decision-making
Usage notes:
— Intended for 5-minute intraday use
— Long/Short labels appear only on rule-confirmed entries
— No repainting / no backfill logic
— Analytical use only — not investment advice
Simulated Liquidity Zone Heatmap (SLZH) v5 (Stable)# 📈 Simulated Liquidity Zone Heatmap (SLZH) v5 - Order Flow Proxy & Adaptive VWAP
## 💡 Overview
The **Simulated Liquidity Zone Heatmap (SLZH)** is an advanced, stable Pine Script indicator designed to give traders an edge by visualizing **structural market liquidity** and **institutional order flow**. It acts as a powerful proxy for structural zones (like average cost basis) that are often missed by traditional technical analysis.
SLZH achieves this by combining two highly effective components:
1. **Volume-Based Liquidity Zones (VBLZ):** A dynamic, adaptive heatmap based on **Volume-Weighted Average Price (VWAP)** and Standard Deviation.
2. **Order Block (OB) Signals:** Stable, high-conviction signals marking the origin of strong impulsive moves.
---
## 📊 Key Features & Interpretation
### 1. Volume-Based Liquidity Zones (VBLZ) - The Adaptive Heatmap
The VBLZ dynamically paints a three-tiered support/resistance system, representing the market's average cost basis and conviction. This is primarily used as a **mean-reversion tool**.
| Component | Interpretation | Trading Action |
| :--- | :--- | :--- |
| **VWAP Center** (White Line) | The **Center of Liquidity**. Price is often attracted back to this line. | Use as a **Primary Target** when trading from the outer zones. |
| **Strong VBLZ** (Darkest Color) | **Highest Volume Concentration** (1 StdDev). Primary structural support/resistance. | Look for **Reversals** when price enters this zone. |
| **Mid/Weak VBLZ** (Lighter Colors) | Secondary areas of interest. | Use as **Secondary Targets** or to confirm an extended move. |
### 2. Order Block (OB) Signals - Structural Support/Resistance
The OB signals mark the last counter-trend candle before a strong, sustained move, indicating a potential institutional supply or demand zone. These are displayed as stable triangles on the chart.
* **Bullish OB** (Green Triangle Up): Marks a potential **Demand Zone**. Look for high-probability **long entries** when price returns to the area of this signal.
* **Bearish OB** (Red Triangle Down): Marks a potential **Supply Zone**. Look for high-probability **short entries** when price returns to the area of this signal.
---
## 🎯 High-Conviction Trading Strategy
The most effective way to use SLZH is to look for **confluence** between the dynamic VBLZ and the static OB signals. This combination creates the highest probability trade setups.
| Trade Setup | VBLZ Condition | OB Signal Condition | Action | Rationale |
| :--- | :--- | :--- | :--- | :--- |
| **High-Conviction Long** | Price is near or entering the **Strong VBLZ** from above. | A **Bullish OB Signal** is present in the same area. | **Enter Long** | Strong alignment between the market's average cost basis (VBLZ) and a structural demand zone (OB). |
| **High-Conviction Short** | Price is near or entering the **Strong VBLZ** from below. | A **Bearish OB Signal** is present in the same area. | **Enter Short** | Strong alignment between the market's average cost basis (VBLZ) and a structural supply zone (OB). |
### Setting Up Alerts
The script is equipped with three critical alert conditions for automated monitoring:
1. **Price in Strong VBLZ:** Notifies you when price enters the highest conviction heatmap zone.
2. **Bullish OB Signal:** Notifies you when a new Demand Zone is established.
3. **Bearish OB Signal:** Notifies you when a new Supply Zone is established.
---
## ⚙️ Customization (Inputs)
Adjust the indicator's sensitivity via the settings menu:
* **VBLZ Lookback Length:** Controls the recency of the heatmap calculation. **Higher values** create a smoother, longer-term zone.
* **OB Min Price Move (ATR Multiplier):** Filters the Order Blocks. **Increase this value** to show only the highest-conviction zones that led to the most powerful price moves.
---
**Note on Stability:** This is **v5**, a highly stable version optimized to avoid common Pine Script runtime errors. It uses stable `plotshape` signals instead of persistent boxes for the Order Blocks to ensure reliable performance on all charts.
Pure Price Action ICT Tools + Liquidity (iFVG+OB) [SurgeGuru]Pure Price Action ICT Tools + Liquidity Dashboard
A comprehensive Institutional Concepts & Techniques (ICT) trading toolkit that identifies key market structure elements, liquidity zones, and order blocks to help traders spot institutional trading opportunities.
📊 MAIN FEATURES:
🎯 Market Structure Analysis
Identifies swing highs/lows across multiple timeframes (Short/Intermediate/Long Term)
Detects Break of Structure (BOS) and Change of Character (CHoCH)
Customizable line styles and colors for bullish/bearish structures
💧 Liquidity Detection
Buyside & Sellside Liquidity Zones: Identifies areas where stops are likely clustered
Liquidity Voids: Detects price gaps where minimal trading occurred
Enhanced Liquidity Zones: Volume-based liquidity areas with dynamic coloring
Adjustable visibility levels and margin settings
🔄 Order Blocks & Breaker Blocks
Automatically identifies institutional order blocks
Tracks breaker blocks that invalidate previous order blocks
Configurable lookback periods for bull/bear blocks
Option to use candle body or wicks for detection
⚡ SWING POINTS
Clear marking of significant highs and lows
Multiple timeframe analysis
Customizable label sizes and colors
🛠️ CUSTOMIZATION OPTIONS:
Multiple Timeframe Detection: Short, Intermediate, and Long Term analysis
Visual Customization: Adjust colors, line styles, and label sizes
Performance Optimized: Limited historical calculations for smooth operation
Selective Display: Toggle individual components on/off as needed
🎯 TRADING APPLICATIONS:
Identify institutional order flow and liquidity grabs
Spot market structure shifts and potential reversal zones
Locate optimal entry points using order blocks
Manage risk using liquidity zones as natural targets/stops
⚙️ TECHNICAL SPECS:
Version: Pine Script v5
Max Labels: 500 | Max Boxes: 500 | Max Lines: 500
Calculation Bars: 2000
Credits:
BigBeluga for liquidity formula
LuxAlgo for amazing iFVG code.
Momentum Master v1Momentum Master v1 - Advanced Multi-Filter Confluence Trading System
### Technical Methodology
Multi-timeframe EMA crossover system with institutional flow analysis, proprietary Fair Value Gap (FVG) retracement detection, and Point of Control (POC) proximity filtering.
The script combines six distinct confirmation filters: customizable EMA crossover signals (3/21 default), RSI momentum analysis (14-period), proprietary FVG retracement algorithm with 200-bar lookback, multi-timeframe POC proximity calculation (Volume/Session/Daily/Weekly), institutional order block detection with retest confirmation, and adaptive ATR-based risk management with real-time confidence scoring.
### Unique Features
1. **Proprietary FVG Retracement Algorithm** - Advanced institutional flow analysis with 200-bar lookback and 20% ATR tolerance
2. **Multi-Timeframe POC Confluence System** - Combines 4 different POC calculations (Volume Profile 30-bar, Session, Daily, Weekly) for key level analysis
3. **Adaptive Confidence Scoring System** - Dynamic risk management based on signal quality (0-100%) with real-time performance tracking
4. **Advanced Performance Analytics** - Real-time win/loss statistics for each TP level with up to 500 individual trade verification labels
5. **Professional Risk Management** - Six-level take-profit system (2:1, 4:1, 6:1, 8:1, 10:1, 12:1) with ATR-based stops
### How It Works
**Entry Requirements:** Fast EMA (3) crosses above Slow EMA (21) + RSI < 70 + volume > 1.1x average + FVG retracement confirmation + POC proximity within 2.0x ATR + order block direction alignment.
**Risk Management:** ATR-based stop loss placement with 1.0x multiplier. Six take-profit levels at 2:1, 4:1, 6:1, 8:1, 10:1, and 12:1 risk/reward ratios.
**Performance Tracking:** Real-time win/loss statistics with up to 500 individual trade labels for verification, confidence scoring system, and comprehensive performance analytics for each TP level.
### Value Proposition
This script combines 6 different institutional flow analysis techniques that would require multiple free scripts to replicate. The proprietary FVG retracement algorithm, multi-timeframe POC analysis, and adaptive confidence scoring system are not available in any single free script.
### Use Cases
- **Best Timeframes:** 5-minute for scalping, 15-minute for swing trades
- **Suitable Markets:** Forex major pairs, Crypto, major indices
- **Market Conditions:** Trending markets with high volume sessions
### Access Instructions
To request access to this invite-only script:
- **Contact:** with your TradingView username
- **Requirements:** Include your TradingView username and brief trading experience
- **Process:** I will review requests within 24 hours and grant access to qualified traders
---
### Technical Justification for Indicator Combination
**Why These Indicators Work Together:**
This script combines 6 distinct analysis methods because each serves a specific purpose in the signal generation pipeline. The EMA crossover provides trend direction, RSI prevents entries in extreme zones, volume confirms institutional participation, FVG retracement validates institutional flow, POC proximity ensures key level alignment, and order block detection confirms institutional context.
**Component Integration Logic:**
- **EMA Crossover (3/21 customizable):** Primary trend detection mechanism with multiple speed options (Standard 9/21, Fast 7/17, Slow 13/26, Custom)
- **RSI Filter (14-period):** Momentum validation to avoid extreme overbought/oversold entries
- **Volume Analysis (1.1x threshold):** Institutional participation confirmation with trend analysis
- **FVG Retracement (200-bar lookback):** Validates price action within institutional flow zones
- **Multi-Timeframe POC (Volume/Session/Daily/Weekly):** Ensures confluence with key price levels
- **Order Block Detection:** Confirms institutional accumulation/distribution context
### Detailed Functionality Explanation
**What This Script Does:**
Generates high-probability momentum scalping signals with multiple take-profit levels and adaptive risk management. The script analyzes price action across multiple timeframes to identify optimal entry points where institutional flow, key levels, and momentum align.
**How It Works:**
1. **Signal Generation:** EMA crossover triggers base signal
2. **Filter Validation:** Six confirmation filters validate signal quality
3. **Confidence Scoring:** Dynamic scoring system rates signal strength (0-100%)
4. **Risk Management:** ATR-based stops with adaptive sizing based on confidence
5. **Profit Taking:** Six-level TP system with fixed risk/reward ratios
6. **Performance Tracking:** Real-time win/loss statistics with trade verification
**How to Use It:**
- **Timeframes:** 5m for scalping, 15m for swing trades, 1h for position entries
- **Markets:** Forex majors, Crypto, major indices
- **Setup:** Apply to chart, configure filters, set risk parameters, monitor confidence scores
- **Entry:** Wait for all filters to align, enter on signal confirmation
- **Exit:** Use ATR-based stops and multiple TP levels
### Originality and Unique Features
**Proprietary Algorithms:**
1. **Advanced FVG Retracement Detection:** 200-bar lookback with 20% ATR tolerance - not available in free scripts
2. **Multi-Timeframe POC Confluence:** Combines 4 different POC calculations with proximity filtering
3. **Adaptive Confidence Scoring:** Dynamic risk adjustment based on signal quality with real-time tracking
4. **Institutional Order Block Analysis:** Advanced detection with directional alignment filtering
5. **Performance Verification System:** Up to 500 individual trade labels for backtesting verification
6. **Advanced Performance Analytics:** Real-time win/loss statistics for each TP level with comprehensive reporting
### Value Justification
**Why This Is Worth Using:**
- **Institutional-Grade Analysis:** Combines techniques used by professional traders
- **Proprietary Algorithms:** FVG retracement and confidence scoring not available elsewhere
- **Comprehensive Confluence:** 6 different analysis methods in one unified system
- **Professional Risk Management:** Multi-level TP system with adaptive stops
- **Real-Time Performance Tracking:** Live win/loss statistics and confidence monitoring
- **Trade Verification:** Individual trade labels for backtesting and performance analysis
- **Advanced Analytics:** Detailed performance statistics for each take-profit level
- **Time-Saving:** All analysis tools in one script vs. 6+ separate indicators
- **High Accuracy:** Multiple confluence filters reduce false signals significantly
**Technical Specifications:**
- **Pine Script Version:** 6
- **Max Bars Back:** 5000 (for historical analysis)
- **Max Labels:** 500 (for performance optimization and trade verification)
- **Memory Usage:** Optimized for real-time performance
- **Compatibility:** Works on all TradingView timeframes and instruments
- **Alert System:** Built-in alert conditions for long/short entries
- **Visual Elements:** Professional chart display with customizable colors and styles
**No External Dependencies:**
This script operates entirely within TradingView's platform with no external links, contact information, or promotional content. All analysis is performed using built-in Pine Script functions and proprietary algorithms.
Condition Indicator – Session VWAP - Simulated BUY and SELL 🧩 Short Description (Summary):
A dual-purpose trading indicator that combines moving-average-based simulated trade zones with session VWAP structure analysis to visualize short-term market bias and potential turning points.
📘 **Full Description (for the "About" section):
Condition Indicator – Session VWAP and Simulated MA Structure
This indicator blends simulated trade logic with session-based VWAP analysis to help traders visualize when short-term and long-term market conditions align or diverge.
🧠 Key Features
Simulated Trades:
The script uses two simple moving averages (short and long) to simulate theoretical long and short trade averages over time.
It accumulates “positions” periodically (based on a user-defined minute interval) to illustrate how simulated positions would behave during trend shifts.
Session VWAP & Structure Analysis:
Calculates a dynamic VWAP and standard deviation bands for each session (daily, weekly, monthly, or hourly).
Compares price action against VWAP zones to detect whether trading volume is concentrated inside or outside equilibrium.
Support & Resistance Visualization:
Automatically identifies potential support/resistance zones based on previous session highs/lows and relative bullish or bearish volume distribution.
Market Bias Highlight:
Background color changes dynamically to represent bullish or bearish simulated conditions.
⚙️ Inputs
Long MA length / Short MA length: control the sensitivity of trend detection.
Simulated Trade Frequency: how often simulated positions are updated (in minutes).
Session Type: define the timeframe for VWAP and structure analysis (D, W, M, 60, etc.).
📈 Visualization
Red and green lines indicate simulated short/long trade averages.
VWAP line and deviation zones show session equilibrium shifts.
Background shading represents the active simulated market condition.
⚠️ Disclaimer
This script is for educational and analytical purposes only.
It is not financial advice, a trading signal, or a guaranteed strategy.
Always do your own research and consult a qualified financial professional before making trading decisions.
Supports and ResistancesThis tool is ideal for traders who want to focus on key price levels for entry, exit, or stop-loss decisions. By customizing the violation and exception settings, users can filter out weaker levels and focus on more significant support and resistance zones.
Support and Resistance ProSupport and Resistance Pro
A method that specializes in trading at support and resistance zones, supply and demand, or POC zones of Volume Profile. This is a versatile indicator and foundation for you.
Automatically connect TradingView and MetaTrader 5 (MT5) for automatic trading and order management via PineConnector
The system includes a risk management grid including the levels: Stop Loss (SL), Break-even (BE), Trailing Stop, TP1 (1/4), TP2 (2/4), TP3 (3/4), TP4 (4/4). This grid helps you easily monitor and manage orders on TradingView in parallel with automatic order management on MT5.
Suitable for all markets: Forex, Gold, Crypto, Stocks, as long as you use MT5 and TradingView
If you do not need to trade automatically via MT5, the Support and Resistance Pro can also be used as an effective indicator in visual order management on TradingView charts, helps maintain discipline and good trading psychology (less Stress or FOMO)
Support and Resistance Pro system quick guide:
Step 1: Click a point in the support and resistance zone (supply and demand) to draw a horizontal line
When a new resistance/supply or support/demand zone appears (fresh), we draw a reaction band, including the order execution price (yellow and blue lines), and the stop loss price (red line). You can completely adjust the width of the blue and red bands with the input parameters.
Select the direction you want to trade, for example in the picture we are choosing the Sell (Short) order
Step 2: Enter the input parameters for the system including:
Direction of Long (Buy), Short (Sell), Turn Off (No trade) orders
Width of Entry price (trigger), and width of Stoploss (SL) range
Order volume, TP1, TP2, TP3, TP4 levels
Maximum number of transactions on a support and resistance zone (supply and demand)
Step 3: Set up automatic trading from TradingView via PineConnector EA and MT5
If you do not need automatic trading in MT5, skip this step. Entry signals and risk management grids will still be displayed on the TradingView chart for you to see, but there is no connection and automatic trading signal shooting and automatic order management from TradingView to MT5 via PineConnector.
We need to create an Alert in TradingView and attach it to this Indicator so that the Alert's trading signals are transmitted via MetaTrader 5 (MT5) via PineConnector.
When trading, you need to turn on 3 software at the same time to be able to connect to each other to operate: TradingView, MetaTrader 5 (MT5), PineConnector
See more details in the screenshots
Step 4 - Complete setup, and wait for trading signals
You have completed the setup steps for the Indicator, ready when there is a trading signal
You do not need to sit in front of the screen all day if you do not want. The system has been set up to execute and manage orders automatically.
Of course, sometimes you should still check your transaction status, in case of unexpected problems such as lost internet connection.
If you still have questions about this Indicator, please email tuanwukongvn@gmail.com for support.
Trader Jumblo Indicator Zone V6Trader Jumblo Zone (v6) displays automatically detected price zones based on recent candle structures and optional fair value gaps (FVGs).
It visually marks potential supply and demand regions and updates their state as price evolves.
Zones extend forward on the chart for context, with optional labels and transparency adjustments once they are interacted with.
The indicator highlights when price comes near or moves significantly away from a fresh zone.
It can generate alerts for both proximity (“approaching”) and momentum (“running”) conditions, measured relative to ATR.
This version is written in Pine Script v6 and includes safety and stability improvements for array handling, box/label management, and pruning logic.
It maintains visual clarity even with many active zones and prevents runtime errors that may occur in earlier versions.
🧩 Main features
Detects structural candle-based zones and optional FVG zones.
Distinguishes between fresh and touched zones.
Extends zones forward with adjustable length and transparency.
Optional labels with high/low information.
Visual markers for “Standby” and “Running” conditions.
Alert conditions for proximity and strong movement.
Watermark option for visual identification.
Safe and optimized handling of arrays, boxes, and labels.
⚙️ Inputs overview
Zone lookback and maximum zone count.
Minimum zone height (in ticks).
Zone extension length.
Colors for fresh supply/demand zones and transparency for touched ones.
ATR parameters for proximity and movement detection.
Toggle for Fair Value Gap zones and labels.
Watermark customization.
🛠️ Version notes
Improved internal safety: prevents errors when deleting or modifying boxes/labels.
Pruning logic refined to consistently maintain the set zone limit.
Simplified and cleaner running-distance calculations.
No changes to the detection logic or visual structure.
📢 Alerts
Approaching Fresh Zone – triggered when price nears a fresh zone.
Price Running – triggered when price moves strongly away from a zone.
Close vs SuperTrend % DiffOn Every Bar: SuperTrend and percent_diff are recalculated; the line plot updates with coloring.
On Visible Bars Only: High/low extremes and sums/counts accumulate via VC checks.
On Last Bar: Table refreshes with current stats, reflecting the visible view.
User Interaction: Zooming/panning triggers VC.barIsVisible() to recompute aggregates dynamically—no full history scan needed.
Edge Cases:
Empty visible range: High/low default to na; averages guarded against zero counts.
Division by zero in percent_diff: Unlikely, as st is ATR-based and rarely zero, but Pine handles na gracefully.
Performance: Efficient for long histories (e.g., daily charts over years) since stats are view-localized.
This indicator is useful for trend traders: Watch for percent_diff crossing zero for signals, and use the table to gauge visible volatility (e.g., if avg high > avg low in magnitude, bullish bias). Customize SuperTrend params (3,10) for different assets/timeframes. To extend, you could add alerts on threshold crosses or integrate dir for trend filters.
Kernel Market Dynamics🔍 Kernel Market Dynamics Pro - Advanced Distribution Divergence Detection System
OVERVIEW
Kernel Market Dynamics Pro (KMD Pro) is a revolutionary market regime detection system that employs Maximum Mean Discrepancy (MMD) - a cutting-edge statistical technique from machine learning - to identify when market behavior diverges from its recent historical distribution patterns. The system transforms complex statistical divergence analysis into actionable trading signals through kernel density estimation, regime classification algorithms, and multi-dimensional visualization frameworks that reveal hidden market transitions before traditional indicators can detect them.
WHAT MAKES IT ORIGINAL
While conventional indicators measure price or momentum divergence, KMD Pro analyzes distribution divergence - detecting when the statistical properties of market returns fundamentally shift from their baseline state. This approach, borrowed from high-frequency trading and quantitative finance, uses kernel methods to map market data into high-dimensional feature spaces where regime changes become mathematically detectable. The system is the first TradingView implementation to combine MMD with real-time regime visualization, making institutional-grade statistical arbitrage techniques accessible to retail traders.
HOW IT WORKS (Technical Methodology)
1. KERNEL DENSITY ESTIMATION ENGINE
Maximum Mean Discrepancy (MMD) Calculation:
The core innovation - measures distance between probability distributions:
• Maps return distributions to Reproducing Kernel Hilbert Space (RKHS)
• Computes empirical mean embeddings for reference and test windows
• Calculates supremum of mean differences across all RKHS functions
• MMD = ||μ_P - μ_Q||_H where H is the RKHS induced by kernel k
Three Kernel Functions Available:
RBF (Radial Basis Function) Kernel:
• k(x,y) = exp(-||x-y||²/2σ²)
• Gaussian kernel with smooth, infinite-dimensional feature mapping
• Bandwidth σ controls sensitivity (0.5-10.0 user configurable)
• Optimal for normally distributed returns
• Default choice providing balanced sensitivity
Laplacian Kernel:
• k(x,y) = exp(-|x-y|/σ)
• Exponential decay with heavier tails than RBF
• More sensitive to outliers and sudden moves
• Ideal for volatile, news-driven markets
• Faster regime shift detection at cost of more false positives
Cauchy Kernel:
• k(x,y) = 1/(1 + ||x-y||²/σ²)
• Heavy-tailed distribution from statistical physics
• Robust to extreme values and fat-tail events
• Best for cryptocurrency and emerging markets
• Most stable signals with fewer whipsaws
Implementation Details:
• Reference window: 30-300 bars of baseline distribution
• Test window: 10-100 bars of recent distribution
• Double-sum kernel matrix computation with O(m*n) complexity
• EMA smoothing (period 3) reduces noise in raw MMD
• Real-time updates every bar with incremental calculation
2. REGIME DETECTION FRAMEWORK
Three-State Regime Classification:
STABLE Regime (MMD < threshold):
• Market follows historical distribution patterns
• Mean-reverting behavior dominates
• Low probability of breakouts
• Reduced position sizing recommended
• Visual: Subtle background coloring
SHIFTING Regime (threshold < MMD < 2×threshold):
• Distribution divergence detected
• Transition period with directional bias emerging
• Optimal entry zone for trend-following
• Increased volatility expected
• Visual: Yellow/orange zone highlighting
EXTREME Regime (MMD > 2×threshold):
• Severe distribution anomaly
• Black swan or structural break potential
• Maximum caution required
• Consider hedging or exit
• Visual: Red/magenta warning zones
Adaptive Threshold System:
• Base threshold: 0.05-1.0 (default 0.15)
• Volatility adjustment: ±30% based on ATR ratio
• Regime persistence: 20-bar minimum for stability
• Cooldown periods prevent signal clustering
3. DIRECTIONAL BIAS DETERMINATION
Multi-Factor Direction Analysis:
Distribution Mean Comparison:
• Recent mean = SMA(normalized_returns, test_window)
• Reference mean = SMA(normalized_returns, reference_window)
• Direction = sign(recent_mean - reference_mean)
Momentum Confluence:
• Price momentum = close - close
• Volume momentum = volume/SMA(volume, reference_window)
• Weighted composite direction score
Trend Alignment:
• Fast EMA vs Slow EMA positioning
• Slope analysis of regression line
• Multi-timeframe bias confirmation (optional)
4. SIGNAL GENERATION ARCHITECTURE
Entry Signal Logic:
Stage 1 - Regime Shift Detection:
• MMD crosses above threshold
• Sustained for minimum 2 bars
• No signals within cooldown period
Stage 2 - Direction Confirmation:
• Distribution mean aligns with momentum
• Volume ratio > 1.0 (optional)
• Price above/below VWAP (optional)
Stage 3 - Risk Assessment:
• Calculate ATR-based stop distance
• Verify risk/reward ratio > 1.5
• Check for nearby support/resistance
Stage 4 - Signal Generation:
• Long: Regime shift + bullish direction
• Short: Regime shift + bearish direction
• Extreme: MMD > 2×threshold warning
5. PROBABILITY CLOUD VISUALIZATION
Adaptive Confidence Intervals:
• Standard deviation multiplier = 1 + MMD × 3
• Inner band: ±0.5 ATR × multiplier (68% probability)
• Outer band: ±1.0 ATR × multiplier (95% probability)
• Width expands with divergence magnitude
• Real-time adjustment every bar
Interpretation:
• Narrow cloud: Low uncertainty, stable regime
• Wide cloud: High uncertainty, shifting regime
• Asymmetric cloud: Directional bias present
6. MOMENTUM FLOW VECTORS
Three-Style Momentum Visualization:
Flow Arrows:
• Length proportional to momentum strength
• Width indicates confidence (1-3 pixels)
• Angle shows rate of change
• Frequency: Every 5 bars or on events
Gradient Bars:
• Vertical lines from price
• Height = momentum/ATR ratio
• Opacity based on strength
• Continuous flow indication
Momentum Ribbon:
• Envelope around price action
• Expands in momentum direction
• Color intensity shows strength
7. SIGNAL CONNECTION SYSTEM
Relationship Mapping:
• Links consecutive signals with lines
• Solid lines: Same direction (continuation)
• Dotted lines: Opposite direction (reversal)
• Maximum 10 connections maintained
• Distance limit: 100 bars
Purpose:
• Identifies signal clusters
• Shows trend development
• Reveals regime persistence
• Confirms directional bias
8. REGIME ZONE MAPPING
Unified Zone Visualization:
• Main zones: Full regime periods (entry to exit)
• Emphasis zones: Specific trigger points
• Historical memory: Last 20 regime shifts
• Color gradient based on intensity
• Border style indicates zone type
Zone Analytics:
• Duration tracking
• Maximum excursion
• Retest probability
• Support/resistance conversion
9. DYNAMIC RISK MANAGEMENT
ATR-Based Position Sizing:
• Stop loss: 1.0 × ATR from entry
• Target 1: 2.0 × ATR (2R)
• Target 2: 4.0 × ATR (4R)
• Volatility-adjusted scaling
Visual Target System:
• Entry pointer lines
• Target boxes with prices
• Stop boxes with invalidation
• Real-time P&L tracking
10. PROFESSIONAL DASHBOARD
Real-Time Metrics Display:
Primary Metrics:
• Current MMD value and threshold
• Risk level (MMD/threshold ratio)
• Velocity (rate of change)
• Acceleration (second derivative)
Signal Information:
• Active signal type and entry
• Stop loss and targets
• Current P&L percentage
• Bars since signal
Market Metrics:
• Directional bias (BULL/BEAR)
• Confidence percentage
• Win rate statistics
• Signal count tracking
Visual Design:
• Four position options
• Three size modes
• Five color themes
• Gauge visualizations
• Status banners
11. MMD INFO PANEL
Floating Statistics:
• Compact 3×4 table
• MMD vs threshold comparison
• Velocity with direction arrows
• Current bias indication
• Always-visible reference
FIVE COLOR THEMES
Quantum: Cyan/Magenta/Yellow - Modern, high contrast, optimal visibility
Matrix: Green/Red - Classic terminal aesthetic, traditional
Fire: Orange/Gold/Red - Warm spectrum, energetic feel
Aurora: Northern lights palette - Unique, beautiful gradients
Nebula: Deep space colors - Purple/Blue, futuristic
HOW TO USE
Step 1: Select Your Kernel
• RBF for normal markets (stocks, forex majors)
• Laplacian for volatile markets (small-caps, news-driven)
• Cauchy for fat-tail markets (crypto, emerging markets)
Step 2: Configure Bandwidth
• 0.5-2.0: Scalping (high sensitivity)
• 2.0-5.0: Day trading (balanced)
• 5.0-10.0: Swing trading (smooth signals)
Step 3: Set Analysis Windows
• Reference: 3-5× your holding period
• Test: Reference ÷ 3 approximately
• Adjust based on timeframe
Step 4: Calibrate Threshold
• Start with 0.15 default
• Increase if too many signals
• Decrease for earlier detection
Step 5: Enable Visuals
• Probability Cloud for volatility assessment
• Momentum Flow for direction confirmation
• Regime Zones for historical context
• Signal Connections for trend visualization
Step 6: Monitor Dashboard
• Check MMD vs threshold
• Verify regime state
• Confirm directional bias
• Review confidence metrics
Step 7: Execute Signals
• Wait for triangle markers
• Verify regime shift confirmed
• Check risk/reward setup
• Enter at close or next open
Step 8: Manage Position
• Place stop at calculated level
• Scale out at Target 1 (2R)
• Trail remainder to Target 2 (4R)
• Exit if regime reverses
OPTIMIZATION GUIDE
By Market Type:
Forex Majors:
• Kernel: RBF
• Bandwidth: 2.0-3.0
• Windows: 100/30
• Threshold: 0.15
Stock Indices:
• Kernel: RBF
• Bandwidth: 3.0-4.0
• Windows: 150/50
• Threshold: 0.20
Cryptocurrencies:
• Kernel: Cauchy
• Bandwidth: 2.5-3.5
• Windows: 100/30
• Threshold: 0.10-0.15
Commodities:
• Kernel: Laplacian
• Bandwidth: 2.0-3.0
• Windows: 200/60
• Threshold: 0.15-0.25
By Timeframe:
Scalping (1-5m):
• Test Window: 10-20
• Reference: 50-100
• Bandwidth: 1.0-2.0
• Cooldown: 5-10 bars
Day Trading (15m-1H):
• Test Window: 30-50
• Reference: 100-150
• Bandwidth: 2.0-3.0
• Cooldown: 10-20 bars
Swing Trading (4H-Daily):
• Test Window: 50-100
• Reference: 200-300
• Bandwidth: 3.0-5.0
• Cooldown: 20-50 bars
ADVANCED FEATURES
Multi-Timeframe Capability:
• HTF MMD calculation via security()
• Regime alignment across timeframes
• Fractal analysis support
Statistical Arbitrage Mode:
• Pair trading applications
• Spread divergence detection
• Cointegration breaks
Machine Learning Integration:
• Export signals for ML training
• Regime labels for classification
• Feature extraction support
PERFORMANCE METRICS
Computational Complexity:
• MMD calculation: O(m×n) where m,n are window sizes
• Memory usage: O(m+n) for kernel matrices
• Update frequency: Every bar (real-time)
• Optimization: Incremental updates where possible
Typical Signal Frequency:
• Conservative settings: 2-5 signals/week
• Balanced settings: 5-10 signals/week
• Aggressive settings: 10-20 signals/week
Win Rate Expectations:
• Trend following mode: 40-50% wins, 2:1 reward/risk
• Mean reversion mode: 60-70% wins, 1:1 reward/risk
• Depends heavily on market conditions
IMPORTANT DISCLAIMERS
• This indicator detects statistical divergence, not future price direction
• MMD measures distribution distance, not predictive probability
• Past regime shifts do not guarantee future performance
• Kernel methods are descriptive statistics, not AI predictions
• Requires minimum 100 bars historical data for stability
• Performance varies significantly across market conditions
• Not suitable for illiquid or heavily manipulated markets
• Always use proper risk management and position sizing
• Backtest thoroughly on your specific instruments
• This is an analysis tool, not a complete trading system
THEORETICAL FOUNDATION
The Maximum Mean Discrepancy was introduced by Gretton et al. (2012) as a kernel-based statistical test for comparing distributions. In financial markets, we adapt this technique to detect when return distributions shift, indicating potential regime changes. The mathematical rigor of MMD provides a robust, non-parametric approach to identifying market transitions without assuming specific distribution shapes.
SUPPORT & UPDATES
• Questions or configuration help via TradingView messaging
• Bug reports addressed within 48 hours
• Feature requests considered for monthly updates
• Video tutorials available on request
• Join our community for strategy discussions
FINAL NOTES
KMD Pro represents a paradigm shift in technical analysis - moving from price-based indicators to distribution-based detection. By measuring statistical divergence rather than price divergence, the system identifies regime changes that precede traditional breakouts. This anticipatory capability, combined with comprehensive visualization and risk management, provides traders with an institutional-grade toolkit for navigating modern market dynamics.
Remember: The edge comes not from the indicator alone, but from understanding when market distributions diverge from their normal state and positioning accordingly. Use KMD Pro as part of a complete trading strategy that includes fundamental analysis, risk management, and market context.
DM Price ActionHere’s a tight, rules-based playbook for trading with your DM Price Action (FVG + S/R + Order Blocks + VWAP + Auto PDH/PDL/PMH/PML). It’s educational, not financial advice—tune to your market & risk.
Core ideas (what each tool does for you)
VWAP → intraday trend/mean.
PDH/PDL → yesterday’s extremes; magnet & reversal/continuation levels.
PMH/PML → premarket extremes; first liquidity tests after the open.
FVG → imbalance zones for continuation entries.
Order Blocks (OBs) → origin of impulses; mitigation/breaks = structure shifts.
S/R → target rails and break alerts.
Setups (long/short mirror)
1) Bias + Pullback (FVG/OB) at Key Level
Bias (need 2+ conditions):
Price above VWAP (bulls) / below VWAP (bears)
Price above PDH/PMH (bulls) or below PDL/PML (bears)
Most recent Swing OB bias in your direction (script updates via crosses)
Entry (bullish example):
Wait for a Bullish FVG to form after we reclaim PMH or PDH.
Prefer FVG overlapping a Bullish OB or sitting just above Support.
Enter on retrace into FVG midline or first bullish reversal candle inside.
Stop: a few ticks below OB low (or FVG bottom, whichever is wider).
Targets:
T1: nearest Resistance or PDH/PMH if not yet tested.
T2: next HTF S/R or fixed 2R–3R.
Manage: to BE at 1R, trail under swing lows or VWAP on trend days.
Bearish mirror: below VWAP, below PDL/PML, Bearish FVG into Bearish OB / Resistance; stop above OB high.
2) Range Break & Retest at PDH/PDL (with OB confirmation)
Context: Price consolidates under PDH (or over PDL).
Trigger: Clean break of PDH/PDL with an OB breakout alert in the break direction.
Entry: On retest of PDH/PDL from the other side, look for a small FVG forming with the move → enter on the pullback.
Stop: beyond the retest wick or the OB edge.
Targets: next S/R, opposing day extreme (e.g., from PDH to PMH/HTF level) or 2R/3R.
3) Premarket Sweep Reversal (open-specific)
Setup: At/near the cash open, price sweeps PMH/PML (wick through) but closes back inside, then a counter-direction OB forms.
Entry: On first FVG in the reversal direction that overlaps that new OB.
Stop: beyond the sweep extreme (PMH/PML).
Targets: VWAP first, then PD midline levels/SR.
Confluence checklist (score ≥3 before clicking)
+1 Above/below VWAP in trade direction
+1 Trading from a PDH/PDL/PMH/PML reaction (reclaim or rejection)
+1 FVG overlaps an OB
+1 Entry at S/R (use the script’s lines)
+1 Fresh zone (recently formed OB/FVG)
+1 Higher-TF structure aligned (e.g., 1H trend)
Take the trade only if score ≥3; size up only at ≥4.
Execution framework (simple & repeatable)
Timeframes: 1H (bias) → 5–15m (execution).
Risk per trade: 0.25–1.0% of account (fixed).
Position size: Size = Risk $ / Stop distance.
Management:
Scale ½ at T1 (nearest SR/PD level), move stop to BE at 1R.
Let runner to T2 (2R–3R) or next PD level.
If VWAP flips against you and closes 2 bars opposite, exit remainder.
Using the inputs (what to tweak)
Order Blocks:
Scalping mode for intraday speed; Day Trade for cleaner swings.
Hide Internal OBs if noise is high; keep Swing OBs for structure.
FVG:
Keep Auto Threshold = ON.
If noisy, plot higher TF FVG (e.g., 15m FVG on 5m chart).
PDH/PDL/PMH/PML:
If chart is cluttered, keep “Show lines only on last bar” ON and labels ON.
Session markets (futures/US equities): use default 0400–0930 premarket; FX/crypto can disable PM lines if irrelevant.
Alerts to set (so you only act on confluence)
Create alerts for:
Bullish/Bearish FVG (execution zones)
Swing/Internal OB Breakout (structure shift)
Support/Resistance Broken (targets/continuation)
(Optional) Crossing PDH/PDL: use TV “Price crossing” with the plotted PDH/PDL values or visually monitor the labels
Workflow: Wait for ≥2 alerts to line up (e.g., Swing OB Breakout + Bullish FVG near PDH), then open the chart and execute the rule set.
Example trade (bullish)
Price reclaims PDH, holds above VWAP.
Bullish FVG prints overlapping a Bullish Internal OB just above PDH.
Limit at FVG midline, stop below OB low.
T1 = next Resistance; T2 = 2R. Move to BE at 1R; trail under new swing lows.
Adaptive Volatility Bands | AlphaNattAdaptive Volatility Bands (AVB) | AlphaNatt
Professional-grade dynamic bands that adapt to market volatility and trend strength, featuring smooth gradient visualization for enhanced chart clarity.
🎯 CORE CONCEPT
AVB creates self-adjusting bands around a customizable basis line, expanding during trending markets and contracting during consolidation. The gradient fill provides instant visual feedback on price position within the volatility envelope.
✨ KEY FEATURES
5 Basis Types: Choose between SMA, EMA, ALMA, KAMA, or VWMA for the centerline calculation
Adaptive Band Width: Bands automatically widen in strong trends and tighten in ranging markets
Smooth Gradient Fills: 10-layer gradient on each side for professional depth visualization
Multiple Volatility Metrics: ATR, Standard Deviation, or Range-based calculations
Squeeze Detection: Identifies Bollinger/Keltner squeeze conditions for breakout anticipation
Dynamic Color States: Cyan (#00F1FF) for bullish, Magenta (#FF019A) for bearish conditions
📊 HOW IT WORKS
The basis line is calculated using your selected moving average type
Volatility is measured using ATR, StDev, or Range
Trend strength is quantified via linear regression
Band width adapts based on normalized trend strength (when enabled)
Gradient layers create smooth visual transitions from bands to basis
Color state changes based on price position and basis direction
🔧 PARAMETER GROUPS
Basis Configuration:
Basis Type: Moving average calculation method
Basis Length (20): Period for centerline calculation
ALMA Settings: Offset (0.85) and Sigma (6) for ALMA basis
Volatility Settings:
Volatility Method: ATR, Standard Deviation, or Range
Volatility Length (14): Lookback for volatility calculation
Band Multiplier (2.0): Distance of bands from basis
Adaptive Settings:
Enable Adaptive (true): Toggle dynamic band adjustment
Adaptation Period (50): Trend strength measurement window
Squeeze Detection:
BB/KC Parameters: Settings for squeeze identification
Expansion Threshold: Multiplier for expansion signals
📈 TRADING SIGNALS
Long Conditions:
Price crosses above basis
Basis line is rising
Band color shifts to cyan
Short Conditions:
Price crosses below basis
Basis line is falling
Band color shifts to magenta
💡 USAGE STRATEGIES
Trend Following: Trade with the basis direction when bands are expanding
Mean Reversion: Fade moves to outer bands during squeeze conditions
Breakout Trading: Enter on expansion signals after squeeze periods
Support/Resistance: Use bands as dynamic S/R levels
Position Sizing: Wider bands suggest higher volatility - adjust size accordingly
🎨 VISUAL ELEMENTS
Gradient Fills: 10 opacity layers creating smooth band transitions
Dynamic Colors: State-dependent coloring for instant trend recognition
Basis Line: Bold centerline changes color with trend state
Band Lines: Outer boundaries with matching state colors
⚡ BEST PRACTICES
The AVB indicator works optimally on liquid instruments with consistent volume. The adaptive feature performs best in trending markets but can generate false signals during choppy conditions. Consider using alongside momentum indicators for confirmation. The gradient visualization helps identify price position within the volatility envelope at a glance.
🔔 ALERTS INCLUDED
Long/Short Signals
Squeeze Conditions
Expansion Breakouts
Band Touch Events
Version 6 | Pine Script™ | © AlphaNatt
Profitolio Swing Strategy V1.2Profitolio Swing Strategy V1.2 - User Guide
Overview
The Profitolio Swing Strategy (PSS V1.2) is a comprehensive swing trading indicator designed to identify high-probability trade setups by combining multiple technical analysis methods. This indicator helps traders capture medium-term price movements while managing risk effectively.
What This Indicator Does
This indicator analyzes market momentum and volatility to generate clear BUY and SELL signals. It uses a confluence approach, meaning signals only appear when multiple conditions align, reducing false signals and improving trade quality.
Key Features
Visual Components
1. Signal Markers
Green Triangle (BUY): Appears below candles when bullish conditions align
Red Triangle (SELL): Appears above candles when bearish conditions align
2. Reference Lines
Blue Line: 21-period Exponential Moving Average (EMA) - shows medium-term trend direction
Orange Circles: Volume Weighted Average Price (VWAP) - represents fair value based on price and volume
3. Stoploss Management
Red Horizontal Line: Active stoploss for long positions (appears after BUY signal)
Green Horizontal Line: Active stoploss for short positions (appears after SELL signal)
"SL HIT!" Label: Appears when price touches the stoploss level
4. Background Color
Light Green: Indicates overall bullish market condition
Light Red: Indicates overall bearish market condition
No Color: Neutral/mixed conditions
5. Dashboard (Top Right)
Shows the status of multiple trend variants and the final decision:
Individual variant status (Variant 1, 2, 3)
Overall decision (BULLISH/BEARISH/NEUTRAL)
Active stoploss value
Parameters Used
ATR-Based Calculations
The indicator uses different Average True Range (ATR) and multipliers which measures market volatility
Lower multipliers: More sensitive, faster signals
Higher multipliers: Less sensitive, more stable signals
Moving Averages
21 EMA: Helps identify the prevailing trend direction. Price above EMA suggests uptrend, below suggests downtrend
VWAP: Acts as dynamic support/resistance. Institutional traders often use this as a reference point
How to Use This Indicator
Step 1: Wait for Signal Confirmation
Do not trade when background is absent (neutral condition)
Look for BUY signal when background turns light green
Look for SELL signal when background turns light red
Step 2: Entry Rules
For Long Positions (BUY):
Wait for green triangle below candle
Confirm price is above the 21 EMA (blue line) for stronger probability
Enter at current market price or next candle open
For Short Positions (SELL):
Wait for red triangle above candle
Confirm price is below the 21 EMA (blue line) for stronger probability
Enter at current market price or next candle open
Step 3: Risk Management
Stoploss Placement:
For BUY trades: The indicator automatically marks a stoploss level (red line) based on recent price action
For SELL trades: The indicator automatically marks a stoploss level (green line) based on recent price action
These levels persist until hit or trend reverses
Exit Strategies:
Stoploss Exit: Exit when price hits the marked stoploss line (you'll see "SL HIT!" label)
Signal Reversal: Exit when opposite signal appears
Background Change: Consider exiting when background color disappears (trend weakening)
Step 4: Additional Confirmation
Use EMA & VWAP for Confluence:
Stronger BUY: When price is above both EMA and VWAP
Stronger SELL: When price is below both EMA and VWAP
Caution: When price is between EMA and VWAP (mixed signals)
Best Practices
✅ DO:
Use on higher timeframes (4H, Daily) for swing trading
Wait for clear signal confirmation
Respect the stoploss levels
Check dashboard for overall market condition
Use on trending markets for best results
❌ DON'T:
Trade during neutral/gray periods
Ignore stoploss levels
Trade against the background color
Use on very short timeframes (1min, 5min) - designed for swing trading
Enter trades when all three variants show mixed signals
Alert Setup
The indicator includes built-in alerts:
"All Bullish": Triggered on BUY signal
"All Bearish": Triggered on SELL signal
"Buy SL Hit": When long stoploss is touched
"Sell SL Hit": When short stoploss is touched
Timeframe Recommendations
Best: Daily, 4-Hour charts
Good: 1-Hour charts
Not Recommended: Below 1-Hour (too many false signals)
Understanding the Dashboard
The dashboard shows a breakdown of the decision-making process:
Variant 1, 2, 3: Individual component analysis
Decision: Final verdict (requires all variants to agree)
Active SL: Current stoploss level for open position
Risk Disclaimer
This indicator is a tool to assist in trading decisions. Always:
Use proper position sizing
Never risk more than 1-2% per trade
Combine with your own analysis
Practice on paper/demo accounts first
Past performance doesn't guarantee future results
Note: This indicator works best in trending markets and may generate fewer signals in ranging/choppy conditions. Patience is key to successful swing trading.
Velocity Pressure Index | AlphaNattVelocity Pressure Index (VPI) | AlphaNatt
A sophisticated momentum oscillator that combines price velocity analysis with volume pressure dynamics to identify high-probability trading opportunities.
📊 KEY FEATURES
Dual Analysis System: Merges price velocity measurement with volume pressure analysis for comprehensive market momentum assessment
Dynamic Normalization: Automatically scales values between -100 and +100 for consistent readings across all market conditions
Adaptive Zones: Self-adjusting overbought/oversold levels based on recent price history
Multi-Layer Confirmation: Combines momentum, acceleration, and crossover signals for robust trade identification
Volume-Weighted Pressure: Differentiates between bullish and bearish volume to gauge true market sentiment
📈 HOW IT WORKS
The VPI calculates price velocity using linear regression of price changes, then weights this velocity by the difference between bullish and bearish volume pressure. This creates a momentum reading that accounts for both price movement speed and the volume conviction behind it.
Signal Generation:
Price velocity is measured over the specified period
Volume is separated into bullish (close > open) and bearish (close < open) pressure
Velocity is amplified or dampened based on volume pressure differential
The resulting index is normalized to oscillate between -100 and +100
A signal line smooths the oscillator for crossover detection
🎯 TRADING SIGNALS
Long Signals (Cyan #00F1FF):
Strong Bull: VPI > Signal with positive momentum and acceleration
Crossover Bull: VPI crosses above signal while above oversold zone
Divergence: Price makes lower low while VPI makes higher low
Short Signals (Magenta #FF019A):
Strong Bear: VPI < Signal with negative momentum and deceleration
Crossover Bear: VPI crosses below signal while below overbought zone
Divergence: Price makes higher high while VPI makes lower high
⚙️ CUSTOMIZABLE PARAMETERS
Velocity Settings:
Velocity Period (14): Lookback for price velocity calculation
Pressure Period (21): Volume analysis window
Smoothing Factor (3): Final oscillator smoothing
Signal Configuration:
Signal Type: Choose between SMA, EMA, or DEMA
Signal Length (9): Signal line smoothing period
Normalization Period (50): Range calculation window
Dynamic Zones:
Zone Lookback (100): Period for adaptive overbought/oversold calculation
Percentiles: 80th/20th percentiles for dynamic zones
📐 VISUAL COMPONENTS
Main Oscillator: Color-coded line showing current momentum state
Signal Line: White line for crossover detection
Momentum Histogram: Shows velocity differential at 50% scale
Dynamic Zones: Self-adjusting overbought/oversold bands
Extreme Levels: ±50 dotted lines marking extreme conditions
Background Shading: Subtle highlighting of overbought/oversold regions
💡 USAGE TIPS
Trend Trading: Use strong bull/bear signals in trending markets for continuation entries
Range Trading: Focus on crossovers near extreme zones for reversal trades
Divergence Trading: Watch for price/oscillator divergences at market extremes
Multi-Timeframe: Combine with higher timeframe VPI for directional bias
Volume Confirmation: Stronger signals occur with aligned volume pressure
⚠️ BEST PRACTICES
The VPI works best in liquid markets with reliable volume data. For optimal results, combine with price action analysis and use appropriate risk management. The indicator is most effective during trending conditions but can identify reversals when divergences occur at extremes.
🔔 ALERTS AVAILABLE
VPI Long/Short Signals
Bullish/Bearish Crossovers
Extreme Overbought/Oversold Conditions
Version 6 | Pine Script™ | © AlphaNatt
Bitcoin ETF Cumulative Net InflowIndicator Description:
This indicator calculates and plots the cumulative net inflow (in billions of USD) for selected Bitcoin ETFs on the main price chart. It uses AUM data from TradingView to estimate daily net flows, adjusted for BTC price changes, and accumulates them over time. The line is overlaid on the price chart (e.g., BTCUSD) with a right scale for better visibility, helping to identify correlations between ETF inflows and Bitcoin price movements.
Key Features:
Supports selection of 10 major Bitcoin ETFs (IBIT, FBTC, ARKB, etc.) via inputs.
Cumulative inflow line (purple, linewidth=2) for trend analysis.
Data sourced from request.financial("AUM", "D") for accuracy.
Market Profile based Support/ResistanceBrought to you by Stock Kaka - Your trading sidekick 🦜📈 - pay your visit at stockkaka.my.canva.site or find us on X #StockKaka
📊 What This Indicator Does
Ever wish the market would just tell you where the important levels are? Well, buckle up, because this indicator is like having a market whisperer on your chart!
Based on cutting-edge hierarchical market structure analysis (fancy words for "smart support and resistance"), this bad boy uses ATR-based Directional Change to identify turning points that actually matter. No more guessing where price might bounce or break—let the algorithm do the heavy lifting while you sip your coffee ☕
🎯 The Five Levels Explained (From Noisy to Mighty)
Think of these levels like a pyramid of importance. Level 0 is your chatty friend who notices everything, while Level 4 is the wise oracle who only speaks when it really matters.
Level 0: The Hyperactive Scout 🐿️
What it does: Catches every little zigzag in price using ATR confirmation
Significance: Very short-term, intraday noise
Best for: Scalpers who love action every few minutes
Trader Type: "I refresh my chart 100 times an hour"
Reliability: ⭐⭐ (It's enthusiastic but easily excitable)
Level 1: The Day Trader's Buddy 🎯
What it does: Filters Level 0 to show minor swing highs/lows
Significance: Intraday support/resistance, hourly structure
Best for: Day traders, scalpers looking for better entries
Trader Type: "I close all positions before dinner"
Reliability: ⭐⭐⭐ (Solid for quick moves)
Level 2: The Swing Trader's Sweet Spot 🎪
What it does: Identifies multi-day to weekly structure points
Significance: Intermediate support/resistance where battles happen
Best for: Swing traders, position traders
Trader Type: "I hold for days, not minutes"
Reliability: ⭐⭐⭐⭐ (Now we're talking real structure!)
Level 3: The Big Money Magnet 💰
What it does: Shows major market structure—where the whales play
Significance: Weekly to monthly levels, institutional zones
Best for: Position traders, trend followers
Trader Type: "I think in weeks and months, not hours"
Reliability: ⭐⭐⭐⭐⭐ (These levels have gravitational pull!)
Level 4: The Market Prophet 🔮
What it does: Reveals ultra-major turning points (think: quarterly/yearly pivots)
Significance: Long-term macro structure, investment-grade levels
Best for: Investors, long-term position traders
Trader Type: "Warren Buffett is my spirit animal"
Reliability: ⭐⭐⭐⭐⭐⭐ (When these break, market's rewrite the story)
⚙️ Parameter Setup Guide (The Secret Sauce)
The magic ingredient is the ATR Lookback Period—think of it as teaching the indicator your timeframe's "dialect." Here's your cheat sheet:
2-Minute Chart ⚡
ATR Lookback: 720 (24 hours of 2-min bars)
Who uses this: Crypto degens, futures scalpers, adrenaline junkies
Show Levels: L0, L1, L2 (L3+ won't budge much)
Pro Tip: Enable only L1 and L2 or your chart will look like spaghetti
5-Minute Chart 🏃
ATR Lookback: 288 (24 hours of 5-min bars)
Who uses this: Active day traders, news traders
Show Levels: L1, L2, L3
Pro Tip: L2 is your best friend here—perfect for intraday swings
15-Minute Chart 📈
ATR Lookback: 96 (24 hours of 15-min bars)
Who uses this: Swing traders, patient day traders
Show Levels: L1, L2, L3
Pro Tip: This is the "Goldilocks zone"—not too fast, not too slow
1-Hour Chart ⏰
ATR Lookback: 168 (1 week of hourly bars)
Who uses this: Swing traders, position traders
Show Levels: L2, L3, L4
Pro Tip: L3 levels here are like magnets for price action
Daily Chart 📅
ATR Lookback: 30 to 50 (1-2 months)
Who uses this: Investors, long-term traders, people with patience
Show Levels: L2, L3, L4
Pro Tip: L4 on dailies = "Don't fight this level, respect it"
🎨 How to Use This Thing
Add to Chart - Duh! 😄
Set Your ATR Lookback - Use the guide above (don't wing it!)
Enable Relevant Levels - Less is more! Turn off levels that just clutter
Watch the Magic - See horizontal lines appear at key S/R zones
Check the Table - Top-right corner shows current levels (fancy!)
Set Alerts - Get notified when price approaches or breaks levels
Trading Strategies 🎲
The Bounce Play:
Price approaches Level 2 or 3 support → Look for bullish reversal signals
Take profit at the next level resistance
Stop loss just below the support level
The Breakout Play:
Price breaks through Level 2/3 resistance with volume → Go long
Next level becomes your target
Failed breakout? Level becomes resistance again (classic fake-out)
The Confluence Play:
When Level 3 aligns with your favorite indicator (RSI oversold, moving average, Fibonacci) → Chef's kiss! 👨🍳💋
These multi-confirmation setups are where the money lives
🚨 Important Notes (Read This or Blame Yourself Later)
⚠️ This indicator REPAINTS on the current bar until an extreme is confirmed. That's not a bug, it's how directional change works. The past levels are solid as a rock, but the pending one is still... pending.
⚠️ More levels ≠ Better results. Showing all 5 levels is like having 5 GPS apps shouting directions at once. Pick 2-3 levels max.
⚠️ ATR Lookback matters! Wrong setting = garbage results. Use the guide above or experiment carefully.
⚠️ Volatile markets (crypto, meme stocks) work GREAT with this. Choppy, range-bound markets? Meh.
⚠️ Combine with other tools! This shows you WHERE, not WHEN. Use momentum indicators, volume, or your favorite chicken entrails for timing 🐔
🦜 Final Word from Stock Kaka
Remember: Indicators don't make money, traders do. This tool shows you where the market has historically respected structure. What you do with that info? That's on you, champ!
Use proper risk management, don't YOLO your rent money, and may your stops never get hunted 🎯
Trade smart, trade safe, and let Stock Kaka be your guide!
📝 Credits
Algorithm: neurotrader888 (Python implementation)
Pine Script Conversion: Your friendly neighborhood Stock Kaka team!!
Inspiration: Ginger chai, market inefficiencies, and a dash of chaos
📌 Tags
support-and-resistance market-structure atr directional-change multi-timeframe swing-trading day-trading levels hierarchical-analysis algo-trading
Renko BandsThis is renko without the candles, just the endpoint plotted as a line with bands around it that represent the brick size. The idea came from thinking about what renko actually gives you once you strip away the visual brick format. At its core, renko is a filtered price series that only updates when price moves a fixed amount, which means it's inherently a trend-following mechanism with built-in noise reduction. By plotting just the renko price level and surrounding it with bands at the brick threshold distances, you get something that works like regular volatility bands while still behaving as a trend indicator.
The center line is the current renko price, which trails actual price based on whichever brick sizing method you've selected. When price moves enough to complete a brick in the renko calculation, the center line jumps to the new brick level. The bands sit at plus and minus one brick size from that center line, showing you exactly how far price needs to move before the next brick would form. This makes the bands function as dynamic breakout levels. When price touches or crosses a band, you know a new renko brick is forming and the trend calculation is updating.
What makes this cool is the dual-purpose nature. You can use it like traditional volatility bands where the outer edges represent boundaries of normal price movement, and breaks beyond those boundaries signal potential trend continuation or exhaustion. But because the underlying calculation is renko rather than standard deviation or ATR around a moving average, the bands also give you direct insight into trend state. When the center line is rising consistently and price stays near the upper band, you're in a clean uptrend. When it's falling and price hugs the lower band, downtrend. When the center line is flat and price is bouncing between both bands, you're ranging.
The three brick sizing methods work the same way as standard renko implementations. Traditional sizing uses a fixed price range, so your bands are always the same absolute distance from the center line. ATR-based sizing calculates brick range from historical volatility, which makes the bands expand and contract based on the ATR measurement you chose at startup. Percentage-based sizing scales the brick size with price level, so the bands naturally widen as price increases and narrow as it decreases. This automatic scaling is particularly useful for instruments that move proportionally rather than in fixed increments.
The visual simplicity compared to full renko bricks makes this more practical for overlay use on your main chart. Instead of trying to read brick patterns in a separate pane or cluttering your price chart with boxes and lines, you get a single smoothed line with two bands that convey the same information about trend state and momentum. The center line shows you the filtered trend direction, the bands show you the threshold levels, and the relationship between price and the bands tells you whether the current move has legs or is stalling out.
From a trend-following perspective, the renko line naturally stays flat during consolidation and only moves when directional momentum is strong enough to complete bricks. This built-in filter removes a lot of the whipsaw that affects moving averages during choppy periods. Traditional moving averages continue updating with every bar regardless of whether meaningful directional movement is happening, which leads to false signals when price is just oscillating. The renko line only responds to sustained moves that meet the brick size threshold, so it tends to stay quiet when price is going nowhere and only signals when something is actually happening.
The bands also serve as natural stop-loss or profit-target references since they represent the distance price needs to move before the trend calculation changes. If you're long and the renko line is rising, you might place stops below the lower band on the theory that if price falls far enough to reverse the renko trend, your thesis is probably invalidated. Conversely, the upper band can mark levels where you'd expect the current brick to complete and potentially see some consolidation or pullback before the next brick forms.
What this really highlights is that renko's value isn't just in the brick visualization, it's in the underlying filtering mechanism. By extracting that mechanism and presenting it in a more traditional band format, you get access to renko's trend-following properties without needing to commit to the brick chart aesthetic or deal with the complications of overlaying brick drawings on a time-based chart. It's renko after all, so you get the trend filtering and directional clarity that makes renko useful, but packaged in a way that integrates more naturally with standard technical analysis workflows.
10Y–2Y Treasury Yield Curve Spread & MES % Change📝 Description:
This indicator tracks the U.S. 10-Year minus 2-Year Treasury yield spread — a powerful macroeconomic signal often used by professional traders to gauge market sentiment and recession risk — and overlays an optional MES % change line to help intraday futures traders spot macro–price divergences in real time.
Features:
🏦 Plots the 10Y–2Y spread, with optional EMA smoothing.
📉 Highlights yield curve inversion (background turns red when spread < 0).
📊 Optional MES % change line from daily or RTH open for directional bias.
🔔 Alert conditions for:
Yield curve inversion / un-inversion.
Sudden spread spikes in basis points (customizable).
🧮 Optional correlation plot to visualize relationship strength between MES and the yield curve.
🧭 Z-score normalization allows both series to be viewed in one pane without scaling issues.
Why it matters:
A falling or inverted 2s10s spread often signals risk-off behavior and pressure on equities.
A steepening curve tends to support risk-on rallies.
Divergences between MES price action and the spread can provide early warning signals of reversals or fakeouts.
Best used with:
MES (MES1!) or MYM charts for intraday & swing bias.
Fed event days, CPI/NFP, or any macro-sensitive sessions.
VWAP or structure-based intraday trading strategies.
⚠️ Note: This indicator is for informational purposes only and does not constitute financial advice. Always combine macro context with your own trade plan and risk management.
Multi-Moving Average (4x)Configurable moving average indicator where user can select up to 4 MA and configure SMA or EMA , color and width.
EMA HI/LO Cloud Shift + Extra EMA//@version=6
indicator("EMA HI/LO Cloud Shift + Extra EMA + Shift EMA Line", overlay=true, max_lines_count=6, max_labels_count=0)
// ------------------------
// Inputs
// ------------------------
emaLength = input.int(22, "Main EMA Length", minval=1, maxval=200)
emaLineColor = input.color(color.blue, "Main EMA Lines Color")
// Main Cloud colors
cloudAboveColor = input.color(color.new(color.green, 80), "Main Cloud Color (Price Above)")
cloudBelowColor = input.color(color.new(color.red, 80), "Main Cloud Color (Price Below)")
cloudInsideColor = input.color(color.new(color.orange, 80), "Main Cloud Color (Price Inside)")
// ------------------------
// Shift EMA (new logic)
// ------------------------
showShiftEMA = input.bool(true, "Show Shift EMA Line?")
shiftEMALength = input.int(26, "Shift EMA Length", minval=1, maxval=500)
shiftEMASource = input.source(close, "Shift EMA Source") // fully customizable source
shiftEMAColor = input.color(color.purple, "Shift EMA Color")
shiftEMAWide = input.int(2, "Shift EMA Line Width", minval=1, maxval=5)
shiftEMAOffset = input.int(0, "Shift EMA Offset", minval=-100, maxval=100)
// ------------------------
// Second EMA (independent)
// ------------------------
showSecondEMA = input.bool(true, "Show Second EMA?")
secondEMALength = input.int(200, "Second EMA Length", minval=1, maxval=1000)
secondEMAColor = input.color(color.yellow, "Second EMA Color")
secondEMAWide = input.int(2, "Second EMA Line Width", minval=1, maxval=5)
// ------------------------
// Main EMA Cloud Calculations
// ------------------------
emaHigh = ta.ema(high, emaLength)
emaLow = ta.ema(low, emaLength)
// ------------------------
// Main Cloud logic
// ------------------------
priceAboveMain = close > emaHigh
priceBelowMain = close < emaLow
priceInsideMain = not priceAboveMain and not priceBelowMain
cloudColorMain = priceAboveMain ? cloudAboveColor : priceBelowMain ? cloudBelowColor : cloudInsideColor
p1_main = plot(emaHigh, title="Main EMA High", color=emaLineColor, linewidth=2)
p2_main = plot(emaLow, title="Main EMA Low", color=emaLineColor, linewidth=2)
fill(p1_main, p2_main, color=cloudColorMain, title="Main EMA Cloud")
// ------------------------
// Shift EMA Line (replaces cloud offset)
// ------------------------
shiftEMA = ta.ema(shiftEMASource, shiftEMALength)
plot(showShiftEMA ? shiftEMA : na, title="Shift EMA Line", color=shiftEMAColor, linewidth=shiftEMAWide, offset=shiftEMAOffset)
// ------------------------
// Second EMA Plot (Independent)
// ------------------------
secondEMA = ta.ema(close, secondEMALength)
plot(showSecondEMA ? secondEMA : na, title="Second EMA", color=secondEMAColor, linewidth=secondEMAWide)
Advanced Liquidity Pools (Revention)Overview
This indicator provides a sophisticated visualization of potential Buy-Side Liquidity (BSL) and Sell-Side Liquidity (SSL) zones based on recent market structure swing points (pivots). It goes beyond simply plotting levels by incorporating a dynamic probability estimation to highlight the liquidity pool calculated as most likely to be targeted next. The goal is to offer traders a clearer view of potential stop-hunt zones and areas where market manipulation might occur.
Key Features
Dynamic Liquidity Boxes: Identifies BSL (above price) and SSL (below price) using pivot highs/lows and visualizes them as filled boxes extending into the future.
Hunt Odds Visualization: The color intensity and transparency of each box dynamically adjust based on a calculated "hunt odds" score. This score estimates the likelihood of the zone being targeted based on its age, current market volatility (ranging vs. trending), and the direction of the most recent liquidity sweep. Boxes with higher calculated odds appear more prominent.
Most Probable Target Highlight: The single BSL or SSL box with the highest calculated odds, adjusted for the last sweep direction, is highlighted with a distinct background color (default yellow), drawing attention to the area deemed most likely for the next liquidity grab.
Contextual Information: Optionally displays text directly on the highlighted box showing:
The calculated "Hunt Odds" percentage.
A Higher Timeframe (HTF) Alignment Score (0-4), indicating how many selected higher timeframes show a trend (based on EMA crossover) that aligns with the direction needed to reach the highlighted target.
How It Works
Pivot Detection: Identifies swing highs and lows based on the user-defined Pivot Lookback.
Zone Creation: Creates a box around each pivot, extending forward in time. The height is based on a multiple of the Average True Range (ATR).
Odds Calculation: For each active (non-mitigated) box, it calculates a "Hunt Odds" score using weighted factors:
Age: Older zones have lower odds.
Market Condition: Zones have higher odds during detected ranging periods.
Last Sweep: The zone opposite the most recently swept liquidity side receives higher odds.
Highlighting: Determines the highest-odds BSL and SSL, then selects the "most probable" target based primarily on the last_sweep_dir (prioritizing the opposite side) or secondarily on the highest overall odds.
HTF Alignment: Checks the trend direction (via EMA cross) on up to four user-selected higher timeframes and counts how many align with the direction towards the highlighted target.
Visualization: Updates the background color, border width, and text display for each box based on its odds and whether it's the highlighted target. Mitigated boxes are removed.
Disclaimer
The "Hunt Odds" percentage displayed is a speculative estimate derived solely from the indicator's internal logic and simplified market factors (age, range detection, last sweep). It is NOT a statistically validated probability of future price movement. Market dynamics are complex, and liquidity hunts are influenced by numerous factors not captured by this indicator. This tool should be used as a visual aid to supplement your own market analysis, confluence finding, and risk management strategies. Do not base trading decisions solely on the highlighted zone or the calculated odds.
Potential Use Cases
Identifying potential areas where stop-loss orders may be clustered.
Visualizing how market conditions (ranging) might increase the likelihood of stop hunts.
Gauging higher timeframe trend alignment towards key liquidity zones.
Serving as a component within a broader trading strategy focused on liquidity concepts and market manipulation patterns (e.g., waiting for rejection or acceptance at highlighted zones).






















