OPEN-SOURCE SCRIPT
Adaptive Ichimoku+ [MAB]

Adaptive Ichimoku+ is a self-optimizing trend and structure indicator that dynamically selects the most effective Ichimoku parameters
Instead of relying on fixed Tenkan-sen and Kijun-sen periods, this indicator continuously evaluates multiple configurations and automatically selects the ones that have been performing best on recent price action — delivering an Ichimoku system that adapts to evolving market structure and trend conditions.
🔶 HOW IT WORKS
Traditional Ichimoku uses fixed parameters (9-26-52), which may not suit all market environments. Adaptive Ichimoku+ enhances this by dynamically optimizing its core components:
Tenkan-sen (Conversion Line) → Multiple short-term periods are tested
Kijun-sen (Base Line) → Multiple medium-term periods are evaluated
Each configuration is scored using an exponential performance model that measures how consistently price respects the selected levels.
On every bar:
The best-performing Tenkan period is selected
The best-performing Kijun period is selected
These are used to construct the full Ichimoku system
The remaining components:
Senkou Span A → Midpoint of adaptive Tenkan and Kijun
Senkou Span B → Standard midpoint (user-defined period)
Chikou Span → Lagging price
This results in a fully adaptive Ichimoku structure that adjusts to both trend strength and market conditions.
🔶 USAGE
🔹 Trend & Structure
Blue line — Adaptive Tenkan-sen (short-term momentum)
Pink line — Adaptive Kijun-sen (trend baseline)
Price above Kijun — Bullish structure
Price below Kijun — Bearish structure
🔹 Cloud (Kumo)
Green cloud — Bullish environment (Span A above Span B)
Red cloud — Bearish environment (Span A below Span B)
The cloud dynamically reflects support/resistance zones and trend strength.
🔹 Key Signals
Tenkan / Kijun Cross — Momentum shift within the trend
Price vs Kijun — Trend confirmation
Price vs Cloud — Market regime (trend vs consolidation)
Because the underlying parameters are adaptive, these signals are aligned with the most relevant structure for current price action.
🔶 SETTINGS
🔹 Adaptive Engine
Perf EMA Length — Controls how quickly the parameter selection adapts. Lower values react faster; higher values provide stability.
🔹 Ichimoku Settings
Cloud Displacement — Forward shift applied to the cloud (standard Ichimoku behavior)
Senkou Span B Period — Lookback period for Span B calculation
🔶 NOTES
Suitable for all markets and timeframes.
Works best as a complete trend, structure, and support/resistance system.
Adaptive parameter selection helps improve responsiveness while maintaining stability.
Can be used for trend following, breakout confirmation, and dynamic support/resistance analysis.
Past performance of any selected parameter does not guarantee future results — always apply proper risk management.
Instead of relying on fixed Tenkan-sen and Kijun-sen periods, this indicator continuously evaluates multiple configurations and automatically selects the ones that have been performing best on recent price action — delivering an Ichimoku system that adapts to evolving market structure and trend conditions.
🔶 HOW IT WORKS
Traditional Ichimoku uses fixed parameters (9-26-52), which may not suit all market environments. Adaptive Ichimoku+ enhances this by dynamically optimizing its core components:
Tenkan-sen (Conversion Line) → Multiple short-term periods are tested
Kijun-sen (Base Line) → Multiple medium-term periods are evaluated
Each configuration is scored using an exponential performance model that measures how consistently price respects the selected levels.
On every bar:
The best-performing Tenkan period is selected
The best-performing Kijun period is selected
These are used to construct the full Ichimoku system
The remaining components:
Senkou Span A → Midpoint of adaptive Tenkan and Kijun
Senkou Span B → Standard midpoint (user-defined period)
Chikou Span → Lagging price
This results in a fully adaptive Ichimoku structure that adjusts to both trend strength and market conditions.
🔶 USAGE
🔹 Trend & Structure
Blue line — Adaptive Tenkan-sen (short-term momentum)
Pink line — Adaptive Kijun-sen (trend baseline)
Price above Kijun — Bullish structure
Price below Kijun — Bearish structure
🔹 Cloud (Kumo)
Green cloud — Bullish environment (Span A above Span B)
Red cloud — Bearish environment (Span A below Span B)
The cloud dynamically reflects support/resistance zones and trend strength.
🔹 Key Signals
Tenkan / Kijun Cross — Momentum shift within the trend
Price vs Kijun — Trend confirmation
Price vs Cloud — Market regime (trend vs consolidation)
Because the underlying parameters are adaptive, these signals are aligned with the most relevant structure for current price action.
🔶 SETTINGS
🔹 Adaptive Engine
Perf EMA Length — Controls how quickly the parameter selection adapts. Lower values react faster; higher values provide stability.
🔹 Ichimoku Settings
Cloud Displacement — Forward shift applied to the cloud (standard Ichimoku behavior)
Senkou Span B Period — Lookback period for Span B calculation
🔶 NOTES
Suitable for all markets and timeframes.
Works best as a complete trend, structure, and support/resistance system.
Adaptive parameter selection helps improve responsiveness while maintaining stability.
Can be used for trend following, breakout confirmation, and dynamic support/resistance analysis.
Past performance of any selected parameter does not guarantee future results — always apply proper risk management.
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.
Pine Script Developer • Market Analysis
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.
Pine Script Developer • Market Analysis
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.