Prismatic Trend Matrix [JOAT]Prismatic Trend Matrix
Introduction
The Prismatic Trend Matrix is an advanced open-source multi-dimensional trend analysis system that combines Hull Moving Average, SuperTrend, ADX strength filtering, and moving average confluence into a unified trend detection engine. This indicator analyzes trend across multiple dimensions simultaneously, creating a prismatic view of market direction with gradient visualization that reveals trend strength and conviction.
Unlike single-indicator trend systems, the Prismatic Trend Matrix provides multi-layered trend intelligence through Hull MA smoothing, SuperTrend band analysis, ADX strength measurement, and EMA/SMA alignment detection. The indicator is designed for traders who understand that strong trends require confirmation across multiple analytical dimensions.
Why This Indicator Exists
This indicator addresses the need for comprehensive trend analysis that goes beyond simple moving averages. By combining four distinct trend methodologies with gradient visualization, it reveals:
Hull Moving Average: Weighted moving average with reduced lag for responsive trend detection
SuperTrend Component: ATR-based bands that identify trend direction and support/resistance
ADX Strength Filter: Measures trend strength to separate strong trends from weak/choppy conditions
Moving Average Matrix: Three EMAs and two SMAs create alignment-based trend confirmation
Trend Classification: Five-state system (Strong Bull, Weak Bull, Sideways, Weak Bear, Strong Bear)
Counter-Trend Detection: Identifies potential reversals when price moves against established trend
Prismatic Gradient: Visual fill between Hull MA and SuperTrend shows trend intensity
Core Components Explained
1. Hull Moving Average (HMA)
The Hull MA uses weighted moving averages to create a smooth trend line with minimal lag:
The calculation involves three steps:
Step 1: Calculate WMA of half-length period
Step 2: Calculate WMA of full-length period
Step 3: Calculate WMA of the difference using square root of length
The result is a moving average that responds quickly to price changes while maintaining smoothness. The indicator applies additional EMA smoothing (default 3 periods) to reduce noise.
2. SuperTrend Calculation
SuperTrend uses ATR-based bands to identify trend direction:
Source: Average of high and low (HL2)
Upper Band: Source + (ATR × Factor)
Lower Band: Source - (ATR × Factor)
Direction: Bullish when close > upper band, bearish when close < lower band
Three modes control band adjustment:
Strict Mode: Bands adjust only when price crosses or previous band is breached
Quick Mode: Bands adjust when price crosses previous band
Quicker Mode: Bands adjust immediately with price
SuperTrend provides dynamic support/resistance levels that adapt to volatility.
3. ADX Strength Measurement
The Average Directional Index measures trend strength:
DI+ (Directional Indicator Plus): Measures upward directional movement
DI- (Directional Indicator Minus): Measures downward directional movement
ADX: Smoothed average of the difference between DI+ and DI-, normalized
Threshold: ADX above threshold (default 25) indicates strong trend
Rising ADX: Indicates strengthening trend momentum
ADX filters out weak trends and choppy conditions, ensuring signals occur only during strong directional movement.
4. Moving Average Matrix
Five moving averages create a trend alignment system:
Fast EMA (9): Short-term trend direction
Medium EMA (21): Intermediate trend direction
Slow EMA (50): Primary trend direction
Fast SMA (50): Smoothed primary trend
Slow SMA (200): Long-term institutional trend
Alignment is measured by comparing the order of these averages:
Bullish Alignment: EMA9 > EMA21 > EMA50 > SMA50 (all in ascending order)
Bearish Alignment: EMA9 < EMA21 < EMA50 < SMA50 (all in descending order)
Mixed Alignment: Averages not in order (choppy or transitional conditions)
Perfect alignment indicates strong institutional conviction in the trend direction.
5. Composite Trend Classification [/b>
The indicator combines all components into a five-state trend classification:
Strong Bull (State 2): Hull rising + SuperTrend bullish + MA alignment bullish + ADX strong
Weak Bull (State 1): Hull rising + (SuperTrend bullish OR MA alignment bullish)
Sideways (State 0): Mixed signals or weak trend conditions
Weak Bear (State -1): Hull falling + (SuperTrend bearish OR MA alignment bearish)
Strong Bear (State -2): Hull falling + SuperTrend bearish + MA alignment bearish + ADX strong
This classification provides clear trend assessment at a glance.
6. Counter-Trend Detection [/b>
The indicator identifies potential reversals when price moves against established trend:
Counter-Trend Bull: Trend state neutral/bearish + close > open + price rising + DI+ > DI- + close > Hull + ADX > 20
Counter-Trend Bear: Trend state neutral/bullish + close < open + price falling + DI- > DI+ + close < Hull + ADX > 20
Counter-trend signals include anti-overlap logic to prevent signal clustering and ensure clean placement.
7. Prismatic Gradient Visualization
The indicator creates a gradient fill between Hull MA and SuperTrend:
Gradient Layers: Multiple intermediate values calculated between Hull and SuperTrend (default 15 layers)
Color Intensity: Transparency increases from Hull (solid) to SuperTrend (transparent)
Dynamic Coloring: Gradient color matches trend state (green = bullish, red = bearish, cyan = sideways)
Visual Effect: Creates a glowing prismatic effect that emphasizes trend strength
The gradient provides intuitive visual feedback on trend intensity and direction.
8. Platform Levels
Platform levels are horizontal lines at the current Hull MA value:
Extension: Lines extend forward and backward from current bar (default 7 bars each direction)
Color Coding: Platform color matches current trend state
Purpose: Provides visual reference for potential support/resistance at Hull MA level
Platforms help identify key levels where price may find support or resistance.
Visual Elements
Hull Trend Line: Thick line (3px) with regime-based coloring showing primary trend
SuperTrend Line: Medium line (2px) with step-line style showing dynamic support/resistance
EMA Matrix: Three thin lines showing fast, medium, and slow EMAs with transparency
Prismatic Gradient: Multi-layer fill between Hull and SuperTrend creating glow effect
Platform Levels: Horizontal lines at Hull MA value extending forward/backward
Counter-Trend Signals: Triangles marking potential reversal points
Background Coloring: Subtle background tint for strong bull/bear states
Information Dashboard: Displays trend state, Hull direction, ADX strength, momentum, alignment, SuperTrend, DI balance, price vs Hull, gradient zone, counter-trend status, and signal
How to Use This Indicator
Step 1: Check Trend State
Monitor the dashboard for current trend state (Strong Bull, Weak Bull, Sideways, Weak Bear, Strong Bear). Trade in the direction of strong states.
Step 2: Verify ADX Strength
Ensure ADX is above threshold (default 25) for strong trends. Low ADX indicates choppy conditions - avoid trend-following strategies.
Step 3: Confirm MA Alignment
Check if moving averages are aligned (Bullish/Bearish/Mixed). Perfect alignment confirms institutional conviction.
Step 4: Monitor Hull Direction
Hull rising = bullish bias, Hull falling = bearish bias. Hull provides the primary trend direction signal.
Step 5: Use SuperTrend for Support/Resistance
SuperTrend line acts as dynamic support in uptrends and resistance in downtrends. Breaks of SuperTrend warn of trend changes.
Step 6: Watch for Counter-Trend Signals
Counter-trend signals at extreme levels may indicate reversals. Use these cautiously and confirm with other factors.
Step 7: Assess Gradient Zone
Price in upper gradient zone (near Hull) = strong trend, price in lower zone (near SuperTrend) = weak trend or potential reversal.
Best Practices
Trade only in Strong Bull or Strong Bear states for highest probability
Avoid trading in Sideways state - wait for clear trend establishment
Use ADX as a filter - only trade when ADX > 25 for strong trends
Confirm trend with MA alignment before entering positions
Use SuperTrend as trailing stop level in trending markets
Counter-trend signals work best at extreme levels with divergence
Monitor gradient zone - price near SuperTrend may indicate trend exhaustion
Combine with higher timeframe trend for additional confirmation
Input Parameters
Hull Trend Engine:
Hull Length: Period for Hull MA calculation (default: 20)
Hull Smoothing: Additional EMA smoothing (default: 3)
SuperTrend Layer:
ATR Period: Period for ATR calculation (default: 10)
ATR Factor: Multiplier for band width (default: 3.0)
Mode: Strict, Quick, or Quicker (default: Quick)
Trend Strength:
ADX Length: Period for ADX calculation (default: 14)
ADX Smoothing: Smoothing period for ADX (default: 14)
Strength Threshold: Minimum ADX for strong trend (default: 25)
MA Matrix:
Fast EMA: Short-term EMA (default: 9)
Medium EMA: Intermediate EMA (default: 21)
Slow EMA: Primary EMA (default: 50)
Fast SMA: Smoothed primary (default: 50)
Slow SMA: Long-term institutional (default: 200)
Visual Configuration:
Bullish/Bearish Trend Colors: Customizable colors for trend states
Sideways/Weak Trend Colors: Colors for neutral and weak states
Gradient Layers: Number of gradient fills (default: 15)
Show Platforms: Toggle platform level display (default: enabled)
Platform Extension: Bars to extend platforms (default: 7)
Originality Statement
This indicator is original in its multi-dimensional trend approach. While individual components (Hull MA, SuperTrend, ADX, EMAs) are established concepts, this indicator is justified because:
It combines four distinct trend methodologies into a unified classification system
The five-state trend classification provides clear trend assessment
Prismatic gradient visualization creates intuitive trend intensity display
Counter-trend detection with anti-overlap logic identifies potential reversals
MA alignment analysis measures institutional conviction
Integration of Hull MA smoothness with SuperTrend adaptability creates balanced trend detection
The comprehensive dashboard presents all trend dimensions simultaneously
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Trend analysis does not guarantee profitable trades. Past trends do not guarantee future trends. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by officialjackofalltrades Indicator

Smart Reversal EntrySmart Reversal Entry
Smart Reversal Entry is an open-source reversal-entry indicator built around one specific analytical idea:
after a short, directional three-candle expansion move, the first confirmed candle closing back in the opposite direction can create a structured reversal-entry opportunity when it appears in the correct EMA context.
This script is not designed to mark every bullish or bearish candle, and it is not intended to behave like a generic trend-following overlay, a standard candlestick-pattern indicator, or a broad “signal generator” that reacts to every small reversal. Its purpose is to measure short-term directional exhaustion in a standardized way, filter that move through an EMA context, require close-confirmed reversal behavior, and then project a fixed-risk trade structure directly on the chart for analysis and review.
The script also includes an internal background optimizer and review tables so users can compare how the same reversal framework behaves under different parameter combinations. These review tools are included to support study and comparison, not to imply future performance.
OPEN-SOURCE NOTE
This script is published open-source so users can inspect the logic directly, verify what the script is doing, and adapt parts of the workflow for their own research if they wish.
Even though the code is open, this description is intentionally detailed because many PulseWire users do not read Pine Script. The goal is for a user to understand what the script does, how it works, why its parts belong together, and how it may be used in practice without having to study the code line by line.
OVERVIEW
At a high level, the script does six things:
1. It measures whether the last three candles produced a directional move large enough to matter in pip terms.
2. It checks whether price is positioned on the correct side of a selected EMA filter.
3. It requires the current candle to close in the opposite direction as confirmation of a possible reversal.
4. It maps a fixed stop-loss and a selectable take-profit multiple directly onto the chart.
5. It tracks projected trade outcomes and summarizes them in a review table and a daily PnL table.
6. It runs a hidden background optimizer over multiple EMA and move-threshold combinations so the user can compare the current settings to an internal parameter sweep.
The script is therefore meant to function as a complete reversal-entry and review framework rather than as a single-purpose candle-pattern marker.
CORE IDEA
Many reversal-style tools identify isolated candles or basic candlestick formations, but they do not standardize the market context around them.
This script is built around the idea that a reversal signal becomes more meaningful when three specific things happen together:
1. price has already made a clear short-term directional move,
2. that move is large enough to matter relative to the chosen pip structure,
3. and the next confirmed candle closes back in the opposite direction while price remains on the correct side of an EMA filter.
The model is intentionally narrow.
It does not try to identify every turning point in the market.
It does not try to classify broad market structure.
It does not use discretionary support and resistance interpretation.
It does not rely on vague candle descriptions such as “looks weak” or “looks exhausted”.
Instead, it defines reversal-entry conditions using a fixed sequence:
first measure a three-candle directional push,
then filter it using EMA context,
then require an opposite close-confirmed candle,
then project a standardized risk framework,
then review the resulting projected outcomes over time.
That narrower focus is the main reason this script exists in its current form.
WHY THIS SCRIPT IS NOT A SIMPLE MASHUP
This script combines multiple components, but they are not included simply to place more features into one publication.
Each component has a specific function inside the same analytical workflow:
- The EMA filter defines directional context.
- The three-candle move measurement defines whether a short-term push is large enough to qualify.
- The reversal candle confirmation defines the actual entry trigger.
- The pip-based stop-loss and RR framework standardize trade projection.
- The summary and daily review tables organize projected outcomes into a readable review structure.
- The internal optimizer compares the same reversal logic across multiple hidden EMA and move-threshold combinations.
These layers are interdependent.
Without the three-candle move measurement, the script would react to many small candles that do not represent meaningful short-term expansion.
Without the EMA filter, the script would lose its directional context and become a more generic reversal marker.
Without the close-confirmed reversal candle, the script would identify momentum but not the actual reversal-entry moment.
Without the risk projection layer, the user would still need to manually draw the entry, stop, and target after every signal.
Without the review tables, the user would have less organized feedback when reviewing results under the selected settings.
Without the internal optimizer, the user would see only the current configuration and not how the same logic behaves across a broader parameter range.
For that reason, the script is intended as a single reversal-entry framework, not as a random collection of unrelated features.
WHAT THE SCRIPT DOES
The script identifies reversal-entry setups using a strict, rule-based structure.
Long setup requirements:
- price must be above the selected EMA,
- the prior three candles must all be bearish,
- the combined bearish move across that sequence must reach the minimum pip threshold,
- the current candle must close bullish.
Short setup requirements:
- price must be below the selected EMA,
- the prior three candles must all be bullish,
- the combined bullish move across that sequence must reach the minimum pip threshold,
- the current candle must close bearish.
When a valid signal appears, the script can:
- place a BUY or SELL label,
- project a fixed stop loss in pips,
- project a take-profit level using the selected RR multiple,
- draw TP/SL boxes,
- draw an entry line,
- keep historical projected trades visible for later review,
- summarize projected outcomes in a summary table,
- summarize recent daily projected behavior in a daily PnL table.
The script also evaluates an internal optimizer in the background. That optimizer tests multiple EMA lengths and minimum-move combinations using the same reversal logic and displays the best-performing parameter combination inside the summary table over the shared analysis window.
HOW THE SCRIPT WORKS
1) EMA CONTEXT FILTER
The script uses a single EMA as a directional filter.
For long setups:
price must close above the selected EMA.
For short setups:
price must close below the selected EMA.
This does not turn the script into a pure trend-following system. Instead, it acts as a directional context filter so that reversal entries are only considered when price is positioned on the chosen side of the EMA.
In practical terms, the EMA filter is used to reduce context-free reversal signals. A bullish candle appearing after a bearish push is not enough by itself. The script still wants price to be trading above the selected EMA for longs, and below it for shorts.
2) THREE-CANDLE DIRECTIONAL MOVE MEASUREMENT
The script looks at the three candles immediately before the signal candle.
For a long setup:
those three candles must all be bearish.
For a short setup:
those three candles must all be bullish.
The script then measures the total directional move across that sequence in pip terms.
For long setups, it calculates the bearish move from the open of the first candle in the sequence to the close of the third bearish candle.
For short setups, it calculates the bullish move from the open of the first candle in the sequence to the close of the third bullish candle.
That move must be at least as large as the user-defined “Minimum 3-Candle Move (Pips)” setting.
This is one of the key parts of the script’s logic. It ensures that the setup is not based on three arbitrary candles, but on a directional push that is large enough to meet the minimum threshold selected by the user.
3) REVERSAL CANDLE CONFIRMATION
After the three-candle directional push is identified, the current candle must close in the opposite direction.
For long setups:
the current candle must close bullish.
For short setups:
the current candle must close bearish.
This requirement is intentionally strict. The script does not treat intrabar movement or unfinished candles as a valid signal. Signals are confirmed only when the bar closes.
This matters because a reversal that looks valid intrabar can disappear by the close. By waiting for close confirmation, the script reduces premature signal marking.
4) COOLDOWN FILTER
The script includes a cooldown period between signals.
Once a signal has fired, a new signal is not allowed until a defined number of bars has passed. In the current implementation, that cooldown is handled internally.
The purpose of this filter is to reduce signal clustering and prevent the chart from producing multiple nearby entries from the same short-term market behavior.
5) PIP-BASED RISK PROJECTION
When a valid signal appears, the script creates a projected trade framework using:
- entry at the signal close,
- a fixed stop-loss distance in pips,
- a take-profit level based on the selected risk/reward multiple.
This makes the projection logic standardized across signals.
For long setups:
- stop loss is placed below entry,
- take profit is placed above entry.
For short setups:
- stop loss is placed above entry,
- take profit is placed below entry.
The script can draw:
- entry line,
- TP box,
- SL box,
- BUY / SELL label,
- TP / SL hit labels.
This projection layer is not meant to claim that a setup will succeed. Its purpose is to reduce manual chart annotation and make the behavior of the signal model easier to inspect after the fact.
6) SAME-BAR TP/SL PRIORITY RULE
The script uses a strict and conservative rule when both target and stop would appear to be touched on the same bar after entry:
if TP and SL are both reached on the same bar, SL takes priority.
This is an important implementation detail because it directly affects projected statistics. It makes the review logic more conservative and avoids optimistic ambiguity when bar data alone cannot determine exact intrabar order.
7) SHARED ANALYSIS WINDOW
The script uses a shared analysis window internally.
Projected results and optimizer comparisons are evaluated over a rolling historical range rather than over the full unlimited chart history. This keeps the internal review process more controlled and makes the optimizer comparison consistent inside the same defined lookback window.
8) INTERNAL OPTIMIZER
One of the script’s more advanced components is the internal optimizer.
The optimizer runs in the background and is intentionally not exposed as a user-facing optimization panel. Instead of asking the user to manually test every variation, the script internally evaluates combinations of:
- 10 EMA values,
- 10 minimum-move thresholds.
That produces 100 total internal combinations.
Each combination uses the same reversal logic:
- EMA context,
- three-candle directional sequence,
- minimum move threshold,
- opposite close-confirmed candle,
- same stop-loss and RR structure.
The optimizer then tracks projected wins, losses, net R, gross profit, and gross loss for each combination, and the summary table displays the current best combination based on the script’s internal comparison rules.
This optimizer is not intended to present a “perfect setting”. It is a comparative review aid that helps the user understand how the same reversal framework behaves across multiple hidden parameter combinations.
WHAT MAKES THIS SCRIPT ORIGINAL
This script uses familiar technical-analysis building blocks such as:
- EMA filtering,
- candle-sequence logic,
- pip-based move measurement,
- fixed stop-loss projection,
- risk/reward mapping,
- performance review tables.
Those building blocks are not original by themselves.
The originality of this script is not in inventing a completely new primitive indicator. The originality lies in how these familiar elements are arranged into one tightly defined reversal-entry workflow:
EMA context
→ three-candle directional expansion
→ minimum pip-threshold validation
→ opposite candle close confirmation
→ fixed-risk trade projection
→ on-chart review
→ internal background parameter comparison
That full sequence is the main reason this script exists as its own publication.
It is not intended to be simply another EMA filter, another candlestick marker, another TP/SL visualizer, or another optimizer dashboard. It is specifically a short-term reversal-entry framework that combines directional context, expansion measurement, confirmation logic, risk mapping, and review in one workflow.
WHAT APPEARS ON THE CHART
Depending on settings, the chart may display:
- EMA line,
- BUY labels,
- SELL labels,
- signal-bar background highlights,
- entry line,
- TP box,
- SL box,
- TP hit labels,
- SL hit labels,
- summary table,
- daily PnL table.
Users who want a cleaner chart can disable some visual layers and keep only the ones most relevant to their workflow.
HOW TO USE THE SCRIPT
A practical workflow is:
1. Add the script to a standard candlestick chart.
2. Select the EMA length you want to use as directional context.
3. Set the minimum three-candle move threshold in pips.
4. Set the pip preset correctly for the instrument, or use manual pip size if needed.
5. Choose the stop-loss distance in pips.
6. Select the RR mode used for take-profit projection.
7. Wait for a valid long or short setup to appear.
8. Use the projected entry, stop, and target structure as a chart-analysis framework rather than as a blind instruction.
9. Review projected trade behavior in the summary table and daily table.
10. Compare your selected settings with the optimizer’s best internal combination, but do not treat the optimizer output as a guaranteed best future configuration.
This script is best understood as a structured decision-support and reversal-review tool, not as a self-sufficient trading system.
SETTINGS REFERENCE
Signal Settings
- EMA Length: sets the EMA used as the directional filter.
- Minimum 3-Candle Move (Pips): defines how large the directional three-candle move must be before a reversal candle can qualify.
Pip Settings
- Pip Preset: selects a predefined pip-size interpretation for common instrument types.
- Manual Pip Size: allows direct control when the selected symbol needs a custom pip conversion.
Risk Management
- Stop Loss (Pips): sets the fixed stop-loss distance in pip units.
- Take Profit RR: sets the projected target multiple relative to the stop-loss distance.
Visual Settings
- Show Buy/Sell Labels: shows or hides the signal labels.
- Highlight Signal Bars: adds background color to signal bars.
- Show Entry Line: shows or hides the projected entry line.
- Show TP/SL Hit Labels: controls whether projected outcomes are labeled.
- Show TP Hit Labels: controls TP hit labels specifically.
- Show SL Hit Labels: controls SL hit labels specifically.
Summary Table
- Show Summary Table: enables or disables the main review table.
- Table Position: sets the table location.
- Table Text Size: controls summary-table text size.
Daily PnL Table
- Show Daily PnL Table: enables or disables the daily review table.
- Daily Table Position: sets the daily table location.
- Daily Table Text Size: controls daily-table text size.
INTERNAL LOGIC NOTES
The current code also includes internal settings that are not exposed as user-facing optimization controls. These include:
- signal cooldown,
- shared analysis window,
- maximum stored closed-trade visuals,
- hidden optimizer activation,
- internal optimizer parameter combinations.
These internal elements exist to keep the public interface simpler while still allowing the script to maintain consistent review behavior in the background.
IMPORTANT PRACTICAL NOTE ON PIP SIZE
The script uses pip-based calculations for:
- the minimum three-candle move,
- stop-loss distance,
- take-profit distance,
- optimizer comparison logic.
Because of that, correct pip interpretation is extremely important.
If signals appear too frequent, too rare, too compressed, or visually inconsistent for the instrument being analyzed, the first setting to verify is Pip Preset or Manual Pip Size.
This matters especially for:
- gold symbols,
- 5-digit forex symbols,
- JPY forex pairs,
- indices and CFD-style instruments,
- custom broker symbols with unusual decimal formatting.
LIMITATIONS AND SHORTCOMINGS
This script has important limitations:
- It is a short-term reversal model, not a full market-structure engine.
- It only evaluates one specific reversal pattern based on a three-candle directional push and an opposite close-confirmed candle.
- It does not use support/resistance structure, volume profile, or discretionary context.
- It relies on pip conversion, so poor pip settings can distort signal behavior.
- The internal optimizer compares parameter combinations only inside the defined shared analysis window.
- The optimizer output is a comparative review tool, not a guarantee that the best historical combination will remain best in future market conditions.
- Projected results depend on the script’s own simplified outcome logic.
- If TP and SL are both touched on the same bar, SL is prioritized by design, which makes the logic more conservative but also affects outcome statistics.
- Historical projected trades and review metrics are chart-based review aids, not proof of tradable real-world execution.
- No reversal-entry model can remove all false signals or all regime-dependent behavior.
For those reasons, the script should be used as a structured analysis and review framework, not as a promise of future profitability.
WHO THIS SCRIPT MAY BE USEFUL FOR
This script may be useful for traders who:
- want a rules-based short-term reversal-entry model,
- want EMA-based directional context,
- want a minimum expansion threshold before a reversal is allowed,
- want fixed-risk trade projection on the chart,
- want review tables for projected outcomes,
- want background comparison of multiple EMA and move-threshold combinations.
It may be less suitable for traders who:
- want a broad trend-following system,
- want a discretionary support/resistance engine,
- want a multi-pattern candlestick library,
- want a fully automated strategy with no outside confirmation,
- want outcome metrics interpreted as live performance promises.
DISCLAIMER
This script is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
Market conditions change, historical behavior does not guarantee future results, and users should perform their own analysis, validation, and risk management before using the script in live decision-making. Indicator

