PROTECTED SOURCE SCRIPT
已更新 Swing Aurora v2.1: The Adaptive Multi-Filter Trend Engine

This is a comprehensive, auto-adaptive trend and swing trading algorithm designed for maximizing signal quality across multiple timeframes. The Swing Algo v2.1 uses a robust scoring system that integrates price action, momentum, volatility, and trend strength indicators to generate high-conviction BUY and SELL signals.
The indicator automatically adjusts key filtering parameters (like entry distance and minimum swing length) based on the chart's current timeframe, ensuring optimal performance whether you're scalping on 5m or swing trading on 4h.
Key Features:
Adaptive Sensitivity: Automatically tunes core filtering parameters to maintain signal relevance from short-term to long-term charts.
High-Conviction Scoring: Signals are generated through a strict multi-factor scoring system incorporating Moving Averages (HMA/EMA), Trend Strength (ADX), Volatility (ATR), and Momentum (StochRSI/MACD).
"STRONG" Signal Logic: Highest-quality signals require maximum alignment across multiple macro-filters, including momentum divergence and strict trend confirmation, ensuring only high-probability reversal points are flagged.
Volatility-Aware Cooldown: Dynamically adjusts the waiting period between signals based on current market volatility, preventing "whiplash" (flip-flopping) during ranging markets and ensuring clean entries.
Visual Clarity: The background shading clearly maps the market state:
Green/Red: Active Swing/Trend Zones.
Orange: Watch/Transition Zone (Potential reversal or momentum weakening).
Gray: No-Trade Zone (Consolidation or low momentum).
The Swing Algo v2.1 is engineered to prioritize signal quality and robustness over frequency, helping traders identify clean, actionable swing opportunities with reduced noise.
Parameters explained :
This section provides a detailed breakdown of the parameters available in the Inputs Menu of the Swing Algo v2.1 script. These settings allow you to fine-tune the algorithm's sensitivity and filtering for your specific trading style and assets.
1. Presets
Mode (Balanced): Sets the overall signal strictness. Defines the minimum score thresholds (minBuy and minStrong). Options are: Aggressive (more frequent signals), Balanced (standard quality/frequency), and Conservative (strictest filters, focusing on high-conviction moves).
Confirmation ON (bar close, no repaint): (Default: True) If checked, signals are only confirmed and displayed on the close of the bar, ensuring the signal is non-repainting.
Cooldown between flips (bars): (Default: 4) Sets the base minimum number of bars the system must wait between a BUY and a SELL (or vice versa). This value is dynamically adjusted by volatility (ATR) when Auto-tune is ON.
Auto-tune settings by chart timeframe: (Default: True) Highly Recommended. If checked, the script automatically adjusts key filtering parameters (Baseline length, Min Distance, Cooldown, Trigger Window) based on the current chart timeframe (e.g., stricter on 5m, looser on 4h).
Trigger Lookback Window (Bars): (Default: 2) Defines the maximum number of bars back a core trigger event (EMA Cross or Stoch signal) must have occurred to be considered valid for the current swing flip. (Auto-tuned to 1 bar on M5/M15 for speed, 3 on H1/H4 for reliability).
2. Core (Baseline, EMAs, ADX)
Baseline (HMA): The primary reference moving average for trend direction. Options are Hull Moving Average (HMA) or Exponential Moving Average (EMA).
Baseline length (100): The lookback period for the primary Baseline.
Fast EMA (breakout) (34): The lookback period for the fast EMA used for momentum and initial breakout confirmation.
Bias EMA (context) (200): A longer-term EMA used to define the macro-contextual bias (e.g., trend is only truly Bullish if price is above the 200 EMA).
Use EMA200 context bias (True): If checked, adds a score penalty for counter-trend signals against the Bias EMA (EMA 200).
ADX length (14): The lookback period for the Average Directional Index (ADX). ADX measures trend strength.
ADX Trend Confirmation Bars (3): The minimum number of recent bars required to show directional ADX strength before a flip is validated.
Sensitivity (10-90) (50): A slider that broadly controls the strictness of volatility and trend filters. Higher sensitivity (e.g., 80) makes the script react faster but increases noise; lower sensitivity (e.g., 30) filters more but can cause lag.
3. VDUBS & Divergence Filters (Fusion Logic)
Vdub EMA 1 (13) / Vdub EMA 2 (21): The lengths for the two short-term EMAs used for the Vdub Trend Filter. When both are aligned (rising/falling), they provide a strong score boost and color the trend lines.
Use Divergence for STRONG Signals (True): If checked, the system requires a confirmed multi-indicator divergence score to issue a STRONG BUY/SELL signal. It acts as a mandatory filter for high quality.
Divergence Lookback Bars (LB/RB) (10): The number of bars left/right used to identify Pivot Highs/Lows and measure the divergence angle.
Min Indicators for Divergence (Score) (2): The minimum number of chosen indicators (RSI, MACD, Stoch) that must show divergence simultaneously to satisfy the divergence filter.
Check RSI Div / MACD Div / Stoch Div (True): Allows you to select which specific momentum indicators contribute to the total divergence score.
4. HTF & StochRSI Filters
Use HTF regime filter (False): Enables the Higher Timeframe (HTF) filter. If checked (or if Mode is set to Conservative), signals are penalized if they counter the trend of the selected HTF.
HTF Timeframe (Auto): The timeframe used for the HTF filter. Auto mode selects a suitable higher TF (e.g., 4H for a 30m chart).
HTF Baseline len (120): The length of the moving average used for the Higher Timeframe check.
Use Stoch RSI filter/trigger (True): Enables the StochRSI indicator logic, adding a score boost when price is oversold/overbought and Stoch K/D cross over or under the bands.
RSI length (for StochRSI) (14) / StochRSI length (14): Standard lengths for the components of the StochRSI calculation.
Stoch K/D smoothing (3): Standard smoothing periods for the StochRSI K and D lines.
Stoch oversold level (20) / Stoch overbought level (80): Defines the critical overbought/oversold bands.
5. Robustness
Min distance from Baseline (×ATR) (0.15): Sets a baseline threshold for the dynamic distance calculation. Signals only occur if the price is far enough from the baseline to indicate real momentum (this value is auto-tuned to be much higher on low TFs).
Min bars per swing (avoid noise) (8): The minimum number of bars required between an entry and exit signal to qualify as a valid swing.
Min slope as % ATR (0.02): Defines the minimum required steepness (slope) for the Baseline/EMA to ensure the market has directional movement. Used to filter signals during flat, choppy periods.
NOTE: All default values shown in parentheses above are the starting points. When Auto-tune is enabled, these values are dynamically adjusted by the script based on the current chart timeframe to provide optimal filtering.
🛑 IMPORTANT RISK DISCLAIMER
THIS INDICATOR IS FOR EDUCATIONAL AND INFORMATIONAL PURPOSES ONLY AND DOES NOT CONSTITUTE FINANCIAL ADVICE.
By using this script, you acknowledge that trading foreign exchange, cryptocurrencies, stocks, and any other financial instruments involves significant risk of loss and is not suitable for all investors. The high degree of leverage that is often available in trading can work against you as well as for you.
Past performance is not indicative of future results. All decisions to buy, sell, or hold a financial instrument remain the sole responsibility of the user. You must rely on your own judgment and discretion. We recommend that you do not invest money that you cannot afford to lose. Never trade with money that is essential to your survival. Neither the creator of this script nor its distributors assume any responsibility for your trading results. Always consult with a qualified financial professional before making any investment decisions.
The indicator automatically adjusts key filtering parameters (like entry distance and minimum swing length) based on the chart's current timeframe, ensuring optimal performance whether you're scalping on 5m or swing trading on 4h.
Key Features:
Adaptive Sensitivity: Automatically tunes core filtering parameters to maintain signal relevance from short-term to long-term charts.
High-Conviction Scoring: Signals are generated through a strict multi-factor scoring system incorporating Moving Averages (HMA/EMA), Trend Strength (ADX), Volatility (ATR), and Momentum (StochRSI/MACD).
"STRONG" Signal Logic: Highest-quality signals require maximum alignment across multiple macro-filters, including momentum divergence and strict trend confirmation, ensuring only high-probability reversal points are flagged.
Volatility-Aware Cooldown: Dynamically adjusts the waiting period between signals based on current market volatility, preventing "whiplash" (flip-flopping) during ranging markets and ensuring clean entries.
Visual Clarity: The background shading clearly maps the market state:
Green/Red: Active Swing/Trend Zones.
Orange: Watch/Transition Zone (Potential reversal or momentum weakening).
Gray: No-Trade Zone (Consolidation or low momentum).
The Swing Algo v2.1 is engineered to prioritize signal quality and robustness over frequency, helping traders identify clean, actionable swing opportunities with reduced noise.
Parameters explained :
This section provides a detailed breakdown of the parameters available in the Inputs Menu of the Swing Algo v2.1 script. These settings allow you to fine-tune the algorithm's sensitivity and filtering for your specific trading style and assets.
1. Presets
Mode (Balanced): Sets the overall signal strictness. Defines the minimum score thresholds (minBuy and minStrong). Options are: Aggressive (more frequent signals), Balanced (standard quality/frequency), and Conservative (strictest filters, focusing on high-conviction moves).
Confirmation ON (bar close, no repaint): (Default: True) If checked, signals are only confirmed and displayed on the close of the bar, ensuring the signal is non-repainting.
Cooldown between flips (bars): (Default: 4) Sets the base minimum number of bars the system must wait between a BUY and a SELL (or vice versa). This value is dynamically adjusted by volatility (ATR) when Auto-tune is ON.
Auto-tune settings by chart timeframe: (Default: True) Highly Recommended. If checked, the script automatically adjusts key filtering parameters (Baseline length, Min Distance, Cooldown, Trigger Window) based on the current chart timeframe (e.g., stricter on 5m, looser on 4h).
Trigger Lookback Window (Bars): (Default: 2) Defines the maximum number of bars back a core trigger event (EMA Cross or Stoch signal) must have occurred to be considered valid for the current swing flip. (Auto-tuned to 1 bar on M5/M15 for speed, 3 on H1/H4 for reliability).
2. Core (Baseline, EMAs, ADX)
Baseline (HMA): The primary reference moving average for trend direction. Options are Hull Moving Average (HMA) or Exponential Moving Average (EMA).
Baseline length (100): The lookback period for the primary Baseline.
Fast EMA (breakout) (34): The lookback period for the fast EMA used for momentum and initial breakout confirmation.
Bias EMA (context) (200): A longer-term EMA used to define the macro-contextual bias (e.g., trend is only truly Bullish if price is above the 200 EMA).
Use EMA200 context bias (True): If checked, adds a score penalty for counter-trend signals against the Bias EMA (EMA 200).
ADX length (14): The lookback period for the Average Directional Index (ADX). ADX measures trend strength.
ADX Trend Confirmation Bars (3): The minimum number of recent bars required to show directional ADX strength before a flip is validated.
Sensitivity (10-90) (50): A slider that broadly controls the strictness of volatility and trend filters. Higher sensitivity (e.g., 80) makes the script react faster but increases noise; lower sensitivity (e.g., 30) filters more but can cause lag.
3. VDUBS & Divergence Filters (Fusion Logic)
Vdub EMA 1 (13) / Vdub EMA 2 (21): The lengths for the two short-term EMAs used for the Vdub Trend Filter. When both are aligned (rising/falling), they provide a strong score boost and color the trend lines.
Use Divergence for STRONG Signals (True): If checked, the system requires a confirmed multi-indicator divergence score to issue a STRONG BUY/SELL signal. It acts as a mandatory filter for high quality.
Divergence Lookback Bars (LB/RB) (10): The number of bars left/right used to identify Pivot Highs/Lows and measure the divergence angle.
Min Indicators for Divergence (Score) (2): The minimum number of chosen indicators (RSI, MACD, Stoch) that must show divergence simultaneously to satisfy the divergence filter.
Check RSI Div / MACD Div / Stoch Div (True): Allows you to select which specific momentum indicators contribute to the total divergence score.
4. HTF & StochRSI Filters
Use HTF regime filter (False): Enables the Higher Timeframe (HTF) filter. If checked (or if Mode is set to Conservative), signals are penalized if they counter the trend of the selected HTF.
HTF Timeframe (Auto): The timeframe used for the HTF filter. Auto mode selects a suitable higher TF (e.g., 4H for a 30m chart).
HTF Baseline len (120): The length of the moving average used for the Higher Timeframe check.
Use Stoch RSI filter/trigger (True): Enables the StochRSI indicator logic, adding a score boost when price is oversold/overbought and Stoch K/D cross over or under the bands.
RSI length (for StochRSI) (14) / StochRSI length (14): Standard lengths for the components of the StochRSI calculation.
Stoch K/D smoothing (3): Standard smoothing periods for the StochRSI K and D lines.
Stoch oversold level (20) / Stoch overbought level (80): Defines the critical overbought/oversold bands.
5. Robustness
Min distance from Baseline (×ATR) (0.15): Sets a baseline threshold for the dynamic distance calculation. Signals only occur if the price is far enough from the baseline to indicate real momentum (this value is auto-tuned to be much higher on low TFs).
Min bars per swing (avoid noise) (8): The minimum number of bars required between an entry and exit signal to qualify as a valid swing.
Min slope as % ATR (0.02): Defines the minimum required steepness (slope) for the Baseline/EMA to ensure the market has directional movement. Used to filter signals during flat, choppy periods.
NOTE: All default values shown in parentheses above are the starting points. When Auto-tune is enabled, these values are dynamically adjusted by the script based on the current chart timeframe to provide optimal filtering.
🛑 IMPORTANT RISK DISCLAIMER
THIS INDICATOR IS FOR EDUCATIONAL AND INFORMATIONAL PURPOSES ONLY AND DOES NOT CONSTITUTE FINANCIAL ADVICE.
By using this script, you acknowledge that trading foreign exchange, cryptocurrencies, stocks, and any other financial instruments involves significant risk of loss and is not suitable for all investors. The high degree of leverage that is often available in trading can work against you as well as for you.
Past performance is not indicative of future results. All decisions to buy, sell, or hold a financial instrument remain the sole responsibility of the user. You must rely on your own judgment and discretion. We recommend that you do not invest money that you cannot afford to lose. Never trade with money that is essential to your survival. Neither the creator of this script nor its distributors assume any responsibility for your trading results. Always consult with a qualified financial professional before making any investment decisions.
發行說明
Swing Aurora v2.1 — The Adaptive Multi-Filter Trend EngineSwing Aurora v2.1 is a non-repainting trend & swing engine that blends baseline structure, momentum breaks, volatility regime, volume confirmation, ADX trend quality, HTF bias, StochRSI triggers, divergence/VDUB alignment, and volatility-aware cooldowns into one coherent map.
It paints:
Long/Short shading with strength (darker = stronger confluence)
Watch/Transition zones (amber) when momentum/bias are mixed
No-Trade zones (gray) during low range or price hugging the baseline
Single BUY/SELL flips per swing, with STRONG tags when confluence peaks
Aurora adapts to the chart timeframe (optional Auto-Tune) and resists chop using a cooldown scaled by volatility (ATR), a distance-from-baseline guard, and two-bar trend confirmation.
What’s under the hood
Baseline + Slope (HMA/EMA) – defines structure; slope vs ATR gates trend validity.
Fast EMA breakout – captures momentum shifts and confirms continuation.
ADX (Wilder) + DI – filters weak trends; rising ADX favors entries.
MACD & Histogram – adds thrust confirmation to the score.
BB vs Keltner “Squeeze” – recognizes regime changes and post-squeeze expansions.
Volume Z-Score – requires relative participation (not absolute volume).
StochRSI Triggers – optional timing cross at oversold/overbought (strict or relaxed).
HTF Regime Filter – optional higher-timeframe baseline context (Chart/Auto/1h/4h/D/W).
VDUB EMA Color Filter – short-term trend alignment (EMA-13/EMA-21).
Divergence Gate (optional for STRONG) – RSI/MACD/Stoch divergence around pivots.
Trigger Window – accepts a BUY/SELL trigger within the last N bars to avoid late tags.
Volatility-Aware Cooldown – swing flip spacing scales with ATR/ATR-slow ratio.
All signals are confirmed on bar close when “Confirmation ON” is checked (non-repaint).
Inputs & how to tune them
Presets
Mode:
Aggressive — lower score thresholds (more signals).
Balanced — default.
Conservative — highest thresholds + HTF bias recommended.
Confirmation ON: confirms on bar close (no repaint).
Cooldown between flips: minimum bars between opposite signals (also auto-scaled by volatility).
Auto-tune by timeframe: adjusts lengths, sensitivity, swing distance, and cooldown based on the chart TF.
Trigger Lookback Window (Bars): how many bars back we accept a BUY/SELL trigger (1–3).
Core
Baseline (HMA/EMA) & Baseline length – structure curve + slope.
Fast EMA (breakout) – momentum confirmation.
Bias EMA (context, e.g., 200) – directional bias filter.
ADX length & ADX trend confirmation bars – quality/consistency of trend.
BB length/stdev & Keltner length/ATRx – squeeze detection.
ATR length / ATR mean lookback – consolidation & volatility guards.
Sensitivity (10–90) – moves thresholds for ADX, volatility buffers, and volume z-score.
HTF
Use HTF regime filter – combine current TF with Chart/Auto/60/240/D/W bias.
HTF Baseline len – baseline length on the selected HTF.
StochRSI
Use StochRSI filter/trigger – enables K/D crosses.
RSI length / Stoch length / K / D – standard StochRSI parameters.
Oversold/Overbought levels – default 20/80; adjust per symbol.
Strict at bands – require the cross at the band, not inside.
Stoch score weight (0–3) – how much a valid Stoch trigger adds to confluence.
Divergence & VDUB
Require Divergence for STRONG – when ON, STRONG needs bullish/bearish divergence.
Divergence lookback – pivot left/right bars (non-repaint, uses right-bar confirmation).
Min indicators for divergence – how many of RSI/MACD/Stoch must agree.
Vdub EMA 13/21 & Filter – short-term trend color. STRONG prefers alignment.
Robustness & Visuals
Min distance from Baseline (×ATR) – prevents entries too close to the baseline.
Min bars per swing – avoids flip-flopping in chop.
Min slope as % ATR – declines shallow slopes.
Shading toggles – Long, Short, Watch/Transition, No-Trade.
V-lines & labels – flip markers and BUY/SELL/STRONG tags.
Recommended quick presets
5–15m: Auto-Tune ON, Mode Balanced, Trigger Window 1–2, Min Swing 8–10, Stoch weight 2.
30–60m: Trigger Window 1–2, Min Swing 8, HTF filter optional.
2–4h: Trigger Window 1–2, Min Swing 6–8, HTF filter ON.
1D: Trigger Window 1, Min Swing 4–6, HTF ON, Divergence ON for STRONG.
Tip: If you see good structure but missing labels, slightly lower min distance from baseline or raise sensitivity, and keep Trigger Window at 1–2 for intraday.
How to read the chart
Green shading = in-long swing; darker = higher confluence score.
Red shading = in-short swing; darker = higher confluence score.
Amber = Watch/Transition (mixed signals; prepare but be selective).
Gray = No-Trade (weak ADX + low ATR or price hugging the baseline).
BUY/SELL labels appear at confirmed flips; STRONG requires extra confluence (VDUB + divergence, score threshold, and clean slope/distance).
Alerts (names)
Buy — BUY (Swing Algo v2.1)
Sell — SELL (Swing Algo v2.1)
Strong Buy — STRONG BUY (Swing Algo v2.1)
Strong Sell — STRONG SELL (Swing Algo v2.1)
Repaint policy
With Confirmation ON, signals are computed on bar close and do not repaint.
HTF series use lookahead_off and closed HTF bars; no peeking.
Troubleshooting & tips
Too many early tags? Increase Min bars per swing and Cooldown, use Strict StochRSI at bands, or enable HTF filter.
Late exits? Lower Trigger Window to 1 and reduce Min distance from baseline slightly.
Chop noise? Raise Min slope as % ATR and ADX range threshold, keep No-Trade shading ON.
Flat volume markets? Lower Volume Z-Score lookback a bit or disable volume gate temporarily.
What’s new in v2.1 (highlights)
Volatility-aware cooldown (ATR-scaled swing spacing)
Trigger window (accepts recent triggers to avoid late tags)
Adaptive distance from baseline tied to volatility
Optional divergence gate for STRONG + VDUB EMA alignment
Cleaner Watch/No-Trade separation and stronger confluence shading
Disclaimer
This script is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice, and no performance is guaranteed. Markets involve risk, including the loss of principal. Always validate signals on multiple timeframes, forward-test on a demo account, and use appropriate risk management. By using this indicator you agree that the author(s) are not liable for any decisions or outcomes resulting from its use.
發行說明
Swing Aurora v2.5 — The Adaptive Multi-Filter Trend EngineSwing Aurora v2.5 is a non-repainting trend & swing engine that blends baseline structure, momentum breaks, volatility regime, volume confirmation, ADX trend quality, HTF bias, StochRSI triggers, divergence/VDUB alignment, and volatility-aware cooldowns into one coherent map.
It paints:
Long/Short shading with strength (darker = stronger confluence)
Watch/Transition zones (amber) when momentum/bias are mixed
No-Trade zones (gray) during low range or price hugging the baseline
Single BUY/SELL flips per swing, with STRONG tags when confluence peaks
Aurora adapts to the chart timeframe (optional Auto-Tune) and resists chop using a cooldown scaled by volatility (ATR), a distance-from-baseline guard, and two-bar trend confirmation.
What’s under the hood
Baseline + Slope (HMA/EMA) – defines structure; slope vs ATR gates trend validity.
Fast EMA breakout – captures momentum shifts and confirms continuation.
ADX (Wilder) + DI – filters weak trends; rising ADX favors entries.
MACD & Histogram – adds thrust confirmation to the score.
BB vs Keltner “Squeeze” – recognizes regime changes and post-squeeze expansions.
Volume Z-Score – requires relative participation (not absolute volume).
StochRSI Triggers – optional timing cross at oversold/overbought (strict or relaxed).
HTF Regime Filter – optional higher-timeframe baseline context (Chart/Auto/1h/4h/D/W).
VDUB EMA Color Filter – short-term trend alignment (EMA-13/EMA-21).
Divergence Gate (optional for STRONG) – RSI/MACD/Stoch divergence around pivots.
Trigger Window – accepts a BUY/SELL trigger within the last N bars to avoid late tags.
Volatility-Aware Cooldown – swing flip spacing scales with ATR/ATR-slow ratio.
All signals are confirmed on bar close when “Confirmation ON” is checked (non-repaint).
Inputs & how to tune them
Presets
Mode:
Aggressive — lower score thresholds (more signals).
Balanced — default.
Conservative — highest thresholds + HTF bias recommended.
Confirmation ON: confirms on bar close (no repaint).
Cooldown between flips: minimum bars between opposite signals (also auto-scaled by volatility).
Auto-tune by timeframe: adjusts lengths, sensitivity, swing distance, and cooldown based on the chart TF.
Trigger Lookback Window (Bars): how many bars back we accept a BUY/SELL trigger (1–3).
Core
Baseline (HMA/EMA) & Baseline length – structure curve + slope.
Fast EMA (breakout) – momentum confirmation.
Bias EMA (context, e.g., 200) – directional bias filter.
ADX length & ADX trend confirmation bars – quality/consistency of trend.
BB length/stdev & Keltner length/ATRx – squeeze detection.
ATR length / ATR mean lookback – consolidation & volatility guards.
Sensitivity (10–90) – moves thresholds for ADX, volatility buffers, and volume z-score.
HTF
Use HTF regime filter – combine current TF with Chart/Auto/60/240/D/W bias.
HTF Baseline len – baseline length on the selected HTF.
StochRSI
Use StochRSI filter/trigger – enables K/D crosses.
RSI length / Stoch length / K / D – standard StochRSI parameters.
Oversold/Overbought levels – default 20/80; adjust per symbol.
Strict at bands – require the cross at the band, not inside.
Stoch score weight (0–3) – how much a valid Stoch trigger adds to confluence.
Divergence & VDUB
Require Divergence for STRONG – when ON, STRONG needs bullish/bearish divergence.
Divergence lookback – pivot left/right bars (non-repaint, uses right-bar confirmation).
Min indicators for divergence – how many of RSI/MACD/Stoch must agree.
Vdub EMA 13/21 & Filter – short-term trend color. STRONG prefers alignment.
Robustness & Visuals
Min distance from Baseline (×ATR) – prevents entries too close to the baseline.
Min bars per swing – avoids flip-flopping in chop.
Min slope as % ATR – declines shallow slopes.
Shading toggles – Long, Short, Watch/Transition, No-Trade.
V-lines & labels – flip markers and BUY/SELL/STRONG tags.
Recommended quick presets
5–15m: Auto-Tune ON, Mode Balanced, Trigger Window 1–2, Min Swing 8–10, Stoch weight 2.
30–60m: Trigger Window 1–2, Min Swing 8, HTF filter optional.
2–4h: Trigger Window 1–2, Min Swing 6–8, HTF filter ON.
1D: Trigger Window 1, Min Swing 4–6, HTF ON, Divergence ON for STRONG.
Tip: If you see good structure but missing labels, slightly lower min distance from baseline or raise sensitivity, and keep Trigger Window at 1–2 for intraday.
How to read the chart
Green shading = in-long swing; darker = higher confluence score.
Red shading = in-short swing; darker = higher confluence score.
Amber = Watch/Transition (mixed signals; prepare but be selective).
Gray = No-Trade (weak ADX + low ATR or price hugging the baseline).
BUY/SELL labels appear at confirmed flips; STRONG requires extra confluence (VDUB + divergence, score threshold, and clean slope/distance).
Alerts (names)
Buy — BUY (Swing Algo v2.1)
Sell — SELL (Swing Algo v2.1)
Strong Buy — STRONG BUY (Swing Algo v2.1)
Strong Sell — STRONG SELL (Swing Algo v2.1)
Repaint policy
With Confirmation ON, signals are computed on bar close and do not repaint.
HTF series use lookahead_off and closed HTF bars; no peeking.
Troubleshooting & tips
Too many early tags? Increase Min bars per swing and Cooldown, use Strict StochRSI at bands, or enable HTF filter.
Late exits? Lower Trigger Window to 1 and reduce Min distance from baseline slightly.
Chop noise? Raise Min slope as % ATR and ADX range threshold, keep No-Trade shading ON.
Flat volume markets? Lower Volume Z-Score lookback a bit or disable volume gate temporarily.
What’s new in v2.1 (highlights)
Volatility-aware cooldown (ATR-scaled swing spacing)
Trigger window (accepts recent triggers to avoid late tags)
Adaptive distance from baseline tied to volatility
Optional divergence gate for STRONG + VDUB EMA alignment
Cleaner Watch/No-Trade separation and stronger confluence shading
Disclaimer
This script is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice, and no performance is guaranteed. Markets involve risk, including the loss of principal. Always validate signals on multiple timeframes, forward-test on a demo account, and use appropriate risk management. By using this indicator you agree that the author(s) are not liable for any decisions or outcomes resulting from its use.
發行說明
Swing Aurora v2.5 — The Rigorous Multi-Filter Trend EngineSwing Aurora v2.5 is a non-repainting trend & swing engine that achieves maximum reliability by unifying trend structure, momentum breaks, and non-repainting reversal triggers. It incorporates advanced filtering logic to ensure clean signals across timeframes and includes critical structural and mathematical fixes.
The indicator uses a robust, volatility-scaled scoring system that integrates a complete set of trend, momentum, and divergence filters.
Key Upgrades in v2.5
Pivot-to-Pivot Divergence: Divergence is now calculated using confirmed pivots with right-bar confirmation, guaranteeing the signal is non-repainting and highly reliable.
ADX-Adaptive Distance: The minimum required distance from the Baseline is dynamically scaled by both Volatility (ATR) and Trend Strength (ADX), making filters tighter in choppy markets.
Structure-Aware Gate: Requires micro-structure confirmation (Higher Lows/Lower Highs) at flips, actively blocking false cross signals that occur during range-bound "chop."
LinReg Slope: Baseline slope detection uses Linear Regression for stability, making trend determination less susceptible to single-bar noise.
Volatility-Aware Cooldown: Dynamically adjusts the swing spacing based on the market's volatility regime (ATR/ATR-slow ratio).
Visual Map
Green/Red Shading: Identifies active Long/Short swing phases; darker shading indicates a higher confluence score.
Amber: Watch/Transition zones when momentum or macro bias is mixed.
Gray: No-Trade zones during low range or price hugging the baseline.
Labels: Generates single BUY/SELL flips per swing, with STRONG tags when confluence peaks (requires Divergence and Vdub alignment).
Core Confluence & Filters
Swing Aurora v2.5 integrates 12 distinct analytical modules:
Module: Trend Baseline
Purpose: Defines Structure & Bias.
Key Filters: Baseline (HMA/EMA), LinReg Slope vs. ATR, Fast EMA Breakout, Bias EMA (200).
Module: Divergence Gate
Purpose: Confirms Reversals.
Key Filters: Pivot-to-Pivot (Non-Repaint), Multi-Indicator Score (RSI/MACD/Stoch).
Module: Trend Quality
Purpose: Measures directional conviction.
Key Filters: ADX (Wilder) strength, Rising ADX (favors entries), MACD Histogram thrust.
Module: Momentum & Regime
Purpose: Filters noise.
Key Filters: BB vs. Keltner Squeeze, Anti-Chop Filter, Volume Z-Score, Micro-Structure Check.
Module: HTF Context
Purpose: Filters against macro bias.
Key Filters: HTF Regime Filter (Auto/Manual), HTF Override Weight (allows local strong signals).
Module: Timing & Flow
Purpose: Manages entry/exit speed.
Key Filters: Volatility-Aware Cooldown, Trigger Lookback Window, VDUB EMA Alignment.
Detailed Parameter Settings (Inputs Menu)
1. Presets
Mode: Sets the overall signal strictness (Aggressive, Balanced, Conservative).
Confirmation ON (bar close, no repaint): Confirms on bar close.
Cooldown between flips (bars): Minimum bars between opposite signals (auto-scaled by volatility).
Auto-tune settings by chart timeframe: Highly recommended; adjusts lengths and sensitivity based on the chart TF.
Trigger Lookback Window (Bars): How many bars back a core trigger is accepted (1–3).
2. Core (Baseline, EMAs, ADX)
Baseline (HMA/EMA) & Baseline length: Structure curve + slope.
Fast EMA (breakout) & Bias EMA (context): Momentum confirmation and macro bias filter.
ADX length & ADX trend confirmation bars: Quality/consistency of trend filter.
Sensitivity (10–90): Adjusts thresholds for ADX, volatility buffers, and volume z-score.
3. VDUBS & Divergence Filters
Vdub EMA 1 (13) / Vdub EMA 2 (21): Used for short-term trend color and score boost.
Use Divergence for STRONG Signals: When ON, STRONG signals require high divergence confluence.
Divergence Lookback Bars (LB/RB): Pivot left/right bars for non-repaint detection.
Min indicators for Divergence (Score): How many of RSI/MACD/Stoch must agree.
Check RSI Div / MACD Div / Stoch Div: Selects which indicators contribute to the divergence score.
4. HTF & StochRSI Filters
Use HTF regime filter: Enables the Higher Timeframe (HTF) bias filter.
HTF Timeframe & HTF Baseline len: Selects the macro trend context.
HTF override weight (0–2): Controls the score required for a strong local signal to bypass the HTF bias.
Use Stoch RSI filter/trigger: Enables K/D crosses for timing.
RSI length / Stoch length / K / D / Oversold/Overbought levels: Standard StochRSI parameters.
5. Robustness & Visuals
Min distance from Baseline (×ATR): Prevents entries too close to the baseline.
Min bars per swing: Avoids immediate flip-flopping.
Min slope as % ATR: Declines shallow slopes.
Show Debug Dots (Blockers): Shows score and filter blocks in the status line for expert tuning.
🛑 IMPORTANT RISK DISCLAIMER
This script is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice, and no performance is guaranteed. Markets involve risk, including the loss of principal. Always validate signals on multiple timeframes, forward-test on a demo account, and use appropriate risk management. By using this indicator, you agree that the author(s) are not liable for any decisions or outcomes resulting from its use.
發行說明
Swing Aurora v2.5 is a non-repainting trend & swing engine that achieves maximum reliability by unifying trend structure, momentum breaks, and non-repainting reversal triggers. It incorporates advanced filtering logic to ensure clean signals across timeframes and includes critical structural and mathematical fixes.The indicator uses a robust, volatility-scaled scoring system that integrates a complete set of trend, momentum, and divergence filters.
Key Upgrades in v2.5
Pivot-to-Pivot Divergence: Divergence is now calculated using confirmed pivots with right-bar confirmation, guaranteeing the signal is non-repainting and highly reliable.
ADX-Adaptive Distance: The minimum required distance from the Baseline is dynamically scaled by both Volatility (ATR) and Trend Strength (ADX), making filters tighter in choppy markets.
Structure-Aware Gate: Requires micro-structure confirmation (Higher Lows/Lower Highs) at flips, actively blocking false cross signals that occur during range-bound "chop."
LinReg Slope: Baseline slope detection uses Linear Regression for stability, making trend determination less susceptible to single-bar noise.
Volatility-Aware Cooldown: Dynamically adjusts the swing spacing based on the market's volatility regime (ATR/ATR-slow ratio).
Visual Map
Green/Red Shading: Identifies active Long/Short swing phases; darker shading indicates a higher confluence score.
Amber: Watch/Transition zones when momentum or macro bias is mixed.
Gray: No-Trade zones during low range or price hugging the baseline.
Labels: Generates single BUY/SELL flips per swing, with STRONG tags when confluence peaks (requires Divergence and Vdub alignment).
Core Confluence & Filters
Swing Aurora v2.5 integrates 12 distinct analytical modules:
Module: Trend Baseline
Purpose: Defines Structure & Bias.
Key Filters: Baseline (HMA/EMA), LinReg Slope vs. ATR, Fast EMA Breakout, Bias EMA (200).
Module: Divergence Gate
Purpose: Confirms Reversals.
Key Filters: Pivot-to-Pivot (Non-Repaint), Multi-Indicator Score (RSI/MACD/Stoch).
Module: Trend Quality
Purpose: Measures directional conviction.
Key Filters: ADX (Wilder) strength, Rising ADX (favors entries), MACD Histogram thrust.
Module: Momentum & Regime
Purpose: Filters noise.
Key Filters: BB vs. Keltner Squeeze, Anti-Chop Filter, Volume Z-Score, Micro-Structure Check.
Module: HTF Context
Purpose: Filters against macro bias.
Key Filters: HTF Regime Filter (Auto/Manual), HTF Override Weight (allows local strong signals).
Module: Timing & Flow
Purpose: Manages entry/exit speed.
Key Filters: Volatility-Aware Cooldown, Trigger Lookback Window, VDUB EMA Alignment.
Detailed Parameter Settings (Inputs Menu)
1. Presets
Mode: Sets the overall signal strictness (Aggressive, Balanced, Conservative).
Confirmation ON (bar close, no repaint): Confirms on bar close.
Cooldown between flips (bars): Minimum bars between opposite signals (auto-scaled by volatility).
Auto-tune settings by chart timeframe: Highly recommended; adjusts lengths and sensitivity based on the chart TF.
Trigger Lookback Window (Bars): How many bars back a core trigger is accepted (1–3).
2. Core (Baseline, EMAs, ADX)
Baseline (HMA/EMA) & Baseline length: Structure curve + slope.
Fast EMA (breakout) & Bias EMA (context): Momentum confirmation and macro bias filter.
ADX length & ADX trend confirmation bars: Quality/consistency of trend filter.
Sensitivity (10–90): Adjusts thresholds for ADX, volatility buffers, and volume z-score.
3. VDUBS & Divergence Filters
Vdub EMA 1 (13) / Vdub EMA 2 (21): Used for short-term trend color and score boost.
Use Divergence for STRONG Signals: When ON, STRONG signals require high divergence confluence.
Divergence Lookback Bars (LB/RB): Pivot left/right bars for non-repaint detection.
Min indicators for Divergence (Score): How many of RSI/MACD/Stoch must agree.
Check RSI Div / MACD Div / Stoch Div: Selects which indicators contribute to the divergence score.
4. HTF & StochRSI Filters
Use HTF regime filter: Enables the Higher Timeframe (HTF) bias filter.
HTF Timeframe & HTF Baseline len: Selects the macro trend context.
HTF override weight (0–2): Controls the score required for a strong local signal to bypass the HTF bias.
Use Stoch RSI filter/trigger: Enables K/D crosses for timing.
RSI length / Stoch length / K / D / Oversold/Overbought levels: Standard StochRSI parameters.
5. Robustness & Visuals
Min distance from Baseline (×ATR): Prevents entries too close to the baseline.
Min bars per swing: Avoids immediate flip-flopping.
Min slope as % ATR: Declines shallow slopes.
Show Debug Dots (Blockers): Shows score and filter blocks in the status line for expert tuning.
🛑 IMPORTANT RISK DISCLAIMER
This script is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice, and no performance is guaranteed. Markets involve risk, including the loss of principal. Always validate signals on multiple timeframes, forward-test on a demo account, and use appropriate risk management. By using this indicator, you agree that the author(s) are not liable for any decisions or outcomes resulting from its use.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。