Momentum Factor Model [QuantAlgo]🟢 Overview
The Momentum Factor Model is a multi-horizon momentum analysis system that combines weighted return calculations with risk-adjusted price projections to identify and track persistent directional trends. The indicator employs a quantitative approach by measuring momentum across multiple timeframes simultaneously, applying exponential decay weighting to balance recent versus historical price action, and constructing volatility-normalized boundaries for trend validation. This factor-based methodology provides traders and investors with a systematic framework for momentum regime identification, trend persistence evaluation, and dynamic support/resistance determination across diverse market conditions and timeframes.
🟢 How It Works
The indicator constructs a composite momentum factor by calculating percentage returns over three distinct lookback periods (1, 3, and 5 bars) and combining them using exponentially decayed weights. The momentum decay parameter controls the relative importance of each timeframe, with higher decay values creating more balanced weighting between recent and historical momentum, while lower values emphasize immediate price action. This weighted momentum factor captures the multi-dimensional nature of trend strength rather than relying on a single timeframe measurement.
The expected return is derived by smoothing the momentum factor over a user-defined period, establishing a baseline for anticipated price movement based on recent momentum characteristics. This expected return then projects a factor-based price estimate, which undergoes risk adjustment through volatility normalization, creating a price estimate that accounts for both directional bias and market volatility conditions.
🟢 How to Use It
▶ Enter Long positions when the momentum factor dots (⏺) transition from red to green (bullish) , indicating the momentum factor model has confirmed positive directional bias. The color change represents a validated shift where the factor line has broken through the lower boundary and begun tracking the upper bound, signaling momentum reversal to the upside. Conversely, enter Short positions or exit existing Longs when the dots shift from green to red (bearish) , confirming negative momentum establishment and downward trend tracking.
The momentum factor dots function as a dynamic momentum-based reference pathway that can be used for position management and risk control. During bullish phases, the dot formation represents a momentum-weighted support zone where pullbacks may find stability before continuation. During bearish trends, it acts as resistance where rallies may encounter selling pressure. Price action relative to the momentum factor pathway provides context on trend health: sustained price movement in the direction of the trend (above the dots during bullish phases, below during bearish phases) confirms momentum persistence, while repeated violations may suggest weakening directional conviction.
▶ Configure alert notifications to monitor trend changes without continuous chart observation. The indicator provides three alert types: "Bullish Momentum Signal" triggers specifically on upward trend reversals, "Bearish Momentum Signal" captures downward momentum shifts, and "Momentum Trend Change" fires on any directional transition. These alerts activate only when the trend state changes from one regime to another, eliminating false triggers from intrabar noise or temporary boundary touches that don't result in confirmed trend reversals.
▶ The indicator also offers six pre-designed color schemes (Classic, Aqua, Cosmic, Ember, Neon, Custom) optimized for various chart backgrounds and visual preferences, ensuring the momentum trend remains clearly visible under different display conditions. The bar coloring feature overlays trend direction directly onto the price candles, providing immediate visual confirmation of the momentum regime without needing to reference the dot pattern position.
🟢 Pro Tips for Trading and Investing
▶ Align the configuration preset with your trading timeframe and objectives: Fast Response settings excel on 1-15 minute charts for scalping and day trading where capturing quick momentum shifts is paramount, though this comes with increased signal frequency and potential whipsaws in ranging conditions. Default parameters suit hourly to daily charts for swing trading, providing balanced responsiveness without excessive noise. Smooth Trend configuration works best on 4-hour to weekly timeframes for position trading and investment analysis, prioritizing trend stability over timing precision and significantly reducing false reversals during consolidation periods.
▶ Context matters significantly for momentum-based systems. The indicator performs optimally during trending market regimes where directional persistence exists and may struggle during sideways consolidation where momentum lacks consistency. Before taking signals, assess the broader market structure: look for established higher highs/higher lows (uptrend) or lower highs/lower lows (downtrend) on higher timeframes to confirm you're trading with the dominant directional bias. During range-bound periods, reduce position sizing or wait for the momentum factor dots to establish a clear directional slope and consistent movement before committing capital.
▶ Layer the momentum factor model with complementary analysis rather than using it in isolation. Combine trend signals with volume confirmation (increasing volume on trend changes suggests institutional participation), key support/resistance levels (signals near major levels carry higher probability), and volatility context (ATR expansion can precede significant moves). Consider the momentum decay parameter's impact: values near 0.85 make the model highly sensitive to recent price action, ideal for fast-moving markets but prone to false signals; values near 0.95 create smoother momentum estimates that better filter noise but may lag major reversals.
▶ Implement dynamic position management using the momentum factor pathway as a trailing reference framework. Rather than placing fixed stops, observe the dot formation's progression: as long as it maintains its directional slope and price respects it as support (bullish) or resistance (bearish), the momentum regime remains intact. Exit or tighten stops when price closes decisively through the momentum factor dots against your position, or when the dot pathway itself flattens (losing slope) indicating momentum exhaustion. For portfolio allocation, scale position sizes based on momentum factor strength, e.g., steeper dot progression angles and faster advancement suggest stronger momentum worthy of larger allocations within your risk parameters.
Bantlar ve Kanallar
W/M Pattern Strategy + MACD/RSI Confirmation V3.0 by ThaungkmitlW/M Pattern Strategy + MACD/RSI Confirmation V3.0
Description Text:
This script is a comprehensive Strategy (backtestable) that combines classical Chart Patterns with momentum indicators to identify high-probability reversal setups. It focuses on detecting "W" Patterns (Double Bottoms/Higher Lows) and "M" Patterns (Double Tops/Lower Highs), filtered by MACD and RSI to reduce false signals.
How It Works
The strategy relies on a "Confluence" of three factors before triggering an entry:
1. Price Action Patterns (W & M)
W Pattern (Bullish): The script detects Pivot Lows. If a new Pivot Low is higher than the previous one (forming a Higher Low structure), it marks a potential "W" pattern.
M Pattern (Bearish): The script detects Pivot Highs. If a new Pivot High is lower than the previous one (forming a Lower High structure), it marks a potential "M" pattern.
2. MACD Confirmation (Zero Line)
Price action alone is not enough. The script waits for the MACD Line to cross the Zero Line:
Buy: MACD crosses UP over 0 (indicating bullish momentum shift).
Sell: MACD crosses DOWN under 0 (indicating bearish momentum shift).
3. RSI Threshold
To ensure the trend has strength, the RSI (Relative Strength Index) acts as a final filter:
Buy Condition: RSI must be above 50.
Sell Condition: RSI must be below 50.
Visual Features
Pivot Labels: Automatically marks Pivot High (Red Triangle) and Pivot Low (Green Triangle).
Pattern Lines: Draws lines connecting the swing points when a potential W or M pattern is detected.
Signals: Displays "BUY" or "SELL" labels with text explaining the setup (e.g., "W+MACD+RSI").
Background: Highlights the chart background (Green/Red) when a valid trade signal occurs.
EMAs: Plots EMA 10 (Blue) and EMA 15 (Red) to help you visualize the immediate trend direction.
Settings
Pivot Left/Right Bars: Adjust the sensitivity of the Swing detection.
MACD Settings: Fast, Slow, and Signal lengths (Standard 12, 26, 9).
RSI Settings: Adjust Length and the Threshold level (Default is 50).
Backtesting
This is a strategy script, meaning you can use the Strategy Tester panel below the chart to see how this logic performs on historical data for your chosen timeframe and asset.
Disclaimer: This tool is for educational purposes. Past performance in backtesting does not guarantee future results.
01 TMA Centered BandsA dynamic, adaptive volatility channel used to identify trend direction, overbought/oversold zones, and precise reversal points.
Features:
Real-time centered TMA calculation
Market volatility detection
Reversal zones with high-probability signals
Works on all timeframes and assets
Benefits:
Helps you catch early trend shifts
Filters out market noise during ranging periods
Fibot X: LDO Hyperliquid (Katōshi) Auto StrategyFibot X v4 – Hyperliquid LDO Edition (Katōshi Connector)
This Fibot X v4 edition is specially optimized for trading LDO on the Hyperliquid DEX, with native Katōshi connector integration for fast, stable automated execution.
The system has been internally tuned to match LDO’s volatility and structural behavior on Hyperliquid while preserving the original Fibot X engine: precise entries, progressive TP management, risk control, and long-term consistency.
⚙️ Operational Requirements
• Mandatory timeframe: 30 minutes
• Fixed leverage: x1 (higher leverage reduces system consistency)
• Each bot must operate with its own dedicated initial capital
Features
• Exclusive internal optimization for LDO
• Full automation through Katōshi
• Logic adapted to decentralized environments
• Structured multi-TP risk-managed system
• Reliable backtesting with a stable performance curve
Designed for algorithmic traders seeking accuracy and consistency in a focused asset.
(For access or subscription details, check my X profile linked here.)
Fibot X: YGG Hyperliquid (Katōshi) Auto StrategyFibot X – Hyperliquid YGG Edition (Katōshi Connector)
This Fibot X v4 edition is specially optimized for trading YGG on the Hyperliquid DEX, with native Katōshi connector integration for fast, stable automated execution.
The system has been internally tuned to match YGG’s volatility and structural behavior on Hyperliquid while preserving the original Fibot X engine: precise entries, progressive TP management, risk control, and long-term consistency.
⚙️ Operational Requirements
• Mandatory timeframe: 30 minutes
• Fixed leverage: x1 (higher leverage reduces system consistency)
• Each bot must operate with its own dedicated initial capital
Features
• Exclusive internal optimization for YGG
• Full automation through Katōshi
• Logic adapted to decentralized environments
• Structured multi-TP risk-managed system
• Reliable backtesting with a stable performance curve
Designed for algorithmic traders seeking accuracy and consistency in a focused asset.
(For access or subscription details, check my X profile linked here.)
SwgMFI
⸻
🧭 Description (for TradingView)
Swing Filter MFI + Divergence + Exhaustion
This indicator is designed to identify swing phases, momentum shifts, and exhaustion points using a refined version of the Money Flow Index (MFI).
It combines multi-layer filters to help traders visualize when momentum is building, fading, or reversing.
⸻
⚙️ Core Logic
• MFI Momentum Wave
Displays normalized money flow pressure (–60 to +60).
Gray zone = neutral.
Red/Green extensions = strong momentum bursts beyond upper/lower bands.
• Exhaustion Detection
Highlights orange (bull exhaustion) and blue (bear exhaustion) zones when momentum starts to fade after an extended move.
• Divergence Recognition
Plots circles when price makes new highs/lows but MFI fails to confirm — signaling potential turning points.
• Swing Confirmation Signals
Buy/Sell triangles appear when a recent exhaustion or divergence is followed by a re-entry into normal momentum range, confirming a likely swing reversal.
Frequency is automatically throttled to avoid multiple signals during one move.
⸻
💡 How to Use
1. Use red/green blocks to identify strong momentum zones.
2. Watch for orange/blue exhaustions — they often mark late-trend fatigue.
3. A BUY▲ signal suggests bearish exhaustion followed by recovery momentum.
4. A SELL▼ signal suggests bullish exhaustion followed by declining momentum.
5. Combine with your trend filter (EMA/Bollinger) for confirmation.
⸻
🧩 Best Settings
• MFI length: 14
• Upper / Lower bands: ±40
• Slope sensitivity: 1.5
• Signal lookback: 5
• Minimum gap between signals: 10 bars
⸻
📊 Built For
Swing traders, momentum scalpers, and algorithmic strategists who need early exhaustion cues rather than lagging trend indicators.
Can be used on any asset or timeframe (works exceptionally well on 4H and Daily charts).
⸻
✍️ Credits
Concept & logic refinement by @kkbst88
Based on original MFI/RSI work by LazyBear & SeiglerJ (open-source community).
ZY Target TerminatorThe indicator follows trends and generates short and long signals. Furthermore, when it generates a signal, it displays the maximum profit margins for the last three signals it generated in the same direction. It also clearly indicates the number of candles for which no signal has been generated for the pair. Avoid trading pairs whose profit margins do not align with your trading strategy.
Fibot X: CAKE Hyperliquid (Katōshi) Auto StrategyFibot X – Hyperliquid CAKE Edition (Katōshi Connector)
This Fibot X v4 edition is specially optimized for trading CAKE on the Hyperliquid DEX, with native Katōshi connector integration for fast, stable automated execution.
The system has been internally tuned to match CAKE’s volatility and structural behavior on Hyperliquid while preserving the original Fibot X engine: precise entries, progressive TP management, risk control, and long-term consistency.
⚙️ Operational Requirements
• Mandatory timeframe: 30 minutes
• Fixed leverage: x1 (higher leverage reduces system consistency)
• Each bot must operate with its own dedicated initial capital
Features
• Exclusive internal optimization for CAKE
• Full automation through Katōshi
• Logic adapted to decentralized environments
• Structured multi-TP risk-managed system
• Reliable backtesting with a stable performance curve
Designed for algorithmic traders seeking accuracy and consistency in a focused asset.
(For access or subscription details, check my X profile linked here.)
Smart Trend Cloud + Dynamic Gate (V 2.3)Smart Trend Cloud + Dynamic Gate
The Smart Trend Cloud + Dynamic Gate is a comprehensive trend-following system designed to filter out market noise and identify high-probability trend entries. Unlike simple Moving Average crossovers which often fail in ranging markets, this indicator employs a multi-stage validation system (The "Gate") combining Volume, Momentum, and Volatility filters to ensure you only trade when the market has conviction.
Key Features:
> Multi-Type Trend Cloud: Choose between HMA (Hull Moving Average), EMA, or ZeroLag EMA to define the trend baseline.
> The "Dynamic Gate" Filter: A crossover alone does not trigger a signal. The move must be validated by Relative Volume or MACD Histogram momentum within a specific window.
> Choppiness Suppression: Integrated ADX filter turns the candles gray during low-volatility consolidation zones to prevent over-trading.
> Stretch Bands: Optional ATR-based bands to highlight when price is over-extended from the mean.
> Live Dashboard: A table on the chart displaying current Trend State, Relative Volume strength, and ADX values.
How logic Works
1. Trend Definition & The Cloud The core trend is defined by the relationship between a Fast and Slow Moving Average.
Visuals: The space between these MA's forms the "Cloud". The cloud color transparency adjusts dynamically based on the strength of the trend (the spread between the MAs).
MA Options:
HMA: Best for scalping (1m/5m) due to low lag.
ZeroLag EMA: Custom calculation to reduce latency while retaining smoothness.
EMA: Standard trend following.
2. The Entry Gate (Validation) To avoid false signals during "whipsaw" price action, this script uses a logic gate. When a MA crossover occurs, it enters a "Pending" state. It only confirms a BULL or BEAR state if one of the following conditions is met within Gate Window bars:
Volume Spike: Relative Volume (Current Vol / Avg Vol) is greater than the defined threshold (default 1.2x).
Momentum Shift: The MACD Histogram confirms the direction of the trend.
3. Consolidation Filter The script calculates the ADX (Average Directional Index). If the ADX is below the Min ADX Strength threshold (default 20), the market is considered "Choppy."
Visual: Bars turn Gray.
Logic: Trend signals are suppressed until volatility expands.
4. Visual Dashboard A panel is located in the top-right corner providing real-time data:
Trend: Current State (Bull, Bear, or Chop).
Vol: Current Relative Volume (Green if > 1.0).
ADX: Current Trend Strength value.
Settings:
Trend Settings:
Adjust MA types and lengths to fit your timeframe.
Entry Gate: Toggle the Volume/Price gate on/off and adjust the Relative Volume requirement.
Consolidation: Enable/Disable the ADX filter to see all signals or only high-strength ones.
Visuals: Toggle the Cloud, Dashboard, or "Stretch Bands" (ATR bands) to declutter your chart.
Recommended Settings by Timeframe
Since different timeframes require different sensitivities to noise, here are the optimized settings for the Smart Trend Cloud:
⚡ 5 Minute Chart (Scalping)
Best for: Catching quick intraday momentum bursts while filtering chop.
MA Type: HMA (Hull Moving Average for speed)
Fast Length: 9
Slow Length: 21
Min Relative Volume: 1.3 (Requires higher volume to confirm entry)
Min ADX: 25 (Stricter chop filter)
⏱️ 15 Minute Chart (Intraday Swing)
Best for: Day trading with a balance of speed and stability.
MA Type: ZeroLag EMA (Reduces noise better than HMA)
Fast Length: 10
Slow Length: 30
Min Relative Volume: 1.2
Min ADX: 20
hrs 1 Hour Chart (Short-Term Swing)
Best for: Capturing the trend of the week.
MA Type: EMA or ZeroLag EMA
Fast Length: 12
Slow Length: 26 (Classic MACD correlation)
Min Relative Volume: 1.1
Min ADX: 20
📅 1 Day Chart (Position Trading)
Best for: Long-term trends and "Golden Cross" style entries.
MA Type: EMA (Standard Institutional Moving Average)
Fast Length: 20
Slow Length: 50
Min Relative Volume: 1.2
Min ADX: 15 (Allows for earlier entries on major trend shifts)
Alerts:
The script includes built-in alertcondition events for:
Trend Start: Bull (Valid trend detected after filtering).
Trend Start: Bear (Valid trend detected after filtering).
Access & Authorization
This is an Invite-Only script.
st reversal detector" Highly accurate reversal-detection algorithm that identifies market reversals before they occur, focusing on early signals at swing highs and swing lows. The tool must work seamlessly with confluences such as RSI overbought/oversold levels, bullish or bearish divergence, and other reversal confirmations to filter only A+ setups. no lag, no repainting, and clear visual signals for intraday trading. The model should work exceptionally well on the 10-minute and 5-minute timeframes and be specifically optimized for XAUUSD m10 and ETH m5 timeframe ''
Trend Step Channel [BigBeluga]🔵 OVERVIEW
Trend Step Channel identifies directional bias by forming a dynamic volatility-based step channel. It detects trend shifts when candle lows close above the upper band (bullish) or when candle highs drop below the lower band (bearish). A step-style midline tracks the trend evolution, while an integrated dashboard shows price positioning percentages across multiple timeframes.
🔵 CONCEPTS
ATR-Based Channel — The indicator constructs upper and lower channel boundaries using ATR distance around a single adaptive trend line, providing automatic scaling with volatility.
Trend Direction Logic —
• Low above upper band → uptrend confirmation.
• High below lower band → downtrend confirmation.
Step Trend Line — A reactive midline that locks onto price swings, stepping upward or downward as new trend confirmations occur.
Channel Width — Defines the total volatility range around the midline; a wider channel smooths market noise, while a narrower one reacts faster.
Price Position Ratio — Calculates the relative position of the close within the channel, from 0% (bottom) to 100% (top).
🔵 FEATURES
Volatility-Adaptive Channel — Expands and contracts dynamically to match market volatility, maintaining consistent distance scaling.
Configurable MA Source — Choose from SMA, EMA, SMMA, WMA, or VWMA as the base smoothing method.
Color-Coded Step Line —
• Green indicates an uptrend.
• Orange indicates a downtrend.
Channel Fill Visualization — Semi-transparent fills highlight active volatility zones for clear trend identification.
Price Position Label — Displays a “<” marker and percentage at the channel edge showing how far the current close is from the lower or upper band.
Multi-Timeframe Dashboard —
• Displays alignment across 1H–5H charts.
• Each cell shows an arrow (↑ / ↓) with price % positioning.
• Cell background color reflects bullish or bearish bias.
Real-Time Updating — The channel, midline, and dashboard refresh dynamically every bar for continuous feedback.
🔵 HOW TO USE
Trend Confirmation —
• Bullish trend forms when candle low closes above the upper band.
• Bearish trend forms when candle high closes below the lower band.
Trend Continuation — Maintain bias while the step line color remains consistent.
Volatility Breakouts — Sudden candle breaks outside the band suggest new directional strength.
Dashboard Alignment — Confirm trend consistency across multiple timeframes before entering trades.
Entry Planning — In uptrends, consider entries near the lower band; in downtrends, focus on upper-band rejections.
Price Position Insight — Use the % label to judge whether price is extended (near 100%) or compressed (near 0%) within the channel.
🔵 CONCLUSION
Trend Step Channel delivers a precise, volatility-driven view of trend structure using ATR-based boundaries and a step-line framework. The integrated dashboard, color-coded channel, and live positioning metrics give traders a complete picture of market direction, trend strength, and price location within evolving conditions.
Buy & Sell Arrows - MACD + Best_Solve WPRMACD + Best_Solve Williams %R – Aggressive Trend-Reversal Catcher
(Allow Signals Even in Overbought/Oversold Zones)
This indicator combines the classic MACD histogram with Best_Solve’s popular custom Williams %R (a 0–100 momentum oscillator that behaves more like a fast Stochastic) to deliver clean, high-conviction entry signals on daily (and higher) timeframes.
Core Logic – Only TWO conditions are required
BUY (large green arrow below bar)
MACD histogram is green (bullish momentum)
Williams %R fast line is crossing above OR already above its EMA
SELL (large red arrow above bar)
MACD histogram is red (bearish momentum)
Williams %R fast line is crossing below OR already below its EMA
Unlike most oscillators, this version deliberately removes the traditional “do not buy when overbought / do not sell when oversold” filters. This allows the script to catch powerful trend reversals and explosive moves immediately — even on violent earnings gaps or panic sell-offs (example: META’s -11 % drop on Oct 30 2025 triggered an instant sell even though %R was deeply oversold).
Built-in Clean-Signal Logic
No consecutive buys or sells — each new signal must be preceded by the opposite direction.
This keeps the chart extremely clean and prevents whipsaw clusters during strong trends.
Best Use Cases
Daily and 4H swing trading on stocks, indices, crypto, forex
Excellent for catching sharp reversals after earnings, news events, or overextended moves
Works especially well on high-beta names and growth stocks
Visuals
Large green/red arrows with “BUY” / “SELL” text (your favorite style)
Subtle transparent MACD histogram overlaid on price for instant momentum context
Ready-to-use alerts (“Buy Alert” / “Sell Alert”)
Set it, alert it, trade it — one of the cleanest and most responsive daily reversal systems you’ll find.
Enjoy the edge!
Minho Index | SETUP+@TraderMinho//@version=5
// By: Trader Minho — Analista Gráfico desde 2022
indicator("Minho Index | SETUP+@TraderMinho", shorttitle="Minho Index (Classic)", overlay=false)
//--------------------------------------------------------
// PARAMETERS
//--------------------------------------------------------
shortPeriod = input.int(3, "Short Period")
mediumPeriod = input.int(8, "Medium Period")
longPeriod = input.int(20, "Long Period")
intensityFactor = input.float(3.0, "Intensity Factor", step = 0.1)
shortSmoothing = input.int(2, "Short Smoothing (EMA)")
mediumSmoothing = input.int(5, "Medium Smoothing (EMA)")
shortColor = input.color(color.new(#00CED1, 0), "Short Line Color (Aqua Blue)")
mediumColor = input.color(color.new(#FFD700, 0), "Medium Line Color (Yellow)")
zeroColor = input.color(color.new(color.white, 0), "Zero Line Color")
lineWidth = input.int(1, "Line Thickness")
//--------------------------------------------------------
// MOVING AVERAGE CALCULATIONS
//--------------------------------------------------------
smaShort = ta.sma(close, shortPeriod)
smaMedium = ta.sma(close, mediumPeriod)
smaLong = ta.sma(close, longPeriod)
//--------------------------------------------------------
// CLASSIC DIDI NORMALIZATION
//--------------------------------------------------------
priceBase = ta.sma(close, longPeriod)
didiShort = ((smaShort - smaLong) / priceBase) * intensityFactor
didiMedium = ((smaMedium - smaLong) / priceBase) * intensityFactor
//--------------------------------------------------------
// FINAL SMOOTHING (CLASSIC NEEDLE EFFECT)
//--------------------------------------------------------
aquaSmooth = ta.ema(didiShort, shortSmoothing)
yellowSmooth = ta.ema(didiMedium, mediumSmoothing)
//--------------------------------------------------------
// PLOTS
//--------------------------------------------------------
hline(0, "Zero Line", color = zeroColor, linewidth = 1)
plot(aquaSmooth, "Short (Aqua)", color = shortColor, linewidth = lineWidth)
plot(yellowSmooth, "Medium (Yellow)", color = mediumColor, linewidth = lineWidth)
Opening Range with Breakouts & Targets w/ Alerts [LuxAlgo]This is the exact Lux Algo opening range with Breakouts and Targets, but added the ability to fire alerts on buy and sell signals
Grok/Claude AI Neural Fusion Pro V2AI Neural Fusion Pro V2 - New Features
Overview
Version 2 of AI Neural Fusion Pro introduces two complementary protection systems designed to preserve capital during market extremes. The first prevents over-buying during violent crashes. The second prevents over-selling during powerful rallies. Together, they transform a reactive trading system into one that adapts intelligently to market conditions.
Feature 1: Cascade Protection
Purpose
Cascade Protection prevents capital destruction during violent market crashes by implementing two independent safeguards that must both pass before any buy signal can fire.
The Problem It Solves
During market crashes, several dangerous conditions occur simultaneously. Volatility spikes to extreme levels, indicators scream "oversold," and each dip looks like the bottom. Traditional systems fire buy after buy, depleting capital reserves while price continues falling. By the time the actual bottom forms, there's no capital left to capture it.
How It Works
Layer 1: BBWP Freeze
Bollinger Band Width Percentile measures current volatility relative to historical volatility. When BBWP exceeds 92%, it indicates the market is experiencing abnormal volatility—typically during liquidation cascades or panic selling. During these periods, all buy signals are frozen regardless of how oversold conditions appear. This is an absolute freeze with no exceptions.
Layer 2: Consecutive Buy Counter
This layer limits the maximum number of buy orders that can execute without an intervening sell. The default limit is 3 consecutive buys. Once reached, additional buy signals are blocked until a sell signal fires and resets the counter. This prevents the common scenario where a bot keeps averaging down position after position during an extended decline.
Configuration
SettingDefaultDescriptionEnable Cascade ProtectionONMaster toggle for entire featureBBWP Length7Period for Bollinger Band calculationBBWP Lookback100Historical period for percentile rankingBBWP Freeze Level92%Threshold above which buys freezeMax Consecutive Buys3Maximum buys before forced pause
Panel Display
The info panel shows real-time protection status with color-coded feedback:
BBWP row: Shows current percentage and status (OK in green, FROZEN in red)
Buy Counter row: Shows current count versus maximum (green when available, orange approaching limit, red when blocked)
Key Behavior
Sell signals are never affected by cascade protection
The buy counter resets to zero after any sell signal fires
BBWP freeze is absolute—even extreme oversold conditions cannot bypass it
Feature 2: Dynamic Cooldown
Purpose
Dynamic Cooldown prevents over-selling during powerful rallies by automatically extending the minimum time between signals when the market enters a strong trend.
The Problem It Solves
During strong rallies, traditional indicators repeatedly hit overbought conditions, triggering sell after sell as price climbs. A trader might execute 10-15 sells during a sustained move from $86K to $93K, selling away their position piece by piece instead of letting profits run. Each sell captures a small gain while missing the larger move.
How It Works
The system monitors ADX (Average Directional Index) to detect trend strength. When ADX exceeds 50 and is rising, the market has entered a powerful trending phase. During these conditions, the cooldown period between signals automatically increases from 5 bars to 10 bars.
This means signals fire less frequently during strong trends, allowing positions more time to develop before the next potential exit. The extended cooldown applies equally to both buy and sell signals, though the primary benefit is reducing premature sells during rallies.
Normal Market (ADX < 50 or falling):
Cooldown = 5 bars (25 minutes on 5-minute chart)
Standard signal frequency
Strong Trend (ADX > 50 and rising):
Cooldown = 10 bars (50 minutes on 5-minute chart)
Reduced signal frequency to let trends develop
Configuration
SettingDefaultDescriptionEnable Dynamic CooldownONMaster toggle for featureSignal Cooldown5 barsStandard cooldown between signalsStrong Trend ADX Threshold50ADX level that triggers extended cooldownStrong Trend Cooldown10 barsExtended cooldown during strong trends
Panel Display
The info panel provides visual indication of current cooldown state:
ADX row: Shows value with arrow indicator (ADX ↑) when in strong trend mode, blue background when above threshold
Cooldown row: Shows active cooldown period with arrow indicator (Cooldown ↑) when extended, blue background during strong trends
Key Behavior
Cooldown applies to both buy and sell signals equally
Transition between modes is automatic based on ADX conditions
ADX must be both above threshold AND rising to trigger extended cooldown
When ADX stops rising or drops below threshold, cooldown returns to normal immediately
Combined Effect
These two features work together to create a more intelligent trading system:
During Crashes:
BBWP spikes above 92% → Buys frozen
System waits for volatility to normalize
When BBWP drops, limited buys (3 max) capture the actual bottom
Capital preserved for recovery
During Rallies:
ADX rises above 50 → Cooldown extends to 10 bars
Fewer sell signals fire during the move
Positions held longer, capturing more of the trend
Profits allowed to run
During Normal Markets:
Standard 5-bar cooldown
No BBWP restrictions
Full signal frequency for active trading
Summary
Version 2 transforms AI Neural Fusion Pro from a purely reactive indicator into an adaptive system that recognizes market extremes and adjusts its behavior accordingly. Cascade Protection guards against buying into crashes. Dynamic Cooldown guards against selling out of rallies. Together, they help preserve capital during adverse conditions while allowing full participation when markets behave normally.
Мой скриптinputs:
window(1),
type(0), // 0: close, 1: high low, 2: fractals up down, 3: new fractals
persistent(False),
exittype(1),
nbars(160),
adxthres(40),
nstop(3000);
vars:
currentSwingLow(0),
currentSwingHigh(0),
trailStructureValid(false),
downFractal(0),
upFractal(0),
breakStructureHigh(0),
breakStructureLow(0),
BoS_H(0),
BoS_L(0),
Regime(0),
Last_BoS_L(0),
Last_BoS_H(0),
PeakfilterX(false);
BoS(window,persistent,type,Bos_H,BoS_L,upFractal,downFractal,breakStructureHigh,breakStructureLow);
//BOS Regime
If BoS_H <> 0 then begin
Regime = 1; // Bullish
Last_BoS_H = BoS_H ;
end;
If BoS_L <> 0 Then begin
Regime = -1; // Bearish
Last_BoS_L = BoS_L ;
end;
//Entry Logic: if we are in BoS regime then wait for break swing to entry
if ADX(5) of data2 < adxthres then begin
if time>900 and Regime = 1 and EntriesToday(date)= 0 and Last_BoS_H upFractal then buy next bar at market;
end;
if time>900 and EntriesToday(date)= 0 and Regime = -1 and Last_BoS_L>downFractal then
begin
if close < downFractal then sellshort next bar at market;
end;
end;
// Exits: nbars or stoploss or at the end of the day
if marketposition <> 0 and barssinceentry >nbars then begin
sell next bar at market;
buytocover next bar at market;
end;
setstoploss(nstop);
setexitonclose;
Custom ORB (Adjust Time, Color, + Alerts)Set Opening Range Break Out for whatever time range you choose for current day only. 15 min, 30 min etc. You can add alerts on ORB High Low and change color of Lines.
Center and Volume AnalyzerCenter and Volume Analyzer that utilizes the chart's Center of Gravity alongside the Rate of Change with Bollinger Bands with a basis for the midpoint. As always, none of this is investment or financial advice. Please do your own due diligence and research.
SPX EMAs - Bala//@version=5
indicator("SPX EMAs", overlay = true)
// Inputs
ema8 = ta.ema(close, 8)
ema21 = ta.ema(close, 21)
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
// Plot EMAs
plot(ema8, "EMA 8", color=color.new(color.green, 0), linewidth=2)
plot(ema21, "EMA 21", color=color.new(color.orange, 0), linewidth=2)
plot(ema50, "EMA 50", color=color.new(color.blue, 0), linewidth=2)
plot(ema200,"EMA 200",color=color.new(color.red, 0), linewidth=2)
Estrategia Trend Following: 52w/26w BreakoutThis is a classic long-term Trend Following strategy, heavily inspired by the Donchian Channel system and the legendary "Turtle Trading" rules. It is designed to capture major market moves (bull runs) while filtering out short-term market noise and volatility.
This script is ideal for investors and swing traders who prefer a "hands-off" approach, looking to catch large trends rather than day-trading small fluctuations.
How it Works:
1. Entry Condition (The Breakout):
52-Week High: The strategy enters a Long position when the price breaks above the highest high of the last 252 trading days (approx. 1 year).
SuperTrend Filter: An additional filter using the SuperTrend indicator ensures that the breakout is supported by positive momentum, helping to reduce false signals during choppy lateral markets.
2. Exit Condition (The Trailing Stop):
26-Week Low: The strategy ignores short-term corrections. It only closes the position if the price closes below the lowest low of the last 126 trading days (approx. 6 months).
This wide stop allows the trade to "breathe" and stay open during significant pullbacks, ensuring you stay in the trend for as long as possible.
Features & Settings:
Customizable Lookback Periods: You can adjust the Entry (default 252 days) and Exit (default 126 days) periods in the settings menu.
Visual Aids:
Blue Line: Represents the 1-Year High (Entry Threshold).
Red Line: Represents the 6-Month Low (Dynamic Stop Loss).
Channel Shading: Visualizes the trading range between the high and low.
Labels: Clearly marks "BUY" and "EXIT" points on the chart.
Recommended Usage:
Timeframe: Daily (1D). This logic is designed for daily candles.
Assets: Works best on assets with strong trending characteristics (e.g., Bitcoin/Crypto, Tech Stocks, Indices like SPX/NDX, and Commodities).
Patience Required: This strategy generates very few signals. It may stay quiet for months and then hold a position for over a year.






