Alpha Signal Engine [MarkitTick]💡 The Alpha Signal Engine is an advanced, multi-dimensional trend-following system designed to provide traders with highly filtered, high-probability market signals. At its core, it dynamically calculates a volatility-adjusted trailing band to determine the primary market direction. However, unlike traditional trend indicators that rely on a single data point, this engine passes every potential trend reversal through a rigorous, six-layer filtering mechanism. By requiring confluence across higher timeframe trends, momentum, volume, volatility regimes, and price action strength, it drastically reduces the noise and false signals inherent in choppy markets. It also features a built-in heads-up dashboard and fully formatted JSON webhook capabilities for automated trading integration.
✨ Originality and Utility
● A Dynamic, Adaptive Baseline
Standard trailing stop or trend indicators, such as the classic Supertrend, typically use a static multiplier against the Average True Range (ATR). The Alpha Signal Engine innovates by introducing a "Dynamic Factor." This factor continuously adapts the band's distance from price by factoring in the current baseline multiplier, the relative volatility (ATR normalized by price), and the immediate price change momentum. This allows the bands to tighten during periods of strong, directional momentum and widen during erratic volatility, providing a more responsive and intelligent trailing mechanism.
● The Six-Pillar Filtering Gateway
The true utility of this indicator lies in its modular filtering engine. Traders often have to clutter their charts with half a dozen indicators to confirm a setup. This script centralizes that logic. Users can selectively enable or disable filters based on their specific asset and trading style, turning the indicator into a customizable algorithmic engine. Whether you need volume confirmation, ADX trend strength, or simple RSI momentum, the script handles the complex boolean logic internally and only outputs a signal when your precise market conditions are met.
🔬 Methodology and Concepts
● Dynamic Factor Calculation
The indicator establishes its baseline trend using an upper and lower band. The distance of these bands from the median price is dictated by a dynamically calculated factor. This factor is the sum of a base value, a volatility component (ATR divided by Close, scaled by a user weight), and a price movement component (percentage change of the close, scaled by a user weight). This raw factor is then smoothed using a Simple Moving Average (SMA) to prevent erratic band shifts.
● Trend Determination
The trend direction flips when the closing price crosses the active dynamic band. If the price closes above the upper band, the trend shifts bullish, and the lower band becomes the active support. Conversely, closing below the lower band shifts the trend bearish, making the upper band the active resistance.
● The Filter Matrix
A signal is only generated when a trend flip aligns with all activated filters:
HTF Alignment: Uses the request context to pull the trend direction from a higher timeframe, ensuring you are not trading against the macro trend.
ADX Trending: Measures the Average Directional Index to ensure the market is in an active trending phase (above a defined threshold) rather than a sideways chop.
Volume Surge: Compares current volume against a Volume SMA. The current bar must exhibit a volume spike greater than the defined multiplier to confirm institutional participation.
RSI Momentum: A simple but effective gatekeeper requiring the Relative Strength Index to be above 50 for longs and below 50 for shorts.
ATR Volatility Regime: Compares the current ATR against a 50-period SMA of the ATR. It ensures the market is operating within a "normal" volatility ratio, preventing entries during extreme, unpredictable volatility spikes or dead, illiquid periods.
Candle Body Strength: Calculates the absolute size of the candle body (Open to Close) and mandates it must be larger than a specific fraction of the ATR, ensuring the signal candle has true directional conviction.
🎨 Visual Guide
● Chart Elements
Up Trend Line: Displayed as a solid, teal-colored line trailing below the price action during a bullish phase. It acts as dynamic support.
Down Trend Line: Displayed as a solid, bright pink/red line trailing above the price action during a bearish phase. It acts as dynamic resistance.
Trend Cloud (Fill): A colored gradient fill exists between the median price and the active trend line. A teal cloud visually represents bullish dominance, while a pink/red cloud represents bearish dominance.
Buy Signals: Indicated by small, teal "B" labels positioned below the signal candle.
Sell Signals: Indicated by small, pink/red "S" labels positioned above the signal candle.
● Filter Dashboard
Located in the top right corner of the chart, this HUD (Heads-Up Display) provides a real-time status check of your system.
The left column lists the available filters (HTF Align, ADX Trend, Vol Surge, RSI Gate, ATR Regime, Body Str).
The right column displays the current status of each filter.
A gray "OFF" indicator means the user has disabled the filter in the settings.
A green "ON" or "Aligned" text indicates the condition is currently met.
A red "Opposed" or unlit indicator means the condition is active but currently failing to meet the required criteria.
The bottom rows clearly state the current overarching trend direction and whether a signal is pending or waiting.
📖 How to Use
• Interpreting the System
To effectively use the Alpha Signal Engine, begin by observing the main trend lines and the color of the cloud. This provides your baseline bias. Do not take trades purely on the band flipping. Instead, rely on the explicit "B" and "S" labels.
• Signal Execution
When a "B" (Buy) or "S" (Sell) label appears, it means the price has successfully flipped the trend AND all user-activated filters in the dashboard are glowing green. This is your entry trigger. The active trend line (the teal line for longs, the pink line for shorts) serves as an ideal, dynamic stop-loss placement.
• Customizing the Engine
The system is designed to be tuned. If you are trading a highly liquid asset like major forex pairs, you may want to enable the ADX and HTF filters to catch long, sustained moves. If you are trading volatile crypto assets, enabling the Volume Surge and Candle Body filters can help you avoid fake-outs and trap wicks. Monitor the on-chart dashboard to see which filters are keeping you out of bad trades and adjust your settings accordingly.
⚙️ Inputs and Settings
• Supertrend Settings
ATR Length: The lookback period for calculating the Average True Range.
Base Factor: The starting multiplier for the dynamic bands.
Volatility & Price Change Weights: Determines how aggressively the bands react to sudden spikes in relative volatility and price momentum.
Factor Smoothing: Applies an SMA to the final dynamic multiplier to keep the bands stable.
• Filter Settings
Enable HTF Alignment: Toggle and define the higher timeframe (e.g., Daily) to align with.
ADX Settings: Toggle the filter, define the lookback length, and set the minimum trend strength threshold (default is 20).
Volume Settings: Toggle the filter, define the Volume MA length, and set the multiplier required to classify as a "surge."
RSI Settings: Toggle the filter and set the RSI lookback length.
ATR Regime Settings: Define the minimum and maximum acceptable ratios of current ATR versus historical ATR.
Candle Body Settings: Define the minimum required size of the candle body as a fraction of the current ATR.
• Webhook Action Names
These text inputs allow you to define specific payload strings (e.g., "long", "closeshort") that the indicator will output via JSON alerts, perfectly formatting the data for third-party automation services like 3Commas or PineConnector.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The Alpha Signal Engine is grounded in several well-documented tenets of quantitative financial analysis and statistical market theory.
● Volatility-Adjusted Trailing Stops
The foundation of the indicator relies on the Average True Range (ATR), introduced by J. Welles Wilder Jr. The ATR is a measure of the degree of price volatility. By tying the trailing stop (the dynamic band) to the ATR, the system acknowledges the statistical reality of market variance. The innovation here is the dynamic multiplier. By adjusting the distance based on the normalized rate of change (momentum), the script attempts to solve the lagging nature of fixed-multiplier trailing stops, utilizing principles found in adaptive moving averages (like Kaufman's AMA), where sensitivity increases alongside directional conviction.
● Multi-Dimensional Confluence Theory
The filtering engine operates on the academic principle of conditional probability and confluence. In market microstructure, no single indicator holds a permanent statistical edge.
The HTF filter is rooted in Dow Theory, prioritizing the primary trend over secondary reactions.
The ADX filter utilizes Wilder's Directional Movement Index to mathematically separate trending environments from mean-reverting environments, applying a statistical threshold to directional strength.
The Volume Surge filter relies on the Volume Price Trend concepts, positing that significant price movements must be sponsored by outsized volume to validate institutional participation and avoid anomalous low-liquidity spikes.
The ATR Regime filter applies mean-reverting principles to volatility itself (volatility clustering), ensuring that entries are only taken when the variance of the asset is within historically "normal" parameters, avoiding the fat tails of extreme market shocks.
By chaining these disparate mathematical models (trend, momentum, volume, volatility) via Boolean logic, the system mathematically reduces the frequency of trades while theoretically increasing the probability of the remaining sample size.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

ORB Pro Suite v6ORB Pro Suite v6 — Multi-Session + HTF ORB Build
ORB Pro Suite v6 is an advanced Opening Range Breakout (ORB) tool designed for traders who want clarity, structure, and adaptability across NY, London, and Asia sessions — without changing the core ORB logic that works.
This update expands the original ORB Pro Suite to support overnight markets and multi-timeframe workflows, while keeping the strategy behavior consistent and familiar.
✅ Multi-Session Presets
Choose from built-in session presets:
NY AM (RTH) — original behavior (unchanged)
London
Asia
Custom
Each preset aligns the ORB window with the selected session and pairs seamlessly with session-appropriate filters.
✅ ORB Build Mode
You now have two ways to build your ORB:
1️⃣ Time Window (Classic ORB)
Uses session start/end times
Identical to previous versions
2️⃣ HTF Candle Count (Advanced)
Build the ORB from 5m / 15m / 30m / 60m candles
Works on any chart timeframe
Ideal for traders who want ORB consistency across TFs
Example:
Build a 15-minute ORB from 1× 15m candle, even while trading on a 5m chart.
✅ Session Profile Defaults
ORB Pro Suite introduces Session Profiles that automatically tune filters for different market conditions — without changing the strategy logic.
Profiles include:
NY (Default)
London (Breakout)
Asia (Slow Session)
Custom
You can toggle Profile Defaults ON or OFF at any time.
🧠 Core ORB Logic (Unchanged)
Original ORB framework:
Opening range high/low
Breakout confirmation
Optional retest logic
Golden Pocket (0.5–0.618) validation
Local + higher-timeframe trend filters
Cooldown protection
Visual risk/reward mapping
If you traded NY with earlier versions, nothing has changed.
⚙️ Recommended Starting Settings
For most users:
ORB Build Mode: Time Window
Session Profile: Auto
Strictness: Balanced
Advanced users:
Enable HTF Candle Count
Select desired ORB TF (5m–60m)
Adjust candle count to match your style
All inputs remain fully customizable.
📊 Designed For
Futures (ES, NQ, YM, RTY)
Forex pairs
Gold & major indices
Intraday price-action traders
Session-based trading workflows
⚠️ Disclaimer
This indicator is for educational and informational purposes only.
It does not constitute financial advice or trade recommendations.
Trading involves risk. Always manage risk appropriately and trade responsibly. Indicator

Sessions + Prev + PDH/PDL + Killzones SuiteDescription
This indicator is designed to provide time-based and price-based market context by combining session ranges with commonly referenced prior levels into a single, unified framework.
The purpose of the script is contextual analysis, not signal generation.
What the script does
The script tracks and plots the following elements directly on the price chart:
• High and Low ranges for multiple trading sessions (Asia, London, New York morning, and New York afternoon)
• High and Low levels from the previous occurrence of each session
• Prior Day High (PDH) and Prior Day Low (PDL)
• Optional session “killzone” boxes that visually mark active session time windows
All calculations are performed using time-based session boundaries and price extrema (high/low) within those windows.
Why these components are combined
Sessions, previous session levels, and prior day levels are frequently analyzed together by discretionary traders because they represent:
• Where liquidity formed earlier in the day or previous day
• Where price previously paused, expanded, or reversed
• Natural reference points for intraday structure and range analysis
Instead of plotting these elements using multiple separate scripts, this indicator integrates them into one consistent framework so that all levels are calculated using the same timezone, session logic, and display rules.
This avoids mismatched session times, duplicate levels, or conflicting calculations that can occur when multiple scripts are used simultaneously.
How the script works (high-level)
• Each session is defined using user-selectable session times and timezone
• During a session, the script tracks the highest and lowest traded price
• When a session ends, its final high and low are stored as the “previous session” levels
• PDH and PDL are calculated using the completed trading day
• Lines and labels are anchored to the bars where levels are formed, rather than extending indefinitely
• Optional display filters allow users to show only the current trading day to reduce chart clutter
No forward-looking logic, prediction, alerts, or trade execution logic is included.
How to use it
This script is intended to be used as a visual reference tool to help traders:
• Identify session boundaries and intraday ranges
• Observe how price reacts near prior session highs and lows
• Assess where price is trading relative to PDH and PDL
• Maintain consistent session timing across different timezones
The script does not provide trade entries, exits, alerts, or performance claims.
Important notes
• This indicator does not generate buy or sell signals
• It does not predict future price movement
• It is not a trading strategy
• All decisions remain the responsibility of the user
Disclaimer
This script is provided for educational and informational purposes only.
It does not constitute financial advice. Trading involves risk, and users should apply appropriate risk management and personal judgment when using any technical tool. Indicator

Kalman Volume Trend [BigBeluga]🔵 OVERVIEW
Kalman Volume Trend is an advanced trend-following system that combines the predictive power of a Kalman Filter with real-time volume delta analysis. Unlike standard moving averages that suffer from significant lag, the Kalman Filter uses a recursive mathematical algorithm to estimate the "true" trend by filtering out market noise.
The indicator not only identifies directional regimes but also visualizes the intensity of buying and selling pressure directly on the trend line, providing a multi-dimensional view of market conviction.
🔵 CONCEPT
Kalman Filter Logic — A state-space model that predicts price movement and then corrects itself based on new data, resulting in a smoother yet more responsive trend line than traditional EMAs.
Adaptive ATR Bands — The trend direction is determined by price breaking through volatility-adjusted bands, reducing whipsaws in sideways markets.
Volume-Weighted Trend Lines — The indicator plots "Volume Bars" extending from the trend line, where the length and color represent the relative strength of the volume delta.
Cumulative Trend Statistics — It tracks the total buy volume, sell volume, and net delta from the exact moment a new trend begins.
🔵 HOW IT WORKS (IN-DEPTH)
1️⃣ The Kalman Filtering Process
The script utilizes two primary parameters: Process Noise (Q) and Measurement Noise (R) .
It calculates a "State Estimate" (the trend) by balancing its previous prediction against the current price.
If the price is "jittery" (high R), the filter smooths the line; if the trend is moving decisively (low Q), it tracks the price more aggressively.
2️⃣ Trend Direction & Volatility Bands
Two bands are projected around the Kalman line based on a multiplier of the Average True Range (ATR) .
A Bullish trend is triggered when price closes above the upper band.
A Bearish trend is triggered when price closes below the lower band.
Once a trend is established, the opposite band acts as the trailing "Trend Line" to provide a clear buffer for price fluctuations.
3️⃣ Volume Delta Visualization
Small vertical candles ("Volume Bars") are plotted along the trend line.
These bars represent the Normalized Volume Delta (Close vs. Open and Volume intensity).
Large bars indicate high-conviction participation, while small bars suggest waning interest or consolidation.
4️⃣ Extreme Volume & Cumulative Dashboard
When volume exceeds 1.5x its recent average, an "X" label appears on the chart to mark an Exhaustion or Ignition point.
A bottom-right dashboard displays a vertical histogram showing the balance of power (BUY vs. SELL vs. DELTA) for the current trend only .
🔵 KEY FEATURES
Recursive Kalman Algorithm: High-accuracy trend tracking with minimal lag.
Integrated Volume Profiling: See volume delta without needing a separate sub-window.
Dynamic Trend Dashboard: Automatically resets at every trend flip to show fresh volume stats.
Volatility-Aware: Uses 200-period ATR to ensure bands adapt to changing market conditions.
Volume Extreme Alerts: Identifies high-volume spikes that often precede trend reversals.
🔵 DASHBOARD METRICS
BUY — Total volume accumulated on bullish candles since the trend started.
SELL — Total volume accumulated on bearish candles since the trend started.
DELTA — The net difference between buying and selling pressure.
TOTAL VOLUME — The total "fuel" spent during the current directional regime.
🔵 HOW TO USE
Riding the Trend: Stay in the trade as long as the Kalman line color remains consistent.
Spotting Weakness: If the Kalman line is Bullish (Blue) but the Volume Bars are consistently negative or shrinking, the trend may be losing steam.
High-Volume Breakouts: Look for the "X" labels at the start of a trend shift; this confirms institutional participation in the new direction.
Dashboard Confirmation: Use the vertical histogram to confirm if the buyers or sellers are truly in control during a pullback to the trend line.
🔵 CONCLUSION
Kalman Volume Trend offers a sophisticated approach to trend analysis by merging high-level signal processing with raw volume data. By focusing on "clean" price data and weighting it with volume delta, it helps traders filter out market noise and focus on high-conviction movements. Indicator

StealthTrail SuperTrend ML Pro [WillyAlgoTrader]🤖 StealthTrail SuperTrend ML Pro is an overlay indicator that builds on the adaptive SuperTrend core from StealthTrail and adds three layers of intelligence: an instrument profiling engine that classifies the market into Trending, Ranging, or Volatile regimes and auto-tunes all SuperTrend parameters accordingly; a 13-feature machine learning scoring system that evaluates every candidate signal on momentum, trend, volatility, structure, volume, HTF alignment, divergence, session quality, and regime context — producing a 0–100 confidence score; and a self-learning mechanism that tracks signal outcomes over time and dynamically adjusts the confidence gate to optimize signal quality. The result is a SuperTrend that configures itself, scores its own signals, and learns from its results.
🧩 WHY THESE COMPONENTS WORK TOGETHER
A standard SuperTrend has fixed parameters that work well in one market regime and fail in another. Manually tuning ATR length, multiplier, and filters for each instrument and timeframe is time-consuming and becomes outdated when conditions change.
This indicator solves the problem through a three-layer intelligence stack:
Layer 1 — Regime classification → Auto-tuning: The instrument profiler continuously measures efficiency ratio (trend strength), autocorrelation (serial dependence), volatility clustering, and normalized volatility — classifying the market into TRENDING, RANGING, or VOLATILE. Each regime produces different optimal SuperTrend parameters. The auto-tuner interpolates ATR length, multiplier, cushion, cooldown, and RSI threshold using regime-weighted blending — so the SuperTrend self-configures for current conditions.
Layer 2 — ML signal scoring: Even with auto-tuned parameters, not every SuperTrend flip is a good trade. The 13-feature ML engine evaluates each flip against momentum, volume, trend efficiency, volatility shock, band distance, MACD, price structure, regime confidence, MTF alignment, ADX strength, RSI divergence, volume profile zone, and session quality. Each feature is normalized to 0–100, weighted, passed through a sigmoid function, and combined into a single confidence score. Signals below the confidence gate are rejected — they pass the classic SuperTrend logic but fail the multi-dimensional quality check.
Layer 3 — Self-learning gate: The ML confidence gate itself adapts over time. The system tracks each signal's outcome (win/loss evaluated after N bars using the ATR at entry for fair comparison). When the win rate exceeds 70%, the gate lowers (allowing more signals). When it drops below 50%, the gate raises (becoming stricter). A decay factor prevents old signals from dominating. This creates a feedback loop: the indicator learns which confidence level produces profitable signals on this specific instrument and timeframe.
Without auto-tuning, the SuperTrend uses static parameters. Without ML scoring, good and bad flips are treated equally. Without self-learning, the confidence gate is a fixed guess. Each layer eliminates a specific category of bad signals that the previous layer can't catch.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Instrument profiling and regime classification.
The profiler computes four metrics over a configurable lookback (default 100 bars):
— 📐 Efficiency Ratio : ER = |close − close | / sum(|close − close |, N). Measures net directional movement vs total path. ER → 1.0 = pure trend, ER → 0.0 = pure chop.
— 🔄 Autocorrelation : correlation between return and return over a sliding window. High positive autocorrelation = trending persistence. Near-zero = random. Negative = mean-reverting.
— 📏 Volatility Clustering : ratio of short-term ATR (20 bars) to long-term ATR (lookback). Values > 1.0 indicate a volatility spike (breakout or crash). Values < 1.0 indicate compression.
— 📈 Normalized Volatility : ATR / close × 100. Measures absolute volatility as percentage of price — allows cross-instrument comparison.
These are smoothed with EMA and combined into three regime scores:
— trendScore = ER × regimeSensitivity
— rangeScore = (1 − ER) × (1 − |autocorrelation|) × regimeSensitivity
— volatScore = clamp(volClustering − 1, 0, 2) × regimeSensitivity
The highest score determines the regime: TRENDING, RANGING, or VOLATILE. Regime confidence = highest_score / total_scores × 100%.
2️⃣ Regime-weighted auto-tuning (6 parameters).
Each SuperTrend parameter is computed as a weighted blend of regime-optimal values:
effectiveParam = wT × trendOptimal + wR × rangeOptimal + wV × volatileOptimal
Where wT, wR, wV are the normalized regime weights. The parameters and their regime-optimal ranges:
— ATR Length: Trending=10, Ranging=16, Volatile=21 (further scaled by normalized volatility)
— Base Multiplier: Trending=2.0, Ranging=3.2, Volatile=3.8 (scaled by normalized vol)
— Flip Cushion: Trending=0.05, Ranging=0.25, Volatile=0.15
— Signal Cooldown: Trending=2, Ranging=5, Volatile=3
— RSI Threshold: Trending=40, Ranging=52, Volatile=45
— RSI Length: derived as ATR Length × 0.9
— Adaptive Smoothing: ATR Length × 4.0
This means in a trending regime, the SuperTrend uses shorter ATR, lower multiplier (tighter bands), minimal cushion, and permissive RSI — catching trends early. In a ranging regime: longer ATR, wider multiplier, large cushion, strict RSI — avoiding chop. In volatile conditions: intermediate settings with wider bands to accommodate spikes.
3️⃣ 13-feature ML scoring engine.
Each feature is normalized to 0–100, multiplied by its weight, summed, normalized by total weight, and passed through a sigmoid function to produce the final 0–100 confidence score.
Features and their weights:
— 💪 F1: Momentum (RSI alignment with trend) — w=0.15
— 📈 F2: Volume Surge (volume / SMA ratio) — w=0.08
— 📐 F3: Trend Efficiency (ER × 100) — w=0.15
— ⚡ F4: Volatility Shock (inverted vol clustering) — w=−0.08 (negative = penalizes vol spikes)
— 📏 F5: Band Distance (sigmoid of close-to-band ATR distance) — w=0.10
— 📊 F6: MACD (normalized histogram vs ATR) — w=0.08
— 🏗️ F7: Price Structure (HH/HL for bull, LL/LH for bear over 10 bars) — w=0.08
— 🧠 F8: Regime Confidence (% confidence in current regime) — w=0.04
— 🌐 F9: MTF Confluence (aligned with HTF = 100, not = 0) — w=0.12
— 💪 F10: ADX Strength (ADX × 2.5, capped at 100) — w=0.10
— 🔀 F11: RSI Divergence (aligned div = 100, counter div = 10) — w=0.08
— 📊 F12: Volume Profile Zone (proximity to highest-volume bar) — w=0.06
— 🕐 F13: Session Quality (hour-based scoring for optimal trading sessions) — w=0.04
The raw weighted sum is normalized, then passed through: mlScore = 100 / (1 + exp(−0.08 × (normalizedScore − 50))). This sigmoid compresses extreme values and centers the output around 50.
All 13 weights plus the bias term are user-configurable — you can adjust how much each factor contributes. Negative weights penalize a factor (e.g., W4 = −0.08 means high volatility shock reduces the score).
4️⃣ Self-learning confidence gate.
The system maintains 5 pending signal slots. Each stores the entry price, direction, bar index, and ATR at entry. After the evaluation horizon (default 15 bars), the outcome is assessed:
win = (close − entryPrice) × direction > 0.5 × entryATR (profitable by at least half an ATR, using the ATR at entry time — not current ATR — for fair comparison)
A decay factor (0.98) is applied to historical totals before adding new results, preventing stale data from dominating. When total tracked signals ≥ 8:
— Win rate > 70% → gate decreases by 1.5 (more permissive)
— Win rate < 50% → gate increases by 1.5 (more restrictive)
— Gate is clamped to
The dashboard shows the current gate value, whether it's auto-adjusted, and the tracked win rate with sample size.
5️⃣ Multi-timeframe confluence with auto-HTF selection.
The indicator automatically selects the appropriate higher timeframe based on your current TF: 1M→15M, 5M→30M, 15M→1H, 1H→4H, 4H→D, D→W. Or you can manually specify the HTF.
Three strictness levels:
— Loose: MTF misalignment adds negative ML score but doesn't block
— Moderate: MTF misalignment reduces signal quality
— Strict: MTF misalignment hard-blocks the signal entirely
HTF trend is determined by EMA(20) vs EMA(50) on the higher timeframe.
6️⃣ Adaptive SuperTrend core (from StealthTrail).
The band calculation uses pre-computed interpolated ATR values (ATR bank at 9 fixed periods with lerp interpolation) for smooth adaptation to any auto-tuned ATR length. Same mechanics as StealthTrail: adaptive multiplier (ATR / SMA ratio), band ratcheting, flip cushion, and cooldown — but now all parameters are regime-driven.
7️⃣ Three-mode trailing TP/SL system.
Three SL modes: ATR (entry ± mult × ATR), Band (SuperTrend band as SL), Fixed % (percentage from entry).
Three trailing modes:
— ATR : trail at fixed ATR distance from price — simple, consistent
— Band : use the SuperTrend band itself as trailing stop — structurally anchored
— ATR → Band (hybrid) : start with tight ATR trail, switch to band when it catches up — best of both
The trail only ratchets in the profit direction (never moves away from price). TP1/TP2/TP3 hit markers (✓) appear on the chart. On TP3 or SL hit, the trade closes and lines are removed.
8️⃣ RSI divergence detection.
Scans for bullish divergence (price lower low, RSI higher low, RSI < 40) and bearish divergence (price higher high, RSI lower high, RSI > 60). Divergences aligned with the signal direction boost the ML score (F11 = 100). Counter-divergences penalize it (F11 = 10). Optional visualization as dots on the chart.
9️⃣ Volume profile zone proximity.
Tracks the highest-volume bar in the last 50 bars. Proximity to this bar's price level is scored: within 1.5× ATR = 100 (near institutional activity), further = proportionally lower. Signals near high-volume zones tend to have more follow-through.
🔟 Session quality scoring.
For intraday timeframes, each hour receives a quality score based on typical institutional activity: London/NY overlap (13–17 UTC) = 100, European session (8–12) = 80, US afternoon (18–20) = 70, Asian session (0–7) = 30. An optional kill zone filter suppresses all signals during specified hours.
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Instrument profiling: ER, autocorrelation, vol clustering, normalized vol → EMA-smoothed → regime classification (TRENDING / RANGING / VOLATILE) with confidence %.
Step 2 — Auto-tuning: Regime weights blend optimal parameters for ATR length, multiplier, cushion, cooldown, RSI threshold/length.
Step 3 — SuperTrend calculation: Interpolated ATR from pre-computed bank → adaptive multiplier (ATR/SMA ratio) → upper/lower bands → ratcheting → flip detection with cushion + cooldown.
Step 4 — Classic filters: Momentum (RSI), volume, session, MTF hard-block (if strict).
Step 5 — ML feature extraction: 13 features normalized to 0–100 from current market state.
Step 6 — ML scoring: Weighted sum → weight normalization → sigmoid → 0–100 confidence score.
Step 7 — Signal decision: Classic filters pass AND (ML disabled OR mlScore ≥ gate) → confirmed signal.
Step 8 — Self-learning: Signal stored in pending slot → evaluated after horizon bars → win rate updated → gate adjusted.
Step 9 — TP/SL placement: SL from band/ATR/fixed% → TPs as ATR multiples → trailing stop ratchets per mode.
📖 HOW TO USE
🎯 Quick start:
1. Add the indicator — Auto-Tune is ON by default, parameters self-configure
2. The SuperTrend band and Long/Short labels appear
3. Dashboard shows: trend, strength, regime, ML score, gate, win rate, TP/SL status
4. Enable ML Filter for quality scoring (off by default — enable after reviewing signal quality)
5. Self-Learning auto-adjusts the gate over time
👁️ Reading the chart:
— 🟢 Green band + "Long" label = confirmed bullish signal
— 🔴 Red band + "Short" label = confirmed bearish signal
— ⚫ Gray dot = classic filter blocked the flip
— 🟡 Yellow triangle = ML rejected the signal (score below gate)
— 🟢 Green dot below bar = bullish RSI divergence
— 🔴 Red dot above bar = bearish RSI divergence
— 📈 Regime badge = current market classification (📈 TRENDING / 📊 RANGING / ⚡ VOLATILE)
— 🟢 Green dashed = TP1/TP2/TP3, 🔴 Red dashed = SL, 🔵 Blue dotted = entry
— "TP1 ✓" / "SL ✗" labels = outcome markers
📊 Dashboard sections:
— Main: trend, signal, strength, ADX, HTF alignment
— 🤖 ML Engine: ML score, confidence gate (fixed or auto), win rate with sample size
— 🎯 Position: status (LONG/SHORT/FLAT), entry, SL (with trail mode icon), TP levels (✓ for hit), R:R ratio
— 🧠 Regime: classification + confidence %
🔧 Tuning guide:
— Start simple: Auto-Tune ON, ML OFF — let the regime engine handle parameters
— Add ML: Enable ML Filter after 50+ signals to see which score level produces winners
— Enable Self-Learning: after 100+ bars of ML being active — let the gate auto-calibrate
— Adjust weights: if you know your market (e.g., volume is unreliable on forex → set W2 to 0)
— Strict MTF: for higher-timeframe alignment — reduces signals, increases quality
— Trail Mode: Band for trend-following, ATR for scalping, ATR→Band for hybrid
⚙️ KEY SETTINGS REFERENCE
⚙️ Main:
— Auto-Tune (default On): regime-driven parameter self-configuration
— ATR Length / Base Multiplier : manual overrides when auto-tune is off
🧠 Adaptive Engine:
— Profiling Lookback (default 100): bars for regime classification
— Regime Sensitivity (default 1.0): scaling factor for regime scores
📐 Multi-Timeframe:
— MTF Confluence (default On): Auto/Manual HTF selection
— Strictness (default Moderate): Loose / Moderate / Strict
🤖 ML Signal Filter:
— Enable ML (default Off): activate 13-feature scoring
— Confidence Gate (default 21): minimum ML score to pass
— Self-Learning (default On): auto-adjust gate from tracked outcomes
— Evaluation Horizon (default 15 bars): outcome assessment window
— 13 individual weights + bias : fully configurable feature importance
🔍 Filters:
— Flip Cushion, Cooldown, RSI Momentum, Volume, Session Kill Zone
🎯 TP/SL:
— SL Mode (default Band): ATR / Band / Fixed %
— Trail Mode (default Band): ATR / Band / ATR → Band
— TP Levels (1–3): ATR multipliers (default 1.5 / 2.5 / 4.0)
🔔 Alerts
— 🟢 LONG / 🔴 SHORT — ticker, price, TF, band, ML score, ADX, HTF, SL, TP1, regime
— 🎯 TP1 / TP2 / TP3 HIT — trade progress
— 🛑 SL HIT — stopped out
All support plain text and JSON webhook format. Bar-close confirmed.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals require barstate.isconfirmed. The confirmed trend direction is stored separately from the real-time calculation — signals only fire on closed bars. HTF data uses lookahead_off. A warmup period (max of profiling lookback and 55 bars) prevents signals during insufficient data.
— 🤖 The ML scoring is not machine learning in the neural network sense . It's a weighted linear model with sigmoid activation — a logistic regression analog. The 13 features are hand-crafted from market microstructure, and the weights are configurable by the user. There is no gradient descent, backpropagation, or training phase. The "self-learning" adjusts only the confidence gate threshold, not the feature weights.
— 📐 Auto-tuning produces different parameters on every bar as the regime shifts. The ATR length and multiplier change continuously — this is by design. If you prefer fixed parameters, disable Auto-Tune.
— ⚖️ The self-learning gate requires at least 8 tracked signals before it begins adjusting. With the decay factor (0.98), the effective sample is weighted toward recent signals. The gate moves slowly (±1.5 per adjustment) and is clamped to .
— 📊 Win rate evaluation uses ATR at entry time , not current ATR. A signal is a "win" if price moves > 0.5× entry ATR in the signal direction within the evaluation horizon. This prevents volatile periods from inflating win counts.
— 🔄 The pre-computed ATR bank (9 fixed periods with lerp interpolation) is a performance optimization that allows smooth ATR adaptation to any auto-tuned length without calling ta.atr() dynamically — which Pine Script doesn't support with variable-length arguments.
— 📏 Volume Profile Zone tracks the single highest-volume bar in the last 50 bars, not a full volume profile. It decays after 50 bars with no new volume peak.
— 🕐 Session scoring uses UTC-based hours. On daily or higher timeframes, session quality defaults to 50 (neutral) as intraday session distinctions don't apply.
— 🛠️ This is a signal scoring and analysis tool , not an automated trading bot. It classifies regimes, scores signals, tracks outcomes, and manages TP/SL — trade decisions remain yours.
— 🌐 Works on all markets and timeframes. Volume features auto-adapt to instruments without volume data. Indicator

Trend Resonance Oscillator [JOAT]Trend Resonance Oscillator
Introduction
The Trend Resonance Oscillator is an open-source non-overlay indicator that measures multi-timeframe trend alignment and produces a composite resonance score. It fetches trend data from up to five configurable timeframes, calculates whether they agree on direction, and outputs an oscillator that reflects the degree of alignment. When most or all timeframes point the same way, the oscillator reaches extreme values and the indicator declares a state of "resonance" — a condition where directional conviction is high across the time spectrum. It also includes quantum-inspired coherence scoring, harmonic pattern detection, and momentum alignment visualization.
Built with Pine Script v6, the indicator uses custom types for trend state, resonance state, timeframe data, quantum state, and harmonic patterns.
Why This Indicator Exists
A trade taken in the direction of the 5-minute trend may fail if the 1-hour and daily trends disagree. Multi-timeframe alignment is one of the most reliable filters for trade quality, but checking multiple timeframes manually is tedious and subjective. This indicator automates that process by:
Simultaneous MTF analysis: Fetches close, EMA, and rate-of-change data from five configurable timeframes in a single indicator
Alignment scoring: Quantifies how many timeframes agree on direction and how strong each trend is, producing a single composite score
Resonance detection: Identifies periods when alignment exceeds a configurable threshold, signaling high-conviction directional conditions
Confluence signals: Generates labeled signals when a minimum number of timeframes align, providing clear entry confirmation
Coherence and entanglement metrics: Measures the consistency and correlation between timeframe trends, adding depth beyond simple directional agreement
Core Components Explained
1. Multi-Timeframe Trend Detection
For each of the five timeframes (default: 5m, 15m, 1H, 4H, Daily), the indicator fetches close price, EMA, and rate-of-change using `request.security()` with proper lookahead settings to avoid repainting:
float _tf1Close = request.security(syminfo.tickerid, tf1, close, barmerge.gaps_off, barmerge.lookahead_off)
float _tf1EMA = request.security(syminfo.tickerid, tf1, _globalEMA, barmerge.gaps_off, barmerge.lookahead_off)
Each timeframe's trend is classified as bullish, bearish, or flat based on the percentage difference between close and EMA relative to a configurable threshold (default 0.5%). The trend strength is calculated as the magnitude of that percentage difference, capped at 100.
2. Alignment Score Calculation
The alignment score counts how many timeframes are bullish versus bearish, then produces a normalized score from -100 (all bearish) to +100 (all bullish):
+100: All active timeframes are bullish — maximum bullish alignment
+60: Majority bullish with some neutral — strong bullish bias
0: Equal bullish and bearish — no directional consensus
-60: Majority bearish — strong bearish bias
-100: All bearish — maximum bearish alignment
The alignment score is weighted by the average trend strength across all active timeframes, so a +80 alignment with strong individual trends produces a higher oscillator value than +80 alignment with weak trends.
3. Resonance Detection
Resonance occurs when the ratio of aligned timeframes to total active timeframes exceeds the resonance threshold (default 0.7) and the aligned count meets the minimum confluence requirement (default 4 timeframes). During resonance, the background is tinted to indicate the directional bias, and a duration counter tracks how long the resonance state has persisted.
Sustained resonance (high duration) suggests a strong, established trend. New resonance (low duration) may signal the beginning of a directional move. The dashboard displays the resonance score, aligned count, and duration for quick assessment.
The Trend Resonance Oscillator panel showing the main oscillator line with gradient coloring, MTF trend bars at the bottom showing individual timeframe directions, resonance background shading during a strong bullish alignment, and confluence/resonance signal labels
4. Quantum Coherence and Entanglement
The indicator calculates two additional metrics inspired by quantum physics concepts (used as analytical metaphors, not literal physics):
Coherence: The ratio of aligned timeframes to total timeframes. A coherence of 1.0 means perfect agreement. When coherence exceeds the threshold (default 0.8), the indicator enters a "coherent" state, which is visualized as a subtle wave pattern on the oscillator.
Entanglement: Measures the pairwise correlation between all timeframe trends. For each pair of timeframes, if they agree on direction, the entanglement score increases; if they disagree, it decreases. High entanglement means timeframes are moving in lockstep.
for i = 0 to 3
for j = i + 1 to 4
if trend_i != 0 and trend_j != 0
correlation = trend_i == trend_j ? 1.0 : -1.0
entanglement += correlation
pairs += 1
When the quantum superposition score (combination of coherence and entanglement) exceeds a threshold, a "quantum collapse" signal fires, indicating that all timeframes have converged to a single directional state.
5. Harmonic Pattern Detection
The harmonic module detects cyclical patterns in the resonance data. When resonance is sustained for more than 10 bars, the pattern is classified as a sine wave (smooth, established trend). When resonance is new or intermittent, it is classified as a square wave (choppy, emerging trend). The harmonic wave is plotted as a subtle overlay on the oscillator.
6. Confluence and Signal System
The indicator generates three tiers of signals, with higher tiers taking priority:
CONF (Confluence): Minimum timeframes aligned with alignment score >= 70
RES (Resonance): Strong resonance with score >= 80
QTM (Quantum): Quantum collapse — all metrics converge to a single state
Each signal fires only on its first bar (not continuously), preventing chart clutter. Signals are color-coded with gradient intensity based on the underlying strength.
Visual Elements
Main Oscillator: Smoothed alignment score plotted as a line with gradient coloring from bearish to bullish
Reference Levels: Lines at 0 (neutral), +/-50 (moderate), +/-80 (strong)
MTF Trend Bars: Five colored column bars at the bottom of the panel, each representing one timeframe's trend direction and strength
Resonance Background: Tinted background during resonance states
Quantum Superposition Line: Step-line showing the quantum composite score
Coherence Wave: Subtle area plot showing coherence oscillation
Harmonic Pattern: Sine/square wave overlay during active resonance
Momentum Alignment: Area histogram showing aggregate momentum across timeframes
Convergence/Divergence: Histogram showing agreement between momentum and oscillator
Signal Labels: CONF, RES, and QTM labels at signal points
Entanglement Lines: Visual connections when timeframe entanglement is high
Dashboard: Comprehensive table showing each timeframe's trend, strength, and the aggregate resonance metrics
Input Parameters
Multi-Timeframe Settings:
Toggle and configure each of 5 timeframes (default: 5m, 15m, 1H, 4H, Daily)
Trend Detection:
Trend EMA Length (default 20), Momentum Length (default 14), Trend Threshold (default 0.5%)
Resonance Settings:
Resonance Lookback (default 20), Resonance Threshold (default 0.7)
Show Resonance Zones toggle
Alignment Scoring:
Min TFs for Confluence (default 4)
Show Alignment Score and Confluence Signals
Advanced Resonance:
Quantum Resonance, Coherence Waves, Entanglement Lines, Harmonic Patterns toggles
Coherence Threshold (default 0.8), Harmonic Period (default 8)
Visual Settings:
Show Oscillator, MTF Bars, Dashboard, Glow Effects, Waveform
Color Scheme: Quantum, Classic, Professional, Neon
How to Use This Indicator
Step 1: Check the MTF trend bars at the bottom of the panel. If all five bars are the same color (all bullish or all bearish), you have strong multi-timeframe alignment.
Step 2: Read the oscillator value. Values above +50 indicate moderate bullish alignment; above +80 indicates strong alignment. The inverse applies for bearish readings.
Step 3: Watch for resonance background shading. When the background turns bullish or bearish, the indicator has detected sustained multi-timeframe agreement — this is the highest-conviction environment for directional trades.
Step 4: Use CONF, RES, and QTM signals as entry confirmations. A CONF signal in the direction of the oscillator provides moderate confirmation. A RES or QTM signal provides strong confirmation.
Step 5: Monitor the momentum alignment area. When momentum and the oscillator agree, the move has both directional alignment and momentum behind it. When they diverge, the move may be losing steam.
Dashboard showing all five timeframes with their individual trend states, the aggregate resonance score, coherence level, entanglement reading, and harmonic pattern status
Indicator Limitations
Multi-timeframe data requires sufficient history on all selected timeframes. On newly listed instruments, higher timeframe data may be limited.
The indicator uses `request.security()` with `barmerge.lookahead_off` to prevent repainting, but the inherent delay of higher timeframe data means signals reflect confirmed (not real-time) higher timeframe states.
Alignment does not guarantee profitable trades. All timeframes can align in one direction and then reverse simultaneously.
The quantum and harmonic features are analytical metaphors that provide useful metrics, not literal physics simulations.
On very low timeframes (1m or less), higher timeframe data updates infrequently, which can make the oscillator appear static for extended periods.
The indicator makes multiple `request.security()` calls, which counts against PulseWire's security call limit.
Originality Statement
This indicator is original in its comprehensive multi-timeframe resonance framework. While MTF trend indicators exist, this indicator is justified because:
It produces a quantified resonance score that measures not just direction but the degree and duration of multi-timeframe agreement
The coherence and entanglement metrics add pairwise correlation analysis between timeframes, going beyond simple directional counting
The three-tier signal system (CONF/RES/QTM) provides graduated confidence levels based on the strength of alignment
Harmonic pattern detection on the resonance data identifies whether alignment is sustained (sine) or emerging (square)
The momentum alignment overlay shows whether aggregate momentum across timeframes supports the directional reading
The weighted oscillator combines alignment direction with individual trend strength for a more nuanced composite score
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Multi-timeframe alignment is a powerful filter but does not guarantee profitable trades. Always use proper risk management. The author is not responsible for any losses incurred from using this indicator.
-Made with passion by officialjackofalltrades
Indicator

Gold Priceaction V2.001. Introduction
Welcome to Gold Priceaction V2.00, an incredibly powerful, all-in-one custom indicator built on Pine Script v5 specifically for PulseWire. Unlike traditional lagging indicators that rely on past moving averages, this tool reads the raw footprint of the market. It is engineered to automatically map out institutional price action, dynamic support and resistance, exact trendlines, and high-probability entry zones in real-time.
Whether you are a scalper, day trader, or swing trader, Gold Priceaction V2.00 gives you an objective, crystal-clear view of market direction—removing emotion and guesswork from your trading routine.
2. Why it Works Exceptionally Well for Gold (XAUUSD)
The Gold (XAUUSD) market is notoriously volatile and highly manipulated by large institutional players (banks and hedge funds). Gold charts frequently experience "liquidity grabs"—sudden spikes that hunt retail traders' stop losses before reversing into the true trend direction.
Gold Priceaction V2.00 is tailored exactly for this environment. Instead of blindly following a breakout, this indicator mathematically calculates true swing points to identify areas where the market is most likely to reverse (Support/Resistance) or continue (Target Breakouts). By highlighting premium and discount zones alongside equal highs/lows (liquidity pools), it allows you to trade with the "Smart Money" rather than becoming their exit liquidity.
3. Core Features & Functions (What’s Inside & How It Works)
📈 Dynamic Trendlines: Forget drawing subjective lines manually. The indicator uses a complex algorithmic loop to find the sharpest, most accurate Ascending (Bullish) and Descending (Bearish) trendlines in real-time. It projects these lines forward, giving you dynamic, diagonal support and resistance levels.
🛑 Real-Time Support & Resistance: The script constantly analyzes market data to find minor and major pivot points.
• Strong Highs/Lows: Act as massive, rigid Support and Resistance boundaries.
• Weak Highs/Lows: Act as magnets. The indicator anticipates that these weak points will be broken, turning them into your primary Take Profit (Target) levels.
🎯 Clean Future Target Projection: Most indicators clutter your screen with dozens of old, useless lines. Gold Priceaction V2.00 features an advanced auto-cleanup system. It automatically deletes past targets that have already been hit and only projects a single, bold horizontal line deep into the future. This shows you exactly where the price is magnetically drawn to next.
📦 Institutional Zones (Order Blocks & FVGs): The indicator automatically highlights the hidden footprint of big banks:
• Order Blocks (Supply/Demand Zones): Identifies the last bearish candle before a strong bullish move (and vice versa). These colored boxes act as high-probability entry zones for reversals or continuations.
• Fair Value Gaps (FVG): Spots sudden imbalances in price where the market moved too fast, leaving a "gap." Price almost always returns to rebalance these zones.
🕰️ Multi-Timeframe Context (PDH/PDL): Context is everything. You can enable higher timeframe levels directly on your lower timeframe chart (e.g., 5-minute chart).
• PDH / PDL: Previous Daily High and Low.
• PWH / PWL: Previous Weekly High and Low.
• PMH / PML: Previous Monthly High and Low.
These act as massive macro support/resistance areas where major reversals frequently happen.
4. How to Use It in Live Trading (The 4-Step Playbook)
Step 1: Determine the Trend
Look at the real-time Dashboard on your screen. If the "Market Trend" says BULLISH, you only look for BUY setups. If it says BEARISH, you only look for SELL setups.
Step 2: Wait for Price to Reach an Entry Zone
Do not buy at the top! Let the price retrace (pullback) down into a Discount Zone, a Bullish Order Block, or touch the Ascending Trendline.
Step 3: Look for Confirmation
Wait for a minor trend shift on a lower timeframe. If you are in a Bullish zone, wait for the indicator to print a "Support Hold" or a lower-timeframe "Resistance Break" to prove buyers are stepping in.
Step 4: Execute & Manage Risk
• Entry: Enter the market when the setup is confirmed.
• Stop Loss (SL): Look at the Dashboard. It dynamically calculates the safest, tightest Stop Loss based on the "Immediate Swing Level" to minimize your risk.
• Take Profit (TP): Ride the trade directly to the "🎯 Future Target" line projected on your chart.
5. Recommended Timeframes
• Scalping (Quick Trades): 1-Minute (1m) or 3-Minute (3m) charts.
• Intraday (Day Trading): 5-Minute (5m) and 15-Minute (15m) charts. (Highly Recommended for Gold).
• Swing Trading (Holding for days): 1-Hour (1H) or 4-Hour (4H) charts.
6. The Interactive Dashboard & Customization
The indicator includes a completely clean, user-friendly settings menu. We have hidden all the messy background code values so your chart title remains pristine.
Dashboard Customization:
• Positioning: Using the settings menu (gear icon), you can move the dashboard anywhere on your screen (Top Right, Bottom Center, Right Center, Left Center, etc.) so it never blocks your price action.
• Target Probability Score: A built-in logic metric reading from 0% to 100%. It calculates the trend bias, verifies if the price is safely holding above support, and checks RSI confluence (Overbought/Oversold levels) to give you a live win-rate probability color-coded in Red, Yellow, or Green.
• Styling: You can fully customize the colors of your candles, Order Blocks, and zones to perfectly match PulseWire's Light or Dark modes.
❓ Frequently Asked Questions (FAQ)
Q1: Does this indicator repaint?
A: No. The historical Support/Resistance lines and Order Blocks are drawn based on confirmed closed candles. Once a swing point is confirmed mathematically, it does not repaint or shift backward.
Q2: Is this only for Gold?
A: While it is highly optimized for the volatility and structure of XAUUSD, the pure price action mathematics behind it work excellently on Forex pairs (EURUSD, GBPUSD), Crypto (BTC, ETH), and Indices (US30, NAS100).
Q3: Why are my old Target lines disappearing?
A: That is by design! To keep your chart clean and easy to read, the indicator deletes old, irrelevant "past" targets and only shows you the "Future Target" that matters right now.
Q4: How do I get rid of all the text on my indicator title bar?
A: You don't have to! In Gold Priceaction V2.00, all input variables have been explicitly hidden (display.none). The indicator name on your chart will stay clean and professional without long strings of text.
Q5: What does "Premium" and "Discount" mean?
A: Think of it like shopping. The indicator draws a grid between the highest and lowest points of the current trend.
• Premium Level (Red): The price is too high/expensive. (Best place to SELL).
• Discount Level (Green): The price is cheap/on sale. (Best place to BUY).
Indicator

Indicator

Super AlligatorSuper Alligator 🐊 — A Bill Williams Tribute
Built on the shoulders of a legend.
The Origin
Bill Williams introduced the Alligator indicator in his 1995 book Trading Chaos as a way to identify trending markets and filter out the noise of consolidation. Three smoothed moving averages — offset forward in time — behave like the jaw, teeth, and lips of an alligator.
When the lines are intertwined, the alligator sleeps. The market is ranging, there is no edge, and most traders are losing money fighting the noise. When the lines fan apart, the alligator is awake and feeding — a trend is in motion and momentum is real. Williams argued that up to 70% of price action is consolidation. The Alligator's job is to keep you out of it.
In memory of Bill Williams (1932–2019) — trader, psychologist, and one of the most original thinkers in technical analysis.
What Super Alligator Adds
The classic Alligator tells you when a trend exists. Super Alligator adds two layers on top:
1. Gap-based momentum confirmation
The distance between the closing candle and the green (Lips) line acts as a confirmation gate. The alligator opening its mouth is the setup. Price pulling away from the green line is the confirmation. You control exactly how much distance is required — meaning you control the sensitivity.
2. Intraday trend filters
VWAP and a configurable SMA act as directional filters. Signals only fire when price is on the correct side of these levels, reducing counter-trend noise significantly.
Signal Logic
A BUY signal fires when all of the following are true:
Lips (green) is above Jaw (blue) — bullish fan
Close is above the green line by at least your gap threshold
Close is above VWAP (if enabled)
Close is above SMA (if enabled)
A SELL signal fires when the inverse is true:
Jaw (blue) is above Lips (green) — bearish fan
Close is below the green line by at least your gap threshold
Close is below VWAP (if enabled)
Close is below SMA (if enabled)
Signals fire once — on the first bar all conditions align. They do not repaint.
The Gap Setting — Your Sensitivity Control
The Min Gap (%) is the most important input. It scales automatically to whatever instrument you're trading.
Futures:
NQ (~25,000) — 0.10% = ~25 pts / 0.20% = ~50 pts / 0.30% = ~75 pts
ES (~5,500) — 0.10% = ~5.5 pts / 0.20% = ~11 pts / 0.30% = ~16.5 pts
Crypto:
Bitcoin (~85,000) — 0.10% = ~$85 / 0.20% = ~$170 / 0.30% = ~$255
Forex:
EUR/USD (~1.08) — 0.10% = ~10 pips / 0.20% = ~21 pips
Equities/ETFs:
SPY (~550) — 0.10% = ~$0.55 / 0.20% = ~$1.10
Start at 0.10% and adjust. Too many signals → increase. No signals → decrease.
NOTE: The above are just examples. Not limited to just those examples.
Filter Guide
VWAP Filter
Recommended ON for all intraday timeframes (1m through 1H). VWAP resets daily and represents the market's intraday fair value. Turn OFF on daily/weekly charts.
SMA Filter
OFF by default. Most useful on higher timeframes (4H, Daily) as a macro trend filter. On lower intraday timeframes a long-period SMA sits too far from price to be a useful signal filter — particularly for sells in instruments in long-term uptrends. If using intraday, reduce to 50–100.
Recommended Starting Settings
1m – 5m charts: VWAP on / SMA off / Gap 0.05–0.10%
15m – 1H charts: VWAP on / SMA optional (50–100) / Gap 0.10–0.20%
4H – Daily charts: VWAP off / SMA on (200) / Gap 0.15–0.30%
Notes
This is a signal tool, not a trading system. Use it alongside your own levels, risk management, and market context.
Signals do not repaint — they fire once and do not move.
Built-in alerts for both BUY and SELL. Set them up via PulseWire's alert system after adding to your chart.
Works on all instruments and timeframes.
Indicator

Signal Qualification Engine [JOAT]Signal Qualification Engine
Introduction
The Signal Qualification Engine is a sophisticated multi-layer signal filtering system designed to identify high-probability trading opportunities through comprehensive confluence analysis. This indicator solves the universal trading problem of signal quality - not all signals are created equal, and distinguishing between mediocre setups and high-probability opportunities is what separates successful traders from the crowd. By evaluating signals across trend, momentum, volume, and structure layers, this engine provides institutional-grade signal qualification that helps traders focus only on the best opportunities.
This tool is built for traders who understand that edge in trading comes from the confluence of multiple factors rather than any single indicator. Whether you're a discretionary trader looking for confirmation, a systematic trader needing signal filtering, or an algorithm developer requiring quality scoring, this engine provides the comprehensive analysis needed to elevate your trading from random signals to systematic, high-quality setups.
Why This Indicator Exists
Most traders struggle with signal overload - too many signals, varying quality, and no systematic way to evaluate them. This indicator addresses that critical problem by:
Multi-Layer Analysis: Evaluates signals across four independent analytical layers
Quality Scoring: Provides objective, numerical quality scores for every signal
Confluence Detection: Identifies when multiple factors align for high-probability setups
Risk/Reward Validation: Ensures signals offer adequate profit potential relative to risk
Premium Signals: Flags exceptional setups with maximum confluence
Visual Zones: Shows entry zones, stop levels, and targets for clear risk management
The engine transforms subjective signal evaluation into an objective, systematic process that can be consistently applied across all market conditions and instruments.
Core Components Explained
1. Trend Analysis Layer
The trend layer evaluates the directional bias using multiple trend indicators:
// Trend scoring
int trend_bull_score = 0
int trend_bear_score = 0
// Moving average analysis
if price_above_fast_ma
trend_bull_score += 1
if price_above_slow_ma
trend_bull_score += 1
if ma_bullish_cross
trend_bull_score += 1
// ADX analysis
if adx > i_adx_thresh
trend_bull_score += plus_di > minus_di ? 2 : 0
trend_bear_score += minus_di > plus_di ? 2 : 0
Trend components:
Price vs MAs: Position relative to fast and slow moving averages
MA Crossovers: Recent trend changes and confirmation
ADX Strength: Trend strength above threshold (default 25)
Directional Movement: +DI vs -DI for trend direction
Trend Score: Cumulative trend strength (0-5 points)
The trend layer ensures we only trade in the direction of the established trend or during trend changes with confirmation.
2. Momentum Analysis Layer
Momentum is evaluated through multiple oscillators to ensure optimal timing:
// Momentum scoring
int momentum_bull_score = 0
int momentum_bear_score = 0
// RSI analysis
if rsi > 50 and rsi < 70 and rsi > rsi
momentum_bull_score += 1
if rsi < 50 and rsi > 30 and rsi < rsi
momentum_bear_score += 1
// Stochastic analysis
if stoch_k > stoch_d and stoch_k < 80
momentum_bull_score += 1
if stoch_k < stoch_d and stoch_k > 20
momentum_bear_score += 1
// MACD analysis
if macd_hist > 0 and macd_hist > macd_hist
momentum_bull_score += 1
if macd_hist < 0 and macd_hist < macd_hist
momentum_bear_score += 1
Momentum components:
RSI Direction: Momentum direction with overbought/oversold filters
Stochastic Crossovers: Entry timing with extreme level avoidance
MACD Histogram: Trend acceleration and deceleration
Momentum Score: Cumulative momentum strength (0-3 points)
Divergence Detection: Price/momentum divergences for early signals
The momentum layer ensures we enter when momentum supports our directional bias.
3. Volume Analysis Layer
Volume confirms the strength and conviction behind price movements:
// Volume analysis
float vol_sma = ta.sma(volume, 20)
float vol_ratio = vol_sma > 0 ? volume / vol_sma : 1.0
bool above_avg_vol = volume > vol_sma * 1.2
bool high_vol_session = session_vol_ratio > 1.5
// Volume scoring
int volume_score = 0
if above_avg_vol
volume_score += 1
if high_vol_session
volume_score += 1
if vol_ratio > 1.5
volume_score += 1
Volume components:
Volume Ratio: Current volume relative to 20-period average
Above Average Volume: Confirms signal strength (20% above average)
Session Volume Analysis: Compares current volume to historical session averages
Volume Score: Cumulative volume confirmation (0-3 points)
Volume Spike Detection: Exceptional volume that may signal institutional activity
The volume layer ensures signals have sufficient participation to be reliable.
4. Structure Analysis Layer
Structure identifies key levels where professional traders place orders:
// Structure analysis
float swing_high = ta.pivothigh(high, i_swing_left, i_swing_right)
float swing_low = ta.pivotlow(low, i_swing_left, i_swing_right)
bool near_resistance = math.abs(close - nearest_resistance) / close * 100 < i_level_proximity
bool near_support = math.abs(close - nearest_support) / close * 100 < i_level_proximity
bool sweep_high = high > nearest_resistance and close < nearest_resistance
bool sweep_low = low < nearest_support and close > nearest_support
Structure components:
Swing Points: Key highs and lows defining market structure
Level Proximity: Distance to nearest support/resistance
Liquidity Sweeps: Price moves beyond levels that quickly reverse
Break of Structure: Confirms trend changes
Structure Score: Cumulative structural confirmation (0-3 points)
The structure layer ensures entries occur at technically significant levels.
5. Signal Qualification System
All layers combine to produce a comprehensive qualification score:
// Total scores (max 14)
int bull_total = (
trend_bull_score + momentum_bull_score + volume_score + structure_score +
(near_support ? 1 : 0) + (sweep_low ? 1 : 0) + (rr_ratio >= i_min_rr ? 1 : 0)
)
int bear_total = (
trend_bear_score + momentum_bear_score + volume_score + structure_score +
(near_resistance ? 1 : 0) + (sweep_high ? 1 : 0) + (rr_ratio >= i_min_rr ? 1 : 0)
)
Qualification criteria:
Trend Score (0-5 points): Directional bias strength
Momentum Score (0-3 points): Timing confirmation
Volume Score (0-3 points): Participation confirmation
Structure Score (0-3 points): Level confirmation
Level Proximity (1 point): Entry at key level
Liquidity Sweep (1 point): Institutional activity
Risk/Reward (1 point): Adequate profit potential
Maximum Score: 14 points for perfect confluence
6. Quality Grading System
Signals are graded based on their qualification score:
// Quality grades
string bull_grade = bull_total >= 12 ? "A+" :
bull_total >= 10 ? "A" :
bull_total >= 8 ? "B" :
bull_total >= 6 ? "C" : "D"
string bear_grade = bear_total >= 12 ? "A+" :
bear_total >= 10 ? "A" :
bear_total >= 8 ? "B" :
bear_total >= 6 ? "C" : "D"
Grade meanings:
A+ (12-14 points): Exceptional setup with maximum confluence
A (10-11 points): High-quality setup with strong confluence
B (8-9 points): Good setup with moderate confluence
C (6-7 points): Acceptable setup with basic confluence
D (0-5 points): Weak setup, avoid trading
Only B-grade and above signals are typically considered for trading.
7. Risk/Reward Validation
Each signal is validated for adequate profit potential:
// Risk/Reward calculation
float atr_val = ta.atr(14)
float stop_distance = atr_val * i_stop_mult
float target_distance = atr_val * i_target_mult
float rr_ratio = target_distance / stop_distance
// RR validation
bool valid_rr = rr_ratio >= i_min_rr
RR features:
ATR-Based Stops: Dynamic stop placement based on volatility
Multiple Targets: Primary and secondary profit targets
Minimum RR Ratio: Configurable minimum (default 1.5:1)
RR Validation: Signals without adequate RR are disqualified
Visual Targets: Clear stop and target levels on chart
Visual Elements
Signal Markers: Clear entry signals with quality grades
Entry Zones: Shaded areas showing optimal entry regions
Risk Levels: Visual stop loss and target levels
Quality Meter: Real-time confluence score display
Background Colors: Signal strength background shading
Dashboard: Comprehensive metrics panel
Premium Signals: Special markers for A+ grade setups
The dashboard displays:
1. Current signal qualification scores
2. Quality grades and confluence percentages
3. Individual layer scores (trend, momentum, volume, structure)
4. Risk/Reward ratio and validation status
5. Nearest support/resistance levels
6. Volume analysis and session context
7. Signal cooldown status
8. Premium signal indicators
Input Parameters
Trend Settings:
Fast MA Period: Short-term trend (default: 21)
Slow MA Period: Medium-term trend (default: 55)
ADX Period: Trend strength (default: 14)
ADX Threshold: Minimum trend strength (default: 25)
Momentum Settings:
RSI Period: Momentum oscillator (default: 14)
Stochastic K/D: Entry timing (default: 14/3)
MACD Fast/Slow/Signal: Trend acceleration (default: 12/26/9)
Structure Settings:
Swing Left/Right: Pivot point detection (default: 10/5)
Level Proximity %: Distance to key levels (default: 0.5%)
Max Levels: Maximum swing levels to track (default: 20)
Qualification Settings:
Minimum Score: Required qualification score (default: 6)
Signal Cooldown: Bars between signals (default: 5)
Minimum R:R: Required risk/reward ratio (default: 1.5)
Require Confirmation: Wait for bar close (default: true)
How to Use This Indicator
Step 1: Monitor Signal Quality
Watch for B-grade or higher signals. A-grade signals offer the highest probability but occur less frequently. Focus on quality over quantity - one A-grade signal is worth ten C-grade signals.
Step 2: Verify Layer Alignment
Check the dashboard to see which layers are contributing to the signal. The best signals have confirmation from all four layers (trend, momentum, volume, structure).
Step 3: Assess Risk/Reward
Ensure the signal offers adequate profit potential. The indicator automatically validates RR ratios, but you should manually verify that targets make sense in the current market context.
Step 4: Time Entry with Structure
Use the entry zones and structure levels to time your entry precisely. The best entries occur when price is near key support/resistance levels or after liquidity sweeps.
Step 5: Manage Risk Dynamically
Use the visual stop and target levels as guidelines, but adjust based on your personal risk tolerance and account size. Never risk more than you're comfortable losing.
Step 6: Track Premium Signals
Pay special attention to A+ grade premium signals. These rare setups with maximum confluence often lead to the largest moves and deserve larger position sizes.
Best Practices
Be patient for A-grade signals rather than forcing mediocre trades
Use the qualification score as your primary filter - ignore signals below your minimum threshold
Combine with your own analysis for additional confirmation
Adjust the minimum score based on market conditions - higher in choppy markets, lower in strong trends
Keep a trade journal to track which grade performs best in each market condition
Use the cooldown period to avoid overtrading - quality signals require patience
Pay attention to volume confirmation - signals without volume support often fail
Structure is key - signals at major levels have higher success rates
Liquidity sweeps provide high-probatility reversal opportunities
Always respect the risk/reward validation - poor RR setups destroy accounts
Strategy Integration
This indicator is designed to enhance any trading system:
Use as a signal filter for existing strategies
Import quality scores to weight trade decisions
Combine with trend-following systems for entry timing
Use structure levels for stop placement in other systems
Integrate volume analysis for signal confirmation
Apply risk/reward validation to all trades
Use premium signals as standalone trade opportunities
Export layer scores for custom signal development
The indicator includes 12 export functions for integration:
Bull/Bear Score Export: Total qualification scores
Quality Grade Export: Letter grade as numeric value
Trend Score Export: Trend layer score
Momentum Score Export: Momentum layer score
Volume Score Export: Volume layer score
Structure Score Export: Structure layer score
RR Ratio Export: Current risk/reward ratio
Signal Export: Binary signal output
Premium Signal Export: A+ grade signal flag
Technical Implementation
Built with Pine Script v6 featuring:
Multi-layer signal analysis across four independent systems
Dynamic qualification scoring with configurable weights
Advanced market structure detection with pivot points
Volume analysis with session context
Risk/reward validation with ATR-based calculations
Comprehensive visualization with entry zones and risk levels
Real-time dashboard with 12 key metrics
Alert conditions for all signal types and grades
Export functions for strategy integration
Premium signal detection for exceptional setups
The code uses confirmed bars for all calculations to prevent repainting and ensure reliable signals.
Originality Statement
This indicator is original in its comprehensive approach to signal qualification and multi-layer confluence analysis. While individual components (RSI, MACD, ADX, etc.) are established tools, this indicator is justified because:
It synthesizes four distinct analytical layers into a unified qualification system
The scoring system provides objective, numerical signal evaluation
Quality grading transforms subjective analysis into systematic decision-making
Risk/reward validation ensures only profitable setups are considered
Structure analysis integration provides context for market microstructure
Volume layer adds confirmation often missing from signal systems
Premium signal detection identifies exceptional opportunities
Comprehensive visualization makes complex analysis accessible
Export functions enable integration with any trading system
Each layer contributes unique insights: trend provides direction, momentum provides timing, volume provides confirmation, and structure provides context
The indicator's value lies in transforming signal evaluation from art to science - providing traders with a systematic, objective way to identify and focus only on the highest probability trading opportunities.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Signal qualification is a tool for improving trade selection, not a guarantee of success.
Even high-quality signals can fail due to unexpected market events, news, or changes in market conditions. Past performance of high-grade signals does not guarantee future results. The indicator's signals are mathematical calculations based on historical patterns and should be used in conjunction with proper risk management.
Always use stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose on any single trade, regardless of signal quality.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this system.
-Made with passion by officialjackofalltrades
Indicator

Breakout Trend Bar AlertsEvery trend has a starting point. It's rarely a gradual drift — it's one massive, decisive candle that breaks the market out of consolidation and kicks off a sustained move. Breakout Bar Alerts is built to catch that exact moment.
The indicator monitors price action in real time and identifies when a bar forms that dwarfs everything around it — the largest high-to-low range of any candle in the last 250 bars. These are the bars where conviction enters the market, weak hands get flushed, and a new trend begins. When one appears, you get an instant alert so you're never late to the move.
Why these bars matter:
Big range bars represent a sudden surge of momentum and volume-backed commitment from one side of the market. Bulls or bears have taken control decisively. What follows is often the beginning of a trend leg — not a random spike.
Built to filter out the noise:
The opening bar of every session is excluded entirely. That first chaotic candle never skews your data or triggers a false signal.
Only bars within your active session window are counted. Off-hours price action is completely ignored, so your benchmark is always built from real, tradeable market conditions.
Three alert conditions — Bull Breakout Bar, Bear Breakout Bar, or Both — so you only get notified for the setups you actually trade.
Inputs:
Lookback Period — how many bars back to measure the largest range (default: 250)
Enable Time Filter — restricts detection and calculations to your active trading session
Active Session — define your session window in exchange time
Bull / Bear colors — fully customizable
Best used on intraday timeframes (1m – 15m) on futures, forex, or high-volume equities. When this fires, pay attention — the trend may already be starting. Indicator

Indicator

Adaptive Momentum Fusion [WillyAlgoTrader]📡 Adaptive Momentum Fusion is a separate-pane oscillator that replaces the fixed EMAs inside a standard MACD with selectable adaptive moving averages — six different adaptation engines that each respond to a different market dimension (efficiency, volatility, fractal structure, momentum, volume, or a weighted composite of all five). The oscillator line and signal line are then processed through Jurik-style smoothing to reduce jitter without adding lag. The result is a MACD-like oscillator where the core moving averages automatically adjust their speed to current market conditions, producing cleaner crossovers, more meaningful histogram readings, and built-in divergence detection.
A standard MACD uses fixed-length EMAs (typically 12/26/9). This means the same smoothing is applied whether the market is trending strongly, ranging sideways, experiencing a volatility spike, or consolidating. The result: late crossovers in trends, whipsaws in ranges, and false divergences during choppy periods.
This indicator solves the problem at the source — the moving averages themselves. Instead of fixed EMAs, each adaptation engine dynamically adjusts the smoothing constant (alpha) on every bar based on a real-time market measurement. In a strong trend, the Efficiency engine detects high directional efficiency and increases alpha → faster MA → earlier crossover. In a range, efficiency drops and alpha decreases → slower MA → fewer whipsaws. Each engine uses a different measurement to achieve this adaptation, and the user selects which dimension matters most for their market.
🧩 WHY THESE COMPONENTS WORK TOGETHER
A MACD with adaptive MAs alone would still produce a noisy signal line (the EMA of the oscillator). Adding adaptation to the base MAs but keeping a fixed EMA for the signal line creates a mismatch: the oscillator adapts but the signal doesn't, causing crossover lag to reappear at the signal level.
This indicator addresses the full signal chain:
Adaptive fast MA → Adaptive slow MA → Oscillator (MACD or PPO) → Jurik-smoothed signal line → 4-state histogram → Divergence scanner
The adaptive MAs eliminate the fixed-speed problem at the source. The MACD/PPO dual mode lets you choose between absolute (price-scaled) and percentage (normalized) output. The Jurik smoother replaces the standard signal EMA with a 3-stage filter that reduces jitter while preserving crossover timing — critical because adaptive oscillators produce more variable readings than fixed ones. The 4-state histogram (accelerating/decelerating × bullish/bearish) quantifies momentum acceleration, not just direction. And the divergence scanner works on the adaptive oscillator itself, which produces more reliable pivots than a fixed MACD because the adaptive MAs have already filtered out noise-driven fluctuations.
Removing the adaptive engines returns you to a standard MACD. Removing the Jurik smoother reintroduces signal line jitter that the adaptive engines amplify. Removing the histogram states loses momentum acceleration information. The full pipeline produces cleaner signals than any subset.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Six selectable adaptation engines.
Each engine computes a dynamic smoothing constant (alpha) that controls how fast the moving average reacts. All engines feed into the same adaptive EMA core: result = alpha × source + (1 − alpha) × result . The difference is how alpha is calculated:
Efficiency (Kaufman AMA):
Computes the Efficiency Ratio: ER = |price − price | / sum(|price − price |, N). ER ranges from 0 (pure chop — price moves a lot bar-to-bar but goes nowhere net) to 1 (pure trend — every bar moves in the same direction). The smoothing constant: sc = (ER × (fastSc − slowSc) + slowSc)², where fastSc = 2/3, slowSc = 2/31. This is the classic Kaufman Adaptive Moving Average approach. Best all-around engine.
Volatility (ATR-based):
Computes volRatio = ATR(len) / SMA(ATR, len×2). When current volatility exceeds its average (ratio > 1), alpha increases → MA speeds up to track the expanding price action. When volatility contracts (ratio < 1), alpha decreases → MA slows down to avoid noise. Alpha = baseAlpha × volRatio, clamped to . Best for instruments with distinct volatility regimes (crypto, commodities).
Fractal (Hurst-inspired):
Estimates the fractal dimension of the price series using rescaled range analysis: the full-range is compared to the sum of two half-ranges. fracDim = 1 + log(sumHalf) / log(2 × rangeFull). A fractal dimension near 1.0 indicates trending behavior (smooth), near 2.0 indicates mean-reverting (rough). Alpha = exp(−4.6 × (fracDim − 1)), which maps: fracDim ≈ 1.0 → alpha ≈ 1.0 (fast, trending), fracDim ≈ 2.0 → alpha ≈ 0.01 (slow, ranging). Best for detecting regime changes between trending and mean-reverting markets.
Momentum (ROC-based):
Computes the Rate of Change normalized against its recent maximum: norm = |ROC| / highest(|ROC|, len×2). When momentum is strong relative to recent history, alpha increases. Alpha = baseAlpha + norm × (1 − baseAlpha) × 0.5. This makes the MA react faster during breakouts and momentum surges while staying smooth during low-momentum drift. Best for breakout-oriented strategies.
Volume:
Computes volRatio = volume / SMA(volume, len). When volume exceeds its average (institutional participation), the MA speeds up. Alpha = baseAlpha × √(volRatio). The square root prevents extreme volume spikes from making the MA too reactive. Auto-disabled on instruments without volume data (forex) — falls back to baseAlpha. Best for stocks and crypto where volume confirms moves.
Composite (weighted blend):
Runs all five engines simultaneously and blends the results: with volume = 30% Efficiency + 20% Volatility + 20% Fractal + 15% Momentum + 15% Volume. Without volume = 35% Efficiency + 25% Volatility + 25% Fractal + 15% Momentum. This produces the most robust adaptation but is slightly slower because it averages five different smoothing perspectives. Best for users who don't want to choose a single engine.
2️⃣ Jurik-style signal line smoothing.
The standard MACD signal line is a simple EMA of the oscillator. This indicator replaces it with a 3-stage Jurik-inspired filter:
beta = 0.45 × (len − 1) / (0.45 × (len − 1) + 2)
alphaJ = beta³
e0 = (1 − alphaJ) × source + alphaJ × e0
e1 = (source − e0) × (1 − beta) + beta × e1
e2 = (e0 + phase × e1 − e2 ) × (1 − alphaJ)² + alphaJ² × e2
The three stages progressively remove jitter while maintaining phase alignment. The phase parameter (Jitter Reduction, default 0.7) controls how much additional smoothing is applied: 0.0 = minimal smoothing (fast but noisy), 1.0 = maximum smoothing (smooth but slightly more lag). This is particularly important for adaptive oscillators because the variable-speed MAs produce a more erratic oscillator line than fixed EMAs — the Jurik filter absorbs this variability at the signal level.
3️⃣ MACD/PPO dual output mode.
— MACD mode : oscillator = fastMA − slowMA (absolute difference, price-scaled). Readings scale with instrument price — useful for single-instrument analysis.
— PPO mode : oscillator = (fastMA − slowMA) / slowMA × 100 (percentage difference, normalized). Readings are comparable across instruments and time — useful for scanning, multi-market analysis, or consistent threshold settings.
4️⃣ 4-state momentum histogram.
The histogram (oscillator − signal) is classified into four states based on value and direction of change:
— 🟢 Accelerating bullish : histogram > 0 AND rising (momentum strengthening)
— 🟢 Decelerating bullish : histogram > 0 AND falling (momentum fading, potential reversal ahead)
— 🔴 Accelerating bearish : histogram < 0 AND falling (selling pressure increasing)
— 🔴 Decelerating bearish : histogram < 0 AND rising (selling pressure easing, potential bounce)
Each state has a distinct color intensity: accelerating = fully saturated, decelerating = faded. This provides immediate visual recognition of whether momentum is building or exhausting — the most actionable information from a histogram.
5️⃣ Divergence detection with adaptive oscillator.
The indicator scans for regular divergences between price and the adaptive oscillator:
— Regular Bullish Divergence : price makes a lower low, but the oscillator makes a higher low → selling pressure is weakening despite lower prices → potential reversal up
— Regular Bearish Divergence : price makes a higher high, but the oscillator makes a lower high → buying pressure is weakening despite higher prices → potential reversal down
Pivots are detected using a custom function with configurable lookback (default 30 bars) and a fixed right-bar confirmation of 5 bars. Divergences are labeled on the oscillator pane and optionally drawn as connecting lines. The divergence state persists in the dashboard for 20 bars after detection, then decays.
Divergences detected on the adaptive oscillator are more reliable than on a standard MACD because the adaptive MAs have already filtered regime-inappropriate noise — the pivots in the oscillator correspond to genuine momentum shifts, not noise-driven wiggles.
6️⃣ Zero-line cross signals.
When enabled, the indicator marks when the oscillator crosses the zero line — which corresponds to the fast adaptive MA crossing the slow adaptive MA. In MACD terms, this is the equivalent of the "MACD crossing zero." Because the MAs are adaptive, these crossovers occur at more structurally meaningful points than with fixed EMAs.
7️⃣ Signal strength scoring (0–100).
Each bar's histogram absolute value is normalized against its recent maximum over 50 bars: strength = |histogram| / highest(|histogram|, 50) × 100. This provides a relative measure: 100 = histogram is at its strongest in the last 50 bars, 0 = no momentum. Classified as Strong (≥ 70), Medium (≥ 40), Weak (< 40). Displayed in the dashboard.
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Engine selection: The selected adaptation engine computes a dynamic alpha value on each bar based on its specific market measurement (efficiency ratio, ATR ratio, fractal dimension, ROC normalization, volume ratio, or composite blend).
Step 2 — Adaptive MA calculation: The fast MA and slow MA are each computed using the adaptive EMA formula: result = alpha × source + (1 − alpha) × result . The same engine is used for both, with different length parameters (fast = default 8, slow = default 21).
Step 3 — Oscillator: MACD mode: osc = fastMA − slowMA. PPO mode: osc = (fastMA − slowMA) / slowMA × 100.
Step 4 — Signal line: The oscillator is passed through the Jurik 3-stage filter with the configured signal length (default 7) and jitter reduction factor (default 0.7).
Step 5 — Histogram: hist = oscillator − signal. Classified into 4 states (accelerating/decelerating × bullish/bearish) based on sign and direction of change.
Step 6 — Divergence scan: Custom pivot detection identifies local highs and lows in both the oscillator and price. When a new pivot is found, it's compared to the previous pivot to check for divergence conditions (price lower low + osc higher low, or price higher high + osc lower high).
Step 7 — Signals: Crossovers (oscillator crossing signal line) and zero-line crosses are detected. All signals require barstate.isconfirmed + warmup check.
📖 HOW TO USE
🎯 Quick start:
1. Add the indicator — the adaptive oscillator appears in a separate pane
2. Select an adaptation engine matching your market (Efficiency for general use)
3. Green line above red = bullish momentum, below = bearish
4. Histogram bars show momentum acceleration (bright) vs deceleration (faded)
5. Divergence labels mark potential reversals
👁️ Reading the pane:
— 🟢 Green oscillator line above signal line = bullish momentum
— 🔴 Red oscillator line below signal line = bearish momentum
— 🟢 Bright green histogram = accelerating bullish momentum
— 🟢 Faded green histogram = decelerating bullish (momentum fading)
— 🔴 Bright red histogram = accelerating bearish momentum
— 🔴 Faded red histogram = decelerating bearish (selling easing)
— ▲ label = buy crossover signal (oscillator crosses above signal)
— ▼ label = sell crossover signal
— ● dot on zero line = zero-line cross
— "Bull Div" / "Bear Div" labels = detected divergences
🔧 Engine selection guide:
— Efficiency : best default for most markets — adapts to trending vs ranging
— Volatility : best for instruments with clear vol regimes (crypto, commodities)
— Fractal : best for detecting regime shifts (trending ↔ mean-reverting)
— Momentum : best for breakout strategies — speeds up on strong moves
— Volume : best for stocks/crypto where volume confirms participation
— Composite : most robust — blends all dimensions, good when unsure
🔧 Tuning guide:
— Too many whipsaws: increase Slow Length, increase Signal Length, increase Jitter Reduction
— Signals too late: decrease Fast/Slow Length, decrease Signal Length, decrease Jitter Reduction
— Histogram too noisy: increase Jitter Reduction toward 0.8–1.0
— Divergences too frequent: increase Divergence Lookback (40–60)
— Cross-market comparison: switch to PPO mode for normalized output
⚙️ KEY SETTINGS REFERENCE
⚙️ Main:
— Adaptation Engine (default Efficiency): Efficiency / Volatility / Fractal / Momentum / Volume / Composite
— Fast Length (default 8): fast adaptive MA period
— Slow Length (default 21): slow adaptive MA period
— Signal Length (default 7): Jurik signal smoothing period
— Output Mode (default MACD): MACD (absolute) or PPO (percentage)
🔍 Filters:
— Detect Divergences (default On): scan for regular divergences
— Divergence Lookback (default 30): pivot search depth
— Zero Line Cross Signals (default On): mark zero crossings
🔧 Advanced:
— Jitter Reduction (default 0.7): Jurik phase parameter (0.0–1.0)
— Auto / Dark / Light theme
📊 Dashboard
— Trend: oscillator vs signal line direction (Bullish / Bearish / Neutral)
— Signal: last crossover (BUY / SELL / Wait)
— Strength: histogram normalized to 50-bar max (Strong / Medium / Weak with %)
— Momentum: 4-state acceleration (Accel ▲ / Decel ▽ / Accel ▼ / Decel △)
— Divergence: current divergence state (Bull Div / Bear Div / None)
— Engine / TF: selected engine and timeframe
— Version
🔔 Alerts
— 🟢 BUY / 🔴 SELL — oscillator-signal crossover (ticker, price, timeframe, engine)
— 🟡 ZERO BULL CROSS / ZERO BEAR CROSS — zero-line crossing
— 🔵 BULL DIVERGENCE / BEAR DIVERGENCE — detected divergence
All support plain text and JSON webhook format. Bar-close confirmed.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals and divergences require barstate.isconfirmed. A warmup period (2× slow length, minimum 50 bars) prevents signals during insufficient data. The adaptive MAs are deterministic — once a bar closes, the MA value for that bar never changes.
— 📐 This is a separate-pane oscillator, not an overlay. It displays in its own pane below the chart. The oscillator values are momentum readings, not price levels. Use it alongside your chart for confluence, not as a standalone trading system.
— ⚖️ The six engines produce different signals on the same data . Efficiency and Composite tend to produce the most similar results. Fractal can diverge significantly during regime transitions. Volume engine auto-falls back to base alpha on instruments without volume data.
— 📊 Signal strength is relative to recent 50 bars , not absolute. A "Strong" reading during a low-volatility week may be weaker in absolute terms than a "Weak" reading during a high-volatility week.
— 🔄 Divergences use a 5-bar right confirmation — they appear 5 bars after the actual pivot. This delay is inherent to pivot detection and cannot be eliminated without introducing false positives.
— 📏 PPO mode normalizes the output as a percentage, making threshold settings (e.g., "divergence when oscillator > 2") comparable across instruments. MACD mode values scale with price — a reading of 5.0 on a $100 stock is different from 5.0 on a $50,000 BTC chart.
— 🛠️ This is a momentum analysis tool , not an automated trading bot. It measures and visualizes adaptive momentum — trade decisions remain yours.
— 🌐 Works on all markets and timeframes. Volume engine auto-adapts to available data. Indicator

Indicator

Indicator

Indicator

Adaptive Spectral Forecast [WillyAlgoTrader]📡 Adaptive Spectral Forecast is an overlay indicator that applies Goertzel spectral analysis to decompose price into its dominant cyclical components, reconstructs them as a harmonic sum, and then extrapolates the resulting waveform forward in time to generate a visual forecast with confidence bands. Signals fire when the forecast direction changes with sufficient signal-to-noise ratio and trend alignment — projecting where price is likely to oscillate next based on the cycles detected in recent history.
This is a fundamentally different approach from trend-following or momentum-based indicators. Instead of asking "where is price going based on its direction and speed?", spectral analysis asks "what recurring cycles exist in this price data, and where do they project to next?" The Goertzel algorithm is a targeted frequency detector — it scans a range of cycle periods, measures the power (amplitude²) at each frequency, identifies the dominant peaks, computes their exact phase and amplitude via DFT projection, and recombines them into a multi-harmonic forecast that decays toward the adaptive trend as it extends into the future.
🧩 WHY THESE COMPONENTS WORK TOGETHER
Raw price is a mix of trend, cycles, and noise. Attempting to forecast raw price directly fails because trend and cycles require different extrapolation methods: trend continues linearly, cycles repeat sinusoidally, and noise should not be extrapolated at all.
This indicator solves the problem through decomposition and reassembly:
EMA trend extraction → Hann-windowed detrending → Goertzel spectral scan → SNR peak detection → DFT coefficient extraction → Harmonic recombination with decay → Trend re-addition → Confidence bands
Each stage addresses a specific challenge:
— Trend extraction separates the slow directional component so it can be extrapolated linearly (via slope), not sinusoidally
— Hann windowing reduces spectral leakage — without it, the finite data window creates false frequency peaks that contaminate the analysis
— Goertzel scanning efficiently measures power at each candidate frequency without computing a full FFT — enabling targeted, adaptive-resolution frequency detection
— SNR filtering ensures only cycles with meaningful signal strength are included — weak noise-level frequencies are discarded
— DFT coefficient extraction computes the exact amplitude and phase of each selected cycle on un-windowed data (the Hann window is only for spectral scanning, not for coefficient calculation — this preserves correct amplitudes)
— Harmonic decay causes the cyclic component to gradually fade toward the trend as the forecast extends forward — reflecting the reality that detected cycles have limited persistence
— Confidence bands widen with √(bars ahead) × ATR, showing that forecast uncertainty grows with distance
Removing any component breaks the pipeline: without detrending, the Goertzel scan detects the trend as a low-frequency "cycle". Without Hann windowing, spectral leakage creates phantom peaks. Without SNR filtering, the forecast includes noise-level harmonics that produce random oscillations. Without decay, the harmonic projection repeats forever at full amplitude (unrealistic). The full pipeline is required.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Goertzel spectral analysis for cycle detection.
The Goertzel algorithm is a single-frequency DFT that computes the power at one specific period using a recursive formula:
s0 = data + 2×cos(2π/period) × s1 − s2
After iterating through all N data points, the power is: (s1 − s2×cos(ω))² + (s2×sin(ω))², normalized by N² for cross-period comparability.
The indicator scans every integer period from Min Cycle Period (default 8) up to N/2, with an adaptive step size: every period for fast cycles (≤30 bars), step of 2 for longer cycles (reducing computation without losing resolution where it matters most). For each period, the Goertzel power is computed, producing a power spectrum — a map of which cycle lengths carry the most energy in the current price data.
This is fundamentally more targeted than an FFT. An FFT computes power at all frequencies simultaneously but at fixed resolution (determined by window size). The Goertzel approach allows scanning exactly the frequency range of interest with customizable resolution.
2️⃣ SNR-based peak detection with fallback.
From the power spectrum, the indicator identifies local peaks (frequencies where power is higher than both neighbors) and computes the Signal-to-Noise Ratio for each: SNR = peak_power / mean_power_across_all_frequencies. Only peaks with SNR ≥ Min Cycle SNR (default 2.0) are accepted as genuine cycles — the rest are considered noise-level fluctuations.
If no peaks pass the SNR filter (possible in highly random or trend-dominated price action), the algorithm falls back to the single strongest frequency. In this case, the dashboard displays "Weak*" strength and buy/sell signals are suppressed — the forecast is shown for visual reference only, but the indicator acknowledges that no reliable cyclical structure was found.
The top N peaks (sorted by power, N = Harmonics Count, default 5) are selected as the dominant cycles.
3️⃣ DFT coefficient extraction on un-windowed data.
For each selected cycle period, the indicator computes exact sine and cosine coefficients using standard DFT projection:
a = (2/N) × Σ data × sin(2π × i / period)
b = (2/N) × Σ data × cos(2π × i / period)
Critically, this computation uses the raw detrended data (without Hann windowing). The Hann window was only applied for the spectral scan (to identify which frequencies are dominant). Using windowed data for coefficient extraction would distort the amplitude of the harmonics. This two-pass approach — windowed scan for detection, raw data for coefficients — is a key design choice that preserves forecast accuracy.
4️⃣ Harmonic extrapolation with configurable decay.
The forecast is constructed by evaluating the harmonic sum at each future bar:
forecast = trend_projection + Σ (a_k × sin(ω_k × t) + b_k × cos(ω_k × t)) × decay^(t − t_base)
Where trend_projection = trend_last + trend_slope × bars_ahead (linear extrapolation of the EMA trend). The decay factor (default 0.97) causes harmonic amplitude to reduce by 3% per bar, so the cyclic component gradually fades and the forecast converges toward the trend line.
At decay = 1.0, harmonics repeat at full amplitude forever (pure cycle projection). At decay = 0.95, they fade rapidly (forecast becomes trend-only within ~20 bars). Default 0.97 provides meaningful oscillation for the first 20–30 bars before fading. The forecast line is colored by segment: green segments where the forecast is rising, red where falling. Reversal dots mark predicted peaks and troughs.
5️⃣ ATR-based confidence bands with √t scaling.
Uncertainty in the forecast grows with distance. The confidence band width is calculated as:
band_width = ATR(14) × confidence_multiplier × √(bars_ahead)
The √t scaling follows the mathematical principle that forecast variance grows linearly with time horizon (standard deviation grows with square root). The ATR provides the natural volatility scale of the instrument. At bar +1, the band is approximately ATR × multiplier. At bar +25, it's 5× wider. This gives a realistic visual envelope of where price might actually be, not just the central harmonic forecast.
6️⃣ 3-bar consensus forecast direction.
Instead of using a simple "is the next bar higher or lower?" check (which is noisy), the forecast direction is determined by majority vote over 3 bars:
The indicator evaluates the forecast at t+0, t+1, t+2, t+3 and counts upward moves: upVotes = (y1>y0 ? 1:0) + (y2>y1 ? 1:0) + (y3>y2 ? 1:0). If ≥2 of 3 transitions are upward → forecast direction is bullish. If ≤1 → bearish. This consensus approach prevents a single-bar oscillation from flipping the forecast direction.
7️⃣ Trend alignment filter for signal quality.
When enabled (default on), buy signals require the EMA trend slope to be positive, and sell signals require negative slope. This prevents the indicator from generating counter-trend signals when a cycle oscillation temporarily points against the broader trend — which is the most common source of false signals in cycle-based systems.
If the trend filter blocks a direction change, the forecast visualization still updates (you can see the cycle projection) but no signal label is emitted. Additionally, signals are suppressed when the SNR is below the minimum threshold or when the spectral scan fell back to a single non-significant frequency.
8️⃣ Adaptive trend extraction with linear extrapolation.
The trend component is extracted using an EMA with configurable smoothing (default 30 bars), applied forward using the buildTrendArray function. The trend's slope is computed via weighted linear regression over the last 5 points of the trend array — providing a stable slope estimate that isn't dominated by a single bar.
The trend is extrapolated linearly into the forecast: trend_forecast = trend_last + slope × i. This linear projection is appropriate for the short-term forecast horizon (15–55 bars) where trend curvature is typically negligible.
9️⃣ Historical fit visualization.
The reconstructed harmonic sum + trend is plotted over historical data as a polyline, showing how well the detected cycles explain the actual price movement. This serves as an immediate visual validation: if the fit tracks price well, the detected cycles are meaningful. If the fit diverges significantly, the current market regime may not have strong cyclical structure (reflected in low SNR scores in the dashboard).
The fit line is colored by trend direction (green for bullish slope, red for bearish) and decimated for performance (every 1–3 bars depending on lookback length).
🔟 Four presets with coordinated parameter scaling.
— Conservative : lookback ≥ 150, harmonics ≤ 3, forecast ≥ 40 bars — stable, long-term cycles, less overfitting risk
— Default : user settings unchanged
— Aggressive : lookback ≤ 80, harmonics +1, forecast ≤ 25 — faster adaptation, more cycles included
— Scalping : lookback ≤ 50, harmonics +2, forecast ≤ 15 — shortest window, most harmonics, very short projection
Each preset adjusts lookback (spectral window), harmonics count (complexity), and forecast length (projection horizon) as a coordinated unit. Longer lookback needs fewer harmonics (the cycles are more stable). Shorter lookback needs more harmonics (to capture the faster fluctuations within the compressed window).
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Data collection: The last N bars (Analysis Lookback, default 144) of the selected price source are collected into an array, oldest first.
Step 2 — Trend extraction: An EMA with the Trend Smoothing period (default 30) is applied across the array using a forward-pass recursive formula: trend = α × price + (1−α) × trend . This produces a smooth trend array.
Step 3 — Detrending + Hann window: Each bar's trend value is subtracted from its price. The residual is multiplied by a Hann window: w = 0.5 × (1 − cos(2π×i/(N−1))). This isolates the cyclical component while minimizing spectral leakage at the data boundaries.
Step 4 — Goertzel spectral scan: For each candidate period from minPeriod to N/2 (adaptive step: 1 for periods ≤30, 2 for longer), the Goertzel algorithm computes power. The result is a power spectrum across all scanned frequencies.
Step 5 — Peak detection: Local maxima in the power spectrum are identified (power > both neighbors). Each peak's SNR is computed against the mean power. Peaks with SNR ≥ threshold are accepted. If none pass, the strongest single frequency is used as fallback (with "Weak*" marking).
Step 6 — Coefficient extraction: For the top N peaks (by power), sine and cosine coefficients are computed via DFT projection on raw (un-windowed) detrended data. This gives exact amplitude and phase for each cycle.
Step 7 — Forecast generation: The trend is extrapolated linearly using its 5-bar regression slope. Each harmonic is evaluated at future time steps with decay applied. The sum of trend + decayed harmonics produces the central forecast line. Confidence bands = ATR × multiplier × √(bars_ahead).
Step 8 — Direction and signals: 3-bar consensus determines forecast direction. Trend filter and SNR check gate signal emission. Buy/sell labels appear on bar-close confirmation.
📖 HOW TO USE
🎯 Quick start:
1. Add the indicator — the historical fit and forecast line appear on the last bar
2. The colored dotted line extending right is the forecast (green = rising, red = falling)
3. Colored dots (●) on the forecast mark predicted peaks and troughs
4. Dotted lines above and below = confidence bands (forecast uncertainty zone)
5. ▲/▼ labels = buy/sell signals when the forecast direction changes
👁️ Reading the chart:
— 🟢 Green solid line on history = harmonic fit (uptrend slope)
— 🔴 Red solid line on history = harmonic fit (downtrend slope)
— 🟢🔴 Dotted line extending right = forecast (colored by direction: green rising, red falling)
— 🔵 Upper/lower dotted lines = confidence bands (uncertainty grows with distance)
— 🟢 ● dots = predicted troughs (potential support)
— 🔴 ● dots = predicted peaks (potential resistance)
— 🟢 ▲ below bar = buy signal (forecast changed to bullish)
— 🔴 ▼ above bar = sell signal (forecast changed to bearish)
📊 Dashboard fields:
— Trend: current EMA trend direction (Bullish / Bearish / Neutral)
— Forecast: predicted direction (▲ Up / ▼ Down / — Flat)
— Signal: current state (BUY / SELL / Bullish Bias / Bearish Bias / Wait)
— Strength: cycle quality based on average SNR (Strong > 5.0 / Medium > 2.5 / Weak / Weak* = fallback)
— Dom. Cycle: dominant cycle period in bars (e.g., "34 bars")
— Cycles: how many cycles passed SNR filter vs. requested (e.g., "3 / 5")
— Timeframe, preset, version
🔧 Tuning guide:
— Forecast too noisy: reduce Harmonics Count (3), increase Min SNR (3.0+), increase Trend Smoothing
— Forecast too smooth: increase Harmonics Count (5–7), decrease Min SNR (1.5), decrease Trend Smoothing
— Cycles don't match price: increase Analysis Lookback (200+) for more stable cycle detection, or decrease for faster adaptation
— Forecast fades too fast: increase Decay Rate toward 0.99–1.0
— Forecast unrealistic long-term: decrease Decay Rate toward 0.95, reduce Forecast Bars
— Too many false signals: enable Trend Alignment Filter, increase Min SNR
— Scalping 1–5M: use Scalping preset (lookback ≤50, 7 harmonics, 15-bar forecast)
— Swing 4H–1D: use Conservative preset (lookback ≥150, 3 harmonics, 40-bar forecast)
⚙️ KEY SETTINGS REFERENCE
⚙️ Main:
— Analysis Lookback (default 144): spectral analysis window — the last N bars analyzed
— Harmonics Count (default 5): how many dominant cycles to include in the forecast
— Min Cycle Period (default 8): shortest cycle to scan for (bars)
— Preset (default Default): Conservative / Default / Aggressive / Scalping
— Trend Alignment Filter (default On): require trend-forecast agreement for signals
🔮 Forecast:
— Forecast Bars (default 55): projection length into the future
— Confidence Band Width (default 1.5× ATR): band multiplier
— Trend Smoothing (default 30): EMA period for trend component
— Harmonic Decay Rate (default 0.97): amplitude reduction per bar (1.0 = no decay)
— Min Cycle SNR (default 2.0): signal-to-noise threshold for cycle acceptance
🎨 Visual:
— Historical fit, trend line, reversal dots, confidence bands (all toggleable)
— Auto / Dark / Light theme
🔔 Alerts
— 🟢 BUY — ticker, price, timeframe, time
— 🔴 SELL — same fields
Both support plain text and JSON webhook format. Signals are bar-close confirmed, direction-locked, trend-filtered, and SNR-gated.
⚠️ IMPORTANT NOTES
— 📐 This is spectral analysis, not trend following. The indicator detects and projects recurring cycles. In markets with strong cyclical structure (commodities, forex majors, crypto with regular oscillations), it performs well. In news-driven or momentum-dominated markets with no cyclical structure, the SNR will be low and the forecast unreliable — the dashboard reflects this via the Strength reading.
— 🚫 No repainting of signals. The spectral analysis runs on barstate.islast (updating the forecast in real time on the current forming bar). Signals only fire on the next barstate.isconfirmed bar, after the forecast direction has been set. This means the forecast line itself updates in real time (by design — it's a live projection), but buy/sell signals are confirmed and do not change retroactively.
— 📊 The forecast is a projection, not a prediction. It shows where price would go if the detected cycles continue with their current amplitude and phase. Real markets introduce new information that disrupts cycles. The confidence bands reflect this growing uncertainty. Treat the forecast as a probabilistic zone, not a target.
— 🔄 "Weak*" strength means no cycles passed the SNR filter and the indicator fell back to the single strongest frequency. In this state, signals are suppressed. The forecast is still shown for visual reference but should not be trusted for trading decisions.
— ⚖️ The Hann window is applied only for spectral scanning , not for coefficient extraction. This is deliberate: the window prevents spectral leakage during frequency detection, but the un-windowed data preserves correct harmonic amplitudes for the forecast.
— 📏 The forecast extends a fixed number of bars into the future. Accuracy degrades with distance — the first 10–15 bars are typically the most reliable. The confidence bands quantify this degradation visually.
— 🛠️ This is a spectral analysis and forecasting tool , not an automated trading bot. It detects cycles, projects them forward, and generates directional signals — trade decisions remain yours.
— 🌐 Works on all markets and timeframes. Cycle periods adapt automatically to whatever timeframe you apply it on. Indicator

SmartTrend Pro [WillyAlgoTrader]📡 SmartTrend Pro is an overlay indicator built around a custom trend detection algorithm — the Adaptive Volatility Trend Engine (AVTE) — that replaces the standard Supertrend approach with Ehlers Super Smoother filtering and Kaufman adaptive ATR bands. Every trend flip is scored by a multi-factor confluence system (0–100) before becoming a signal. The result is a trend-following tool that adapts to current volatility conditions, filters out low-confidence entries, and provides dynamic TP/SL levels — all with full anti-repaint protection.
🧩 WHY THESE COMPONENTS WORK TOGETHER
A traditional Supertrend uses a simple moving average of True Range to calculate bands. This works in steady markets but produces false signals during volatility spikes and misses early reversals during compression. SmartTrend Pro replaces every component of this pipeline with an adaptive alternative, creating a system where each stage feeds the next:
Ehlers-filtered price → Kaufman-adaptive ATR → Volatility bands → Trend direction → Confluence scoring → Filtered signal → Risk levels
The Ehlers Super Smoother removes high-frequency noise from the price before the trend bands are calculated — this prevents the trend engine from reacting to random wicks. The Kaufman adaptive ATR widens bands when volatility is real (sustained directional movement) and tightens them during choppy, low-efficiency conditions — making the trend change threshold automatically adjust. The confluence scoring system then evaluates each trend flip against five independent market factors before allowing the signal to fire. And the TP/SL system freezes its risk distance at entry (using the ATR at signal time) so targets don't drift as volatility changes post-entry.
No single component here is sufficient on its own. An Ehlers filter without adaptive bands still produces false crossovers. Adaptive bands without scoring still trigger on weak trend flips. Scoring without frozen TP/SL creates drifting targets. The integrated pipeline solves all three problems simultaneously.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Adaptive Volatility Trend Engine (AVTE) — custom trend algorithm.
The AVTE replaces the standard Supertrend calculation at every stage:
Stage 1 — Price filtering: Instead of using raw price, the AVTE applies an Ehlers 2-pole Super Smoother to the source. The Ehlers filter uses the transfer function:
ss = c1 × (src + src ) × 0.5 + c2 × ss + c3 × ss
where c1 = 1 − c2 − c3, c2 = 2a × cos(√2 × π / period), c3 = −a², and a = exp(−√2 × π / period). This produces zero-lag frequency-domain filtering — it removes high-frequency noise without the phase distortion that a simple moving average introduces. The filter period is derived from the ATR period (ATR_period / 2, minimum 3).
Stage 2 — Adaptive volatility measurement: Instead of a fixed-length ATR, the AVTE uses a Kaufman Adaptive ATR. First, a standard ATR(period) is calculated. Then the Kaufman Efficiency Ratio (ER) is computed: ER = |close − close | / sum(|close − close |, period). The ER measures how much net directional movement exists relative to total path traveled — ranging from 0 (pure chop) to 1 (clean trend). The ER then modulates a smoothing constant: sc = (ER × (fast − slow) + slow)², where fast = 2/3 and slow = 2/31. The adaptive ATR blends: aATR = aATR + sc × (rawATR − aATR ). In trending conditions (high ER), the adaptive ATR reacts quickly to volatility changes. In choppy conditions (low ER), it smooths aggressively, preventing false band expansions.
Stage 3 — Band calculation and trend direction: Upper band = filtered_price + sensitivity × adaptive_ATR. Lower band = filtered_price − sensitivity × adaptive_ATR. Bands ratchet in the trend direction: the lower band can only rise (never fall) during uptrends, the upper band can only fall during downtrends. When close crosses above the upper band, trend flips bullish. When close crosses below the lower band, trend flips bearish. The trend line follows the lower band in uptrends, upper band in downtrends (step-line visualization).
The Sensitivity parameter (default 2.5) controls how far the bands sit from filtered price. Lower = tighter bands, more signals, faster reaction. Higher = wider bands, fewer signals, smoother.
2️⃣ Multi-confluence scoring system (0–100).
Every AVTE trend flip is evaluated against five independent market factors before becoming a signal:
Factor 1 — EMA alignment (±15 pts): Checks whether close > EMA(50) > EMA(200) for bullish alignment, or close < EMA(50) < EMA(200) for bearish. Full alignment = +15 (bull) or −15 (bear). No alignment = 0. This confirms the trend flip aligns with the broader trend structure.
Factor 2 — RSI position (±10 pts): RSI(14) between 50–70 = +10 (bullish momentum without overextension). RSI 30–50 = −10 (bearish). Extremes (>70 or <30) score 0 — avoiding signals at overbought/oversold levels where reversals are more likely.
Factor 3 — MACD histogram direction (±12 pts): MACD(12,26,9) histogram > 0 and rising = +12 (accelerating bullish momentum). Histogram < 0 and falling = −12 (accelerating bearish). This captures momentum acceleration, not just direction.
Factor 4 — Volume confirmation (0–8 pts): Volume > 20-period SMA × 1.2 = +8. This confirms institutional participation. Auto-disabled on instruments without volume data (forex).
Factor 5 — ADX strength (0–10 pts): ADX(14) > 25 = +10, ADX > 20 = +5. Confirms the market is trending, not ranging.
The base score starts at 50. Bullish factors add, bearish factors subtract. Final score is clamped to 0–100. A buy signal fires when the AVTE flips bullish AND score ≥ Min Signal Score (default 55). A sell signal fires when AVTE flips bearish AND score ≤ (100 − Min Signal Score), creating symmetric thresholds around 50. Signals with score ≥ 75 (buy) or ≤ 25 (sell) are classified as "Strong" and receive a distinct label.
3️⃣ Ehlers Super Smoother trend cloud.
A dual-band cloud system using two Ehlers Super Smoothers at different periods. The fast period depends on the Cloud Style setting:
— Adaptive: auto-adjusts between 13 and 55 based on current volatility — calculated as 34 × (1 + stdev(close, 20) / adaptive_ATR × 0.5)
— Fast: fixed at 21 (tight cloud for scalping)
— Smooth: fixed at 55 (wide cloud for swing)
— Minimal: fixed at 34 (single line, no fill)
The slow period = fast period × 2.618 (golden ratio). Cloud is bullish when fast > slow (green fill), bearish when fast < slow (red fill). The AVTE step-line is overlaid on the cloud for immediate trend-direction clarity. An optional trend tracer (EMA, default 233-period) provides institutional-level long-term bias.
4️⃣ Four-preset system with parameter scaling.
Presets modify three core parameters simultaneously using multipliers:
— Conservative : sensitivity × 1.4, ATR period × 1.3, min score floor 70 — fewer but higher-quality signals, for swing trading
— Balanced : no modification — default parameters, good for 15M–4H
— Aggressive : sensitivity × 0.7, ATR period × 0.8, min score ceiling 45 — more signals, faster entries
— Scalping : sensitivity × 0.5, ATR period × 0.6, min score ceiling 40 — optimized for 1–5M, tightest bands
Each preset adjusts the effective sensitivity, ATR length, and minimum score threshold proportionally, so one selection adapts the entire signal pipeline rather than requiring manual tuning of individual parameters.
5️⃣ Dynamic TP/SL with frozen risk distance.
Three stop-loss modes:
— ATR : SL distance = adaptive ATR × configurable multiplier (default 1.5×)
— Percentage : SL distance = fixed percentage of entry price
— Structure : SL distance = half the recent swing range (highest high − lowest low over swing lookback)
TP levels are calculated as multiples of SL distance: TP1 = SL × 1.5 (default), TP2 = SL × 2.5, TP3 = SL × 4.0. The SL distance is frozen at entry — once a signal fires, the risk distance is locked and does not change with subsequent volatility. This prevents TP/SL levels from drifting as ATR changes post-entry. TP hit markers (×) appear on the chart as each level is reached. An optional Chandelier Exit trailing stop follows price using the ATR multiplier, ratcheting in the profit direction.
6️⃣ Pullback signals within established trends.
In addition to trend-flip signals, the indicator detects pullback entries within an existing trend:
— Bullish pullback: AVTE trend is bullish (no flip), price retraces to EMA(pullback_sensitivity × 3), RSI(pullback_sensitivity) drops below 35 then starts rising — catching the bounce off trend support
— Bearish pullback: AVTE trend is bearish, price rallies to EMA, RSI exceeds 65 then starts falling
Pullback signals appear as small circles (distinct from the main Buy/Sell labels), providing additional entries within a confirmed trend direction. They are bar-close confirmed and warmup-protected.
7️⃣ Volatility gauge with statistical normalization.
The dashboard displays a real-time volatility reading (0–100%) calculated as: gauge = (ATR(10) − (SMA(ATR, 20) − StDev(ATR, 20))) / (2 × StDev(ATR, 20)) × 100, clamped to 0–100. This measures where current volatility sits relative to its recent statistical distribution: > 70% = High (above 1 standard deviation), 40–70% = Medium, < 40% = Low. This helps you assess whether the current environment suits your strategy: high volatility favors wider stops and fewer signals, low volatility favors tighter approaches.
8️⃣ Multi-timeframe trend panel (non-repainting).
The dashboard includes an MTF panel showing trend direction on 5M, 15M, 1H, 4H, and 1D — using close > EMA(200) with lookahead_on for guaranteed non-repainting. When most timeframes align in one direction, trend-flip signals in that direction have higher confluence.
9️⃣ Session detection.
The dashboard shows the current active trading session: Tokyo, London, New York, Sydney, or overlaps (London/New York, Tokyo/London). Sessions are calculated using UTC-based time windows. This helps you contextualize volatility: London/New York overlap is typically the highest-volume period, while off-hours have thinner liquidity.
🔟 Four optional filters.
Each filter can be independently toggled:
— Trend filter : only signals aligned with the Ehlers cloud direction
— Volume filter : only signals with volume EMA(10) > EMA(25) — auto-disabled for instruments without volume
— ADX filter : only signals when ADX > 20 (trending market)
— Momentum filter : only signals with MACD histogram aligned (positive + rising for buys, negative + falling for sells)
All filters default to Off — enabling them progressively reduces signal frequency while increasing average quality.
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Ehlers filtering: Source price is passed through the 2-pole Super Smoother with period = max(round(ATR_period / 2), 3). This removes intrabar noise while preserving trend structure.
Step 2 — Adaptive ATR: Kaufman Efficiency Ratio is calculated over the ATR period. The ER modulates the smoothing speed of ATR: trending conditions → fast adaptation, choppy conditions → slow adaptation.
Step 3 — Band construction: Upper = filtered_price + sensitivity × adaptive_ATR. Lower = filtered_price − sensitivity × adaptive_ATR. Bands ratchet: lower band can only rise in uptrends, upper band can only fall in downtrends.
Step 4 — Trend detection: Close above upper band → bullish. Close below lower band → bearish. The trend line is the active band (lower in uptrends, upper in downtrends).
Step 5 — Confluence scoring: On every bar, five factors are evaluated and combined into a 0–100 score. On a trend flip bar, the score determines whether the signal qualifies.
Step 6 — Filter gate: If any enabled filter disagrees, the signal is suppressed.
Step 7 — Signal emission: Buy or Sell label appears on the confirmed bar. Score ≥ 75 / ≤ 25 → "Strong Buy/Sell".
Step 8 — TP/SL placement: Risk distance is calculated and frozen. TP1/TP2/TP3 are placed as R:R multiples. Labels persist on the right side of the chart. Hit markers appear as each level is reached.
📖 HOW TO USE
🎯 Quick start:
1. Select a preset matching your style: Scalping (1–5M), Balanced (15M–4H), Conservative (4H–1D)
2. Add the indicator to your chart — the AVTE trend line and cloud appear immediately
3. Wait for a Buy or Sell label — the score next to it tells you the confluence quality
4. Check the dashboard: trend direction, score, market state (trending/ranging), volatility, session
5. TP/SL levels appear automatically — manage the trade using the marked levels
👁️ Reading the chart:
— 🟩 Green cloud fill = bullish trend (Ehlers fast > slow)
— 🟥 Red cloud fill = bearish trend
— Step-line on the cloud = AVTE trend boundary (the level that must break for a trend flip)
— 🟢 "Buy" / "Strong Buy" label below bar = confirmed bullish signal
— 🔴 "Sell" / "Strong Sell" label above bar = confirmed bearish signal
— 🟢 Small circle below bar = pullback buy (trend continuation entry)
— 🔴 Small circle above bar = pullback sell
— Orange line = entry price | Red line = stop loss | Green lines = TP1/TP2/TP3
— × markers = TP hit confirmations
— HH/HL/LH/LL labels (optional) = market structure swing points
📊 Dashboard fields:
— Trend: current AVTE direction (Bullish/Bearish)
— Signal: last confirmed signal (Buy/Sell/Wait)
— Score: current confluence score (0–100)
— Market: ADX-based state (Trending > 25 / Ranging > 20 / No Trend)
— Volatility: statistical gauge (High/Medium/Low with percentage)
— Session: current active session (Tokyo/London/New York/Sydney/overlaps)
— MTF Panel: 5M/15M/1H/4H/1D trend direction (close vs 200 EMA)
🔧 Tuning guide:
— Too many signals: increase Min Score, enable filters, switch to Conservative preset
— Too few signals: decrease Min Score, switch to Aggressive/Scalping, lower Sensitivity
— Signals too late: lower Sensitivity (tighter bands), use Fast cloud style
— Too many false signals: enable ADX filter (filters ranging markets), increase Min Score to 65+
— Scalping 1–5M: use Scalping preset, ATR mode SL with multiplier 1.0–1.5, TP1 R:R 1.0–1.5
— Swing 4H–1D: use Conservative preset, ATR mode SL with multiplier 2.0–3.0, TP3 R:R 5.0+
⚙️ KEY SETTINGS REFERENCE
⚙️ Main:
— Trend Sensitivity (default 2.5): AVTE band distance — lower = more signals, higher = fewer
— ATR Period (default 21): volatility measurement lookback
— Preset (default Balanced): Conservative / Balanced / Aggressive / Scalping
📡 Signal Tuning:
— Min Signal Score (default 55): minimum confluence to trigger signals
— Strong Signals Only (default Off): only show score ≥ 75
— Show Pullback Signals (default On): trend continuation entries
— Pullback Sensitivity (default 8): retracement detection lookback
☁️ Trend Cloud:
— Cloud Style (default Adaptive): Adaptive / Fast / Smooth / Minimal
— Trend Tracer (default Off): long-term EMA bias line (default 233)
🔍 Filters (all default Off):
— Trend Filter (cloud alignment) / Volume Filter / ADX Filter / Momentum Filter
🛡️ Risk Management:
— SL Mode (default ATR): ATR / Percentage / Structure
— SL ATR Multiplier (default 1.5×) / SL Percentage (default 1.0%)
— TP1/TP2/TP3 Risk:Reward (default 1.5 / 2.5 / 4.0)
— Trailing Stop (default Off): Chandelier Exit method
— Market Structure (default Off): HH/HL/LH/LL swing labels
🎨 Visual:
— Auto / Dark / Light theme
— Bar coloring: Trend Gradient / Signal Based / Momentum / None
— Background trend shading (default Off)
📊 Dashboard:
— Position, font size, MTF panel toggle
🔔 Alerts
— 🟢 Buy / Strong Buy — ticker, price, timeframe, score
— 🔴 Sell / Strong Sell — same fields
— 🎯 TP1 / TP2 / TP3 Hit — ticker, price
— 🛑 SL Hit — ticker, price
— ☁️ Cloud Cross Bullish / Bearish — ticker, timeframe
All alerts support plain text and JSON webhook format. Bar-close confirmed.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals require barstate.isconfirmed. TP/SL distances are frozen at entry and do not change retroactively. MTF data uses + lookahead_on for non-repainting HTF values. A warmup period (minimum 200 bars or 3× ATR period) prevents signals during insufficient data.
— 📐 The AVTE is not a standard Supertrend . It replaces every component: Ehlers Super Smoother instead of raw price, Kaufman adaptive ATR instead of fixed ATR, ratcheting bands instead of simple ±ATR. The mathematics are described in detail above.
— ⚖️ The confluence score is not a win-rate predictor . A score of 75 means five independent market factors align strongly — it measures confluence quality, not outcome probability. Use it to prioritize, not to guarantee.
— 📊 The scoring system uses standard indicators (EMA, RSI, MACD, Volume, ADX) as confluence factors , not as independent signal generators. None of these indicators alone triggers a signal — they only contribute to the score that gates an AVTE trend flip.
— 🔧 Presets modify parameters proportionally. After selecting a preset, you can still adjust individual settings — the preset sets the starting point, your adjustments override it.
— 📏 TP/SL levels are frozen at entry . The SL distance calculated at the signal bar persists until the next signal — it does not drift with changing ATR. This is by design for consistent risk management.
— 🔄 Pullback signals are continuation entries , not reversal signals. They only appear within an established AVTE trend and require RSI reversion from oversold/overbought — catching bounces off trend support/resistance.
— 🛠️ This is a signal and analysis tool , not an automated trading bot. It generates signals, scores them, and visualizes TP/SL — trade decisions remain yours.
— 🌐 Works on all markets and timeframes. Volume filter auto-disables on instruments without volume data. Indicator

CVD Optimal Entry HighlightsCVD Optimal Entry + Imbalance Alignment
Description:
This script is designed to highlight high-probability trade setups by combining advanced Cumulative Volume Delta (CVD) analysis, price acceptance and sequence detection, failed auction identification, and order flow imbalances. It integrates seamlessly with complementary AMT tools, providing both visual signals and alerts for traders looking to enter trends with structural and flow confirmation.
Core Concepts & Functionality:
CVD-Based Acceptance & Sequence Detection:
Tracks buying and selling delta per bar using volume-weighted calculations.
Identifies acceptance bars, where price shows initial directional commitment.
Detects sequence bars, which confirm that the initial move has follow-through.
By combining acceptance + sequence, the script filters out rotation or indecision phases, highlighting genuine trend opportunities.
Optimal Entry Highlights (OPT L / OPT S):
Flags potential long/short entries only when acceptance + sequence aligns with strong delta and FVG holding.
These entries are intended to maximize edge by aligning structure with momentum, reducing false entries in rotational markets.
Integration with AMT Orderflow Profile + Imbalance Highlight + Dashboard:
The script works best when confirmed with bin-based imbalances, as printed by the AMT Orderflow Profile script.
Only trades where a sequence occurs in the direction of a confirmed imbalance (BUY IMB or SELL IMB) are considered highest probability.
This ensures that market participant aggression aligns with your structural setup, increasing trade reliability.
Strong Delta Confirmation (CVD Flow Dashboard ):
Alerts for strong buying or selling delta are factored into optimal entry conditions.
This allows traders to filter trades to moments of genuine volume dominance, further enhancing probability.
Alerts & Automation:
Custom alerts can be set for:
Sequence Long / Sequence Short (from the All-in-One Ultra CVD + Failed Auction + Flow + Acceptance + Sequence indicator)
Strong Delta confirmations
Optimal entry occurrences (OPT L / OPT S)
Alerts ensure traders are notified only when structural, volume, and order flow conditions align, minimizing screen time and discretionary errors.
Trading Usage & Considerations:
Trend-phase trading: Enter trades when OPT L/OPT S aligns with sequence and imbalance; this is your high-probability zone.
Rotation avoidance: If sequence does not form after acceptance, the market is likely rotating; avoid forcing trend trades in these phases.
Imbalance alignment: Only act when the direction of the sequence matches confirmed BUY or SELL imbalances from the AMT Profile.
Multi-indicator synergy: Combining acceptance + sequence + strong delta + imbalance provides structural + flow confirmation, the core advantage of this system.
Visualization:
OPT L / OPT S markers plotted directly on bars.
Sequence bars can be highlighted with distinct colors to distinguish trending vs rotational phases.
Integration with AMT Orderflow Profile: Use the bin imbalance overlays to visually confirm trade alignment. Indicator

VTS Strategy [Quision]Overview
This strategy is built on top of BackQuant's Volatility Trend Score indicator , an open-source tool that quantifies trend persistence through a volatility-adjusted trailing structure and a rolling comparison score.
The original indicator answers a critical question: "Is the market trending with conviction, or is it chopping?" - by scoring how consistently an ATR-based trailing level advances over a configurable lookback window. This strategy wraps that core logic into a fully tradeable system with proper risk management, flexible exit modes, and session filtering.
All credit for the core indicator logic goes to BackQuant. This publication adds only the strategy execution layer.
What This Strategy Adds
1. ATR-Based Stop Loss
A dedicated ATR stop loss (independent of the indicator's core ATR) protects every trade with a volatility-scaled risk level. The SL ATR period and multiplier are fully configurable, allowing you to tune risk independently from the signal generation.
2. Risk:Reward Take Profit
The take profit is calculated as a multiple of the stop loss distance.
3. Three Exit Modes
The strategy offers three distinct exit modes to match different trading styles:
- Signal Flip Only, Exits only when the VTS score flips to the opposite regime. No SL/TP. Pure trend-following.
- SL/TP Only, Exits only when the stop loss or take profit is hit. Ignores signal flips. Pure risk management.
- Signal Flip + SL/TP, Both mechanisms are active. Maximum flexibility.
4. Optional Trailing Stop
When enabled, the trailing stop progressively tightens the stop loss as the trade moves in your favor. It only activates after the position is in profit.
5. Session Filter
Restrict trading to specific hours. Configurable timezone support (Exchange, UTC, Europe/Rome, America/New_York, Europe/London, Asia/Tokyo).
Recommended Usage
This strategy works best on instruments with clear trending behavior and sufficient volatility. The VTS core logic excels at filtering out choppy conditions, making it particularly effective on:
Crypto pairs (BTC, ETH)
Gold (XAUUSD)
Major forex pairs
Index futures
Suggested starting settings:
ATR Period: 35, Factor: 1.2
Loop: 1–45 (default)
Long Threshold: 40, Short Threshold: -10 (default)
SL ATR Period: 14, SL Multiplier: 3.0
TP R:R: 6.0
Session: adjust to your instrument's active hours
Important Notes
The core indicator logic is entirely BackQuant's work. Please refer to the original publication for detailed documentation on the scoring mechanism, tuning guidelines, and theoretical foundations.
Strategy

Rolling Trendline [LuxAlgo]The Rolling Trendline indicator provides a dynamic, self-adjusting trendline that tracks price action using linear regression slope projections and automatically resets when price deviates beyond a specific threshold.
🔶 USAGE
The indicator is designed to provide a continuous trend bias without the "lag" often associated with static linear regression lines. It projects a line forward based on a calculated slope and only shifts its trajectory when the market demonstrates a significant change in momentum.
The addition of ATR-based volatility zones allows traders to visualize a range of expected price action around the projected trend, providing a buffer that accounts for market volatility at the time of each trend reset.
🔹 Interpreting the Line and Zones
Bullish Phase (Green): Indicates an upward-sloping trajectory. The trendline and its surrounding ATR zones will be colored green, suggesting a bullish bias.
Bearish Phase (Red): Indicates a downward-sloping trajectory. The trendline and its surrounding ATR zones will be colored red, suggesting a bearish bias.
ATR Zones: These shaded areas represent a volatility-adjusted range. As long as price remains within the deviation threshold, the zones follow the trendline's trajectory.
Reset Points: Visualized by a small circle and a break in the line, these occur when price moves too far from the projection. At this moment, the indicator re-anchors to the current price and recalculates both the slope and the ATR zone width.
🔶 DETAILS
The indicator follows a specific logic flow to maintain its "Rolling" characteristic:
1. Slope Calculation: It calculates the Linear Regression slope over a user-defined lookback period. This slope represents the average rate of change in price.
2. Projection: On every new bar, the indicator projects the next value of the trendline by adding the active slope to the previous trendline value.
3. Deviation Check: The indicator calculates a Standard Deviation threshold. If the distance between the current price and the projected trendline value exceeds this threshold, a reset is triggered.
4. Re-Anchoring: Upon a reset, the trendline "rolls" to the current price and adopts the most recent linear regression slope. Simultaneously, it captures the current ATR to set the width of the new trend zones.
🔶 SETTINGS
🔹 Trend Settings
Slope Lookback: The period used to calculate the linear regression slope. Higher values result in a slope that considers more historical data.
Deviation Multiplier: Determines how far price can deviate from the trendline before a reset occurs.
Slope Divisor: This setting allows you to tame the trajectory of the line. Higher values divide the captured slope, resulting in flatter trendlines.
Source: The price data used for all calculations (default is Close).
🔹 ATR Zones
ATR Length: The lookback period used for the Average True Range calculation, which determines the width of the volatility bands.
ATR Multiplier: Controls the width of the shaded zones around the trendline.
🔹 Visuals
Bullish/Bearish Trend Colors: Customizes the colors for the trendline and zones based on the slope direction.
Zone Color: Sets the base color for the ATR area fills.
Line Width: Adjusts the thickness of the primary rolling trendline.
Indicator
