MACD-V (Volatility Normalized MACD)Award-Winning Momentum Indicator by Alex Spiroglou (CMT Charles Dao Award & NAAIM Founders Award, 2022)
The classic MACD has powered trading decisions for decades, but it suffers from five major limitations that undermine consistency:
1- Readings are not comparable over time (absolute price dependency causes massive scale differences across decades)
2- Not comparable across markets or assets (e.g., stocks vs. forex vs. crypto)
3- No universal overbought/oversold levels
4- Excessive whipsaws in low-momentum/range-bound conditions
5- Lagging signals in high-momentum reversals (e.g., missing big chunks of V-shaped recoveries)
MACD-V solves all five issues by normalizing momentum against volatility instead of price.
Core Formula
MACD-V = (EMA(12) - EMA(26)) / ATR(26) × 100
This expresses momentum in units of Average True Range (ATR), creating a volatility-adjusted oscillator that remains mathematically meaningful and comparable:
-Analysts can use MACD-V across any timeframe:
-Across any asset class (stocks, forex, commodities, bonds, crypto)
-Over decades of history
Key Features & Benefits
Time-stable & cross-market comparable: A +100 reading today has the same meaning as +100 in the past years, regardless of asset or price level.
Universal extremes: ±150 captures ~95% of all readings across markets → extreme/stretched momentum.
Momentum Lifecycle Roadmap (objective framework):
+150 or < -150: Extreme / overstretched (high reversal risk)
+50 to +150 or -50 to -150: Strong directional momentum (rallying, retracing, rebounding, reversing)
-50 to +50: Neutral / low momentum / ranging (avoid most signals — high whipsaw zone)
Range Rules for regime context: In bullish regimes (price > 200 EMA), -50 to -150 becomes the practical oversold zone; readings below -100 are rare and often powerful buy setups. Opposite in bearish regimes.
Improved signal quality: Filter whipsaws in neutral zone, anticipate lag in extremes, prioritize high-probability crosses in strong-momentum bands.
MACD-V Histogram (MACD-VH): Normalized short-term momentum with extremes at ±40 for fast reversal detection.
Backtesting & strategy-friendly: Enables reliable historical analysis, cross-asset relative strength, and systematic rules
MACD-V transforms momentum from subjective art into objective, repeatable science — giving you consistent, actionable insights no matter what you're trading.
Use it standalone or layer with trend filters (e.g., 200 EMA), volume, or price action for even stronger edges.
Developer: Alex Spiroglou
Open-source versions inspired by his work — feel free to fork and improve!
Happy trading! 🚀
Volatilità
PSAR Laboratory [DAFE]PSAR Laboratory : The Ultimate Adaptive Trailing Stop & Reversal Engine
23 Advanced Algorithms. Adaptive Acceleration. Smart Flip Logic. Parabolic SAR Reimagined.
█ PHILOSOPHY: WELCOME TO THE LABORATORY
The standard Parabolic SAR, created by the legendary J. Welles Wilder Jr., is a tool of beautiful simplicity. But in today's complex, algorithm-driven markets, its simplicity is its fatal flaw. Its fixed acceleration and rigid flip logic cause it to fail precisely when you need it most: it whipsaws in choppy conditions and gives back too much profit in strong trends.
The PSAR Laboratory was not created to be just another PSAR. It was engineered to be the definitive evolution of Wilder's original concept. This is not an indicator; it is a powerful, interactive research environment. It is a sandbox where you, the trader, can move beyond the static "one-size-fits-all" approach and forge a PSAR that is perfectly adapted to your specific market, timeframe, and trading style.
We have deconstructed the very DNA of the Parabolic SAR and rebuilt it from the ground up, infusing it with modern quantitative techniques. The result is an institutional-grade suite of 23 distinct, mathematically diverse algorithms that dynamically control every aspect of the PSAR's behavior.
█ WHAT MAKES THIS A "LABORATORY"? THE CORE INNOVATIONS
This tool stands in a class of its own. It is a collection of what could be 23 separate indicators, all seamlessly integrated into one powerful engine.
The 23 Algorithm Engine: This is the heart of the Laboratory. Instead of one rigid formula, you have a library of 23 unique mathematical engines at your command. These algorithms are not simple tweaks; they are complete re-imaginings of how the PSAR should behave, based on concepts from information theory, digital signal processing, fractal geometry, and institutional analysis.
Truly Adaptive Acceleration (AF): The standard PSAR's "gas pedal" (the AF) is dumb; it accelerates at a fixed rate. Our algorithms make it intelligent. The AF can now speed up in clean, trending environments to lock in profits, and automatically slow down in choppy, chaotic conditions to avoid whipsaws.
Advanced Flip Confirmation Logic: Say goodbye to noise-driven flips. You are no longer at the mercy of a single wick touching the SAR. The Laboratory provides multiple layers of flip confirmation, including requiring a bar close beyond the SAR, a volume spike to validate the reversal, or even a multi-bar confirmation .
Comprehensive Noise Filtering Core: In a revolutionary step, you can apply one of over 30 advanced signal processing filters directly to the SAR output itself. From ultra-low-lag filters like the Hull MA and DAFE Spectral Laguerre to adaptive filters like KAMA and FRAMA , you can surgically remove noise while preserving the responsiveness of the core signal.
Integrated Performance Engine: How do you know which of the 23 algorithms is best for your market? You test it. The built-in Performance Dashboard is a comprehensive backtesting and analytics engine that tracks every trade, providing real-time data on Win Rate, Profit Factor, Max Drawdown, and more. It allows you to scientifically validate your chosen configuration.
█ A GUIDED TOUR OF THE ALGORITHMS: 23 PATHS TO AN EDGE
b]These 23 algorithms are not simple settings; they are distinct mathematical philosophies for how a Parabolic SAR should adapt to the market. They are grouped into three primary categories: those that adapt the Acceleration Factor (AF) , those that enhance the Extreme Point (EP) detection, and those that redefine the Flip Logic .
CATEGORY A: ACCELERATION FACTOR (AF) ADAPTATION
These algorithms dynamically change the "gas pedal" of the PSAR.
1. Volatility-Scaled AF
Core Concept: Treats volatility as market friction. The PSAR should be more forgiving in high-volatility environments.
How It Works: It calculates a Volatility Ratio by comparing the short-term ATR to the long-term ATR. If current volatility is high (ratio > 1), it reduces the AF Step. If volatility is low (ratio < 1), it increases the AF Step to trail tighter.
Ideal Use Case: The best all-rounder. Excellent for any market, especially those with clear shifts between high and low volatility regimes (like indices and crypto).
2. Efficiency Ratio (ER) AF
Core Concept: The PSAR should accelerate aggressively in clean, efficient trends and slow down dramatically in choppy, inefficient markets.
How It Works: It uses Kaufman's Efficiency Ratio (ER), which measures the net directional movement versus the total price movement. A high ER (near 1.0) signifies a pure trend, triggering a high AF multiplier. A low ER (near 0.0) signifies chop, triggering a low AF multiplier.
Ideal Use Case: Markets that alternate between strong trends and sideways chop. It is exceptionally good at surviving ranging periods.
3. Shannon Entropy AF
Core Concept: Uses Information Theory to measure market disorder. The PSAR should be conservative in chaos and aggressive in order.
How It Works: It calculates the Shannon Entropy of recent price changes. High entropy means the market is unpredictable ("chaotic"), causing the AF to slow down. Low entropy means the market is organized and trending, causing the AF to speed up.
Ideal Use Case: Advanced traders looking for a mathematically pure way to distinguish between a tradable trend and random noise.
4. Fractal Dimension (FD) AF
Core Concept: Measures the "jaggedness" or complexity of the price path. A smooth path is a trend; a jagged, space-filling path is chop.
How It Works: It calculates the Fractal Dimension of the price series. An FD near 1.0 is a smooth line (high AF). An FD near 1.5 is a random walk (low AF).
Ideal Use Case: Visually identifying the moment a smooth trend begins to break down into chaotic, unpredictable movement.
5. ADX-Gated AF
Core Concept: Uses the classic ADX indicator to confirm the presence of a trend before allowing the PSAR to accelerate.
How It Works: If the ADX value is above a "Strong" threshold (e.g., 25), the AF accelerates normally. If the ADX is below a "Weak" threshold (e.g., 15), the AF is "frozen" and will not increase, preventing the SAR from tightening up in a non-trending market.
Ideal Use Case: For classic trend-following purists who trust the ADX as their primary regime filter.
6. Kalman AF Estimator
Core Concept: A sophisticated signal processing algorithm that predicts the "true" optimal AF by filtering out price "noise."
How It Works: It treats the PSAR's AF as a state to be estimated. It makes a prediction, then corrects it based on how far the actual price deviates. It's like a GPS constantly refining its position. The "Process Noise" input controls how fast it thinks the AF can change, while "Measurement Noise" controls how much it trusts the price data.
Ideal Use Case: Smooth, high-inertia markets like commodities or major forex pairs. It creates an incredibly smooth and responsive AF.
7. Volume-Momentum AF
Core Concept: A trend's acceleration is only valid if confirmed by both volume and price momentum.
How It Works: The AF will only increase if a new Extreme Point is made on above-average volume AND the Rate of Change (ROC) of the price is aligned with the trend's direction.
Ideal Use Case: Any market with reliable volume data (stocks, futures, crypto). It's excellent for filtering out low-conviction moves.
8. Garman-Klass (GK) AF
Core Concept: Uses a more advanced, statistically efficient measure of volatility (Garman-Klass, which uses OHLC data) to adapt the AF.
How It Works: It modulates the AF based on whether the current GK volatility is higher or lower than its historical average. Unlike the standard Volatility-Scaled algo, it tends to slow down more in high volatility and speed up less in low volatility, making it more conservative.
Ideal Use Case: Traders who want a volatility-adaptive model that is more focused on risk reduction during volatile periods.
9. RSI-Modulated AF
Core Concept: The RSI can identify points of potential trend exhaustion or strong momentum.
How It Works: If a trend is bullish but the RSI enters the "Overbought" zone, the AF slows down, anticipating a pullback. Conversely, if the RSI is in the strong momentum mid-range (40-60), the AF is boosted to trail more aggressively.
Ideal Use Case: Mean-reversion traders or those who want to automatically loosen their trail stop near potential exhaustion points.
10. Bollinger Squeeze AF
Core Concept: A Bollinger Band Squeeze signals a period of volatility compression, often preceding an explosive breakout.
How It Works: When the algorithm detects that the Bollinger Band Width is in a "Squeeze" (below a certain historical percentile), it boosts the AF in anticipation of a fast move, allowing the PSAR to catch the breakout quickly.
Ideal Use Case: Breakout traders. This algorithm primes the PSAR to be maximally responsive right at the moment a breakout is most likely.
11. Keltner Adaptive AF
Core Concept: Keltner Channels provide a robust measure of a trend's "normal" volatility channel.
How It Works: When price is trading strongly outside the Keltner Channel, it's considered a powerful trend, and the AF is boosted. When price falls back inside the channel, it's considered a consolidation or pullback, and the AF is slowed down.
Ideal Use Case: Trend followers who use channel breakouts as their primary confirmation.
12. Choppiness-Gated AF
Core Concept: Uses the Choppiness Index to quantify whether the market is trending or consolidating.
How It Works: If the Choppiness Index is below the "Trend" threshold (e.g., 38.2), the AF is boosted. If it's above the "Range" threshold (e.g., 61.8), the AF is significantly reduced.
Ideal Use Case: A more responsive alternative to the ADX-Gated algorithm for distinguishing between trending and ranging markets.
13. VIDYA-Style AF
Core Concept: Uses a Chande Momentum Oscillator (CMO) to create a variable-speed acceleration factor.
How It Works: The absolute value of the CMO is used to create a dynamic smoothing constant. Strong momentum (high absolute CMO) results in a faster, more responsive AF. Weak momentum results in a slower, smoother AF.
Ideal Use Case: Momentum traders who want their trailing stop's speed directly tied to the momentum of the price itself.
14. Hilbert Cycle AF
Core Concept: Uses Ehlers' Hilbert Transform to extract the dominant cycle period of the market and synchronizes the PSAR with it.
How It Works: It dynamically adjusts the AF based on the detected cycle period (shorter cycles = faster AF) and can also modulate it based on the current phase within that cycle (e.g., accelerate faster near cycle tops/bottoms).
Ideal Use Case: Markets with clear cyclical behavior, like commodities and some forex pairs.
CATEGORY B: EXTREME POINT (EP) ENHANCEMENT
These algorithms make the detection of new highs/lows more intelligent.
15. Volume-Weighted EP
Core Concept: A new high or low is more significant if it occurs on high volume.
How It Works: It can be configured to only accept a new EP if the volume on that bar is above average. It can also "weight" the EP by volume, pushing it further out on high-volume bars.
Ideal Use Case: Filtering out weak, low-conviction price probes in markets with reliable volume.
16. Wavelet Filtered EP
Core Concept: Uses wavelet decomposition (a signal processing technique) to separate the underlying trend from high-frequency noise.
How It Works: It calculates a smoothed, wavelet-filtered version of the price. A new EP is only registered if the actual high/low significantly exceeds this smoothed baseline, effectively ignoring minor noise spikes.
Ideal Use Case: Noisy markets where small, insignificant wicks can cause the AF to accelerate prematurely.
17. ATR-Validated EP
Core Concept: A new EP should represent a meaningful move, not just a one-tick poke.
How It Works: It requires a new high/low to exceed the previous EP by a minimum amount, defined as a multiple of the current ATR. This ensures only volatility-significant advances are counted.
Ideal Use Case: A simple, robust way to filter out "noise" EPs and slow down the AF's acceleration in choppy conditions.
18. Statistical EP Filter
Core Concept: A new EP is only valid if the price change that created it is statistically significant.
How It Works: It calculates the Z-Score of the bar's price change relative to recent history. A new EP is only accepted if its Z-Score exceeds a certain threshold (e.g., 1.5 sigma), meaning it was an unusually strong move.
Ideal Use Case: For quantitative traders who want to ensure their trailing stop only tightens in response to statistically meaningful price action.
CATEGORY C: FLIP LOGIC & CONFIRMATION
These algorithms change the very rules of when and why the PSAR reverses.
19. Dual-PSAR Gate
Core Concept: Uses two PSARs—one fast and one slow—to confirm a reversal.
How It Works: A flip signal for the main PSAR is only considered valid if both the fast (sensitive) PSAR and the slow (structural) PSAR have flipped. This acts as a powerful trend filter.
Ideal Use Case: An excellent method for reducing whipsaws. It forces the PSAR to wait for both short-term and longer-term momentum to align before signaling a reversal.
20. MTF Coherence PSAR
Core Concept: Do not flip against the higher timeframe macro trend.
How It Works: It pulls PSAR data from two higher timeframes. A flip is only allowed if the new direction does not contradict the trend on at least one (or both) of those higher timeframes. It also boosts the AF when all timeframes are aligned.
Ideal Use Case: The ultimate tool for multi-timeframe traders who want to ensure their entries and exits are in sync with the bigger picture.
21. Momentum-Gated Flip
Core Concept: A reversal is only valid if it is supported by a significant surge of momentum.
How It Works: A price cross of the SAR is not enough. The script also requires the Rate of Change (ROC) to exceed a certain threshold for a set number of bars, confirming that there is real force behind the reversal.
Ideal Use Case: Filtering out weak, drifting reversals and only taking signals that are initiated with explosive power.
22. Close-Only PSAR
Core Concept: Wicks are noise; the bar's close is the final decision.
How It Works: This algorithm modifies the flip logic to ignore wicks. A flip only occurs if one or more bars close beyond the SAR line.
Ideal Use Case: One of the most effective and simple ways to reduce false signals from volatile wicks. A fantastic default choice for any trader.
23. Ultimate PSAR Consensus
Core Concept: The highest conviction signal comes from the agreement of multiple, diverse mathematical models.
How It Works: This is the capstone algorithm. It runs a "vote" between a selection of the top-performing algorithms (e.g., Volatility-Scaled, Efficiency Ratio, Dual-PSAR). A flip is only signaled if a majority consensus is reached. It can even weight the votes based on each algorithm's recent performance.
Ideal Use Case: For traders who want the absolute highest level of confirmation and are willing to accept fewer, but more robust, signals.
█ PART II: THE NOISE FILTERING CORE - The Shield
This is a revolutionary feature that allows you to apply a second layer of signal processing directly to the SAR line itself, surgically removing noise before the flip logic is even considered.
FILTER CATEGORIES
Basic Filters (SMA, EMA, WMA, RMA): The classic moving averages. They provide basic smoothing but introduce significant lag. Best used for educational purposes.
Low-Lag Filters (DEMA, TEMA, Hull MA, ZLEMA): A family of filters designed to reduce the lag inherent in basic moving averages. The Hull MA is a standout, offering a superb balance of smoothness and responsiveness.
Adaptive Filters (KAMA, VIDYA, FRAMA): These are "smart" filters. They automatically adjust their smoothing level based on market conditions. They will be very smooth in choppy markets and become highly responsive in trending markets.
Advanced DSP & DAFE Filters: This is the pinnacle of signal processing.
Ehlers Filters (SuperSmoother, 2-Pole, 3-Pole): Based on the work of John Ehlers, these use digital signal processing techniques to remove high-frequency noise with minimal lag.
Gaussian & ALMA: These use a bell-curve weighting, giving the most importance to recent data in a smooth, non-linear fashion.
DAFE Spectral Laguerre: A proprietary, non-linear filter that uses a feedback loop and adapts its "gamma" based on volatility, providing exceptional tracking in all market conditions.
How to Choose a Filter
Start with "None": First, find an algorithm you like with no filtering to understand its raw behavior.
Introduce Low Lag: If you are getting too many whipsaws from noise, apply a short-length Hull MA (e.g., 5-8). This is often the best solution.
Go Adaptive: If your market has very distinct trend/chop regimes, try an Adaptive KAMA .
Maximum Purity: For the smoothest possible output with excellent responsiveness, use the DAFE Spectral Laguerre or Ehlers SuperSmoother .
█ THE VISUAL EXPERIENCE: DATA AS ART
The PSAR Laboratory is not just functional; it is beautiful. The visualization engine is designed to provide you with an intuitive, at-a-glance understanding of the market's state.
Algorithm-Specific Theming: Each of the 23 algorithms comes with its own unique, professionally designed color palette. This not only provides visual variety but allows you to instantly recognize which engine is active.
Dynamic Glow Effects: For many algorithms, the PSAR dots will emit a soft "glow." The brightness and color of this glow are not random; they are tied to a key metric of the active algorithm (e.g., trend strength, volatility, consensus), providing a subtle, visual cue about the health of the trend.
Adaptive Volatility Bands: Certain algorithms will display dynamic bands around the PSAR. These are not standard deviation bands; their width is controlled by the specific logic of the active algorithm, showing you a visual representation of the market's expected range or energy level.
Secondary Reference Lines: For algorithms like the Dual-PSAR or MTF Coherence, a secondary line will be plotted on the chart, giving you a clear visual of the underlying data (e.g., the slow PSAR, the HTF trend) that is driving the decision-making process.
█ THE MASTER DASHBOARD: YOUR MISSION CONTROL
The comprehensive dashboard is your unified command center for analysis and performance tracking.
Engine Status: See the currently selected Algorithm, the active Noise Filter, the Trend direction, and a real-time progress bar of the current Acceleration Factor (AF).
Algorithm-Specific Metrics: This is the most powerful section. It displays the key real-time data from the currently active algorithm. If you're using "Shannon Entropy," you'll see the Entropy score. If you're using "ADX-Gated," you'll see the ADX value. This gives you a direct, quantitative look under the hood.
Performance Readout: When enabled, this section provides a full breakdown of your backtesting results, including Win Rate, Profit Factor, Net P&L, Max Drawdown, and your current trade status.
█ DEVELOPMENT PHILOSOPHY
The PSAR Laboratory was born from a deep respect for Wilder's original work and a relentless desire to push it into the 21st century. We believe that in modern markets, static tools are obsolete. The future of trading lies in adaptation. This indicator is for the serious trader, the tinkerer, the scientist—the individual who is not content with a black box, but who seeks to understand, test, and refine their edge with surgical precision. It is a tool for forging, not just following.
The PSAR Laboratory is designed to be the ultimate tool for that evolution, allowing you to discover and codify the rules that truly fit you.
█ DISCLAIMER AND BEST PRACTICES
THIS IS A TOOL, NOT A STRATEGY: This indicator provides a sophisticated trailing stop and reversal signal. It must be integrated into a complete trading plan that includes risk management, position sizing, and your own contextual analysis.
TEST, DON'T GUESS: The power of this tool is its adaptability. Use the Performance Dashboard to rigorously test different algorithms and settings on your chosen asset and timeframe. Find what works, and build your strategy around that data.
START SIMPLE: Begin with the "Volatility-Scaled AF" algorithm, as it is a powerful and intuitive all-rounder. Once you are comfortable, begin experimenting with other engines.
RISK MANAGEMENT IS PARAMOUNT: All trading involves substantial risk. The backtesting results are hypothetical and do not account for slippage or psychological factors. Never risk more capital than you are prepared to lose.
"I don't think traders can follow rules for very long unless they reflect their own trading style. Eventually, a breaking point is reached and the trader has to quit or change, or find a new set of rules he can follow. This seems to be part of the process of evolution and growth of a trader."
— Ed Seykota, Market Wizard
Taking you to school. - Dskyz, Trade with Volume. Trade with Density. Trade with DAFE
Kalman Hull Bands For Loop | RakoQuant Kalman Hull Bands For Loop | RakoQuant
RakoQuant | Kalman Hull Bands For Loop is a trend-following breakout + regime tool built to keep you on the right side of the market with clean structure and minimal noise. It combines a Kalman Filter (noise reduction), a Hull Moving Average baseline (responsive trend anchor), and a standard deviation envelope computed via a for-loop (robust rail bands) to define actionable bullish and bearish regimes.
What it does
This indicator builds a dynamic “rail system” around price:
Kalman Filtered Source → reduces measurement noise in the input series.
Hull Baseline (HMA) → fast trend baseline built on the Kalman-filtered source.
Deviation Bands (“Rails”) → upper/lower rails based on a loop-calculated standard deviation.
Regime Breakout Logic → trend regime flips only when price breaks out beyond the rails:
Bullish regime when close crosses above the upper rail
Bearish regime when close crosses below the lower rail
Once a regime is established, the tool highlights the active rail in bright neon and fades the inactive rail (optional), giving you a clear “trend corridor” and a strong visual state.
Key Features
1) Kalman Noise Filtering (R & Q)
The Kalman filter smooths the selected source using:
R (Measurement Noise) – how noisy you assume the observations are
Q (Process Noise) – how quickly the model is allowed to adapt
This helps reduce chop without turning the indicator into a laggy moving average.
2) Hull Baseline (fast + smooth)
The baseline is a Hull Moving Average applied to the Kalman-filtered source:
responsive in trend,
cleaner during transitions,
ideal for breakout regime detection.
3) Deviation Envelope with Two Modes
Deviation rails are calculated using a for-loop standard deviation (population stdev), with two choices:
Residual vs Baseline (default): deviation of (src - baseline)
→ focuses on “distance from fair value” instead of raw price volatility
Raw Source: deviation of the source itself
→ classic volatility envelope behavior
Then bands are formed by:
upper = baseline + mult * sd
lower = baseline - mult * sd
4) Regime Rails + Candle Painting (RakoQuant Neon)
Bull regime: active lower rail plotted in Neon Aqua
Bear regime: active upper rail plotted in Neon Magenta
Candles are painted to match the current state (optional)
Inactive rails can be shown faintly for context.
5) Alerts for Breakouts
Built-in alerts trigger exactly on regime flips:
Bull Breakout (close crosses above upper rail)
Bear Breakout (close crosses below lower rail)
How to Use It
Trend-following approach
Stay with the active regime until a breakout flip occurs.
In bull regime, the lower rail behaves like an adaptive trend support guide.
In bear regime, the upper rail behaves like an adaptive trend resistance guide.
Breakout confirmation
Use the breakout as a confirmation layer with your other confluences:
take longs only after a bull breakout,
take shorts only after a bear breakout,
filter mean-reversion trades by the regime state.
Inputs Summary
Source: select what the model tracks (default: high)
Kalman: R / Q controls smoothing vs responsiveness
Baseline: Hull length
Deviation: loop length, mode (Residual vs Baseline / Raw Source), multiplier
Visuals: candle painting, baseline visibility, inactive rails
Disclaimer
Backtests are based on historical data and are not indicative of future performance.
:
MA-trix Laboratory [DAFE]MA-trix Laboratory : The Ultimate Moving Average & Trend Following Engine
55+ Algorithms. Dual/Triple MA Systems. Advanced Signal Filtering. Quantum Smoothing. This is not just a moving average; it is the definitive toolkit for forging your perfect trend.
█ PHILOSOPHY: WELCOME TO THE LABORATORY
The moving average is the cornerstone of technical analysis. It is also, in its standard form, an obsolete, one-dimensional tool. A simple EMA or SMA is a blunt instrument in a market that demands surgical precision. It lags, it whipsaws, and it fails to adapt to the market's ever-changing character.
The MA-trix Laboratory was not created to be another moving average. It was engineered to be the final word on moving averages—a comprehensive, institutional-grade research and execution environment. This is not an indicator; it is a powerful, interactive sandbox where you, the trader, can move beyond the static "one-size-fits-all" approach. Here, you can experiment, test, and forge a moving average system that is perfectly synchronized with your specific market, timeframe, and analytical style.
We have deconstructed the very concept of "average" and rebuilt it from the ground up, creating a library of over 55 distinct mathematical algorithms —from timeless classics to proprietary quantum models—all housed within a single, unified, and infinitely configurable engine.
█ WHAT MAKES THIS A "LABORATORY"? THE CORE INNOVATIONS
This tool stands in a class of its own, offering a suite of features that collectively create an unparalleled analytical experience.
The 55+ Algorithm MA Core: This is the heart of the Laboratory. You are not limited to one or two MA types. You have a vast library of over 55 unique mathematical engines at your command, from classical SMAs to advanced adaptive algorithms like KAMA and FRAMA, to proprietary DAFE models like the "DAFE Flux Reactor" and "DAFE Quantum Step."
Multi-MA Architecture: Seamlessly switch between Single, Dual, and Triple MA operational modes. Build classic two-line crossover systems, three-line trend alignment confirmations, or beautiful, flowing ribbons with just a single click.
Advanced Post-Smoothing Engine: In a revolutionary step, you can apply a second layer of signal processing to your chosen MA. Select from a suite of over 20 professional-grade noise filters —including Ehlers' SuperSmoother, Kalman Filters, and the proprietary "DAFE Phase-Zero"—to surgically remove noise from your MA line after it has been calculated, achieving unprecedented smoothness without significant lag.
The Institutional Signal Filtering Suite: A signal is only as good as its filter. The Laboratory includes a powerful, multi-domain filter engine that acts as an intelligent gatekeeper for your signals. You can require signals to be confirmed by any combination of:
📦 Volume: Require a surge in volume to validate a crossover.
🌊 Volatility: Only take signals during low-volatility "squeeze" conditions or high-volatility expansions.
💪 Trend: Use the ADX to ensure you are only taking signals in the direction of a strong, established trend.
🚀 Momentum: Use RSI, MACD, or ROC to confirm that momentum is on your side.
Integrated Performance Engine: How do you know which of the 55+ algorithms is best? You test it. The built-in Performance Dashboard is a comprehensive backtesting engine that tracks every trade generated by your configuration, providing real-time data on Win Rate, Profit Factor, Net P&L, and Max Drawdown.
█ THE ARSENAL: A DEEP DIVE INTO THE ALGORITHMIC CORE
This is your library of mathematical DNA. The 55+ MA types are grouped into distinct families, each with a unique philosophy.
THE ALGORITHM FAMILIES
The Classics (SMA, EMA, WMA, etc.): The foundational building blocks. Simple, reliable, and universally understood. EMA for responsiveness, SMA for smoothness.
The Low-Lag Warriors (DEMA, TEMA, Hull MA, ZLEMA): A family of MAs engineered specifically to combat the inherent lag of classical averages. The Hull MA is a standout, offering a remarkable balance of extreme smoothness and near-zero lag.
The Adaptive Geniuses (KAMA, VIDYA, FRAMA, Volatility Adjusted MA): These are "smart" MAs. They contain internal logic that allows them to automatically change their speed based on market conditions. They will tighten up in fast-moving trends and loosen in sideways chop, intelligently filtering out noise.
The DSP & Quantitative Masters (Gaussian, Ehlers, Butterworth, Laguerre): These algorithms are born from the world of digital signal processing and advanced mathematics. They use sophisticated techniques like bell-curve weighting, non-linear feedback loops, and frequency filtering to separate the true trend "signal" from market "noise" with unparalleled precision.
The DAFE Proprietary Engines (The "Black Ops" MAs): The crown jewels of the Laboratory. These are custom-built, proprietary algorithms you will not find anywhere else:
DAFE Flux Reactor: A volatility-thermodynamic MA that adapts its alpha using a sigmoid function on Bollinger Band width, creating explosive responsiveness during volatility breakouts.
DAFE Tensor Flow: A multi-vector MA that uses a weighted average of the OHLC data (a "tensor") before applying Hull smoothing, creating an incredibly robust center of gravity.
DAFE Quantum Step: A non-linear, stepped MA that only moves if price exceeds a volatility-based quantum threshold, effectively ignoring all insignificant noise.
DAFE Gravity Well: An institutionally-focused MA that weights its calculation by both time (recency) and volume, pulling the average towards zones of heavy market participation.
THE POST-SMOOTHING FILTERS
This is a second layer of refinement. After your primary MA is calculated, you can pass it through one of over 20 advanced filters to achieve an even higher degree of clarity.
The Ehlers Filters (SuperSmoother, 2-Pole, 3-Pole): A suite of brilliant DSP filters for surgical noise removal.
The Kalman Filter: A predictive filter from robotics and aerospace engineering that provides an "optimal estimate" of the MA's true position.
DAFE Proprietary Smoothers:
DAFE Phase-Zero: Uses a de-trending feedback loop to achieve near-zero lag smoothing.
DAFE Spectral Smooth: A frequency-domain filter that removes jitter while preserving the primary trend.
█ OPERATIONAL MODES & SIGNAL GENERATION
The Laboratory is designed for ultimate flexibility.
Modes: Instantly switch between Single, Dual, and Triple MA modes. Each mode can be a standard line display or a beautiful, flowing Ribbon .
Signal Logic: You have complete control over what constitutes a "signal." Choose from nine different logic modes, including classic Price Cross , Dual MA Cross , Triple MA Alignment , or even advanced logic like Slope Change and Sequential Cross .
The Filter Gauntlet: Before a signal is plotted, it can be passed through the four-stage filtering suite. You can demand that a simple EMA crossover is also confirmed by high volume, ADX trend strength, and bullish RSI—all at the same time. This transforms a basic signal into a high-conviction, multi-factor setup.
█ THE MASTER DASHBOARD: YOUR MISSION CONTROL
The comprehensive dashboard is your unified command center for analysis and performance tracking.
Engine Status: See the currently selected Operation Mode and a detailed breakdown of the type and length of each active MA.
Market Dynamics: Get an at-a-glance view of the current Trend Status, Momentum intensity (based on MA slope), and the percentage deviation of price from your primary MA.
Filter Readout: If filters are enabled, the dashboard provides a live status for each active filter (Volume, Volatility, Trend, Momentum), showing you a "PASS" or "BLOCK" status in real-time.
Performance Readout: When enabled, this section provides a full breakdown of your backtesting results, including Trade Count, Win Rate, Profit Factor, Net P&L, and Max Drawdown.
█ DEVELOPMENT PHILOSOPHY
The MA-trix Laboratory was born from a deep respect for the moving average and a relentless desire to push its boundaries into the 21st century. We believe that in modern markets, static tools are obsolete. The future of trading lies in adaptation and customization. This indicator is for the serious trader, the tinkerer, the scientist—the individual who is not content with a black box, but who seeks to understand, test, and refine their edge with surgical precision. It is a tool for forging your own alpha, not just following someone else's.
"I don't think traders can follow rules for very long unless they reflect their own trading style. Eventually, a breaking point is reached and the trader has to quit or change, or find a new set of rules he can follow. This seems to be part of the process of evolution and growth of a trader."
█ DISCLAIMER AND BEST PRACTICES
THIS IS A TOOL, NOT A STRATEGY: This indicator provides a sophisticated trend and signal generation framework. It must be integrated into a complete trading plan that includes risk management, position sizing, and your own contextual analysis.
TEST, DON'T GUESS: The power of this tool is its adaptability. Use the Performance Dashboard to rigorously test different algorithms, settings, and filters on your chosen asset and timeframe. Find what works, and build your strategy around that data.
START SIMPLE: The possibilities can be overwhelming. Begin with a classic Dual MA mode (e.g., EMA 20/50) with no filters. Once you are comfortable, begin experimenting with more advanced MA types and layering on filters one by one.
RISK MANAGEMENT IS PARAMOUNT: All trading involves substantial risk. The backtesting results are hypothetical and do not account for slippage or psychological factors.
Never risk more capital than you are prepared to lose.
— Ed Seykota, Market Wizard
The MA-trix Laboratory is designed to be the ultimate tool for that evolution, allowing you to discover and codify the rules that truly fit you.
Taking you to school. - Dskyz, Don't be average. Trade with MA-trix. Trade with DAFE
Institutional Alpha Vector | D_QUANT Institutional Alpha Vector | D_QUANT
Overview
The Institutional Alpha Vector (IAV) is an original trend-following framework that replaces single-indicator bias with a Weighted Composite Score . Instead of relying on a simple moving average, this script aggregates four distinct quantitative dimensions—Price, Momentum, Volatility, and Volume—into a normalized value called the "Alpha Vector."
The goal of this tool is to identify "Institutional Consensus"—periods where multiple mathematical models align in the same direction, reducing the likelihood of false breakouts in choppy markets.
How It Works: The Quantitative Engines
The script calculates four independent signals. For each module, a state is stored (1 for Bullish, -1 for Bearish, 0 for Neutral).
1. Price Filter (Hull Moving Average):
The script uses an HMA (a weighted moving average that reduces lag by using the square root of the period). A signal is triggered when the price crosses over/under this "Spine."
2. Volatility Regime (RMA + ATR):
This module uses a Moving Average (RMA) combined with an Average True Range (ATR) offset. It acts as a volatility filter that price must move beyond 1 ATR from the mean to register a trend, ensuring the market isn't just "drifting."
3. Momentum Physics (ADX/DMI):
Based on J. Welles Wilder’s Directional Movement Index. It checks if the is above (or vice versa) but only if the ADX (Average Directional Index) is above a user-defined threshold (default: 10), confirming the presence of a strong trend.
4. Institutional Flow (Chaikin Money Flow):
This confirms price action with volume. It calculates the accumulation/distribution of money flow over a specific period. A signal is only valid if the CMF is positive (Bullish) or negative (Bearish).
The Alpha Vector Calculation
This is the core "originality" of the script. The indicator takes the active modules and calculates a Composite Score :
This results in a value between -1.0 and +1.0 .
* High Confidence Long: When the score exceeds +0.1 (adjustable).
* High Confidence Short: When the score drops below -0.1 (adjustable).
* Neutral Zone: When the score is near 0, the script colors the bars grey, signaling a lack of institutional consensus.
Visual Intelligence: The "Electric Conduit"
The script visualizes market energy through a custom rendering engine:
* The Spine: A central line representing the HMA trend.
* The Conduit (Fill): A dynamic gradient that expands or contracts based on the ATR (Average True Range) . This allows traders to see "volatility expansion" (wide ribbon) vs "compression" (tight ribbon) at a glance.
* Bar Coloring : Automatically aligns the chart candles with the Alpha Vector state to remove cognitive load.
How to Use
1. Define your Strategy: In the settings, you can toggle specific modules. If you are trading a low-volume asset, you might disable the **CMF** module.
2. Identify the Consensus: Look for the ribbon to change from Grey (Neutral) to Cyan/Gold.
3. Monitor the HUD: A small dashboard in the bottom right displays the live Alpha Vector score. A score of 1.0 means all four engines are in 100% bullish agreement.
Disclaimer: Trading involves significant risk. This tool is for educational and analytical purposes and does not constitute financial advice.
Clean CPR v7.0 (Call & Put)// --------------------------------------------------------------------
// DESCRIPTION
// --------------------------------------------------------------------
// Clean CPR v7.1 is a multi-module trading and analysis toolkit built
// around Central Pivot Range (CPR) for intraday and swing trading.
//
// Core features:
// • Daily / Weekly / Monthly CPR with fills, labels and price display
// • Automatic CPR width classification (Super Narrow → Wide)
// • Visual alert when today’s CPR is WIDE (“WIDE CPR TODAY”)
// • Trade filtering: Wide CPR days are blocked from new entries
// • Pivot-based Support & Resistance (R1–R5, S1–S5, optional historical)
// • Developing CPR and Developing R1 / S1 levels
// • Previous Session High/Low with optional shaded zones
// • Dual Donchian Channels with auto-alignment coloring
// • Anchored Day-Open VWAP
// • Initial Balance (first hour range)
// • CPR + ATR + EMA + Fundamentals information table
// • Integrated 1H Call & Put breakout strategy with Supertrend, ADX,
// ATR trailing stop, targets, gap handling and time filters
//
// This script is designed as a single dashboard combining market bias,
// volatility, structure, and execution logic in one indicator.
// --------------------------------------------------------------------
Stock ScreenerMissing great trade opportunities is annoying, and unless you have 12 screens or only trade one market, you are missing a lot of trades. To fix that, we created this stock screener so you get notified instantly of potential great trading conditions in real time, right on your chart.
You get notified of trading benchmarks being met by the value being displayed on the scanner as well as a color change so that it grabs your attention and makes you aware that you should take a look at the other market and look for a potential trade. It also has built in alerts so you can have an alert notification go off when any of your trading conditions are met instead of needing to watch the scanner for color changes.
The screener will change the ticker symbol background color to red green when price is above or below the previous daily range and above or below both VWAPs. This signals that the ticker is trending, which typically means it is a great time to trade that market and follow the trend.
This stock screener allows you to scan up to 10 different markets at the same time for various different conditions so you always know what is going on with your favorite trading symbols. If you want to scan more tickers, just add the indicator to your chart again and change the table position to the other side of the screen and update the tickers on the 2nd screener, allowing you to have 20 tickers at a time.
The scanner can be fully customized by changing the markets that it screens and turning on or off as many of them as you would like. You can also turn on or off any of the different data sets so that you only get information about trading conditions that matter to you.
The screener can provide data on any type of market, such as stocks, crypto, futures, forex and more. Each ticker can be adjusted to whatever market you would like it to scan for data in the settings panel, the only limitation is that it will not provide data for the VWAP and volume trend score if the ticker you are screening does not provide volume data.
Screener Features
The scanner will provide the following types of data for each ticker that is turned on:
Volume - Provides a volume score compared to the average volume and notifies you of higher than normal volume and volume spikes on individual bars by changing colors.
Volatility - Provides a volatility score compared to the average volatility and notifies you of higher than normal volatility by changing colors.
Oscillator - Choose between the RSI or CCI. The value of that oscillator will be displayed and will notify you when values are in extreme ranges such as overbought or oversold conditions according to the threshold values you enter in the settings panel. When those thresholds have been breached, you will be notified by it changing color.
Big Candles - Compares the current candle to average previous candle sizes, and changes color to notify you of big candles including a big top wick, big bottom wick, big candle body and big candle high to low range.
Daily Level Touches & Trends - Calculates and displays various daily candle and intraday open price levels that act as support and resistance. Notifies you when price is touching any of the daily levels that are turned on. The levels you can have on are as follows: previous day high, previous day low or previous day open. It also will notify you when price is touching the current day’s open, NY 930am open, Asia 8pm open, London 2am open and NY midnight 12am open. It will also say “Above” if price is above the previous day’s high or it will say “Below” if price is below the previous day’s low. The color of the cell will also change when a level touch is happening or price is above the previous day high or below the previous day low.
VWAP - Choose from 2 different VWAP lengths, default settings are daily and weekly VWAPs. You will get notified if price touches either of the VWAPs and they will also say “Above” or “Below” if price is currently above or below each VWAP.
How To Use The Screener To Help You Trade
The main purpose of the screener is to scan other markets and notify you of potential good trading opportunities such as price bouncing off of the daily levels or VWAPs. It can also be used to know when price is trending according to the VWAPs and daily levels. Lastly, you can use it to know how the volume and volatility trends are currently which gives you more confidence in taking a trade with this data when volume and volatility are present.
Volume Score
When volume is high, this represents a good time to trade because there are many market participants and price is likely to be volatile while there is high volume which can present a lot of good trade setups for you to take.
The volume score shown on the screener measures the current volume trend compared to previous volume trends and calculates that into a score based on 100 being the same as the previous volume trend. So any value above 100 means it is high volume and any value less than 100 means it is lower volume than normal.
In the settings panel, you can adjust the volume threshold that needs to be met for a volume notification to show up. The default setting is at 120, so you will get notified when the current volume trend score is 120 or higher or you can adjust that threshold value to whatever value you prefer.
It also will notify you when there is a volume spike on the current bar. This is determined by calculating an average of the recent volume totals and then checking to see if the current bar is greater than or equal to that average multiplied by 3. So if a single bar has volume that is greater than 3 times what the average volume is, then you will get a notification that says “Spike” to make you aware of that volume spike.
The volume trend threshold, volume spike multiplier and lookback length for the average volume used in volume spike calculations can all be adjusted in the settings panel to fit your desired preferences.
Volatility Score
High volatility can mean it is a great time to trade because the market is moving quickly and providing large enough movements that you can get in and out in a short amount of time, while still accruing decent sized trade PnL.
The volatility score will calculate the current volatility for each market compared to previous conditions and then divide the current volatility by the average volatility to give you a volatility score. Anything over 100 means the market is decently volatile and you should look at that market to find potential trade setups to execute on. Anything below 100 means the market is not very volatile and it is usually best to just wait until volatility returns before you start trading again.
The screener will notify you when the volatility score is above the threshold you set. The default value is set to 90, but can be adjusted to your preference. Pay attention to any market that shows an alert and take a look at that chart because the high volatility may present a good trade setup for you in the near future.
Oscillator Score
The oscillator data can be switched between Relative Strength Index(RSI) and Commodity Channel Index(CCI).
The RSI provides a value between 0 and 100 that indicates the momentum and strength of the recent price action. Many traders use the extremes of the 0-100 range to signal overbought or oversold conditions and use that as a sign to look for price to reverse in the near future. The typical values used for this and the default settings to provide notifications are: 70 for overbought and 30 for oversold. The scanner will notify you when the RSI value is considered overbought or oversold so you know to take a look at the chart and analyze if it is ready for a trade to be taken.
The CCI provides a value that can be used to determine the trend strength of the underlying asset when the oscillator moves above 100 or below -100. These extreme values are outside of the normal accumulation range and signify that price is moving strongly in that direction so it may be a good time to take a trade in the direction of the trend. The scanner will show you the value of the CCI for each market and notify you if that value is above 100 or below -100.
Both RSI and CCI settings can be adjusted in the settings panel to your desired settings so you have the exact oscillator settings you prefer to use as well as the exact values that you want to use for being notified.
Big Candles
Big candles can mean that many traders are buying or selling at the same time and many times indicate a good signal to trade in that same direction. That is why we included this calculation in the screener, so you are always aware when a large candle prints.
It calculates the average size of the recent candles and then uses that average as the benchmark to determine if the current candle is considered big and worthy of notifying you to take a look at that chart.
You can adjust the multiplier used for the big candle threshold to whatever you desire, but the default setting is 3 which means the candle will be considered big and notify you if it is 3 times as large as an average candle.
The big candles data will track the following candle values and notify you with these labels:
High to Low candle size = HL
Candle Body from open to close candle size = OC
Top Wick size = TW
Bottom Wick size = BW
Daily Level Touches & Trend
Daily level touches are excellent levels to watch for price to bounce because they often act as support and resistance levels for intraday trading. The scanner will track each market and notify you when the current candle is touching any of the daily levels that you have turned on in the settings panel.
The main levels that are turned on by default and are useful for all markets and how they will be labeled on the scanner are as follows:
Previous Day High = High
Previous Day Low = Low
Previous Day Open = < Open
Previous Day Close = Close
Current Day Open = Open
We also included some extra levels that are useful for futures traders. They are as follows:
NY 930am Open = 930am
NY 12am Midnight Open = 12am
Asia Open at 8pm NY time = Asia
London Open at 2am NY Time = London
Watch how price reacts to these levels and then trade the bounces off of these levels if the price action confirms that it is going to respect that level.
When price is currently above the previous day high, the scanner will say “Above” and show a green color, indicating a bullish trend and that price is above the previous daily candle’s high.
When price is currently below the previous day low, the scanner will say “Below” and show a red color, indicating a bearish trend and that price is below the previous daily candle’s low.
Pay attention to when price is trending above or below the previous daily candle as those trends can provide excellent trend trading opportunities.
The daily levels that you have turned on in the settings will also show as lines on the chart and include a label next to them, identifying each level so you know what each line represents. You can turn on or off all of the lines shown on the chart in the main settings or turn them off one by one in the style panel of the settings. Labels can also be turned on or off for all of the lines in the main settings panel. You can adjust the label positioning in the Label Offset section of the settings panel.
VWAP Touches & Trend
VWAP stands for volume weighted average price and is a very popular tool that traders use to determine trend direction based on volume as well as an excellent level to trade price bounces off of.
The typical VWAP time period used is Daily, which means the volume weighted average price will reset at the beginning of a new day. We set the first VWAP to be the daily VWAP by default and the second one to be the weekly VWAP. You can adjust both of the time periods to be any of the provided time lengths that you choose.
The screener will show “Above” with a green background color when price is above the VWAP, indicating a bullish trend. It will show “Below” with a red background color when price is below the VWAP, indicating a bearish trend. When both VWAPs are showing Above or Below, you can expect price to trend in that direction, so look for pullbacks you can trade in the direction of the trend. If the VWAPs are showing different directions, then you should expect to bounce back and forth between the VWAPs, but be careful and watch out for price to break beyond either one and start a trend.
When the current candle is touching the VWAP, the scanner will change colors and say VWAP to notify you that price is touching the VWAP and you should look at that chart and analyze the market for a potential bounce off of the VWAP to trade.
Trending Market Signals
Strong trends are excellent markets to trade and can many times provide excellent trading opportunities that don’t require expert price action reading skills to be able to take winning trades from. That is why we included a signal to notify you of a strong trending market.
The strong trending market will show up as a green or red background color for the ticker name. If the color of the ticker name is green, it is notifying you that the price is above the previous daily high, above VWAP 1 and above VWAP 2 and is a good market to look for bullish trend trades. If the color of the ticker name is red, it is notifying you that the price is below the previous daily low, below VWAP 1 and below VWAP 2 and is a good market to look for bearish trend trades.
Changing The Tickers It Scans
To change the tickers that the indicator scans, scroll near the bottom of the settings panel and select the ticker symbol you want to update and then search for the exact symbol you want to use. If you want to scan less tickers, then just turn some of the tickers off that you don’t need.
Scanning More Than 10 Tickers
If you want to scan more than 10 tickers, you can add the scanner to your chart again and then just change the table position to the other side of the screen. This will allow you to scan 10 more tickers that will show up separately. Then if you want even more, just add the indicator to your chart again and update the table position until you have as many markets as you want. The table position setting can be found at the bottom of the main settings panel.
Alerts
The screener has alerts that can be used to notify you when any of the data set thresholds have been met or if price is touching one of the levels. You can set alerts for the following events:
Bullish Trend Alert - Price is above the previous daily high and above both VWAPs.
Bearish Trend Alert - Price is below the previous daily low and below both VWAPs.
High Volume Alert - Volume is higher than the threshold or a volume spike is detected.
High Volatility Alert - Volatility is higher than the threshold.
Oscillator Is Extended Alert - Oscillator value has exceeded the upper or lower threshold.
Big Candle Alert - A big candle has been detected.
Daily Level Touch Alert - One of the daily levels that is turned on is being touched.
VWAP Touch Alert - One of the 2 VWAPs are being touched.
An alert will trigger when any one of tickers on your scanner meets the alert conditions, so when you see the alert, you will need to go to your chart and look at the scanner to see which ticker it was and then navigate to that chart to look for potential trade setups.
The alerts will use the exact same settings you have configured in the settings panel to send you alert notifications. With normal settings, this could give you a lot of alerts, so if you only want alerts to fire when abnormal conditions are being met, try setting up a second screener on your chart that has very high threshold values and only has the most important level touches on. Then turn the setting "Do Not Show The Screener On The Chart" to off so the calculations will still run and fire alerts, but won't clog up your charts. This way you can only get alert notifications when major events happen but still have your normal screener settings available on your chart.
Markets This Can Be Used On
This screener uses the price action and volume data so you can use it to scan any type of market you would like as long as the ticker you are scanning has price and volume data feeds. If a market does not have volume data, then it will just show NaN in the volume row and the VWAP rows will not show anything.
SuperBands: Smart Pullback StrategyIndicator Name: SuperBands (Smart Pullback Strategy)
1. Core Concept (The Philosophy)
This indicator represents a smart fusion of two powerful trading methodologies: Trend Following and Mean Reversion. Instead of trying to predict market tops or bottoms, it focuses on joining an established trend at a "Discount Price."
In short: "Buy the dips in an Uptrend, and Sell the rallies in a Downtrend."
2. Technical Components
The indicator consists of two main engines working in harmony:
First: The Trend Filter (Supertrend):
Settings: (ATR 20 / Factor 6.0).
Function: Identifies the long-term market direction. The high Factor (6.0) is deliberately used to filter out noise and minor fluctuations, ensuring the trend direction only changes when there is a significant market shift.
Rule: If the line is Green, only Long trades are allowed. If Red, only Short trades are allowed.
Second: The Sniper (Bollinger Bands):
Settings: (Length 20 / StdDev 2.0).
Function: Identifies temporary Overbought and Oversold zones within the trend.
Rule: The Lower Band acts as a "Value Zone" for buying, while the Upper Band acts as a "Premium Zone" for selling.
3. Signal Logic (How it Works)
The indicator scans the market for specific, high-probability conditions:
A. Buy Signal (Green Triangle):
Appears only when both conditions are met:
Trend is Bullish: Supertrend is Green.
Price is "Cheap": Price drops to touch or break the Lower Bollinger Band.
Logic: The general trend is Up, and the price has pulled back to a dynamic support level. This is a buying opportunity.
B. Sell Signal (Red Triangle):
Appears only when both conditions are met:
Trend is Bearish: Supertrend is Red.
Price is "Expensive": Price rises to touch or break the Upper Bollinger Band.
Logic: The general trend is Down, and the price has rallied to a dynamic resistance level. This is a selling opportunity.
4. User Guide (How to Trade It)
To achieve the best results, consider the following approach when a signal appears:
A. Entry:
Enter the trade immediately upon the close of the candle where the triangle appears (or place a pending order slightly above/below the signal candle for confirmation).
B. Stop Loss (SL):
Conservative: Place the SL at the Supertrend line (if this line breaks, the trend is invalid).
Aggressive: Place the SL slightly below the signal candle's low or the most recent Swing Low.
C. Take Profit (TP):
Target 1: The Bollinger Bands Middle Line (Basis/SMA 20).
Target 2: The Opposite Band (Upper Band for Buy signals, Lower Band for Sell signals).
5. Key Strengths & Limitations
Main Advantage: This indicator prevents a common trader mistake: "FOMO" (Fear Of Missing Out). It stops you from buying at the top or selling at the bottom. It psychologically forces you to wait for the price to come to you.
Best Use Case: The wide Supertrend settings make this highly effective for Crypto and Volatile Stocks where trends are strong and pullbacks are deep.
Limitation: In tight, ranging markets (choppy markets), the price might not touch the bands often, or it might generate a signal followed by sideways movement.
Summary for the Trader:
This indicator tells you: "The trend is Up, but don't chase the price... wait for it to drop to the Lower Band, then strike."
اسم المؤشر: SuperBands (Smart Pullback Strategy)
1. الفكرة الأساسية (الفلسفة وراء المؤشر)
هذا المؤشر هو دمج ذكي بين استراتيجيتين شهيرتين: تتبع الاتجاه (Trend Following) و اقتناص الارتدادات (Mean Reversion). هو لا يحاول التنبؤ بقمة أو قاع السوق، بل يحاول الدخول مع الاتجاه العام القوي ولكن من "نقطة سعرية مخفضة" (Discount Price).
باختصار: "اشترِ الانخفاضات في الاتجاه الصاعد، وبع الارتفاعات في الاتجاه الهابط".
2. المكونات التقنية
يتكون المؤشر من جزأين رئيسيين يعملان كفريق واحد:
أولاً: الحارس (Supertrend):
الإعدادات: (ATR 20 / Factor 6.0).
الوظيفة: تحديد الاتجاه العام "طويل المدى". استخدام العامل 6.0 (وهو رقم كبير) يجعل المؤشر يتجاهل التذبذبات الصغيرة ولا يغير لونه إلا إذا تغير الاتجاه الحقيقي للسوق بقوة.
القاعدة: إذا كان الخط أخضر، يُسمح بالشراء فقط. إذا كان أحمر، يُسمح بالبيع فقط.
ثانياً: القناص (Bollinger Bands):
الإعدادات: (Length 20 / StdDev 2.0).
الوظيفة: تحديد مناطق ذروة البيع والشراء المؤقتة (Overbought/Oversold) داخل الاتجاه.
القاعدة: الحد السفلي يعتبر منطقة "رخيصة" للشراء، والحد العلوي منطقة "غالية" للبيع.
3. كيف تتكون الإشارة (آلية العمل)
يقوم المؤشر بمسح السوق بحثاً عن شروط محددة بدقة:
A. إشارة الشراء (المثلث الأخضر):
تظهر فقط عند تحقق الشرطين معاً:
الاتجاه صاعد: السوبر تريند لونه أخضر.
سعر مغري: السعر هبط ليلامس أو يكسر الحد السفلي للبولنجر باند (Lower Band).
المنطق: الاتجاه العام صاعد، والسعر قام بعمل تصحيح (Pullback) لمستوى دعم ديناميكي، إذن هي فرصة للشراء بسعر أفضل.
B. إشارة البيع (المثلث الأحمر):
تظهر فقط عند تحقق الشرطين معاً:
الاتجاه هابط: السوبر تريند لونه أحمر.
سعر مرتفع: السعر صعد ليلامس أو يخترق الحد العلوي للبولنجر باند (Upper Band).
المنطق: الاتجاه العام هابط، والسعر قام بعمل تصحيح صعودي لمقاومة ديناميكية، إذن هي فرصة للبيع من مكان مرتفع.
4. كيفية الاستفادة منه (دليل المستخدم)
لتحقيق أفضل نتائج، يُنصح باتباع الخطوات التالية عند ظهور الإشارة:
أ. نقاط الدخول (Entry):
ادخل الصفقة بمجرد إغلاق الشمعة التي ظهر عليها المثلث (أو ضع أمر معلق فوق/تحت الشمعة لتأكيد الحركة).
ب. وقف الخسارة (Stop Loss):
الخيار الآمن: ضع الوقف عند خط السوبر تريند (لأنه إذا كُسر الخط، يعني أن الاتجاه تغير).
الخيار المغامر: ضع الوقف أسفل قاع الشمعة السابقة بمسافة بسيطة، أو أسفل آخر قاع (Swing Low).
ج. جني الأرباح (Take Profit):
الهدف الأول: خط المنتصف للبولنجر باند (الخط البرتقالي الخفي أو متوسط 20).
الهدف الثاني: الحد المعاكس للبولنجر باند (الحد العلوي في حالة الشراء، والسفلي في حالة البيع).
5. مميزات وعيوب يجب الانتباه لها
الميزة القوية: يمنعك هذا المؤشر من ارتكاب خطأ شائع وهو "الشراء في القمة" أو "البيع في القاع". هو يجبرك نفسياً على انتظار السعر ليأتي إليك في مناطق التصحيح.
نقطة القوة: إعدادات السوبر تريند (6.0) تجعل الإشارات قوية جداً في العملات الرقمية (Crypto) والأسهم ذات الاتجاه الواضح (Trending Markets).
نقطة الضعف: في الأسواق العرضية المملة (Ranging Markets) ذات النطاق الضيق جداً، قد لا تلمس الأسعار حدود البولنجر كثيراً، أو قد يعطي إشارات دخول والسوق لا يتحرك بعدها بقوة.
ملخص للمتداول:
هذا المؤشر يقول لك: "السوق صاعد، لكن لا تطارد السعر.. انتظر حتى يهبط السعر إليك عند الخط السفلي ثم اشترِ".
Smart Liquidity & Step-TrendSmart Liquidity & Step-Trend
Overview
The Smart Liquidity & Step-Trend is a technical analysis tool designed to identify market manipulation points, specifically Liquidity Sweeps, and filter them using a Dynamic Multi-Timeframe (MTF) Trend.
By combining Price Action concepts with institutional flow logic, this indicator helps traders spot high-probability reversal zones where "Smart Money" typically enters the market by capturing retail stop-losses.
The Core Concept: Where is the Liquidity?
Markets do not move randomly. Institutional players require significant liquidity to fill their large orders. This liquidity is often found where retail traders place their stop-loss orders: above obvious swing highs and below obvious swing lows.
A Liquidity Sweep occurs when the price briefly breaks through these key levels to trigger stops/orders and then immediately reverses back into the range. This indicator visualizes these events as potential turning points.
To increase the probability of success, the Step-Trend (EMA) provides a higher-timeframe context, ensuring you are aware of the dominant market direction.
Key Features
Advanced Sweep Detection: Automatically identifies false breakouts of key swing highs and lows.
Dynamic MTF Logic:
- Trend Filter: The EMA (Exponential Moving Average) is calculated on a timeframe of your choice (e.g., 4H) even while viewing a lower timeframe (e.g., 15m).
- MTF Swings: Support and Resistance zones are derived from MTF data for higher reliability.
Temporary vs. Historical Zones:
- Mitigation Logic (Default): Zones are automatically deleted once the price closes through them. This keeps your chart clean, showing only active and relevant levels that haven't been "tested" yet.
- History Mode: Toggle "Show Historical Zones" to keep all past levels on the chart for backtesting and analysis.
ATR Filter (Zone Importance): Adjustable sensitivity to filter out market noise and focus on significant liquidity grabs.
How to Trade with This Indicator
1. Trend Confluence (Recommended)
This is the highest probability setup.
- BUY Signal: Look for a "SUPPORT" zone (teal) forming below the price while the Step-Trend EMA indicates an uptrend. This suggests a "buy-the-dip" manipulation. Use the "Trend Confluence Buy Signal" alert.
- SELL Signal: Look for a "RESISTANCE" zone (orange) forming above the price while the Step-Trend EMA indicates a downtrend. Use the "Trend Confluence Sell Signal" alert.
2. Scalping & Reversals
- Users can utilize the "SUPPORT" and "RESISTANCE" zones as potential targets or quick scalp entry points even against the main trend. Use the "Any Trend" sweep alerts for this style of trading.
Settings Explained
- Liquidity & Trend Timeframe: The timeframe used for trend calculation and swing detection.
- Swing Sensitivity: How "obvious" a high or low must be to be considered a liquidity target.
- Zone Importance (ATR Filter): Defines how deep the sweep must be relative to current volatility.
- Show Historical Zones: Switch between a clean chart (temporary zones) and a backtesting view (historical zones).
Important Notice:
No indicator is 100% accurate. This tool is intended to confirm your own analysis and trading strategies. Always use proper Risk Management and do not trade based on just one indicator.
I hope this tool will help you improve your trading!
Keltner-Aroon-EFI FlowKeltner-Aroon-EFI Flow (KAE)
KAE Flow is a quantitative composite indicator designed to identify dominant market trends by fusing three distinct dimensions of price action: Volatility, Trend Age, and Volume Pressure.
Unlike standard indicators that rely on a single data point (like a moving average crossover), KAE Flow aggregates three independent logic engines into a single normalized "Flow" score. This score is then smoothed using an Arnaud Legoux Moving Average (ALMA) to filter out noise while retaining responsiveness to genuine trend reversals.
This script operates strictly on the current chart timeframe, ensuring all signals are causal, non-repainting, and reliable for real-time analysis.
1. The Quantitative Engine (How it Works)
The indicator polls three separate components. Each component votes "1" (Bullish), "-1" (Bearish), or "0" (Neutral). These votes are averaged to create the raw signal.
K — Keltner Channels (Volatility Dimension)
Concept: Measures volatility expansion.
Logic: The script calculates Keltner Channels using an EMA center line and ATR bands.
Bullish (+1): Price closes above the Upper Channel.
Bearish (-1): Price closes below the Lower Channel.
This component ensures we only trade when price is breaking out of its expected volatility range.
A — Aroon (Trend Age Dimension)
Concept: Measures the strength and "freshness" of a trend.
Logic: We utilize the Aroon Up and Aroon Down metrics.
Bullish (+1): Aroon Up is greater than Aroon Down AND Aroon Up is > 70.
Bearish (-1): Aroon Down is greater than Aroon Up AND Aroon Down > 70.
This filters out weak or aging trends, ensuring the move has mathematical momentum.
E — Elder’s Force Index (Volume Dimension)
Concept: Measures volume-weighted price change.
Logic: We calculate the raw Force Index (Close - Close ) * Volume and smooth it with an EMA.
Bullish (+1): Smoothed EFI > 0.
Bearish (-1): Smoothed EFI < 0.
This component confirms that price movement is supported by actual volume flow (accumulation/distribution).
2. Signal Processing (ALMA Smoothing)
Raw aggregation can be noisy. The composite score is passed through an ALMA (Arnaud Legoux Moving Average) filter.
Why ALMA? It uses a Gaussian distribution to provide smoothness without the significant lag associated with SMA or EMA. This creates the "Flow" line that resists false flips during choppy consolidation.
3. How to Use
The indicator plots a signal line and dynamically colors the price bars and background to reflect the dominant bias.
Deep Blue (Bullish Flow): The KAE Score is > 0.1. All three engines (or the majority) are aligned bullishly. Traders typically look for long entries or hold existing long positions.
White (Bearish Flow): The KAE Score is < -0.1. The majority of engines detect bearish volatility and volume. Traders typically look for short entries.
Gray (Neutral): The score is between -0.1 and 0.1. The market is in equilibrium or transition. Trend-following strategies should be paused.
4. Configuration
Logic Engine: You can toggle individual components (K, A, or E) on or off to isolate specific market dimensions.
Smoothing: Adjust the ALMA Window and Offset to fine-tune the sensitivity of the signal line.
Lengths: Fully customizable periods for Keltner, Aroon, and EFI to adapt to different asset classes (e.g., Crypto vs. Forex).
Mitigation POI Master: OB + FVG ConfluenceOverview
The Mitigation POI Master is a Smart Money Concepts (SMC) tool designed to identify high-probability Points of Interest (POI). Unlike standard indicators that clutter your chart with every single block, this script focuses on the Confluence of two critical institutional footprints: Order Blocks (OB) and Fair Value Gaps (FVG).
Key Features
💎 Automated POI Detection: Finds overlapping areas between OBs and FVGs, marking them as premium Demand or Supply zones.
🧹 Smart Mitigation Engine: Real-time tracking of zone mitigation. Once a zone is touched or broken through (customizable), it is automatically removed to keep your chart clean.
⚡ Liquidity Sweep Filter: Includes an optional filter to only show Order Blocks that have successfully swept previous candle liquidity—a hallmark of true institutional intervention.
📊 Volume Confirmation: Integrated volume filter to ensure the zones are born from high-activity impulsive moves.
Settings
Timeframe Usage: This indicator performs best on higher timeframes (H1, H4, Daily) as institutional moves are more significant there. Using lower TFs (M1, M5) may generate too many low-quality zones.
Sensitivity (ATR Multiplier):
- For volatile assets/lower TFs (Crypto, Gold): Increase the Sensitivity input (e.g., 8-10) to filter out noise.
- For stable assets/higher TFs (Forex Majors, Stocks): Use the default Sensitivity (e.g., 4-6).
Mitigation Mode: The default "Breakthrough" mode is safer for high R:R setups. "Touch" mode offers earlier entries but higher risk.
How to Use
Identify the POI: Look for the ✦ DEMAND or ✦ SUPPLY labels.
Wait for the Return: Wait for price to retrace into the POI (Mitigation).
Execute: Use lower timeframe confirmation (like MSB or CHoCH) within these zones for high R:R entries.
Alerts: Set alerts to get notified the moment a new high-confluence POI is formed.
Super OscillatorSuper Oscillator – Intraday Momentum
Super Oscillator is a momentum-based oscillator designed for intraday trading, optimized for 1-minute charts and fast market conditions.
The indicator uses a zero-centered momentum model with dynamic smoothing and clearly defined zones to help traders identify exhaustion, pullbacks, and momentum shifts without excessive noise.
Key Features
Zero-centered oscillator for immediate directional bias
Dynamic overbought and oversold zones
Neutral “dead zone” to avoid low-probability trades
Smoothed momentum line with signal line for timing entries
Optimized for scalping and short-term intraday trading
Fully compatible with TradingView Pine Script v6
How to Use
Overbought zone: Look for bearish reactions or momentum exhaustion
Oversold zone: Look for bullish reactions or pullbacks
Dead zone: Avoid trades when momentum is unclear
Use the oscillator as a confirmation tool, always with price action and structure
Best Use Case
Intraday scalping (1M–5M)
Futures markets (indices, metals)
NY session trading
Disclaimer
This indicator does not predict price direction. It measures momentum and exhaustion and should be used as part of a complete trading plan with proper risk management.
AI Adaptive Trend Navigator Strategy Echo EditionAI Adaptive Trend Navigator Strategy
This is a professional long-only automated strategy optimized for Taiwan Index Futures (TX). Based on the LuxAlgo clustering framework, this version features advanced logic iteration for institutional-grade backtesting and execution.
1. Realistic Cost Modeling To ensure backtest reliability, this strategy is pre-configured with:
Slippage: 2 ticks (Approx. 400 TWD per side).
Commission: 100 TWD per side.
Total Cost: 500 TWD per side. This provides a rigorous stress test for real-world trading environments.
2. State Consistency & Logic Continuity Optimized the underlying array handling to ensure "State Persistence." This eliminates the logic gaps common in real-time script execution, ensuring that historical signals are 100% consistent with live alerts.
3. Adaptive AI Clustering Utilizes K-means clustering to dynamically select the optimal ATR factors based on current market volatility, allowing the strategy to "evolve" as market regimes shift.
🧠 開發理念:追求實戰一致性的量化策略 本策略旨在為台指期(TX)提供一套具備真實參考價值的自動化系統。
✨ Echo 版核心優化點
數據連續性迭代:修正底層邏輯,確保訊號在即時盤勢中穩定不跳斷。
真實交易成本模擬:預設 2 點滑價 與 單邊 100 TWD 手續費,單邊總成本對標 500 TWD,拒絕虛假神單,挑戰最嚴苛的回測環境。
台指期專屬參數調校:融入針對台灣市場波動特性的預設參數與過濾邏輯。
🛡️ 進階實戰過濾
空間緩衝區 (Buffer Strategy):價格需有效突破緩衝區才觸發,精準過濾盤整雜訊。
AI 信心評分系統:只有當動能穩定度達標時才會發進場訊號。
冷卻保護機制:有效抑制訊號在洗盤區間過度頻繁跳動。
⚠️ Disclaimer: Backtest results do not guarantee future performance.
Apex Wallet - Adaptive Average Directional Index (ADX) & Trend DOverview The Apex Wallet Average Directional Index (ADX) is an enhanced version of the classic Wilder’s DMI/ADX system, designed to filter market noise and pinpoint trend strength with precision. Unlike standard indicators, this script features an adaptive engine that recalibrates its internal logic based on your specific trading style.
Adaptive Trading Engine The core strength of this script is its three-mode preset system:
Scalping: Fast-response settings (ADX 7) for quick scalp opportunities on low timeframes.
Day-Trading: Balanced settings (ADX 14) optimized for intraday sessions.
Swing-Trading: High-filter settings (ADX 21) designed to capture major market waves.
Visual Intelligence & Labels To ensure clarity, the script features a dynamic labeling system directly on the ADX line:
Trend Strength Zones: Clear horizontal markers for "Consolidation," "Trending," and "Extremely Strong" phases.
Real-time Status Labels: The ADX line changes color and displays its current state (Bullish, Bearish, or Consolidation) directly on the chart.
Optimized UI: No sidebar panels to clutter your view; all essential information is integrated into the oscillator window.
How to Use:
Select your Trading Mode in the settings.
Monitor the ADX color: Green indicates a strong bullish trend, Red indicates a strong bearish trend, and White/Orange signals consolidation.
Use the labels to confirm if the market is currently in a high-conviction trend phase or sideways range.
VWAP BB Breakout + DMI MomentumI decided to code a single indicator that has some of my most used indicators.
I encourage that you have read up on VWAP, Bollinger Bands, ADX/DMI to understand how they function.
VWAP + Bollinger 1σ Breakout + DMI/ADX Scalping Strategy (NASDAQ)
This strategy is designed for single-chart, intraday scalping on the NASDAQ, focusing on volatility expansion in the direction of market control. It avoids higher-timeframe confirmation to eliminate lag and reacts only when price shows acceptance and momentum.
Core Concepts
VWAP defines market control and trade direction
Bollinger Bands (20, 1σ) identify early volatility expansion
DMI/ADX (10 / 5) confirms directional momentum and strength
The strategy trades breakouts that are supported by both bias and momentum, filtering out low-quality moves and chop.
Trade Rules
Long Setup
Price is above VWAP
Candle closes above the upper Bollinger 1σ band
+DI > –DI
ADX rising or above strength threshold
Short Setup
Price is below VWAP
Candle closes below the lower Bollinger 1σ band
–DI > +DI
ADX rising or above strength threshold
Trades are taken only on candle close to confirm acceptance.
Risk & Trade Management
Trades are avoided near VWAP to reduce chop
Stops are placed just inside the Bollinger 20 SMA or beyond the breakout candle
Partial profits can be taken at the 2σ band
Exits are considered when ADX flattens or DMI flips
Market Conditions
Best suited for:
High-liquidity sessions (NY open and main session)
Trending or expanding volatility environments
Avoid during:
Flat VWAP conditions
Bollinger Band compression
Low ADX / range-bound markets
Strategy Philosophy
This is a reactive momentum strategy, not predictive.
It waits for price to prove direction and strength, then participates in the move rather than anticipating it.
Volume Supply / Demand RegimeVolume Supply / Demand Regime
Read-Only Market Context Indicator
Volume Supply / Demand Regime is a context tool that classifies how volume behaves, not just how much volume appears.
Instead of treating volume as a single metric, this indicator identifies distinct participation regimes that reflect supply, demand, contraction, absorption, and event-driven activity.
What this indicator shows
Each bar is classified into a volume regime based on relative volume, efficiency, and percentile context:
Dry-Up (Contraction) — participation fades, activity compresses
Accumulation — expanding volume with constructive price response
Distribution — expanding volume with negative price response
Churn / Absorption — high effort with limited price progress
Climax / Event — statistically extreme participation spikes
These regimes help explain why price behaves the way it does during different phases.
Why this is different
Most volume tools answer:
“Is volume high or low?”
This framework answers:
“What kind of participation is occurring right now?”
Two periods can have similar volume levels but very different implications depending on:
Whether activity is expanding or contracting
Whether effort produces result
Whether participation is orderly or event-driven
This indicator makes those distinctions explicit.
How to use it
Volume Supply / Demand Regime is designed to be used as context, not instruction.
Common uses include:
Identifying contraction before expansion
Recognizing absorption vs. continuation
Flagging event-risk or climax conditions
Filtering signals from other tools
There are no entries, exits, or trade rules built in.
What this is not
Not a strategy
Not a signal generator
Not predictive
No trade instructions
Technical notes
Indicator-only (no orders or execution)
Evaluated on confirmed bar close
Values may update on realtime (forming) bars
Designed for clarity and educational use
Mean-Reversion Strategy (RSI + ATR) v1
Entry: Wait for RSI(10) to cross 35 (bullish) or 65 (bearish)
Stop-loss: 2.5 times current ATR away from entry
Take-profit: 4 times current ATR away from entry
Risk: 2% of account per trade
Skip trades if price moved >5% recently or volume is below average
Risk/Reward: You risk $1 to make $1.60 (1:1.6 ratio)
That's the complete strategy. Simple, rules-based, volatility-adjusted for crypto.
AI Adaptive Trend Navigator Echo EditionAI Adaptive Trend Navigator
This is an advanced trend-following system optimized for high-volatility index futures (TX). Built upon the LuxAlgo clustering framework, this version introduces several critical enhancements to meet professional trading standards:
1. State Consistency Iteration Enhanced the underlying logic for dynamic arrays and User-Defined Types (UDTs) to ensure stable "State Persistence." This fix eliminates logic gaps during real-time price fluctuations, ensuring that historical backtests perfectly align with live execution.
2. Adaptive Factor Tuning (K-means) The system simulates dozens of parameter paths in real-time, using K-means clustering to automatically select the optimal factor suited for the current market volatility.
3. Advanced Practical Filters
Dynamic Buffer Strategy: Filters out market noise during consolidation and early session volatility.
Confidence Threshold: Only triggers signals when the AI performance score meets the required quality.
Cooldown Logic: Prevents rapid signal flipping in choppy markets.
🧠 開發理念:將 AI 自適應力帶入台指期實戰 針對台指期(TX)高波動特性開發,透過機器學習演算法動態尋優,解決傳統指標參數固定的滯後性。
✨ Echo 版核心優化點
數據連續性迭代:底層邏輯優化,確保訊號在即時盤勢中穩定不跳斷,回測與實戰高度吻合。
自適應動態尋優:透過 K-means 聚類自動鎖定當前最佳 ATR 因子。
實戰多重濾網:包含空間緩衝區 (Buffer) 與信心門檻,大幅提升訊號品質。
📊 視覺說明
🚀 Rocket: AI confirms trend momentum.
⚡ Lightning: Trend exhaustion or reversal warning.
⚠️ Disclaimer: For educational and technical analysis purposes only.
Multi ATR Volatility Bands CockpitMulti ATR Volatility Bands Cockpit
Multi ATR Volatility Bands Cockpit is a read-only volatility context indicator designed to describe how volatile the market is and where price currently sits within that volatility, using an EMA anchor and multiple ATR-based envelopes.
This tool does not generate trade signals or place orders. It is intended to support situational awareness and contextual analysis across symbols and timeframes.
What this indicator shows
Volatility Regime
Classifies current volatility using ATR as a percentage of price (e.g., Quiet, Normal, Volatile, Extreme).
Envelope Structure
Uses multiple ATR envelopes around an EMA to visualize typical, elevated, and extreme volatility ranges.
Price Location
Describes where price is relative to the envelopes (inside, outside, or beyond typical ranges).
Plain-Language Context
A concise, non-actionable explanation of the current volatility environment.
What makes this indicator unique
Unlike traditional band indicators that require interpretation from the chart alone, this script includes a Volatility “Cockpit” panel that summarizes volatility conditions in a clear, structured, and descriptive format.
The cockpit:
Translates raw volatility metrics into labeled regimes
Separates context from decision-making
Is designed to reduce interpretation ambiguity rather than generate signals
This makes the indicator suitable as a context layer alongside other analysis tools, rather than a standalone decision engine.
Display modes
Cockpit (Minimal)
Clean overlay with the EMA, outer envelope, and informational panel.
Bands (Detail)
Full ATR band stack with optional fills for deeper inspection of volatility structure.
Important notes
Indicator only — no trade execution, no buy/sell signals, no alerts
All calculations are based on confirmed historical bar data
No lookahead logic is used
Results vary by symbol, timeframe, and parameter selection
Intended use
This indicator is designed for traders and analysts who want to understand volatility conditions before making decisions elsewhere, not for generating entries or exits on its own.
XAUUSD: Ultimate Sniper v6.0 [Order Flow & Macro]This indicator is a comprehensive trading system designed specifically for XAUUSD (Gold). It moves away from lagging indicators by combining real-time Macro-Economic sentiment, Regression Analysis, and Institutional Order Flow logic into a single professional interface.
### Core Strategy & Features: 1. Macro Correlation Filter: Gold has a strong inverse correlation with the USD (DXY) and Treasury Yields (US10Y). This script monitors them in the background. If DXY/US10Y are Bullish, Gold Buy signals are filtered out to prevent trading against the trend. 2. Linear Regression Channel: Defines the "Fair Value" of price. We only look for reversal trades when price hits the extreme Upper or Lower bands. 3. Order Flow Pressure (New): Analyzes the internal structure of each candle (Wick vs Body). A signal is only confirmed if the "Buying Pressure" or "Selling Pressure" within the candle supports the move (e.g. >50%). 4. RSI Divergence: Automatically spots Bullish and Bearish divergences to identify momentum exhaustion.
### ⚙️ Recommended Settings / Best Practices To get the best results, adjust the settings based on your trading style:
🏎️ SCALPING (1min - 5min Charts) * Goal: Quick entries, smaller targets, higher frequency. * DXY/US10Y Timeframe: Set to "15" or "30" (Reacts faster to macro changes). * Regression Length: 50 or 80 (Adapts to short-term trends). * RSI Length: 9 or 14.
🛡️ INTRADAY (15min - 1h Charts) - * Goal: Balanced trading, capturing the daily range. * DXY/US10Y Timeframe: Set to "60" (1 Hour). * Regression Length: 100 (Standard setting). * RSI Length: 14.
🦅 SWING TRADING (4h - Daily Charts) * Goal: Catching major trend reversals. * DXY/US10Y Timeframe: Set to "240" (4 Hours) or "D" (Daily). * Regression Length: 200 (Long-term trend baseline). * Channel Width: Increase to 2.5 or 3.0.
### How to Trade: - BUY Signal: Valid when the Dashboard shows "BEARISH" DXY/US10Y and the Live Pressure is "BUYERS". - SELL Signal: Valid when the Dashboard shows "BULLISH" DXY/US10Y and the Live Pressure is "SELLERS". - Risk Management: The script automatically calculates ATR-based Stop Loss (SL) and Take Profit (TP) levels.
Monte Carlo Simulation BandsMonte Carlo Simulation v2.4.2
Plots a one-bar-ahead price distribution band built from many simulated paths. The green band shows empirical percentiles of simulated final prices—these are distribution bounds, not a confidence interval of the mean.
What It Does
Simulates many one-bar price paths using a directional random walk with volatility scaling (uniform shocks, not Gaussian GBM).
Plots Mean Forecast, Median Forecast, and configurable percentile bounds (default 5th/95th).
Optional rolling HTF-days mean line (yellow) for trend context.
Optional labels and forward projection lines.
Alerts when the confirmed close breaks above or below the percentile band.
Non-Repainting & HTF Behavior (Fail-Closed)
All calculations are gated to confirmed bars only via explicit no_repaint_ok gate (barstate.isconfirmed).
If you select an HTF Resolution, the script uses a strict request.security(..., lookahead_off, gaps_off) pipeline.
If HTF data is unavailable, outputs are na—no silent fallback to chart timeframe.
A separate "HTF Alignment (lagged)" plot shows the prior HTF close (htf_price ) as visual proof of no look-ahead.
Volatility Source & Scaling
If "Use Historical Volatility" is enabled, volatility is estimated from log returns on the selected resolution (HTF if set, otherwise chart).
Annualization adapts to session type:
Equities: 6.5 hours/day, 252 trading days/year
Crypto: 24 hours/day, 365 days/year
Substeps increase path smoothness within the same one-bar horizon—they do not extend the forecast to multiple bars.
Key Inputs
• Prob Up / Prob Down — Must satisfy Prob Up + Prob Down ≤ 1.0. If violated, simulation is skipped and table shows "✗ PROB>1".
• # Simulations / # Substeps — Higher = smoother/more stable, but slower. Default 100×100 is a good balance.
• Lower/Upper Percentile — Define the band width (e.g., 5 and 95 for a 90% distribution band).
• Run On Last Bar Only — Performance mode (recommended). Skips historical computation; updates on each new confirmed bar.
• Resolution (HTF) — Leave blank for chart timeframe, or set to Weekly/Monthly for HTF-aligned simulation.
• Crypto 24/7 Session? — Enable for crypto markets to use correct annualization (365d, 24h).
How to Use (Quickstart)
Start with defaults and keep Run On Last Bar Only = true for speed.
Set Prob Up and Prob Down so their sum ≤ 1.0 (e.g., 0.5 + 0.5 = 1.0 for neutral).
Enable "Use Historical Volatility" and set a Volatility Lookback (e.g., 20 bars) for data-driven vol.
Set Resolution (HTF) if you want the model to run on higher timeframe data (e.g., 1W). Expect updates only when a new HTF interval starts.
Choose percentiles (e.g., 5 and 95) to define your distribution band width.
Enable alerts for "Price Above Upper Percentile" or "Price Below Lower Percentile" to get notified of breakouts.
Limitations & Disclosures
Forecast horizon is one bar only. Substeps do not create a multi-bar forecast.
Model uses uniform shocks with direction chosen from Prob Up/Down. This is not Geometric Brownian Motion (GBM) and is not calibrated to any option-implied distribution.
Bounds are percentiles of final simulated prices, not a statistical confidence interval of the mean.
HTF mode updates at the start of a new HTF interval (first chart bar where the HTF timestamp changes), so the band appears "step-like" in realtime.
Historical volatility requires enough bars for the selected lookback; until then, values may be na.
Performance depends on Sims × Substeps; extreme settings (e.g., 500×500) can be slow.
This indicator does not predict direction—it shows a probabilistic range based on your inputs.
DCA + Martingale strategy.DCA + Martingale: smart synergy for volatile markets
Tame market swings with a powerful hybrid strategy that marries the discipline of Dollar‑Cost Averaging (DCA) with the aggressive recovery logic of the Martingale system. This approach turns price dips into opportunities — systematically building positions while keeping risk in check.
How it works:
1. Entry trigger
The strategy activates when the asset price drops by a predefined percentage on the 1‑hour timeframe. This ensures you only engage when a meaningful pullback occurs, avoiding premature entries.
2. DCA grid for controlled averaging
Once the entry condition is met, a grid of buy orders is deployed:
Each subsequent order is placed at progressively lower price levels (e.g., every 2–5% drop).
Order sizes can be fixed or follow a progressive scale (e.g., 1x, 1.5x, 2x the initial amount).
This dilutes your average entry price, improving the breakeven point as the market corrects.
3. Martingale‑style recovery mechanism
After each unsuccessful trade (i.e., price continues falling), the next position size is increased — not necessarily doubled, but scaled according to your risk tolerance. This accelerates recovery potential when the trend reverses.
4. Take‑profit with a fixed percentage target
A simple, predefined profit target (e.g., +3–7%) is set for the entire averaged position. Once hit, all open trades close, locking in gains. This prevents over‑exposure during uncertain reversals.
Key advantages
Psychological edge: removes emotional decision‑making by automating entries and exits.
Cost optimization: lowers average entry during downtrends, improving profit potential.
Controlled aggression: Martingale logic helps recoup losses faster without infinite scaling.
Flexibility: parameters (entry %, grid spacing, position sizing, TP) are fully customizable.
Risk management essentials
Stop‑loss safeguard: a hard stop‑loss (e.g., 10–15% below the lowest grid level) prevents catastrophic drawdowns in prolonged downtrends.
Position sizing: never risk more than 1–3% of capital per grid cycle.
Market context: best suited for assets with mean‑reverting behavior and moderate volatility. Avoid strong, sustained trends.
Capital buffer: ensure sufficient reserves to withstand multiple grid levels without margin calls.
When to use it
During sideways or range‑bound markets with regular pullbacks.
On assets with historical tendency to recover from short‑term dips.
When you expect a bounce but can’t pinpoint the exact bottom.
Bottom line
DCA + Martingale isn’t a «set‑and‑forget» miracle — it’s a disciplined framework for turning volatility into opportunity. Combine it with rigorous risk rules, and you’ll navigate downtrends with precision, turning market noise into structured profit potential.
Adaptive Trend Flow (ATF)Adaptive Trend Flow (ATF) is a custom trend-following indicator designed to work reliably across all markets and all timeframes.
It uses an adaptive moving average that automatically adjusts to market conditions, combined with trend slope analysis and a volatility filter to reduce noise during ranging periods.
Unlike traditional fixed moving averages, ATF reacts faster during strong trends and slows down during consolidation, helping traders stay aligned with meaningful price movements.
🔍 How It Works
Uses an adaptive smoothing algorithm to track price efficiently
Confirms trend direction using trend slope
Filters out low-volatility and choppy conditions using ATR-based logic
Does not repaint — signals are based only on confirmed data
📊 Visual Interpretation
🟢 Green line / background → Bullish trend
🔴 Red line / background → Bearish trend
⚪ Gray → No clear trend (range / low volatility)
⚙️ Features
Works on Crypto, Forex, Stocks, Futures
Compatible with all timeframes
Optional trend-change signals
Optional background highlighting
Fully customizable inputs
Alert-ready
🎯 Best Use Cases
Trend filter for entries and exits
Directional bias for scalping, day trading, or swing trading
Strategy backbone when combined with price action or momentum tools
⚠️ Disclaimer
This indicator is for educational and analytical purposes only and does not constitute financial advice. Always manage risk appropriately.






















