Market Structure Break & OB Probability Toolkit [LuxAlgo]The Market Structure Break & OB Probability Toolkit indicator provides an institutional framework for identifying high-probability liquidity zones and significant market structure transitions using momentum-based filters and volume analysis.
🔶 USAGE
The indicator aims to provide a systematic approach to structural analysis, allowing traders to identify clear institutional footprints. By integrating statistical filters, the tool helps isolate high-conviction signals from market noise.
🔹 Market Structure Breaks (MSB)
Unlike standard fractal-based breaks, the MSB logic in this toolkit utilizes a Momentum Z-Score filter . This ensures that structural shifts are only highlighted when price breaks a pivot with significant conviction.
Pivot Lookback: Custom sensitivity for identifying swing highs and lows.
Volatility Filtering: Only breaks exceeding the statistical threshold are labeled, helping traders avoid low-momentum fakeouts.
🔹 Institutional Order Blocks (OB)
The script automatically detects and manages Order Blocks based on the candle preceding an MSB. Every zone includes a Point of Control (POC) line for precise entry or target consideration.
Standard OBs: Formed during structural transitions, representing potential institutional interest.
High-Probability OBs (HP-OB): Zones identified with exceptionally high impulse and volume signatures (score > 80%). These are visually distinct to highlight their increased significance.
🔹 Session Range Integration
Traders can track the ranges of the London, New York, Tokyo, and Sydney sessions. This allows for the identification of structural breaks occurring at session extremes or during high-liquidity windows.
🔹 Strategy Application
Trend Direction: Identify the prevailing bias through MSB signals. A bullish MSB followed by a retracement into a Bullish OB provides a classic institutional entry scenario.
Zone Confluence: Look for High-Probability OBs that align with Session Highs/Lows for increased trade conviction.
Re-test Analysis: Enable "Extend Broken OBs" to see how price interacts with flipped liquidity zones.
🔶 DETAILS
The toolkit utilizes several advanced logic components to maintain chart clarity and analytical depth:
Intelligent Mitigation Logic: Active zones are managed in real-time. Traders can choose between "Historical" (shows all past zones) or "Present" (shows only active zones) display modes.
Mitigated Extension: A specialized feature to extend recently broken zones, allowing for re-test analysis of formerly active liquidity.
Overlap Filter: Option to hide overlapping Order Blocks to maintain a clean, actionable chart.
🔹 Analytics Dashboard
The built-in dashboard provides a real-time performance suite:
OB Reliability: A percentage-based efficiency metric tracking how many detected zones have been successfully mitigated by price.
High-Prob Zone Count: A live counter of active HP-OBs currently remaining on the chart.
🔶 SETTINGS
🔹 Market Structure
Pivot Lookback: Defines the sensitivity of the market structure detection by adjusting the lookback period for pivots.
MSB Momentum Z-Score: Sets the statistical threshold for a price move to be considered a valid structural break.
🔹 Visuals
Display Mode: Toggles between showing historical mitigated zones or only currently active ones.
🔹 Order Blocks
Max Active OBs: Controls the maximum number of blocks stored and displayed on the chart.
Extend Broken OBs: If enabled, recently mitigated blocks will remain visible to observe potential re-tests.
Hide Overlapping OBs: Removes redundant zones that occupy the same price area as existing ones.
🔹 Sessions
Show Session Ranges: Global toggle for session visualizations.
Session Toggles: Individual controls to enable London, New York, Tokyo, or Sydney ranges with custom time and color inputs.
Institutional trading concepts and Smart Money Concept (SMC) indicators involve significant risk. This tool is designed for educational and analytical purposes. Past performance is not indicative of future results.
การวิเคราะห์แนวโน้ม
Jurik MA Trend Breakouts [BigBeluga]🔵 OVERVIEW
Jurik MA Trend Breakouts is a precision trend-breakout detector built on a custom Jurik-smoothed moving average.
It identifies trend direction with ultra-low lag and maps breakout levels using pivot-based swing highs/lows.
The indicator plots dynamic breakout lines and confirms trend continuation or reversal when price breaks them — providing clean, minimalistic yet extremely accurate trend signals.
🔵 CONCEPTS
Jurik Moving Average (JMA) — A highly smooth and low-lag moving average that reacts quickly to trend shifts without noise. This becomes the core trend baseline.
Trend Bias —
• JMA rising → bullish trend
• JMA falling → bearish trend
The JMA color updates instantly based on slope.
Swing Pivots — Recent pivot highs/lows are detected to define structural break levels while filtering out weak noise.
Trend Breakout Levels —
The indicator draws horizontal levels at the last valid pivot in the direction of the trend.
These levels act as “confirmation gates” for breakout entries.
ATR Validity Filter — Ensures only meaningful pivots within a threshold are used to prevent fake breakouts.
🔵 FEATURES
Ultra-Smooth Jurik Trend Line — A visually clean trend baseline changing color based on direction.
Automatic Swing High Breakout Setup (Bullish) —
• During an uptrend, the indicator tracks the most recent pivot high.
• A horizontal breakout line is extended across the chart.
• A ✔ marker appears at both pivot points when the breakout structure becomes valid.
Automatic Swing Low Breakout Setup (Bearish) —
• During a downtrend, pivot lows are tracked.
• A horizontal breakout line marks the breakdown level.
• ✔ markers confirm valid structure before the breakout triggers.
Breakout Detection —
• Price closing above the bullish breakout line → “↑” signal printed on the chart.
• Price closing below the bearish breakout line → “↓” signal printed on the chart.
Automatic Reset on Trend Change —
When the JMA trend flips, all breakout structures are cleared and the model starts tracking new pivot levels.
Trend-Colored Visualization —
Glow + main JMA line give instant clarity of market direction.
🔵 HOW IT WORKS
1. JurikMA defines the main trend — Slope determines bullish or bearish state.
2. The indicator continuously searches for pivots in the direction of the trend.
3. When a valid pivot forms and passes ATR proximity filter, a structural breakout level is drawn.
4. As long as price stays below that level (bullish case), the trend setup remains active.
5. When price finally breaks the level , the indicator prints a directional arrow (↑ or ↓).
6. Trend flip instantly resets all levels and begins tracking pivots on the opposite side.
🔵 HOW TO USE
Breakout Trading — Enter long on “↑” and short on “↓” signals when price breaks key pivot structure.
Trend Confirmation — Use the JurikMA color to stay aligned with the main trend direction.
Reversals — Trend flips often mark major turning points.
Structure Mapping — Use the horizontal breakout lines to understand how close price is to confirming a new trend leg.
🔵 CONCLUSION
Jurik MA Trend Breakouts combines the speed of a Jurik MA with structural breakout logic to deliver clean, reliable entry signals.
Its minimal design, pivot-based confirmation, and trend-aligned logic make it suitable for scalping, swing trading, and intraday trend continuation setups.
If you want fast yet filtered breakout recognition with almost zero noise, this tool gives you everything you need.
Market Structure & Supply-Demand EngineMarket Structure & Supply-Demand Engine (MSD-Engine) is a professional, non-repainting market structure and supply-demand analysis tool built purely on price action and volatility logic.
This indicator is designed for discretionary traders who want a clean, institutional-style view of market structure without lagging indicators or strategy automation.
🔍 What This Indicator Does
MSD-Engine identifies major structural reversals, plots price-action based supply & demand zones, and provides multi-timeframe confluence in a single, unified framework.
It is visual and analytical only — no strategy orders, no backtesting, and no repainting.
🚀 Core Features
• Non-Repainting Market Structure
Event-based swing reversal detection
ATR-adaptive displacement filtering
Confirmed pivots only (no future leaks)
• Pure Supply & Demand Zones
Candle-structure based zone detection
Volume-weighted zone strength
Automatic invalidation on breach
Configurable zone limits to maintain chart clarity
• Multi-Timeframe Context (MTF)
Chart timeframe structure
Two independent higher-timeframe supply & demand layers
Higher-timeframe directional bias visualization
HTF zones plotted only on confirmed HTF closes
• Volatility-Adaptive Logic
ATR normalized across timeframes
Dynamic reversal thresholds
Stable behavior from scalping to swing charts
• Trendline Lifecycle Tracking
Automatic major trendline construction
Single-fire break detection
Break validation / failure logic
HTF-aligned vs counter-trend classification
🧠 Designed For
• Discretionary price-action traders
• Supply & demand traders
• Market structure & smart-money style analysis
• Multi-timeframe confluence trading
• Futures, indices, forex, crypto, and equities
⚠️ Important Notes
This is NOT a strategy or auto-trading system
No buy/sell signals or performance metrics
No repainting (uses barmerge.lookahead_off)
Educational & analytical use only
📜 Disclaimer
This script is provided for educational and analytical purposes only.
It does not constitute financial advice. Trading financial markets involves risk.
Bands and Channels Laboratory [DAFE]Bands and Channels Laboratory : The Ultimate Volatility & Envelope Engine
40+ Unique Algorithms. The Revolutionary MTF Horizon Display. Smart Kill Zones & Pattern Recognition. This is not just a band indicator; it is the definitive toolkit for mastering market volatility.
█ PHILOSOPHY: BEYOND THE BAND, INTO THE LABORATORY
Standard band indicators like Bollinger Bands or Keltner Channels are built on a simple, powerful idea: price tends to revert to a mean, and its deviation from that mean is a measure of volatility. However, their core calculations are primitive. A simple moving average for the basis and a simple standard deviation for the width are blunt instruments in a market that demands surgical precision and adaptability.
The Bands and Channels Laboratory was not created to be another band indicator. It was engineered to be the final word on volatility and envelope analysis. This is not just an indicator; it is a powerful, interactive research environment. It is a laboratory where you, the trader, can move beyond the static "one-size-fits-all" approach and forge a volatility system that is perfectly synchronized with the unique physics of your market.
We have deconstructed the very concept of a "band," separating it into its three core components— The Basis (Center Line) , The Deviation (Width) , and The Band Type (Envelope Logic) —and rebuilt each one with a library of dozens of advanced algorithms. This modular approach provides an almost infinite number of unique combinations, allowing you to construct a tool that is truly your own.
█ WHAT MAKES THIS THE "ULTIMATE" LABORATORY? THE CORE INNOVATIONS
This tool stands in a class of its own, offering a suite of proprietary features that collectively create an unparalleled analytical experience.
The 40+ Algorithm Core (Modular Engine): This is the heart of the Laboratory. You have independent control over the mathematical engine for each part of the band:
22 Basis Algorithms: Choose anything from a classic SMA to a zero-lag Hull MA, an adaptive KAMA, or a proprietary DAFE engine for your center line.
16 Deviation Algorithms: Move beyond simple standard deviation. Use statistically robust measures like Parkinson Volatility, advanced concepts like the Ulcer Index, or proprietary DAFE engines like "DAFE Dark Matter" to calculate your band width.
14 Band Types: Select the fundamental logic, from Bollinger and Keltner to unique DAFE models like "DAFE Quantum Bands."
The MTF Horizon Display: A revolutionary leap in data visualization. The Horizon projects up to three "holographic" displays of higher-timeframe band metrics (like Bandwidth % or Squeeze State) directly onto your main price chart. You can now see the "Macro Volatility" of the 1-Hour, 4-Hour, and Daily charts without ever leaving your 5-minute screen.
The Smart Kill Zone Engine: The indicator automatically identifies, plots, and tracks high-probability reversal zones. These are not based on simple price pivots. They are generated by identifying price levels where price interacted with the bands on high volume and with significant momentum, marking a true, institutionally defended level.
The Pattern Recognition Engine: The Laboratory isn't just reactive; it's proactive. It automatically detects and labels critical band patterns, including multiple types of Squeezes (Coiling, Compression), strong Walking Bands trends, and subtle Band Divergences that often precede major reversals.
The Visualization Core: Data should be intuitive and beautiful. Choose from 11 distinct, animated, and theme-aware rendering modes . From the glowing "Quantum Field" and flowing "Plasma Storm" to the abstract "Neural Network," you can transform the simple band into interactive data art.
█ A GUIDED TOUR OF THE ALGORITHMIC CORE
This is your library of mathematical DNA. Understanding your tools is the first step to mastery.
THE ENGINE FAMILIES
The Basis Algorithms (Center Line): You have over 22 choices. Replace the lagging SMA with a Hull MA for zero lag, a KAMA for adaptivity, or the DAFE Tensor Cloud for a 4D average of OHLC data. Your center line is now as intelligent as you want it to be.
The Deviation Algorithms (Band Width): You have over 16 choices. Go beyond simple standard deviation. Use advanced statistical measures like Garman-Klass or Yang-Zhang for a more efficient estimate of volatility. Or, deploy proprietary DAFE engines like DAFE Entropy , which widens the bands in chaotic markets, or DAFE Elastic , which resists extreme expansion.
The Band Types: Choose from 14 fundamental logics, including classics like Bollinger Bands, Keltner Channels , and Donchian Channels , as well as proprietary DAFE models like the DAFE Quantum Bands , which use a noise-canceling step function for their width.
█ ACTIONABLE INTELLIGENCE: THE SIGNAL & PATTERN ENGINES
The Laboratory transforms bands from a simple contextual tool into a complete trading framework.
The Signal Engine: You are not limited to one strategy. Choose from eight distinct signal modes, from classic Mean Reversion on a band touch to aggressive Squeeze Breakouts or robust Trend Following signals. The "Smart Composite" mode uses a multi-factor scoring system to identify only the highest quality setups.
The Pattern Engine: This is your early warning system.
Squeeze Classification: It doesn't just tell you there's a squeeze; it classifies its type ("Coiling," "Compression"), giving you insight into the potential energy being stored.
Walking the Bands: It automatically detects when price is "walking" or "riding" the upper or lower band—the signature of an extremely powerful trend.
Band Divergence: It alerts you to subtle but powerful divergences between the trend of the price and the trend of the bandwidth, often signaling trend exhaustion before it's visible in price action.
█ THE MASTER DASHBOARD: YOUR "AT-A-GLANCE" COMMAND CENTER
The professional-grade dashboard provides a comprehensive, real-time summary of the entire volatility system's state.
Position & State: Instantly see the price's position relative to the bands (%B), the current Bandwidth percentage, and the overall Volatility Regime (HIGH, LOW, NORMAL).
Pattern Readout: Get a real-time display of the currently detected band pattern (e.g., "SQUEEZE: COILING," "WALKING UPPER").
Signal Status: Confirms the most recent signal generated by your chosen signal mode and displays its calculated "Strength."
Optimizer Data: When enabled, shows the backtest results of your current settings, including Win Rate, Profit Factor, and a proprietary Robustness Score.
█ DEVELOPMENT PHILOSOPHY
Bands Laboratory Ultra was born from a fascination with the physics of the market: the constant ebb and flow between equilibrium and chaos, compression and expansion. We believe that volatility is not just a risk metric; it is the very energy that drives all market movement. This tool was designed for the serious trader who seeks to understand and harness that energy. It is for the analyst who wants to deconstruct, test, and build a volatility tool that is a perfect extension of their own mind.
This Laboratory is designed to help you be wrong less often by providing a crystal-clear, multi-dimensional view of market volatility, allowing you to filter out low-probability trades and act with precision when the odds are stacked in your favor.
█ DISCLAIMER AND BEST PRACTICES
THIS IS AN ADVANCED ANALYTICAL TOOL: This indicator provides a sophisticated volatility and signal framework. It must be integrated into a complete trading plan that includes your own analysis and risk management.
TEST, DON'T GUESS: The power of this tool is its adaptability. Use the built-in Optimizer Engine to rigorously test different algorithm combinations and settings on your chosen asset and timeframe.
START WITH A ROBUST BASE: A classic "Bollinger Bands" type with a "Hull MA" basis and "Standard Deviation" is an excellent, low-lag starting point. From there, begin experimenting with more advanced deviation methods or basis algorithms.
USE CONFLUENCE: The highest probability signals come from confluence. A "Squeeze Breakout" buy signal that is confirmed by high volume, a bullish ADX, and alignment with the MTF Horizon is an A++ setup.
"In the business of trading, the winner is not the person who is never wrong, but the person who is wrong the least."
— William Eckhardt, Market Wizard
Taking you to school. - Dskyz, Trade with Bands. Trade with Channels. Trade with Bands and Channels Laboratory
Cross-Market Regime Scanner [BOSWaves]Cross-Market Regime Scanner - Multi-Asset ADX Positioning with Correlation Network Visualization
Overview
Cross-Market Regime Scanner is a multi-asset regime monitoring system that maps directional strength and trend intensity across correlated instruments through ADX-based coordinate positioning, where asset locations dynamically reflect their current trending versus ranging state and bullish versus bearish bias.
Instead of relying on isolated single-asset trend analysis or static correlation matrices, regime classification, spatial positioning, and intermarket relationship strength are determined through ADX directional movement calculation, percentile-normalized coordinate mapping, and rolling correlation network construction.
This creates dynamic regime boundaries that reflect actual cross-market momentum patterns rather than arbitrary single-instrument levels - visualizing trending assets in right quadrants when ADX strength exceeds thresholds, positioning ranging assets in left quadrants during consolidation, and incorporating correlation web topology to reveal which instruments move together or diverge during regime transitions.
Assets are therefore evaluated relative to ADX-derived regime coordinates and correlation network position rather than conventional isolated technical indicators.
Conceptual Framework
Cross-Market Regime Scanner is founded on the principle that meaningful market insights emerge from simultaneous multi-asset regime awareness rather than sequential single-instrument analysis.
Traditional trend analysis examines assets individually using separate chart windows, which often obscures the broader cross-market regime structure and correlation patterns that drive coordinated moves. This framework replaces isolated-instrument logic with unified spatial positioning informed by actual ADX directional measurements and correlation relationships.
Three core principles guide the design:
Asset positioning should be determined by ADX-based regime coordinates that reflect trending versus ranging state and directional bias simultaneously.
Spatial mapping must normalize ADX values to place assets within consistent quadrant boundaries regardless of instrument volatility characteristics.
Correlation network visualization reveals which assets exhibit coordinated behavior versus divergent regime patterns during market transitions.
This shifts regime analysis from isolated single-chart monitoring into unified multi-asset spatial awareness with correlation context.
Theoretical Foundation
The indicator combines ADX directional movement calculation, coordinate normalization methodology, quadrant-based regime classification, and rolling correlation network construction.
A Wilder's smoothing implementation calculates ADX, +DI, and -DI for each monitored asset using True Range and directional movement components. The ADX value relative to a configurable threshold determines X-axis positioning (ranging versus trending), while the difference between +DI and -DI determines Y-axis positioning (bearish versus bullish). Coordinate normalization caps values within fixed boundaries for consistent quadrant placement. Pairwise correlation calculations over rolling windows populate a network graph where line thickness and opacity reflect correlation strength.
Five internal systems operate in tandem:
Multi-Asset ADX Engine : Computes smoothed ADX, +DI, and -DI values for up to 8 configurable instruments using Wilder's directional movement methodology.
Coordinate Transformation System : Converts ADX strength and directional movement into normalized X/Y coordinates with threshold-relative scaling and boundary capping.
Quadrant Classification Logic : Maps coordinate positions to four distinct regime states—Trending Bullish, Trending Bearish, Ranging Bullish, Ranging Bearish—with color-coded zones.
Historical Trail Rendering : Maintains rolling position history for each asset, drawing gradient-faded trails that visualize recent regime trajectory and velocity.
Correlation Network Calculator : Computes pairwise return correlations across all enabled assets, rendering weighted connection lines in circular web topology with strength-based styling.
This design allows simultaneous cross-market regime awareness rather than reacting sequentially to individual instrument signals.
How It Works
Cross-Market Regime Scanner evaluates markets through a sequence of multi-asset spatial processes:
Data Request Processing : Security function retrieves high, low, and close values for up to 8 configurable symbols with lookahead offset to ensure confirmed bar data.
ADX Calculation Per Asset : True Range computed from high-low-close relationships, directional movement derived from up-moves versus down-moves, smoothed via Wilder's method over configurable period.
Directional Index Derivation : +DI and -DI calculated as smoothed directional movement divided by smoothed True Range, scaled to percentage values.
Coordinate Transformation : X-axis position equals (ADX - threshold) * 2, capped between -50 and +50; Y-axis position equals (+DI - -DI), capped between -50 and +50.
Quadrant Assignment : Positive X indicates trending (ADX > threshold), negative X indicates ranging; positive Y indicates bullish (+DI > -DI), negative Y indicates bearish.
Trail History Management : Configurable-length position history maintains recent coordinates for each asset, rendering gradient-faded lines connecting sequential positions.
Velocity Vector Calculation : 7-bar coordinate change converted to directional arrow overlays showing regime momentum and trajectory.
Return Correlation Processing : Bar-over-bar returns calculated for each asset, pairwise correlations computed over rolling window.
Network Graph Construction : Assets positioned in circular topology, correlation lines drawn between pairs exceeding threshold with thickness/opacity scaled by correlation strength, positive correlations solid green, negative correlations dashed red.
Risk Regime Scoring : Composite score aggregates bullish risk-on assets (equities, crypto, commodities) minus bullish risk-off assets (gold, dollar, VIX), generating overall market risk sentiment with colored candle overlay.
Together, these elements form a continuously updating spatial regime framework anchored in multi-asset momentum reality and correlation structure.
Interpretation
Cross-Market Regime Scanner should be interpreted as unified spatial regime boundaries with correlation context:
Top-Right Quadrant (TREND ▲) : Assets positioned here exhibit ADX above threshold with +DI exceeding -DI - confirmed bullish trending conditions with directional conviction.
Bottom-Right Quadrant (TREND ▼) : Assets positioned here exhibit ADX above threshold with -DI exceeding +DI - confirmed bearish trending conditions with directional conviction.
Top-Left Quadrant (RANGE ▲) : Assets positioned here exhibit ADX below threshold with +DI exceeding -DI - ranging consolidation with bullish bias but insufficient trend strength.
Bottom-Left Quadrant (RANGE ▼) : Assets positioned here exhibit ADX below threshold with -DI exceeding +DI - ranging consolidation with bearish bias but insufficient trend strength.
Position Trails : Gradient-faded lines connecting recent coordinate history reveal regime trajectory - curved paths indicate regime rotation, straight paths indicate sustained directional conviction.
Velocity Arrows : Directional vectors overlaid on current positions show 7-bar regime momentum - arrow length indicates speed of regime change, angle indicates trajectory direction.
Correlation Web : Circular network graph positioned left of main quadrant map displays pairwise asset relationships - solid green lines indicate positive correlation (moving together), dashed red lines indicate negative correlation (diverging moves), line thickness reflects correlation strength magnitude.
Asset Dots : Multi-layer glow effects with color-coded markers identify each asset on both quadrant map and correlation web-symbol labels positioned adjacent to current location.
Regime Summary Bar : Vertical boxes on right edge display condensed regime state for each enabled asset - box background color reflects quadrant classification, border color matches asset identifier.
Risk Regime Candles : Overlay candles on price chart colored by composite risk score - green indicates risk-on dominance (bullish equities/crypto exceeding bullish safe-havens), red indicates risk-off dominance (bullish gold/dollar/VIX exceeding bullish risk assets), gray indicates neutral balance.
Quadrant positioning, trail trajectory, correlation network topology, and velocity vectors outweigh isolated single-asset readings.
Signal Logic & Visual Cues
Cross-Market Regime Scanner presents spatial positioning insights rather than discrete entry signals:
Regime Clustering : Multiple assets congregating in same quadrant suggests broad market regime consensus - all assets in TREND ▲ indicates coordinated bullish momentum across instruments.
Regime Divergence : Assets splitting across opposing quadrants reveals intermarket disagreement - equities in TREND ▲ while safe-havens in TREND ▼ suggests healthy risk-on environment.
Quadrant Transitions : Assets crossing quadrant boundaries mark regime shifts - movement from left (ranging) to right (trending) indicates breakout from consolidation into directional phase.
Trail Curvature Patterns : Sharp curves in position trails signal rapid regime rotation, straight trails indicate sustained directional conviction, loops indicate regime uncertainty with back-and-forth oscillation.
Velocity Acceleration : Long arrows indicate rapid regime change momentum, short arrows indicate stable regime persistence, arrow direction reveals whether asset moving toward trending or ranging state.
Correlation Breakdown Events : Previously strong correlation lines (thick, opaque) suddenly thinning or disappearing indicates relationship decoupling - often precedes major regime transitions.
Correlation Inversion Signals : Assets shifting from positive correlation (solid green) to negative correlation (dashed red) marks structural market regime change - historically correlated assets beginning to diverge.
Risk Score Extremes : Composite score reaching maximum positive (all risk-on bullish, all risk-off bearish) or maximum negative (all risk-on bearish, all risk-off bullish) marks regime conviction extremes.
The primary value lies in simultaneous multi-asset regime awareness and correlation pattern recognition rather than isolated timing signals.
Strategy Integration
Cross-Market Regime Scanner fits within macro-aware and intermarket analysis approaches:
Regime-Filtered Entries : Use quadrant positioning as directional filter for primary trading instrument - favor long setups when asset in TREND ▲ quadrant, short setups in TREND ▼ quadrant.
Correlation Confluence Trading : Enter positions when target asset and correlated instruments occupy same quadrant - multiple assets in TREND ▲ provides conviction for long exposure.
Divergence-Based Reversal Anticipation : Monitor for regime divergence between correlated assets - if historically aligned instruments split to opposite quadrants, anticipate mean-reversion or regime rotation.
Breakout Confirmation via Cross-Asset Validation : Confirm primary instrument breakouts by verifying correlated assets simultaneously transitioning from ranging to trending quadrants.
Risk-On/Risk-Off Positioning : Use composite risk score and safe-haven positioning to determine overall market environment - scale risk exposure based on risk regime dominance.
Velocity-Based Timing : Enter during periods of high regime velocity (long arrows) when momentum carries assets decisively into new quadrants, avoid entries during low velocity regime uncertainty.
Multi-Timeframe Regime Alignment : Apply higher-timeframe regime scanner to establish macro context, use lower-timeframe price action for entry timing within aligned regime structure.
Correlation Web Pattern Recognition : Identify regime transitions early by monitoring correlation network topology changes - previously disconnected assets forming strong correlations suggests regime coalescence.
Technical Implementation Details
Core Engine : Wilder's smoothing-based ADX calculation with separate True Range and directional movement tracking per asset
Coordinate Model : Threshold-relative X-axis scaling (trending versus ranging) with directional movement differential Y-axis (bullish versus bearish)
Normalization System : Boundary capping at ±50 for consistent spatial positioning regardless of instrument volatility
Trail Rendering : Rolling array-based position history with gradient alpha decay and width tapering
Correlation Engine : Return-based pairwise correlation calculation over rolling window with configurable lookback
Network Visualization : Circular topology with trigonometric positioning, weighted line rendering based on correlation magnitude
Risk Scoring : Composite calculation aggregating directional states across classified risk-on and risk-off asset categories
Performance Profile : Optimized for 8 simultaneous security requests with efficient array management and conditional rendering
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Micro-regime monitoring for intraday correlation shifts and short-term regime rotations
15 - 60 min : Intraday regime structure with meaningful ADX development and correlation stability
4H - Daily : Swing and position-level macro regime identification with sustained trend classification
Weekly - Monthly : Long-term regime cycle tracking with structural correlation pattern evolution
Suggested Baseline Configuration:
ADX Period : 14
ADX Smoothing : 14
Trend Threshold : 25.0
Trail Length : 15
Correlation Period : 50
Min |Correlation| to Show Line : 0.3
Web Radius : 30
Show Quadrant Colors : Enabled
Show Regime Summary Bar : Enabled
Show Velocity Arrows : Enabled
Show Correlation Web : Enabled
These suggested parameters should be used as a baseline; their effectiveness depends on the selected assets' volatility profiles, correlation characteristics, and preferred spatial sensitivity, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Assets clustering too tightly : Decrease Trend Threshold (e.g., 20) to spread ranging/trending separation, or increase ADX Period for smoother ADX calculation reducing noise.
Assets spreading too widely : Increase Trend Threshold (e.g., 30-35) to demand stronger ADX confirmation before classifying as trending, tightening quadrant boundaries.
Trail too short to show trajectory : Increase Trail Length (20-25) to visualize longer regime history, revealing sustained directional patterns.
Trail too cluttered : Decrease Trail Length (8-12) for cleaner visualization focusing on recent regime state, reducing visual complexity.
Unstable ADX readings : Increase ADX Period and ADX Smoothing (18-21) for heavier smoothing reducing bar-to-bar regime oscillation.
Sluggish regime detection : Decrease ADX Period (10-12) for faster response to directional changes, accepting increased sensitivity to noise.
Too many correlation lines : Increase Min |Correlation| threshold (0.4-0.6) to display only strongest relationships, decluttering network visualization.
Missing significant correlations : Decrease Min |Correlation| threshold (0.2-0.25) to reveal weaker but potentially meaningful relationships.
Correlation too volatile : Increase Correlation Period (75-100) for more stable correlation measurements, reducing network line flickering.
Correlation too stale : Decrease Correlation Period (30-40) to emphasize recent correlation patterns, capturing regime-dependent relationship changes.
Velocity arrows too sensitive : Modify 7-bar lookback in code to longer period (10-14) for smoother velocity representation, or increase magnitude threshold for arrow display.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Macro-aware trading approaches requiring cross-market regime context for directional bias
Intermarket analysis strategies monitoring correlation breakdowns and regime divergences
Portfolio construction decisions requiring simultaneous multi-asset regime classification
Risk management frameworks using safe-haven positioning and risk-on/risk-off scoring
Trend-following systems benefiting from cross-asset regime confirmation before entry
Mean-reversion strategies identifying regime extremes via clustering patterns and correlation stress
Reduced Effectiveness:
Single-asset focused strategies not incorporating cross-market context in decision logic
High-frequency trading approaches where multi-security request latency impacts execution
Markets with consistently weak correlations where network topology provides limited insight
Extremely low volatility environments where ADX remains persistently below threshold for all assets
Instruments with erratic or unreliable ADX characteristics producing unstable coordinate positioning
Integration Guidelines
Confluence : Combine with BOSWaves structure, volume analysis, or primary instrument technical indicators for entry timing within aligned regime
Quadrant Respect : Trust signals occurring when primary trading asset occupies appropriate quadrant for intended trade direction
Correlation Context : Prioritize setups where target asset exhibits strong correlation with instruments in same regime quadrant
Divergence Awareness : Monitor for safe-haven assets moving opposite to risk assets - regime divergence validates directional conviction
Velocity Confirmation : Favor entries during periods of strong regime velocity indicating decisive momentum rather than regime oscillation
Risk Score Alignment : Scale position sizing and exposure based on composite risk score - larger positions during clear risk-on/risk-off environments
Trail Pattern Recognition : Use trail curvature to identify regime stability (straight) versus rotation (curved) versus uncertainty (looped)
Multi-Timeframe Structure : Apply higher-timeframe regime scanner for macro filter, lower-timeframe for tactical positioning within established regime
Disclaimer
Cross-Market Regime Scanner is a professional-grade multi-asset regime visualization and correlation analysis tool. It uses ADX-based coordinate positioning and rolling correlation calculation but does not predict future regime transitions or guarantee relationship persistence. Results depend on selected assets' characteristics, parameter configuration, correlation stability, and disciplined interpretation. Security request timing may introduce minor latency in real-time data retrieval. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates price structure, volume context, fundamental macro awareness, and comprehensive risk management.
LDEF SENS Loss Dependent Error Filter Dominance Regime SwitchCAPITALCOM:GOLD
LDEF SENS stands for Loss Dependent Error Filter. This indicator is a dominance regime filter with an adaptive switch boundary. It separates the market into two main states.
Directional tradeable tape (trend and impulse conditions)
Balanced noisy tape (higher fakeout probability)
It also provides a dominance direction bias (bull vs bear) and an adaptive boundary you can use as a market switch signal.
What you see in the indicator pane (bottom panel)
Main line (0 to 100): dominance sensitivity score
Line color meaning
Green: bullish dominance (L greater than R)
Red: bearish dominance (R greater than L)
Gray: low strength or mixed tape
Purple line: adaptive regime boundary (moving threshold)
Violet shading: regime ON (tradeable conditions)
Key idea: height equals strength, color equals direction, violet shading equals regime state.
How to read the three images
Image A - Regime ON in a trending environment
Where to look
Price panel: left to middle shows a clean up move
Indicator panel: directly below the same time window
Violet band is present for a sustained stretch
Main line stays high and mostly green
What it means
When the violet band stays ON, the tape is directional enough for trend following setups to have higher quality. This is not an entry signal. It is an environment filter.
Image B - Switch boundary and state changes
Where to look
Indicator panel: focus on the purple adaptive line and the main line crossing relative to it
Watch the moment the main line moves above the purple line. In the same region, violet shading turns ON.
What it means
The purple line is the adaptive regime boundary.
Cross above: regime switches toward directional tape (state change confirmation)
Cross below: regime fades and chop risk returns
Image C - Direction semantics inside a regime
Where to look
Indicator panel: inside violet shaded regions
Main line is green during bullish dominance (L greater than R)
Main line is red during bearish dominance (R greater than L)
What it means
Violet answers: is this a tradeable regime
Green or red answers: which side is dominating
Together, they provide a filter plus bias framework.
Practical usage
Regime filter
Prefer setups only when the violet band is ON
Reduce size or tighten criteria when the violet band is OFF
Direction bias
Prefer longs when the line is green
Prefer shorts when the line is red
Treat gray as no edge or mixed tape
Switch boundary analysis
Cross above purple: treat as regime shift confirmation
Cross below purple: treat as regime cooling off and higher chop risk
Limitations
This is a regime and dominance tool, not a standalone entry generator. Regime confirmation can be late by design, especially after shocks. Use it with structure, liquidity, and risk management.
Adaptive Moving AverageAdaptive Moving Average
The Adaptive Moving Average (AMA) dynamically adjusts to market conditions, selecting the most responsive behavior while filtering noise to provide clearer trend guidance.
🚀 Why It’s Unique
• Exclusive adaptive logic unique to this script
• High speed with reduced noise
• Strong performance on volatile assets such as SOLUSD and CROUSD
• Highly customizable moving average combinations
• Multi-layer processing for improved accuracy
• Color-changing plots and reversal highlights for quick interpretation
💡 Core Idea
The indicator blends multiple user-selected moving averages and dynamically emphasizes the one best suited to current market conditions. This preserves responsiveness during strong moves while filtering weak or noisy signals.
⚙️ How It Works
Three user-selected moving averages are calculated using the same base length.
A first adaptation layer weights the averages based on their rate of change responsiveness.
A second rate-of-change filter measures market conditions to suppress signals during unstable environments.
The final adaptive average changes behavior depending on market speed and direction.
The result is a moving average that reacts quickly during trends while remaining stable during choppy periods.
📌 Usage Notes
• Color changes indicate shifts in trend direction.
• Highlighted diamonds mark reversal events.
• Higher adaptation thresholds reduce signals but increase reliability.
• Lower thresholds increase responsiveness for faster trading styles.
🧭 Conclusion
The Adaptive Moving Average continuously adjusts its behavior to reduce false signals while maintaining speed and responsiveness. It offers a versatile tool for traders seeking clearer market structure and improved strategy execution.
Adaptive RSIAdaptive RSI
Adaptive RSI is an enhanced version of the classic Relative Strength Index designed to automatically adjust its behavior to changing market conditions. The indicator can operate both as a mean-reversion oscillator and as a trend-following momentum tool, allowing traders to detect high/low value zones while also capturing directional moves.
Unlike the traditional RSI, which uses a fixed smoothing method, Adaptive RSI dynamically changes its calculation speed depending on market activity. This helps reduce false signals in slow or choppy markets while allowing faster responses during strong moves.
🔍 Concept & Idea
The goal behind Adaptive RSI is to make RSI responsive when opportunities appear and more conservative during uncertain or low-activity environments.
By automatically adjusting its internal smoothing and reaction speed, the indicator attempts to balance:
• Early entries during strong market moves
• Reduced noise during consolidation
• Mean-reversion opportunities in ranging markets
• Momentum confirmation in trending markets
This adaptive behavior makes the oscillator more versatile across multiple market conditions.
⚙️ How It Works
The indicator evaluates market activity using three drivers:
• True Range (volatility)
• Volume activity
• Rate of price change
Users can define which of these factors has priority. The script then checks up to three conditions; the more conditions that are satisfied, the faster and more responsive the RSI calculation becomes.
This creates multiple internal speed tiers ranging from smooth and conservative to highly responsive.
After the adaptive RSI is calculated, an additional adaptive smoothing layer is applied using the same logic, improving signal clarity while preserving responsiveness.
An optional feature allows the RSI to use a special Rate-of-Change weighted price source. This feature is more advanced and mainly intended for users who understand how weighted price construction affects oscillators.
A divergence measure between the base RSI and the smoothed Adaptive RSI is also plotted to help visualize shifts in momentum strength.
⚙️ Key Features
• Adaptive RSI calculation speed
• Works for both trend-following and mean-reversion approaches
• Adjustable long and short signal thresholds
• Overbought and oversold zone highlighting
• Divergence histogram between RSI and adaptive smoothing
• Trend-based coloring and visual signal markers
• Optional ROC-weighted source for advanced users
🧩 Inputs Overview
• RSI calculation length and smoothing length
• Price source selection or optional special weighted source
• Speed tier selection (slow, medium, fast behavior)
• Activity priority order (volatility, volume, momentum)
• Long/short and overbought/oversold thresholds
📌 Usage Notes
• Can be used both for trend continuation and mean-reversion strategies.
• Adaptive logic helps reduce noise during sideways markets.
• Strong moves may cause faster RSI transitions due to adaptive speed selection.
• Signals may update intrabar on lower timeframes.
• Works best when combined with risk management and confirmation tools.
• No indicator is perfect; always test before live use.
This script is intended for analytical purposes only and does not provide financial advice.
GK Trend Ribbon 10L (Ultra Tight) + PREPARE HUDThis upgraded GK Trend Ribbon keeps original ultra tight 10-line trend engine but now adds a Real Time Preparation system to help traders get ready before the signal print
New Additions
Prepare Alerts (Early Warming System)
Before a GK BUY or GK SELL confirms, the indicator now detects when trend conditions are forming and prints
PREPARE GK BUY
PREPARE GK SELL
this gives traders time to: Set lot Sizes
Mark entries
Prepare risk management
Avoid late entries
Live Trend HUD (heads up display)
green Bullish mode
red Bearish mode
grey Neutral/wait
Warning symbol PREPARE GK BUY/SELL when a move is building
this acts like a market control panel keeping traders aligned with the trend direction at all times
CORE ENGINE (unchanged power)
zero lag trend structure
ATR based dynamic bands
1 clean GK BUY/SELL per confirmed trend shift
visual ribbon showing strength and direction
this version improves timing, preparation, and confidence-without adding clutter
this indicator are for educational purposes only
DarkFutures Where/How/WhenTesting - for 15min Gold scalps
It identifies 4hr Where, 30m How and 5min When sareas of trade, then gives a signal to buy/sell based on that trend and momentum information using 8/21 EAM and Vwaps.
True Range Smoothed SuperTrendTrue Range Smoothed SuperTrend (TRS SuperTrend | MisinkoMaster)
The True Range Smoothed SuperTrend is an innovative trend analysis indicator designed to identify clear market trends while minimizing noise. By combining a smoothed price source weighted by true range values with an ATR-based volatility multiplier, this tool delivers reliable trend signals adaptable to a wide variety of asset classes and timeframes.
It’s particularly useful for traders seeking a versatile trend-following system that balances sensitivity and stability.
🔍 Concept & Idea
The indicator enhances the classic SuperTrend concept by using a true range–weighted smoothing of price data instead of raw price or simple moving averages. This weighting helps focus on periods with higher volatility, improving the relevance of trend detection.
Along with smoothing, the indicator applies an ATR-based volatility multiplier to dynamically adjust the upper and lower trend bands, adapting to current market volatility conditions.
⚙️ How It Works
True Range Weighted Smoothing:
The source price (default: low) is multiplied by the true range values over the lookback period.
These weighted values are summed and normalized by the total true range sum.
The result is further smoothed using an Exponential Moving Average (EMA) with a length proportional to the square root of the input length, reducing noise while preserving trend responsiveness.
ATR-based Bands:
The Average True Range (ATR) is calculated with the same length as the smoothing period.
The ATR is multiplied by a user-defined multiplier to establish dynamic upper and lower bands around the smoothed price.
Trend Determination:
When the source price crosses above the upper band, a bullish trend is signaled.
Conversely, crossing below the lower band signals a bearish trend.
These crossings update the trend state, which controls plotted bands and trend labels.
🧩 Inputs Overview
Length – Controls the lookback period for true range weighting, ATR calculation, and smoothing. Affects sensitivity and smoothness (default 37).
Source – Price source used for calculation, defaulting to low.
Multiplier – Scales the ATR bands to adjust volatility sensitivity (default 1.45).
📌 Usage Notes
The TRS SuperTrend works well across various asset classes and timeframes.
The true range weighting improves trend detection in volatile markets by emphasizing price moves during active periods.
Adjust the length and multiplier inputs to balance between noise reduction and responsiveness for your specific market and strategy.
Trend changes are visually marked with “𝓛𝓸𝓷𝓰” and “𝓢𝓱𝓸𝓻𝓽” labels directly on the chart.
Background fills between bands and price improve visual clarity.
Combine with other confirmation tools and risk management practices for best results.
Not a standalone trading system; always validate and backtest prior to live trading.
⚠️ Disclaimer
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading involves risk and users should perform their own analysis before making trading decisions.
Enjoy smoother and clearer trend analysis with the True Range Smoothed SuperTrend!
Auto Parallel Channel [KTY] Auto Parallel Channel
Automatically detects and draws parallel channels based on ZigZag pivot structure. Supports multi-level channel detection, slope filtering, and channel extension after breakout.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Features
- Auto Channel Detection
- Automatically generates parallel channels by connecting swing highs and lows
- Bullish Channel (Green): Based on HL (Higher Low) pivots
- Bearish Channel (Red): Based on LH (Lower High) pivots
- Multi-Level Structure
- Major Channels: Large trend structure (solid lines)
- Minor Channels: Short-term swing structure (dashed/dotted lines)
- 8 channels total (Major/Minor × External/Internal × Bull/Bear)
- Midline
- Dotted line at the 50% level of each channel
- Serves as a mean reversion reference
- Slope Display
- Each channel label shows its slope (%)
- Positive (+) for ascending, Negative (-) for descending
- Slope Filter
- Option to display only channels above a minimum slope threshold
- Separate threshold settings for bullish and bearish channels
- Channel Extension
- Extends the channel by N bars after price breaks out
- Adjustable extension length (default: 30 bars)
- Alerts
- Bullish Channel Touch: Price touches bullish channel support
- Bearish Channel Touch: Price touches bearish channel resistance
- Bullish Channel Break: Price breaks below bullish channel
- Bearish Channel Break: Price breaks above bearish channel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ How to Use
1. Channel bottom touch → Check for bounce
2. Channel top touch → Check for resistance
3. Channel break → Check for trend reversal or acceleration
4. Midline reaction → Check for mean reversion
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 Tips
- Major channels are more reliable than Minor channels
- Channel breakout with increasing volume = higher confidence
- Overlapping channels = stronger support/resistance zones
- Combine with FVG, Order Blocks, and liquidity sweeps for confluence
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 Notes
This indicator is open-source under the Mozilla Public License 2.0.
Created by Kim Thank You (김땡큐)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Disclaimer
This indicator is provided for educational purposes only.
It is not financial advice. Always trade at your own risk.
ST Order Block EngineAdvanced order block detection based on displacement and structural validation.
Volatility Smoothed Moving Average BandVolatility Smoothed Moving Average Bands
The Volatility Smoothed Moving Average Bands are volatility-based bands that combine multiple measurements to provide a robust and accurate view of market trend and direction.
🚀 Benefits
• Reduced noise through multi-source averaging
• Fast response to market changes
• Strong performance on volatile assets, especially altcoins (notably CROUSD)
💡 Core Idea
The goal is to generate accurate and robust signals by averaging multiple components without requiring additional historical data. The method extracts more information from the same data, improving stability and responsiveness simultaneously.
⚙️ How It Works
A fast and a slow moving average are calculated.
Multiple intermediate values are derived and averaged to build a highly stable center line.
Differences between all components are averaged to estimate volatility.
This volatility is added and subtracted from the center line to form dynamic upper and lower bands.
The result is adaptive bands that track market structure with high accuracy and reduced lag.
📌 Usage Notes
• Best suited for trend detection and dynamic support/resistance.
• Bands expanding → volatility increasing.
• Bands contracting → market compression or consolidation.
• Crosses above/below bands often signal strong directional shifts.
Enjoy and trade smart.
MACD Standard DeviationMACD Standard Deviation
The MACD Standard Deviation is a smoother, volatility-adjusted version of MACD designed to improve signal quality and reduce noise while preserving fast market responsiveness.
🚀 Benefits
• Strong performance on assets like BNBUSDT
• Faster entries with reduced signal noise
• Simple and efficient calculation method
• Improved trend clarity compared to classic MACD
💡 Core Idea
The objective is to create a cleaner MACD signal by measuring and adapting to its volatility. By accounting for dispersion, the indicator filters weak fluctuations and keeps meaningful momentum moves.
⚙️ How It Works
A standard MACD is calculated using selected moving averages.
Standard deviation of the MACD is computed over a chosen period.
Upper and lower dynamic levels are derived from MACD median and volatility.
These adaptive bands help filter false signals and better capture trend direction.
The result is a smoother, more stable MACD-based trend tool.
📌 Usage Notes
• Crosses around the zero line indicate potential trend shifts.
• Expanding band distance suggests rising momentum volatility.
• Contracting distance often signals consolidation phases.
• Histogram changes help visualize acceleration or weakening momentum.
TPC-Buying and Selling areasTPC - Buying and Selling Areas
Open-source multi-timeframe indicator that automatically detects and displays Supply (resistance) and Demand (support) zones based on swing structure, along with Fair Value Gaps (FVGs) for imbalance visualization. Supports up to two higher timeframes (MTF) for Supply/Demand + optional current-chart or custom timeframe FVGs, with mitigation tracking, alerts, and a dashboard for FVG stats.
Overview
This tool helps identify key price areas where institutional buying/selling pressure may have accumulated (Supply/Demand zones) and inefficiencies/imbalances in price delivery (Fair Value Gaps).
It plots:
•Demand zones (potential support/buy areas) in green tones
•Supply zones (potential resistance/sell areas) in red tones
•Bullish/Bearish FVGs as filled or line areas (with dynamic or fixed extension options)
•A simple FVG dashboard showing count and mitigation percentage
Zones mitigate (disappear or mark as filled) when price closes/wicks through them. Designed for clean charts with configurable visibility, box pooling, and alerts on new zones or FVG events.
How It Works (Conceptual)
•Supply & Demand Zones
•Uses pivot-based swing highs/lows from one or two user-selectable higher timeframes (or chart timeframe).
•Detects structure breaks (e.g., higher highs/lows, lower highs/lows) near recent ATR range to form zones.
•Zones drawn as extendable boxes with timeframe label, customizable borders/text.
•Mitigation: Zones removed or marked when price breaches them (close or extreme/wick, configurable globally or per TF).
•Only shows recent zones (user-defined "show last N") and cleans up on lower timeframes if desired.
•Fair Value Gaps (FVGs)
•Detects 3-candle imbalances where price gaps aggressively (low > high for bullish, high < low for bearish, with optional size threshold).
•Plots as semi-transparent boxes (fixed extend) or dynamic fills that adjust with price.
•Tracks mitigation (when price fills the gap) and optionally draws dashed mitigation lines.
•Shows unmitigated recent FVGs as lines + dashboard stats (total count, % mitigated for bull/bear).
•Multi-timeframe logic uses request.security() for higher TFs, with careful handling for display on lower charts.
See the code for full pivot detection, array management, mitigation loops, and FVG conditions.
How to Use
•Best on volatile/liquid markets (crypto, forex, indices, futures) across intraday to daily timeframes.
•Use Demand zones (green) as potential long entries or support flips when price approaches from above.
•Use Supply zones (red) as potential short entries or resistance when price approaches from below.
•FVGs highlight inefficiencies: bullish FVGs often act as magnets/pullbacks in uptrends; bearish in downtrends.
•Combine with higher-timeframe bias (e.g., show HTF zones on LTF chart) for confluence.
•Alerts fire on: new demand/supply zone, new bullish/bearish FVG, or FVG mitigation.
•Keep "Show only on lower timeframes" enabled to avoid clutter on HTF charts.
•Adjust "Box Size" (pool) if you hit max_boxes limit on very long histories.
Settings
General Settings
•Hide all Demand / Supply zones
•Show S&D only on lower TFs
•S&D Box Size (pool limit, default 80)
•Mitigate on Close or Wick/Extreme
Timeframe 1 & Timeframe 2 (identical groups)
•Set to chart timeframe (or custom)
•Show Demand/Supply
•Alerts for new zones
•Timeframe multiplier + period (Min/Hour/Day/Week/Month)
•Swing Length for pivots
•Border type/width, text size/color
•Demand/Supply colors
•Show last N zones per type
FVG Settings
•Threshold % (min gap size) or Auto
•Unmitigated levels to show
•Mitigation levels (dashed lines)
•FVG Timeframe (blank = chart)
FVG Style
•Extend bars
•Dynamic fill (adjusts with price)
•Bullish/Bearish colors
FVG Dashboard
•Show dashboard
•Location (Top Right etc.)
•Text size
Notes / Limitations
•Non-repainting after bar close (uses confirmed pivots/security data).
•Heavy on boxes/lines — increase pool size carefully (TradingView limits apply).
•FVGs can fill quickly in ranging markets; use with structure/context.
•Always backtest and combine with your analysis — not financial advice, trading carries risk.
•Open-source: feel free to fork, improve, or learn from it.
Smart SafeZone Stops [MarkitTick]💡 This script represents a sophisticated evolution of volatility-based trailing stop methodologies. It is designed to assist traders in managing trend-following positions by dynamically adjusting stop-loss levels based on market noise, directional momentum, and volume flows. Unlike static trailing stops that move by a fixed percentage or simple ATR multiples, this tool calculates the "safe zone" by analyzing how far price has penetrated against the trend over a specific lookback period, offering a granular approach to risk management that adapts to changing market conditions.
✨ Originality and Utility
The primary utility of this indicator lies in its ability to filter out market noise while remaining tight enough to protect profits during strong trends. While the classic SafeZone concept (popularized by Dr. Alexander Elder) is effective, this script introduces several modern enhancements that increase its robustness:
● Dynamic ADX Integration Standard SafeZone stops use a fixed multiplier. This script integrates the Average Directional Index (ADX) to gauge trend strength. When the trend is strong, the stop tightens (Aggressive Multiplier) to lock in profits rapidly. When the trend is weak or choppy, the stop widens (Conservative Multiplier) to prevent premature shakeouts. ● Volume-Weighted Noise Price movement on low volume is often considered "noise," while high-volume movement signifies conviction. This script optionally weights the noise calculation by Relative Volume. A downward spike on low volume will affect the stop level less than a downward spike on high volume.
● 3-Day Smoothing Mechanism To prevent the stop line from becoming too jagged or reacting to single-bar anomalies, the script applies a 3-day smoothing algorithm. It utilizes the "worst-case" scenario of the last three calculated stop levels, ensuring the stop only moves when the trend structure genuinely shifts.
🔬 Methodology and Concepts
The underlying logic operates on a "Ratchet" mechanism, meaning the stop line can only move in the direction of the trade (up for longs, down for shorts) and never retraces until a trend reversal occurs.
● Directional Noise Calculation The script separates market noise into two components: Downside Penetration (for Longs): The distance the price dips below the previous bar's low. Upside Penetration (for Shorts): The distance the price spikes above the previous bar's high. The average of these penetrations is calculated over the Noise Lookback Period .
● The SafeZone Formula The raw stop level is derived as follows: Long Stop = Previous Low - (Average Downside Noise × Multiplier) Short Stop = Previous High + (Average Upside Noise × Multiplier)
● Adaptive Multiplier Logic If Dynamic ADX is enabled: If ADX > Strong Threshold: Use Aggressive Multiplier (e.g., 1.5x). If ADX < Weak Threshold: Use Conservative Multiplier (e.g., 3.5x). Otherwise: Use the Base Safety Coefficient.
● Exhaustion Detection The script calculates the distance between the current Close price and the Active Stop. If this distance exceeds a specific multiple of the ATR (Average True Range), it flags a "Mean Reversion" or "Exhaustion" warning, suggesting price has extended too far from equilibrium.
🎨 Visual Guide
The indicator plots distinct visual elements to guide decision-making without cluttering the chart excessively.
● Trailing Stop Lines Green Line (Solid): Represents the SafeZone Long Stop. This line appears below price during an uptrend. As long as price closes above this line, the bullish bias is intact. Red Line (Solid): Represents the SafeZone Short Stop. This line appears above price during a downtrend. A close above this line signals a potential short exit or reversal.
● Trend Signals Green Triangle (Below Bar): Marks the "Bull Start." This occurs when the price crosses above the Trend Filter EMA and the trend logic flips to bullish. Red Triangle (Above Bar): Marks the "Bear Start." Indicates the start of a downtrend sequence.
● Exhaustion Warnings Yellow Labels (⚠️): These appear when price has extended significantly away from the stop line (based on the ATR Exhaustion Multiplier). This is not an immediate sell signal but a warning that the trend may be overextended and a pullback is probable.
● MTF Consensus Cloud Background Color: If enabled, the chart background changes color to reflect the Higher Timeframe (HTF) trend. Green Background: Current trend matches HTF Uptrend. Red Background: Current trend matches HTF Downtrend. Gray Background: Trends are mismatched (Consolidation/Conflict).
● Quantitative Dashboard A table located in the top-right corner displays real-time statistics: Trend: Current state (BULLISH/BEARISH). Age: Number of bars since the trend began. Stop Price: Exact price level of the trailing stop. Risk %: The percentage distance from the current Close to the Stop. If this exceeds 3%, the text turns red to highlight elevated risk. Active Mult: The current multiplier being used (Dynamic or Fixed). ADX State: Shows if the trend is Strong, Weak, or Normal.
📖 How to Use
1. Entry Timing Wait for a Trend Switch signal (Triangle). For a long entry (Green Triangle), ensure the price is above the Trend Baseline (EMA). Ideally, look for confluence with the MTF Cloud (Green Background).
2. Position Management Once in a trade, use the Trailing Stop Line as your hard exit or invalidation point. Do not manually move the stop away from price; the script automatically "ratchets" the stop tighter as the trend progresses.
3. Taking Profits Use the "Exhaustion Warnings" (⚠️) as opportunities to scale out of positions. When price moves parabolically away from the stop line, the probability of a snap-back increases.
4. Managing Chop If the dashboard shows "ADX State: WEAK," expect the stop line to remain wider. This allows the asset "room to breathe" without stopping you out on random volatility.
⚙️ Inputs and Settings
The script is highly customizable to fit different asset classes (Crypto, Forex, Stocks).
● Trend Definitions Trend Filter (EMA Length): Determines the baseline trend bias (Default: 22). Price must be above this EMA to initiate a long calculation.
● Noise Calculation Noise Lookback Period: The number of bars used to calculate average penetration (Default: 10). Base Safety Coefficient: The standard multiplier applied to the noise average (Default: 2.5). Higher values = wider stops. Use Volume Weighting: Enables the volume-adjustment logic. Use 3-Day Smoothing: Recommended keeping this TRUE to avoid stop-hunts.
● Dynamic Multiplier (ADX) Enable Dynamic ADX: Toggles the adaptive multiplier. Strong/Weak Thresholds: The ADX levels that trigger aggressive or conservative multipliers.
● Multi-Timeframe Consensus Higher Timeframe: Select the TF for the cloud background (e.g., Daily or Weekly).
● Exhaustion Warning ATR Multiplier: Defines how far price must be from the stop to trigger a warning (Default: 3.0).
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The "Smart SafeZone" indicator is grounded in the statistical analysis of market noise versus signal.
● Theory of Noise Penetration Conventional stops often use Standard Deviation (Bollinger Bands) or Average True Range (Keltner Channels/Chandelier Stops). While effective, these measures assume volatility is symmetrical. This script adopts the view that directional volatility matters more. In an uptrend, upside volatility is "good" signal, while downside volatility is "noise." By explicitly calculating the average downside penetration (Low - Low), the script isolates the specific counter-trend force acting on the asset. ● Volume-Weighted Price Analysis (VWPA) The inclusion of volume weighting draws upon Dow Theory principles, which state that volume must confirm the trend. Math: Penetration × (Volume / AverageVolume) This formula asserts that a price drop on low volume is statistically less significant than a drop on high volume. By dampening the impact of low-volume moves, the stop becomes more resistant to liquidity vacuums and algorithmic stop-hunts.
● Trend Efficiency (ADX) The integration of J. Welles Wilder’s ADX (Average Directional Index) adds a dimension of Trend Efficiency. High ADX values indicate a highly efficient trend with little retracement. Mathematically, this justifies a lower standard deviation (or noise multiplier) for the stop, as the probability of a deep retracement without a trend change is lower in high-momentum environments.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Momentum RSIMomentum RSI (MRSI | MisinkoMaster)
Momentum RSI is an enhanced version of the classic Relative Strength Index (RSI) developed by J. Welles Wilder. This indicator integrates momentum components directly into the RSI calculation, resulting in a faster, smoother oscillator that helps traders identify trend strength and value zones with greater precision.
Unlike the traditional RSI, which relies on a fixed smoothing approach, the Momentum RSI dynamically incorporates momentum derived from differences between moving averages of RSI values over different lookback periods. This improves signal responsiveness while reducing noise, providing clearer insights for both trend-following and mean-reversion trading strategies.
🔍 Concept & Idea
Momentum RSI aims to improve the original RSI by adding momentum elements that speed up its reaction to price changes without sacrificing smoothness. This hybrid approach helps:
Capture early signals in trending markets
Reduce false signals during sideways or choppy conditions
Highlight overbought and oversold zones more effectively
Provide additional momentum context for more informed trading decisions
By combining RSI with momentum derived from moving average differences, the indicator balances sensitivity and stability for a versatile application across different asset classes and timeframes.
⚙️ How It Works
The Momentum RSI calculation involves several key steps:
Standard RSI Calculation:
The indicator first calculates the classic RSI using user-defined length and smoothing parameters. Users can customize the RSI source price and the smoothing moving average (MA) type applied (options include RMA, SMA, EMA, WMA, DEMA, TEMA, HMA, ALMA).
Momentum Derivation:
Two versions of the RSI are computed with different smoothing lengths—a base RSI and a longer smoothed RSI. The difference between their moving averages represents a momentum component that measures the short-term trend strength.
Additional Momentum:
The difference between shorter-length and longer-length RSI calculations adds another momentum layer, reflecting momentum shifts over different timescales.
Momentum Integration:
These momentum components are combined and added to the previous RSI value, resulting in a momentum-enhanced RSI value (mrsi) that oscillates between 0 and 100.
Trend Detection:
Customizable upper and lower thresholds define long and short signal zones, allowing users to interpret when the market is trending bullish or bearish.
Overbought/Oversold Zones:
Additional thresholds highlight extreme value zones for potential mean-reversion trades.
🧩 Inputs Overview
RSI Length - Controls the primary RSI calculation length (default 20).
Source - Selects the price source for the RSI calculation (default: close).
Smoothing Length - Length used to smooth RSI values with the chosen MA type (default 12).
MA Type - Moving average method used for smoothing (options: RMA, SMA, EMA, WMA, DEMA, TEMA, HMA, ALMA).
ALMA Offset - Offset parameter for ALMA smoothing (applicable only if ALMA is selected).
ALMA Sigma - Sigma parameter for ALMA smoothing (applicable only if ALMA is selected).
Upper Threshold - RSI level above which a bullish (long) signal is triggered (default 55).
Lower Threshold - RSI level below which a bearish (short) signal is triggered (default 45).
Overbought Threshold - RSI level indicating overbought conditions (default 85).
Oversold Threshold - RSI level indicating oversold conditions (default 15).
📌 Usage Notes
Versatile Application: Use Momentum RSI for both trend-following and mean-reversion strategies.
Signal Clarity: The momentum integration reduces noise, helping avoid false breakouts and improving entry timing.
Customization: Adjust smoothing lengths and MA types to match the characteristics of your trading style or the specific asset.
Visual Aids: Background colors, candle coloring, and shape markers facilitate quick interpretation of momentum strength and trend changes.
Threshold Sensitivity: Fine-tune thresholds to balance between early signals and signal reliability.
Intrabar Updates: Signals may update on lower timeframes for responsive trading.
Combine with Other Tools: For best results, use Momentum RSI alongside volume, price action, or other confirmation indicators.
Backtest Before Live Trading: Always validate settings on historical data to ensure suitability for your trading instrument and timeframe.
⚠️ Disclaimer
This script is intended for educational and analytical purposes only and does not constitute financial advice. Trading involves risk, and users should perform their own due diligence before making any trading decisions.
Filtered Percentile OscillatorFiltered Percentile Oscillator (FPO | MisinkoMaster)
The Filtered Percentile Oscillator is a modern trend-following tool designed to combine the power of percentile ranking with adaptive trend strength filtering. By integrating a filter based on ADX strength, this oscillator aims to reduce noise and improve signal quality, helping traders identify more reliable bullish and bearish momentum zones.
This indicator works well across different markets, especially where volatility and trend clarity fluctuate. Although it can be noisy at times, the intelligent filtering mechanism provides strong potential for spotting actionable trend signals.
🔍 Concept & Idea
The idea behind the Filtered Percentile Oscillator is to use the percentile rank of price changes as a normalized measure of momentum, then apply an adaptive filter based on the Average Directional Index (ADX) to adjust sensitivity dynamically.
By combining these two concepts:
The Percentile Oscillator captures how extreme the current price is relative to recent price history.
The ADX-based filter adjusts threshold levels and confirms if the market is trending strongly enough to trust these percentile signals.
This dual-filtering mechanism improves the indicator’s ability to avoid false signals caused by noisy or non-trending environments.
⚙️ How It Works
The indicator calculates the Percentile Rank of the user-selected price source over a defined length (len). This percentile oscillator oscillates between -100% and +100%, reflecting relative price positioning.
It calculates the ADX and its percentile rank over a separate filter length (adx_len and ap_len) to estimate trend strength and market activity.
A combined potential filter checks if the sum of the absolute percentile oscillator and ADX percentile exceeds a user-defined threshold (pot_t). This filter controls whether signals are considered valid.
Thresholds for long and short signals dynamically adapt based on whether the ADX percentile exceeds the filter threshold (adx_t):
When strong trend strength is detected (ADX percentile > threshold), tighter upper and lower thresholds (ut and lt) apply to capture sharper trend signals.
When trend strength is weaker, wider thresholds (utm and ltm) are used to filter noise and reduce false signals.
Trend states are determined by comparing the percentile oscillator to these adaptive thresholds and validating the potential filter condition.
Overbought and oversold zones are also plotted for identifying potential reversal or exhaustion areas.
🧩 Inputs Overview
Length – Controls the lookback period for the Percentile Oscillator calculation (default 29).
Source – The price data source used for oscillator calculation (default: close).
Filter Length – Lookback period for ADX calculation used as a filter (default 12).
Filter % Length – Length used to calculate the percentile rank of the ADX filter (default 8).
Trending Upper Threshold – Upper bound for bullish signals when trend strength is strong (default 10).
Trending Lower Threshold – Lower bound for bearish signals when trend strength is strong (default -10).
Ranging Upper Threshold – Upper bound for bullish signals when trend strength is weak (default 15).
Ranging Lower Threshold – Lower bound for bearish signals when trend strength is weak (default -15).
Sum Filter Threshold – Minimum combined percentile value required to validate signals (default 100).
Filter Threshold – Minimum ADX percentile value required to switch to tighter thresholds (default 50).
Overbought – Level indicating overbought conditions for the oscillator (default 80).
Oversold – Level indicating oversold conditions for the oscillator (default -80).
📌 Usage Notes
Adaptive Filtering: The indicator dynamically adjusts sensitivity to market trend strength, reducing false signals during ranging or low-activity periods.
Normalized Momentum: Using percentile ranks allows comparison across different instruments and timeframes on a consistent scale.
Trend Confirmation: The ADX percentile filter ensures signals are stronger and more reliable when the market is trending.
Visual Guidance: Colored plots, threshold lines, and background fills improve signal interpretation and decision-making.
Customization: Thresholds and lengths can be fine-tuned for different markets or trading styles.
Complementary Use: Best combined with volume analysis, price action, or other indicators for comprehensive trade confirmation.
Backtest First: Always validate settings on historical data to match your preferred instrument and timeframe before live trading.
⚠️ Disclaimer
This indicator is provided solely for educational and analytical use. It is not financial advice. Trading involves risk, and users should perform their own due diligence before making trading decisions.
Enjoy improved trend filtering with the Filtered Percentile Oscillator!
AB=CD Pattern [KTY] AB=CD Pattern
Hi, I'm Kim Thank You 👋
KTY = Kim Thank You (김땡큐)
Automatically detects AB=CD harmonic patterns based on Fibonacci retracement and extension.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 FEATURES
- Auto-Detection
- Identifies AB=CD harmonic patterns automatically
- Displays 1:1, 1.272, 1.618 extension targets
- Target Levels
- TP1/TP2/TP3 auto-displayed after D completion
- Entry and Stop levels included
- Visual Display
- Active pattern: Colored solid lines
- Completed pattern: Changes to dashed lines
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ HOW TO USE
- Watch for reversal at D point completion
- Bullish AB=CD → Expect downward move at D
- Bearish AB=CD → Expect upward move at D
- 1:1 ratio is most reliable and frequent
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 TIPS
- Higher reliability when ratio completes with reversal signal
- Bat, Gartley, Crab patterns also consist of AB=CD combinations
- Confluence with S/R levels increases reliability
- Use with other indicators for confirmation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
This indicator is for educational purposes only.
Not financial advice. Always do your own research.
Moving Average Divergence BandsMoving Average Divergence Bands
Moving Average Divergence Bands (MADB) is a trend-following overlay indicator designed to capture fast-moving trends while filtering out low-quality signals. It was developed with highly volatile markets in mind, particularly altcoins, where rapid entries are important but false breakouts are common.
The indicator builds adaptive price bands using two moving averages of different speeds and applies a statistical filter to allow signals only when market conditions show sufficient momentum. The result is a structure that attempts to combine fast reaction with controlled signal quality.
🚀 Core Idea
The objective of MADB is to create bands that respond quickly to market moves while avoiding entries during low-probability conditions.
This is achieved by combining fast and slower moving averages and activating signals only when price movement shows statistically meaningful deviation from its recent norm. In this way, entries tend to occur during periods with higher potential reward and reduced noise.
🔍 How It Works
The indicator calculates two moving averages:
• A primary moving average using the chosen length
• A secondary moving average using half of that length
Both averages are mathematically combined using exponent-based transformations, producing two divergence-based values. The higher value becomes the upper band, and the lower value becomes the lower band.
To filter signals, the script then computes a Z-score of price relative to its recent average. A trend switch occurs only when:
• Price breaks above or below the adaptive band, and
• The absolute Z-score exceeds the user-defined threshold.
This ensures signals occur only when price movement is statistically significant, reducing entries during low-volatility noise.
⚙️ Key Features
• Fast trend-following bands optimized for volatile markets
• Dual moving-average divergence construction
• Z-score filtering to reduce false signals
• Multiple moving-average types supported
• Adjustable statistical sensitivity
• Visual band and trend coloring styles
🧩 Inputs Overview
• Moving-average length and source
• Moving-average type selection
• Z-score calculation length
• Z-score activation threshold
• Visual style presets for band coloring
📌 Usage Notes
• Designed to identify strong market moves while filtering weak breakouts.
• Particularly suited for volatile markets and altcoin trading environments.
• Band breaks without sufficient Z-score strength will not trigger signals.
• Signals may change intrabar on lower timeframes.
• Best used alongside risk management and confirmation tools.
• No indicator eliminates risk; testing and validation are always recommended.
This script is intended for analytical use only and does not constitute financial advice.
RS Filtered RSIRS Filtered RSI (RSF RSI) | MisinkoMaster
The RS Filtered RSI is an advanced RSI-based indicator that enhances the traditional RSI by applying a custom filtering technique using Fourier transform principles. This reduces noise and improves the clarity of signals, helping traders better identify trend direction and potential reversals.
Key Features
Combines classic RSI calculation with Fourier-based filtering for noise reduction
Dynamically adapts to price momentum using Relative Strength filtering
Provides clear bullish and bearish trend signals with customizable thresholds
Includes overbought and oversold levels for better entry and exit timing
Plots divergence histogram to highlight momentum changes
Candle coloring aligns with trend direction for intuitive reading
Highly configurable via inputs for RSI length, filter length, Fourier length, and thresholds
How It Works
Calculates a standard RSI on the selected price source over the chosen length.
Applies a Discrete Fourier Transform (DFT) on recent price data to extract dominant frequency components and filter noise (code adapted from @BackQuant).
Uses Fourier magnitudes combined with RSI values to build a filter that strengthens the RSI signal and filters weak moves.
Applies upper and lower thresholds on the filtered RSI to define bullish and bearish trends.
Visualizes trend signals, divergence, and overbought/oversold zones with colored plots and candles.
Inputs Overview
Length — RSI calculation period
Source — Price input (default: close)
Filter Length — Length for Relative Strength filter
Fourier Length — Number of bars used for Fourier transform
Upper Threshold — Level above which bullish trend is signaled
Lower Threshold — Level below which bearish trend is signaled
Overbought — RSI level considered overbought
Oversold — RSI level considered oversold
Usage Notes
Best suited for traders who want a smoother, less noisy RSI signal especially in volatile markets.
Can be combined with other indicators or price action for better confirmation.
Adjust Fourier length and filter parameters to balance smoothness and responsiveness.
Use divergence histogram to spot momentum shifts early.
Candle coloring makes trend identification more intuitive.
Not a standalone trading signal — always backtest and manage risk accordingly.
Shout Out
Special thanks to @BackQuant for the Fourier transform code that inspired the filtering technique in this indicator.
Disclaimer
This indicator is for educational use only and does not constitute financial advice. Trading involves risk. Please do your own research and trade responsibly.
BoaBias: Fractals + FVG [FREE]BoaBias: Fractals + FVG is a professional market structure analysis indicator that combines advanced fractals and Fair Value Gaps (FVG) with multi-timeframe support.
✨ Key Features
🔷 Advanced Fractals
Fractal Type Detection: Automatic identification of Day/Week/Month/Day+Week fractals
Smart Break Detection: Breakouts are checked on corresponding timeframes
3 or 5 Bar Fractals: Adjustable sensitivity
Visual Support/Resistance Lines: Clear display of key levels
📈 Fair Value Gaps (FVG)
Current Timeframe FVG: Automatic detection and display of zones
HTF FVG Support: FVG analysis across multiple timeframes (1H, 4H, 12H, 1D, 3D, 1W, 1M)
Auto Removal: Filled zones are automatically removed
Color Customization: Separate colors for bullish and bearish zones
🎯 Who is this indicator for?
Traders using market structure analysis
Those working with fractals and FVG
Multi-timeframe traders
Anyone who wants to visually see key levels and zones
⚙️ Settings
Fractals
Fractal period (3 or 5 bars)
Line width
Maximum active levels
Display window (last N bars)
Break detection settings (body only or with wicks)
FVG
Enable/disable FVG
HTF timeframe configuration
Colors for bullish and bearish zones
Automatic removal of filled zones
Maximum HTF zones count
💡 Advantages
✅ Clean Visual Analysis — Only lines and zones, no clutter
✅ Multi-Timeframe Analysis — See structure across different timeframes simultaneously
✅ Smart Fractal Logic — Automatic identification of important levels
✅ Professional Tool — Used in real trading






















