OPEN-SOURCE SCRIPT
Cập nhật Grok/Claude AI Neural Fusion Pro V2

AI 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.
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.
Phát hành các Ghi chú
info table fixPhát hành các Ghi chú
Table color fixMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.