NW Envelope + Hull Safe & Professional:No repainting — everything uses (previous closed bar)
Signals only appear after bar close
Built-in cooldown (10 bars) to avoid spam
Loud customizable sound alerts that actually play
Works perfectly on all timeframes (especially 15m, 1h, 4h)
Bandas y canales
VWAP Bands ProDisclaimer: This script is for educational purposes only and is not financial advice. Trading involves risk, and users are responsible for their own decisions.
VWAP Bands Pro is a professional volatility tool that anchors the Volume Weighted Average Price to a chosen timeframe and projects standard deviation bands to reveal stretched price zones.
Key Features
Anchored Precision : Calculates VWAP from a fixed anchor period (default: Daily) for a clean institutional reference point.
Standard Deviation Bands : Plots 1s, 2s, and 3s bands to show volatility. Moves into the outer bands often point to exhaustion or possible reversal areas.
Glowing Gradient Design : Uses a premium multi step gradient that fades outward, making extreme zones easy to spot.
Clean Visuals : Prioritizes smooth gradient fills instead of crowding the chart with heavy lines.
How to Use
Anchor Period : Select the timeframe you want the tool to follow. Daily works well for intraday setups, while Weekly or Monthly suits swing trades.
Strategy : Watch for mean reversion setups when price moves into the 2s to 3s outer zones and starts to reject, aiming for a return toward the central VWAP.
bows//@version=5
indicator("NQ EMA+RSI+ATR Alerts with SL/TP", overlay=true, shorttitle="NQ Alerts SLTP")
// === Inputs ===a
fastLen = input.int(9, "Fast EMA", minval=1)
slowLen = input.int(21, "Slow EMA", minval=1)
rsiLen = input.int(14, "RSI Length", minval=1)
rsiLongMax = input.int(70, "Max RSI to allow LONG", minval=50, maxval=90)
rsiShortMin = input.int(30, "Min RSI to allow SHORT", minval=10, maxval=50)
atrLen = input.int(14, "ATR Length", minval=1)
atrMultSL = input.float(1.5, "ATR Stop-Loss Multiplier", step=0.1)
atrMultTP = input.float(2.5, "ATR Take-Profit Multiplier", step=0.1)
// === Indicator calculations ===
price = close
fastEMA = ta.ema(price, fastLen)
slowEMA = ta.ema(price, slowLen)
rsiVal = ta.rsi(price, rsiLen)
atr = ta.atr(atrLen)
// === Entry signals ===
longSignal = ta.crossover(fastEMA, slowEMA) and rsiVal < rsiLongMax
shortSignal = ta.crossunder(fastEMA, slowEMA) and rsiVal > rsiShortMin
// === SL/TP Levels ===
longSL = price - atr * atrMultSL
longTP = price + atr * atrMultTP
shortSL = price + atr * atrMultSL
shortTP = price - atr * atrMultTP
// === Plotting ===
plot(fastEMA, color=color.orange, title="Fast EMA")
plot(slowEMA, color=color.blue, title="Slow EMA")
plotshape(longSignal, title="Buy Signal", style=shape.triangleup, color=color.new(color.green, 0), location=location.belowbar, size=size.tiny)
plotshape(shortSignal, title="Sell Signal", style=shape.triangledown, color=color.new(color.red, 0), location=location.abovebar, size=size.tiny)
// Optional visualization of SL/TP
plot(longSignal ? longSL : na, "Long Stop-Loss", color=color.new(color.red, 50), style=plot.style_linebr)
plot(longSignal ? longTP : na, "Long Take-Profit", color=color.new(color.green, 50), style=plot.style_linebr)
plot(shortSignal ? shortSL : na, "Short Stop-Loss", color=color.new(color.red, 50), style=plot.style_linebr)
plot(shortSignal ? shortTP : na, "Short Take-Profit", color=color.new(color.green, 50), style=plot.style_linebr)
// === Alerts with SL/TP info ===
alertcondition(longSignal, title="BUY Signal",
message="BUY Alert — NQ LONG: Entry @ {{close}} | SL: {{plot_1}} | TP: {{plot_2}} | {{ticker}}")
alertcondition(shortSignal, title="SELL Signal",
message="SELL Alert — NQ SHORT: Entry @ {{close}} | SL: {{plot_3}} | TP: {{plot_4}} | {{ticker}}")
// === Visual labels ===
if (longSignal)
label.new(bar_index, low, "BUY SL: " + str.tostring(longSL, format.mintick) + " TP: " + str.tostring(longTP, format.mintick),
style=label.style_label_up, color=color.new(#be14c4, 0), textcolor=color.white)
if (shortSignal)
label.new(bar_index, high, "SELL SL: " + str.tostring(shortSL, format.mintick) + " TP: " + str.tostring(shortTP, format.mintick),
style=label.style_label_down, color=color.new(color.red, 0), textcolor=color.white)
Raja_Intraday: Bull/Bear Logic SetupBased on Candle high low/PDH-PDL break out, in combination with other indicators.
Focus is more on accuracy than on higher frequency of trades. Enjoy!!
Structural Liquidity ZonesTitle: Structural Liquidity Zones
Description:
This script is a technical analysis system designed to map market structure (Liquidity) using dynamic, volatility-adjusted zones, while offering an optional Trend Confluence filter to assist with trade timing.
Concept & Originality:
Standard support and resistance indicators often clutter the chart with historical lines that are no longer relevant. This script solves that issue by utilizing Pine Script Arrays and User-Defined Types to manage the "Lifecycle" of a zone. It automatically detects when a structure is broken by price action and removes it from the chart, ensuring traders only see valid, fresh levels.
By combining this structural mapping with an optional EMA Trend Filter, the script serves as a complete "Confluence System," helping traders answer both "Where to trade?" (Structure) and "When to trade?" (Trend).
Key Features:
1. Dynamic Structure (The Array Engine)
Pivot Logic: The script identifies major turning points using a customizable lookback period.
Volatility Zones: Instead of thin lines, zones are projected using the ATR (Average True Range). This creates a "breathing room" for price, visualizing potential invalidation areas.
Active Management: The script maintains a memory of active zones. As new bars form, the zones extend forward. If price closes beyond a zone, the script's garbage collection logic removes the level, keeping the chart clean.
2. Trend Confluence (Optional)
EMA System: Includes a Fast (9) and Slow (21) Exponential Moving Average module.
Signals: Visual Buy/Sell labels appear on crossover events.
Purpose: This allows for "Filter-based Trading." For example, a trader can choose to take a "Buy" bounce from a Support Zone only if the EMA Trend is also bullish.
Settings:
Structure Lookback: Controls the sensitivity of the pivot detection.
Max Active Zones: Limits the number of lines to optimize performance.
ATR Settings: Adjusts the width of the zones based on volatility.
Enable Trend Filter: Toggles the EMA lines and signals on/off.
Usage:
This tool is intended for structural analysis and educational purposes. It visualizes the relationship between price action pivots and momentum trends.
deKoder | Ultra High Timeframe Moving Average & Log StDev BandsdeKoder | Ultra High Timeframe Moving Average & Log StDev Bands
Identify long-term statistical extremes and map the core trend with the deKoder | uHTF MA indicator. Designed for macro analysis, this tool uses ultra high timeframe moving averages and logarithmic standard deviation bands to frame price action, providing clear signals for when an asset is statistically cheap, fairly priced, or expensive.
KEY FEATURES
• Ultra High Timeframe (uHTF) Moving Average:
• Acts as a dynamic long term fair value equilibrium line. Choose from periods like 1-Year, 2-Year, or 'Long Time'.
• Select your MA type: SMA, EMA, Hull MA, or a Rolling VWAP .
• Automatically fetches optimal data (4H/D) for smoother plotting on lower timeframes.
• Probabilistic Logarithmic Bands:
• The bands are calculated using log-standard deviation , creating a framework that adapts to exponential growth. As such, your chart price scale should be set to log.
• ~68% of price action typically occurs between the ±1σ bands (fair value zone).
• Trading in the ±1σ to ±2σ channel is typical in a strongly trending market. Moves towards the ±3σ bands can indicate that the market is becoming overextended. Expect strong price moves here and pay attention for signs of reversal.
• Bitcoin Halving Timeline:
• Integrated vertical lines and labels for all Bitcoin halvings.
• Correlates technical extremes with fundamental scarcity events.
• 4-Year Cycle Visual Aid:
• The background color cycle highlights yearly changes.
• Red years have historically aligned with bear markets, while the subsequent green zone has marked accumulation phases.
• Note: The bands provide the primary information - the background color is a contextual guide based on historical patterns around the BTC 4 year halving cycle that may not persist in future. It's quite possible that the market will act differently going forward considering the new types participants such as ETFs and government reserve funds.
HOW TO USE & INTERPRET
• Fair Value & Extremes:
• Price between ±1σ Bands: The asset is trading within a statistically fair value range.
• Price at +2σ / +3σ Bands: The asset is statistically expensive. Statistically, the price is overextended in this region, although you do NOT want to fade it based only upon this information.
• Price at -2σ / -3σ Bands: The asset is statistically cheap. These zones have frequently coincided with the end of bear markets and profound long-term buying opportunities.
• Dynamic Support & Resistance:
• The uHTF MA and its bands tend to act as support and resistance areas of interest on daily, weekly and monthly charts.
INPUTS & CUSTOMIZATION
• Toggles : Master switch for the MA, Bands, and Halving markers.
• uHTF Moving Average Filter : Select instrument (default: BITSTAMP:BTCUSD), price source, MA length, and type.
• Colours : Fine-tune the appearance of all elements.
PRO TIPS
• While created for Bitcoin, this principle will work well on other high-growth assets and major indices.
• The most reliable signals occur on the Daily, Weekly and Monthly timeframes.
• This is a lagging, macro-filter indicator. It is not for timing short-term entries but for confirming the long-term trend and cycle phase.
"Be Fearful When Others Are Greedy and Greedy When Others Are Fearful." - The deKoder | uHTF MA is here to help you quantify that greed and fear on a macro scale.
Felix-Style Breakout ScannerThis stock scanner will scan stocks back on the 50MA, heartbeat pattern and buy volume to detect a good buying opportunity.
YenCarry IndexA risk gauge that signals when USD/JPY is moving fast enough to make yen intervention likely by Ministry of Finance.
🌊 QUANTUM FLOW PRO - Ultimate Trading System🌊 QUANTUM FLOW PRO - Ultimate Trading System
Description:
QUANTUM FLOW PRO (QFP) is a comprehensive, all-in-one professional trading ecosystem designed for Crypto, Forex, and Stock markets. Unlike simple indicators that rely on a single metric, QFP combines Trend Analysis, Volume Profiles, Order Flow, and Institutional Accumulation logic into a single, powerful decision-making engine.
This system calculates a "Signal Score" (0-100) for every potential trade by analyzing over 10 different technical factors simultaneously.
🚀 KEY FEATURES
1. 🧠 Smart Signal Scoring System Every Buy or Sell signal is not just a guess; it is the result of a complex calculation. The system evaluates:
Trend: SuperTrend & EMA confluence.
Momentum: RSI, MACD, and Stochastic levels.
Volume: Money Flow, OBV, and Volume Z-Score.
Multi-Timeframe (HTF): Checks 4H and Daily trends for confirmation.
Result: You get a score (e.g., 85/100) indicating the probability of success.
2. 🐋 Whale & Accumulation Detection Identify where big players are positioning themselves before the move happens.
Purple Zones: High Accumulation areas (potential explosive breakouts).
Whale Activity: Detects unusual volume spikes often associated with institutional entries.
Consolidation: Measures volatility contraction to predict expansion.
3. 🔵 Order Flow & Pressure Visualize the battle between buyers and sellers directly on the chart.
Green/Red Dots: Show real-time Buying or Selling pressure based on price-volume divergence.
Order Walls: Identifies potential liquidity zones where price might stall or reverse.
4. 💰 Advanced Risk Management Stop guessing your exits. QFP provides dynamic levels automatically:
Entry, Stop Loss, and 3 Take Profit Levels.
Methods: Choose between ATR-based (Volatility), Fibonacci-based, or a Hybrid calculation.
Win Probability: Shows the statistical probability of reaching the next target (DN1, DN2, DN3).
5. 📊 Professional Dashboard A sleek, non-intrusive panel displaying:
Current Trend & Strength.
HTF Status.
RSI, MACD, VWAP status.
Accumulation Score & Volume Health.
🛠️ HOW TO USE
Select your Mode:
Conservative: Best for beginners. Fewer signals, higher confirmation (Wait 30 bars).
Balanced: Standard approach for day trading.
Aggressive: For scalping and volatile markets.
Wait for a Signal:
Look for the "STRONG BUY" (Green Triangle) or "STRONG SELL" (Red Triangle) labels.
Check the Score on the label (e.g., Score: 75/60). Higher is better.
Confirm with Dashboard:
Ensure the "Trend" and "HTF" (Higher Timeframe) match the signal direction.
Look for "Healthy" volume.
Execute & Manage:
Enter the trade.
Place your Stop Loss at the suggested SL line.
Take partial profits at TP1 and TP2.
Move SL to Breakeven after TP1 is hit (the script suggests this visually).
⚙️ SETTINGS OVERVIEW
Market Type: Optimize calculations for Crypto, Forex, or Stocks (BIST).
Risk Level: Low, Medium, High (Adjusts the signal threshold score).
TP Method: Hybrid (Recommended) blends ATR and Fib levels for precision.
⚠️ DISCLAIMER
This tool is for educational and analytical purposes only. Trading involves significant risk. Always perform your own due diligence and never trade with money you cannot afford to lose
Live Bollinger Buy/Sell Signal + Custom EMA by RAJU📌 DESCRIPTION
Live Bollinger Buy/Sell Signal is a price-action-based entry system built on Bollinger Bands. This indicator automatically detects high-probability reversal points when price interacts with the outer Bollinger Bands and provides instant Buy & Sell signals directly on the chart. It is designed for traders who want clean and fast signals without complex settings.
________________________________________
🧠 LOGIC OF INDICATOR
The indicator uses a standard Bollinger Band setup (SMA + Standard deviation).
A Buy or Sell signal is triggered when a candle forms outside or near the Bollinger Band extremes and then reverses direction. This behaviour often indicates a potential trend reversal or strong bounce from volatility exhaustion.
________________________________________
⚙ USER INPUT
Setting Description
Bollinger Band Length SMA period length used to form Bollinger Bands (Default: 20)
Std.Dev Multiplier Standard deviation multiplier for upper/lower bands (Default: 2.0)
________________________________________
🟩 LONG CONDITION (Buy Signal)
A Buy signal is plotted when:
• The candle closes bullish (close > open)
• The candle opens below the lower Bollinger Band
• The candle closes back above the lower Bollinger Band
• The next candle must trade above signal candle
• If a candle before or after signal candle closes without touching 5 EMA then probability of reversal is high (optional)
This indicates a strong price rejection from oversold levels.
________________________________________
🟥 SHORT CONDITION (Sell Signal)
A Sell signal is plotted when:
• The candle closes bearish (close < open)
• The candle opens above the upper Bollinger Band
• The candle closes back below the upper Bollinger Band
• The next candle must trade below signal candle
• If a candle before or after signal candle closes without touching 5 EMA then probability of reversal is high (optional)
This indicates a strong rejection from overbought levels.
________________________________________
📤 LONG EXIT
Users may exit long trades when:
• A Sell signal appears and signal candle closes without touching 5 EMA, or
• Price reaches the middle SMA line, or
• Personal trailing stop or resistance level is reached
________________________________________
📥 SHORT EXIT
Users may exit short trades when:
• A Buy signal appears and signal candle closes without touching 5 EMA, or
• Price reaches the middle SMA line, or
• Personal trailing stop or support level is reached
________________________________________
🌟 WHY IT IS UNIQUE
• Extremely simple yet powerful price-action confirmation mechanism
• No repainting — signals appear only after candle close
• Works across all timeframes and markets (Crypto, Forex, Stocks, Indices)
• Built-in signal level plotting to verify correct candle positioning
• Fast visual signal markers without clutter
________________________________________
💹 HOW USER CAN BE BENEFITED FROM THIS
• Helps traders catch early reversal entries with high probability
• Reduces emotional decision-making with visual Buy/Sell arrows
• Ideal for scalping, intraday, and swing strategies
• Can be used as an entry confirmation with other indicators like RSI, MACD, or trend filters
• Helps avoid false breakouts by confirming rejection from volatility extremes
________________________________________
⚠ DISCLAIMER: This tool is for educational purposes only and not trading advice. Always use proper risk management.
jg ndog/nwogthis is an indicator for new week opening gaps along with daily opening gaps marking out potential liq zones
Sniper BB + VWAP System (with SMT Divergence Arrows)STEP 1: Load two correlated futures charts.
Example: CL + RB/SI+GC/ NQ+ES
STEP 2: Add Bollinger Bands (20, 2.0) on both.
Optional add (20, 3.0).
STEP 3: Watch for a BB tag on one chart but not the other.
STEP 4: Wait for a reclaim candle back inside the band.
STEP 5: Enter with stop below/above the wick + 3.0 BB.
STEP 6: Scale out midline, then opposite band.
STEP 7: Hold partials when both pairs confirm trend.
*You can take the vwap bands off the chart if it is too cluttered.
yangwen1.0This script is an initial concept of mine. I attempted to use the 5-minute chart as ticks for catching bottoms and picking tops, but it's unable to avoid whipsaws. I've tested many methods to evade whipsaws, but they ultimately result in poor entry points, causing me to miss the bottoms and tops of price swings. I sincerely hope someone with better approaches can discuss this with me. Thank you.
Mizan v5 - L-Score (Minimal)DESCRIPTION:
The Architecture of Market Probability
Mizan v5 is not just another technical indicator; it is a quantitative implementation of the "Ontological Probability" philosophy. It is designed to decipher the market's hidden intent by analyzing the relationship between Balance, Order, and Harmony (DDU Principles).
Unlike standard oscillators that blindly follow price action, Mizan v5 operates on a multi-dimensional logic structure to separate "Market Noise" from "True Momentum."
CORE LOGIC & FEATURES
1. The L-Score Engine (Composite Momentum)
The heart of this algorithm is the "L-Score," a weighted composite index that answers the question: "Is the move supported by energy and mass?"
It fuses three distinct market dimensions into a single actionable score (0-100):
Volume Flow (45% Weight): Uses customized Chaikin Money Flow (CMF) logic to detect "Smart Money" accumulation before price reacts.
Velocity (35% Weight): Uses CCI to measure the speed of the breakout.
Saturation (20% Weight): Uses RSI as a limiter to identify overextended conditions.
2. Adaptive Regime Detection (The Histogram Logic)
Markets are not linear; they switch between "Global" and "Local" realities. Mizan v5 calculates statistical Price Density Zones (similar to Market Profile logic) to find the "Fair Value."
Global Mode: Analyzes the long-term balance (70 bars).
Local Mode: Automatically switches focus to short-term volatility (20 bars) when a "Regime Change" (high deviation) is detected.
HOW TO USE
1. The L-Score Line (Signal):
🟢 GREEN Line (> 65): Bullish Phase. Volume and Momentum are aligned. High probability of continuation.
🔴 RED Line (< 45): Bearish/Neutral Phase. Lack of energy. Avoid long positions ("Don't catch a falling knife").
🟠 ORANGE Line: Indecision/Transition zone.
2. Background Zones (Valuation):
🟩 Green Background: "Statistical Cheap Zone." Price is below the density band. Potential for Mean Reversion (Dip Buying).
🟥 Red Background: "Statistical Expensive Zone." Price is extended above the density band. High risk of Distribution (Selling).
PHILOSOPHY
"Chaos is merely order waiting to be deciphered." This tool is the visual manifestation of the "Cosmic Architect" project, aiming to bridge the gap between abstract philosophy and algorithmic trading.
Disclaimer: This tool is for educational and analytical purposes only. It is not financial advice.
© MuratKavak | Idea Architect
EMA CloudSimple EMA cloud using a fast, a slow and an optinal middle EMA.
It has EMA, EMA cloud and candle coloring depending on whether it's a downtrend or an uptrend.
It has a dashboard also with 4 customizable time frames that tells you if they are bullish or bearish and tells you the strength of the trend for the timeframe you are viewing.
6 EMA - 6 SMA This indicator will allow you to place on the chart at the same time 6 EMAs and 6 SMAs if you want — a total of 12 EMAs/SMAs!
Gold Thai CompassGold Thai Compass Indicator
Calculates Thai Gold Price (96.5%) by converting XAU/USD with the USD/THB exchange rate in real time
Displays the calculated gold_price_thb directly on the chart with a clean right-aligned label for easy price reading
Includes customizable reference lines — add, remove, rename, recolor, and adjust each line independently
Supports multiple editable lines (e.g., 4 levels) with price labels displayed beside each line
Provides user-friendly input settings (e.g., custom price sources, spread/adjustment options)
Updates dynamically with live market data — suitable for trading, analysis, and Thai gold price tracking
Designed for TradingView (Pine Script) and optimized for clarity and usability
Optional visibility controls to show/hide labels and reference lines for a cleaner chart layout
SAFI Strategy V1.0 motaz indicator SAFI Strategy V1.0 motaz indicator
indicator with many options and filters to give you clear signals with special strategies
Filter Wave1. Indicator Name
Filter Wave
2. One-line Introduction
A visually enhanced trend strength indicator that uses linear regression scoring to render smoothed, color-shifting waves synced to price action.
3. General Overview
Filter Wave+ is a trend analysis tool designed to provide an intuitive and visually dynamic representation of market momentum.
It uses a pairwise comparison algorithm on linear regression values over a lookback period to determine whether price action is consistently moving upward or downward.
The result is a trend score, which is normalized and translated into a color-coded wave that floats above or below the current price. The wave's opacity increases with trend strength, giving a visual cue for confidence in the trend.
The wave itself is not a raw line—it goes through a three-stage smoothing process, producing a natural, flowing curve that is aesthetically aligned with price movement.
This makes it ideal for traders who need a quick visual context before acting on signals from other tools.
While Filter Wave+ does not generate buy/sell signals directly, its secure and efficient design allows it to serve as a high-confidence trend filter in any trading system.
4. Key Advantages
🌊 Smooth, Dynamic Wave Output
3-stage smoothed curves give clean, flowing visual feedback on market conditions.
🎨 Trend Strength Visualized by Color Intensity
Stronger trends appear with more solid coloring, while weak/neutral trends fade visually.
🔍 Quantitative Trend Detection
Linear regression ordering delivers precise, math-based trend scoring for confidence assessment.
📊 Price-Synced Floating Wave
Wave is dynamically positioned based on ATR and price to align naturally with market structure.
🧩 Compatible with Any Strategy
No conflicting signals—Filter Wave+ serves as a directional overlay that enhances clarity.
🔒 Secure Core Logic
Core algorithm is lightweight and secure, with minimal code exposure and strong encapsulation.
📘 Indicator User Guide
📌 Basic Concept
Filter Wave+ calculates trend direction and intensity using linear regression alignment over time.
The resulting wave is rendered as a smoothed curve, colored based on trend direction (green for up, red for down, gray for neutral), and adjusted in transparency to reflect trend strength.
This allows for fast trend interpretation without overwhelming the chart with signals.
⚙️ Settings Explained
Lookback Period: Number of bars used for pairwise regression comparisons (higher = smoother detection)
Range Tolerance (%): Threshold to qualify as an up/down trend (lower = more sensitive)
Regression Source: The price input used in regression calculation (default: close)
Linear Regression Length: The period used for the core regression line
Bull/Bear Color: Customize the color for bullish and bearish waves
📈 Timing Example
Wave color changes to green and becomes more visible (less transparent)
Wave floats above price and aligns with an uptrend
Use as trend confirmation when other signals are present
📉 Timing Example
Wave shifts to red and darkens, floating below the price
Regression direction down; price continues beneath the wave
Acts as bearish confirmation for short trades or risk-off positioning
🧪 Recommended Use Cases
Use as a trend confidence overlay on your existing strategies
Especially useful in swing trading for detecting and confirming dominant market direction
Combine with RSI, MACD, or price action for high-accuracy setups
🔒 Precautions
This is not a signal generator—intended as a trend filter or directional guide
May respond slightly slower in volatile reversals; pair with responsive indicators
Wave position is influenced by ATR and price but does not represent exact entry/exit levels
Parameter optimization is recommended based on asset class and timeframe
Ultimate Multi-Asset Correlation System by able eiei Ultimate Multi-Asset Correlation System - User Guide
Overview
This advanced TradingView indicator combines WaveTrend oscillator analysis with comprehensive multi-asset correlation tracking. It helps traders understand market relationships, identify regime changes, and spot high-probability trading opportunities across different asset classes.
Key Features
1. WaveTrend Oscillator
Main Signal Lines: WT1 (blue) and WT2 (red) plot momentum and its moving average
Overbought/Oversold Zones: Default levels at +60/-60
Cross Signals:
🟢 Bullish: WT1 crosses above WT2 in oversold territory
🔴 Bearish: WT1 crosses below WT2 in overbought territory
Higher Timeframe (HTF) Analysis: Shows WT1 from 4H, Daily, and Weekly timeframes for trend confirmation
2. Multi-Asset Correlation Tracking
Monitors relationships between:
Major Assets: Gold (XAUUSD), Dollar Index (DXY), US 10-Year Yield, S&P 500
Crypto Assets: Bitcoin, Ethereum, Solana, BNB
Cross-Asset Analysis: Correlation between traditional markets and crypto
3. Market Regime Detection
Automatically identifies market conditions:
Risk-On: High correlation + positive sentiment (🟢 Green background)
Risk-Off: High correlation + negative sentiment (🔴 Red background)
Crypto-Risk-On: Strong crypto correlations (🟠 Orange background)
Low-Correlation: Divergent market behavior (⚪ Gray background)
Neutral: Mixed signals (🟡 Yellow background)
How to Use
Basic Setup
Add to Chart: Apply the indicator to any chart (works on all timeframes)
Choose Display Mode (Display Options):
All: Shows everything (recommended for comprehensive analysis)
WaveTrend Only: Focus on momentum signals
Correlation Only: View market relationships
Heatmap Only: Simplified correlation view
Enable Asset Groups:
✅ Major Assets: Traditional markets (stocks, bonds, commodities)
✅ Crypto Assets: Digital currencies
Mix and match based on your trading focus
Reading the Charts
WaveTrend Section (Bottom Panel)
Above 0 = Bullish momentum
Below 0 = Bearish momentum
Above +60 = Overbought (potential reversal)
Below -60 = Oversold (potential bounce)
Lighter lines = Higher timeframe trends
Correlation Histogram (Colored Bars)
Blue bars: Major asset correlations
Orange bars: Crypto correlations
Purple bars: Cross-asset correlations
Bar height: Correlation strength (-50 to +50 scale)
Background Color
Intensity reflects correlation strength
Color shows market regime
Dashboard Elements
🎯 Market Regime Analysis (Top Left)
Current Regime: Overall market condition
Average Correlation: Strength of relationships (0-1 scale)
Risk Sentiment: -100% (risk-off) to +100% (risk-on)
HTF Alignment: Multi-timeframe trend agreement
Signal Quality: Confidence level for current signals
📊 Correlation Matrix (Top Right)
Shows correlation values between asset pairs:
1.00: Perfect positive correlation
0.75+: Strong correlation (🟢 Green)
0.50+: Medium correlation (🟡 Yellow)
0.25+: Weak correlation (🟠 Orange)
Below 0.25: Negative/no correlation (🔴 Red)
🔥 Correlation Heatmap (Bottom Right)
Visual matrix showing:
Gold vs. DXY, BTC, ETH
DXY vs. BTC, ETH
BTC vs. ETH
Color-coded strength
📈 Performance Tracker (Bottom Left)
Tracks individual asset momentum:
WT1 Values: Current momentum reading
Status: OB (overbought) / OS (oversold) / Normal
Trading Strategies
1. High-Probability Trend Following
✅ Entry Conditions:
WaveTrend bullish/bearish cross
HTF Alignment matches signal direction
Signal Quality > 70%
Correlation supports direction
2. Regime Change Trading
🎯 Watch for regime shifts:
Risk-Off → Risk-On = Consider long positions
High correlation → Low correlation = Reduce position size
Crypto-Risk-On = Focus on crypto longs
3. Divergence Trading
🔍 Look for:
Strong correlation breakdown = Potential volatility
Cross-asset correlation surge = Follow the leader
Volume-price correlation extremes = Trend confirmation
4. Overbought/Oversold Reversals
⚡ Trade reversals when:
WT crosses in extreme zones (-60/+60)
HTF alignment shows opposite trend weakening
Correlation confirms mean reversion setup
Customization Tips
Fine-Tuning Parameters
WaveTrend Core:
Channel Length (10): Lower = more sensitive, Higher = smoother
Average Length (21): Adjust for your timeframe
Correlation Settings:
Length (50): Longer = more stable, Shorter = more responsive
Smoothing (5): Reduce noise in correlation readings
Market Regime:
Risk-On Threshold (0.6): Lower = earlier regime signals
High Correlation Threshold (0.75): Adjust sensitivity
Custom Asset Selection
Replace default symbols with your preferred markets:
Major Assets: Any forex, indices, bonds
Crypto: Any digital currencies
Must use correct exchange prefix (e.g., BINANCE:BTCUSDT)
Alert System
Enable "Advanced Alerts" to receive notifications for:
✅ Market regime changes
✅ Correlation breakdowns/surges
✅ Strong signals with high correlation
✅ Extreme volume-price correlation
✅ Complete HTF alignment
Correlation Interpretation Guide
ValueMeaningTrading Implication+0.75 to +1.0Strong positiveAssets move together+0.5 to +0.75Moderate positiveGenerally aligned+0.25 to +0.5Weak positiveLoose relationship-0.25 to +0.25No correlationIndependent movements-0.5 to -0.25Weak negativeSlight inverse relationship-0.75 to -0.5Moderate negativeTend to move opposite-1.0 to -0.75Strong negativeStrongly inversely correlated
Best Practices
Use Multiple Timeframes: Check HTF alignment before trading
Confirm with Correlation: Strong signals work best with supportive correlations
Watch Regime Changes: Adjust strategy based on market conditions
Volume Matters: Enable volume-price correlation for confirmation
Quality Over Quantity: Trade only high-quality setups (>70% signal quality)
Common Patterns to Watch
🔵 Risk-On Environment:
Gold-BTC positive correlation
DXY negative correlation with risk assets
High crypto correlations
🔴 Risk-Off Environment:
Flight to safety (Gold up, stocks down)
DXY strength
Correlation breakdowns
🟡 Transition Periods:
Low correlation across assets
Mixed HTF signals
Use caution, reduce position sizes
Technical Notes
Calculation Period: Uses HLC3 (average of high, low, close)
Correlation Window: Rolling correlation over specified length
HTF Data: Accurately calculated using security() function
Performance: Optimized for real-time calculation on all timeframes
Support
For optimal performance:
Use on 15-minute to daily timeframes
Enable only needed asset groups
Adjust correlation length based on trading style
Combine with your existing strategy for confirmation
Enjoy comprehensive multi-asset analysis! 🚀
Kernel Channel [BackQuant]Kernel Channel
A non-parametric, kernel-weighted trend channel that adapts to local structure, smooths noise without lagging like moving averages, and highlights volatility compressions, expansions, and directional bias through a flexible choice of kernels, band types, and squeeze logic.
What this is
This indicator builds a full trend channel using kernel regression rather than classical averaging. Instead of a simple moving average or exponential weighting, the midline is computed as a kernel-weighted expectation of past values. This allows it to adapt to local shape, give more weight to nearby bars, and reduce distortion from outliers.
You can think of it as a sliding local smoother where you define both the “window” of influence (Window Length) and the “locality strength” (Bandwidth). The result is a flexible midline with optional upper and lower bands derived from kernel-weighted ATR or kernel-weighted standard deviation, letting you visualize volatility in a structurally consistent way.
Three plotting modes help demonstrate this difference:
When the midline is shown alone, you get a smooth, adaptive baseline that behaves almost like a regression moving average, as shown in this view:
When full channels are enabled, you see how standard deviation reacts to local structure with dynamically widening and tightening bands, a mode illustrated here:
When ATR mode is chosen instead of StdDev, band width reflects breadth of movement rather than variance, creating a volatility-aware envelope like the example here:
Why kernels
Classical moving averages allocate fixed weights. Kernels let the user define weighting shape:
Epanechnikov — emphasizes bars near the current bar, fades fast, stable and smooth.
Triangular — linear decay, simple and responsive.
Laplacian — exponential decay from the current point, sharper reactivity.
Cosine — gentle periodic decay, balanced smoothness for trend filters.
Using these in combination with a bandwidth parameter gives fine control over smoothness vs responsiveness. Smaller bandwidths give sharper local sensitivity, larger bandwidths give smoother curvature.
How it works (core logic)
The indicator computes three building blocks:
1) Kernel-weighted midline
For every bar, a sliding window looks back Window Length bars. Each bar in this window receives a kernel weight depending on:
its index distance from the present
the chosen kernel shape
the bandwidth parameter (locality)
Weights form the denominator, weighted values form the numerator, and the resulting ratio is the kernel regression mean. This midline is the central trend.
2) Kernel-based width
You choose one of two band types:
Kernel ATR — ATR values are kernel-averaged, producing a smooth, volatility-based width that is not dependent on variance. Ideal for directional trend channels and regime separation.
Kernel StdDev — local variance around the midline is computed through kernel weighting. This produces a true statistical envelope that narrows in quiet periods and widens in noisy areas.
Width is scaled using Band Multiplier , controlling how far the envelope extends.
3) Upper and lower channels
Provided midline and width exist, the channel edges are:
Upper = midline + bandMult × width
Lower = midline − bandMult × width
These create smooth structures around price that adapt continuously.
Plotting modes
The indicator supports multiple visual styles depending on what you want to emphasize.
When only the midline is displayed, you get a pure kernel trend: a smooth regression-like curve that reacts to local structure while filtering noise, demonstrated here: This provides a clean read on direction and slope.
With full channels enabled, the behavior of the bands becomes visible. Standard deviation mode creates elastic boundaries that tighten during compressions and widen during turbulence, which you can see in the band-focused demonstration: This helps identify expansion events, volatility clusters, and breakouts.
ATR mode shifts interpretation from statistical variance to raw movement amplitude. This makes channels less sensitive to outliers and more consistent across trend phases, as shown in this ATR variation example: This mode is particularly useful for breakout systems and bar-range regimes.
Regime detection and bar coloring
The slope of the midline defines directional bias:
Up-slope → green
Down-slope → red
Flat → gray
A secondary regime filter compares close to the channel:
Trend Up Strong — close above upper band and midline rising.
Trend Down Strong — close below lower band and midline falling.
Trend Up Weak — close between midline and upper band with rising slope.
Trend Down Weak — close between lower band and midline with falling slope.
Compression mode — squeeze conditions.
Bar coloring is optional and can be toggled for cleaner charts.
Squeeze logic
The indicator includes non-standard squeeze detection based on relative width , defined as:
width / |midline|
This gives a dimensionless measure of how “tight” or “loose” the channel is, normalized for trend level.
A rolling window evaluates the percentile rank of current width relative to past behavior. If the width is in the lowest X% of its last N observations, the script flags a squeeze environment. This highlights compression regions that may precede breakouts or regime shifts.
Deviation highlighting
When using Kernel StdDev mode, you may enable deviation flags that highlight bars where price moves outside the channel:
Above upper band → bullish momentum overextension
Below lower band → bearish momentum overextension
This is turned off in ATR mode because ATR widths do not represent distributional variance.
Alerts included
Kernel Channel Long — midline turns up.
Kernel Channel Short — midline turns down.
Price Crossed Midline — crossover or crossunder of the midline.
Price Above Upper — early momentum expansion.
Price Below Lower — downward volatility expansion.
These help automate regime changes and breakout detection.
How to use it
Trend identification
The midline acts as a bias filter. Rising midline means trend strength upward, falling midline means downward behavior. The channel width contextualizes confidence.
Breakout anticipation
Kernel StdDev compressions highlight areas where price is coiling. Breakouts often follow narrow relative width. ATR mode provides structural expansion cues that are smooth and robust.
Mean reversion
StdDev mode is suitable for fade setups. Moves to outer bands during low volatility often revert to the midline.
Continuation logic
If price breaks above the upper band while midline is rising, the indicator flags strong directional expansion. Same logic for breakdowns on the lower band.
Volatility characterization
Kernel ATR maps raw bar movements and is excellent for identifying regime shifts in markets where variance is unstable.
Tuning guidance
For smoother long-term trend tracking
Larger window (150–300).
Moderate bandwidth (1.0–2.0).
Epanechnikov or Cosine kernel.
ATR mode for stable envelopes.
For swing trading / short-term structure
Window length around 50–100.
Bandwidth 0.6–1.2.
Triangular for speed, Laplacian for sharper reactions.
StdDev bands for precise volatility compression.
For breakout systems
Smaller bandwidth for sharp local detection.
ATR mode for stable envelopes.
Enable squeeze highlighting for identifying setups early.
For mean-reversion systems
Use StdDev bands.
Moderate window length.
Highlight deviations to locate overextended bars.
Settings overview
Kernel Settings
Source
Window Length
Bandwidth
Kernel Type (Epanechnikov, Triangular, Laplacian, Cosine)
Channel Width
Band Type (Kernel ATR or Kernel StdDev)
Band Multiplier
Visuals
Show Bands
Color Bars By Regime
Highlight Squeeze Periods
Highlight Deviation
Lookback and Percentile settings
Colors for uptrend, downtrend, squeeze, flat
Trading applications
Trend filtering — trade only in direction of the midline slope.
Breakout confirmation — expansion outside the bands while slope agrees.
Squeeze timing — compression periods often precede the next directional leg.
Volatility-aware stops — ATR mode makes channel edges suitable for adaptive stop placement.
Structural swing mapping — StdDev bands help locate midline pullbacks vs distributional extremes.
Bias rotation — bar coloring highlights when regime shifts occur.
Notes
The Kernel Channel is not a signal generator by itself, but a structural map. It helps classify trend direction, volatility environment, distribution shape, and compression cycles. Combine it with your entry and exit framework, risk parameters, and higher-timeframe confirmation.
It is designed to behave consistently across markets, to avoid the bluntness of classical averages, and to reveal subtle curvature in price that traditional channels miss. Adjust kernel type, bandwidth, and band source to match the noise profile of your instrument, then use squeeze logic and deviation highlighting to guide timing.






















