PROTECTED SOURCE SCRIPT
Ichimoku Horizon MTF

Ichimoku Horizon MTF — Multi-TimeFrame Ichimoku with auto-map
Overview
Ichimoku Horizon MTF plots classic Ichimoku on your current chart timeframe and projects up to three higher timeframes (TF1 / TF2 / TF3) onto the same chart. The goal is to keep one clean chart while still seeing higher-timeframe Ichimoku context (for example Daily / Weekly / Monthly).
On the screen, you typically see:
– the full Ichimoku set for your chart timeframe (Tenkan, Kijun, Kumo, Chikou),
– the same structure projected from TF1–TF3, each with its own colour family,
– an optional Kumo Midline (extra line, not part of original Ichimoku, used as a visual helper),
– and an optional TF banner showing which higher timeframes are currently mapped.

And optionally: A Kumo Midline (midpoint between SSA and SSB)
Kumo Midline (non-original Ichimoku addition)
The Kumo Midline is a personal addition.
It is not part of the original Ichimoku.
It is provided for informational and visual purposes only, as a helper to read the centre of the cloud.
It is calculated as the simple average of the two cloud boundaries:
Midline= SSA + SSB / 2
You can turn it ON/OFF globally, and also separately for each timeframe (Chart / TF1 / TF2 / TF3). The same logic (including the optional Midline) is applied to TF1 / TF2 / TF3 and projected onto your main chart.

Auto-map & timeframe presets
You control how TF1 / TF2 / TF3 are selected using two mechanisms:
Auto-map TF from chart (ON/OFF)
When ON, the script automatically chooses a profile based on your chart timeframe
(Scalp / Intraday / Swing / Long Term / Investment / Macro).
TF1 / TF2 / TF3 are always higher than the chart timeframe, with a consistent progression.
Preset Time Frame (when Auto-map = OFF)
When OFF, you choose a fixed preset, for example:
Scalp S — 1m / 5m / 15m
Intraday L — 1H / 4H / 1D
Swing — 1D / 1W / 1M
Investment — 1M / 3M / 6M
Macro — 3M / 6M / 12M
If you choose Custom, you manually set TF1 / TF2 / TF3 using the three “Timeframe selection” inputs in the TF1 / TF2 / TF3 sections.
This allows you to switch quickly between scalp / intraday / swing / macro profiles without editing any code.

TF banner (legend) & display options
The indicator includes an optional TF banner (a small panel) that acts as a timeframe legend:
Shows the active profile name (Scalp, Intraday M, Intraday XL, Swing, Long Term, Macro, Custom). Displays the three mapped timeframes (TF1 / TF2 / TF3) in short form (5m, 1H, 4H, 1D, 1W, 1M, etc.). Shows “TK / KJ” with small coloured squares for Tenkan and Kijun for each TF, matching the line colours on the chart.
You can control:
Show / hide the banner.
Position: Top / Bottom, Left / Center / Right.
Text colour, background, text size.
Each block (Chart, TF1, TF2, TF3) also has its own toggles for:
Tenkan
Kijun
Chikō
SSA
SSB
Kumo fill
Kumo Midline
This lets you keep only what you really need (for example: just HTF Kijun + HTF Kumo).
Colour design
Special care has been taken with the colour design:
Each timeframe uses its own colour family
(for example: warm colours for the chart timeframe, green for TF1, blue for TF2, neutral/grey for TF3), so the chart stays readable even when all TFs are displayed at once.Kumo fills are semi-transparent to provide context without hiding price action. Defaults are tuned for light charts, and every colour can be customised if you prefer another palette.
Built-in alerts
The script includes a small set of ready-to-use alerts, controlled by:
A global “Enable alerts” switch
A built-in cooldown to avoid alert spam
Available conditions (on the chart timeframe):
TK > KJ (UP) – Tenkan crosses above Kijun (filtered by a bullish HTF bias).
TK < KJ (DOWN) – Tenkan crosses below Kijun (filtered by a bearish HTF bias).
Kumo Breakout (UP) – Close breaks above the cloud (with bullish HTF filter).
Kumo Breakout (DOWN) – Close breaks below the cloud (with bearish HTF filter).
All TF Bullish – Chart + TF1 + TF2 + TF3 all have Tenkan > Kijun (full bullish alignment).
All TF Bearish – Chart + TF1 + TF2 + TF3 all have Tenkan < Kijun (full bearish alignment).
HTF Confirms (BULL) – Bullish TK cross on the chart timeframe, with HTF support and price above the cloud.
HTF Confirms (BEAR) – Bearish TK cross on the chart timeframe, with HTF confirmation and price below the cloud.
To use them:
Add an alert on the indicator,
Choose one of these conditions,
Use “Once per bar close” for cleaner signals.
No-repaint logic
Higher-timeframe data is fetched using request.security() with:
barmerge.gaps_off
barmerge.lookahead_off
This means:
No artificial lookahead,
No repainting,
Apart from the normal forward shift of the Ichimoku cloud, which is how standard Ichimoku works by design.
If the chart get “stuck on the left”
stuck on the left side, or misaligned. If you see the TF banner or right-side labels not updating correctly: Clear the TradingView app cache (or restart the app / browser)
Reload the chart. This usually forces TradingView to redraw all tables and labels correctly and fixes the display issue.
Disclaimer
This script is provided for educational and informational purposes only.
It does not constitute financial or investment advice and should not be used as a standalone signal provider.
Always do your own analysis and use proper risk management before taking any trade.
Thanks for using Ichimoku Horizon MTF.
Overview
Ichimoku Horizon MTF plots classic Ichimoku on your current chart timeframe and projects up to three higher timeframes (TF1 / TF2 / TF3) onto the same chart. The goal is to keep one clean chart while still seeing higher-timeframe Ichimoku context (for example Daily / Weekly / Monthly).
On the screen, you typically see:
– the full Ichimoku set for your chart timeframe (Tenkan, Kijun, Kumo, Chikou),
– the same structure projected from TF1–TF3, each with its own colour family,
– an optional Kumo Midline (extra line, not part of original Ichimoku, used as a visual helper),
– and an optional TF banner showing which higher timeframes are currently mapped.
And optionally: A Kumo Midline (midpoint between SSA and SSB)
Kumo Midline (non-original Ichimoku addition)
The Kumo Midline is a personal addition.
It is not part of the original Ichimoku.
It is provided for informational and visual purposes only, as a helper to read the centre of the cloud.
It is calculated as the simple average of the two cloud boundaries:
Midline= SSA + SSB / 2
You can turn it ON/OFF globally, and also separately for each timeframe (Chart / TF1 / TF2 / TF3). The same logic (including the optional Midline) is applied to TF1 / TF2 / TF3 and projected onto your main chart.
Auto-map & timeframe presets
You control how TF1 / TF2 / TF3 are selected using two mechanisms:
Auto-map TF from chart (ON/OFF)
When ON, the script automatically chooses a profile based on your chart timeframe
(Scalp / Intraday / Swing / Long Term / Investment / Macro).
TF1 / TF2 / TF3 are always higher than the chart timeframe, with a consistent progression.
Preset Time Frame (when Auto-map = OFF)
When OFF, you choose a fixed preset, for example:
Scalp S — 1m / 5m / 15m
Intraday L — 1H / 4H / 1D
Swing — 1D / 1W / 1M
Investment — 1M / 3M / 6M
Macro — 3M / 6M / 12M
If you choose Custom, you manually set TF1 / TF2 / TF3 using the three “Timeframe selection” inputs in the TF1 / TF2 / TF3 sections.
This allows you to switch quickly between scalp / intraday / swing / macro profiles without editing any code.
TF banner (legend) & display options
The indicator includes an optional TF banner (a small panel) that acts as a timeframe legend:
Shows the active profile name (Scalp, Intraday M, Intraday XL, Swing, Long Term, Macro, Custom). Displays the three mapped timeframes (TF1 / TF2 / TF3) in short form (5m, 1H, 4H, 1D, 1W, 1M, etc.). Shows “TK / KJ” with small coloured squares for Tenkan and Kijun for each TF, matching the line colours on the chart.
You can control:
Show / hide the banner.
Position: Top / Bottom, Left / Center / Right.
Text colour, background, text size.
Each block (Chart, TF1, TF2, TF3) also has its own toggles for:
Tenkan
Kijun
Chikō
SSA
SSB
Kumo fill
Kumo Midline
This lets you keep only what you really need (for example: just HTF Kijun + HTF Kumo).
Colour design
Special care has been taken with the colour design:
Each timeframe uses its own colour family
(for example: warm colours for the chart timeframe, green for TF1, blue for TF2, neutral/grey for TF3), so the chart stays readable even when all TFs are displayed at once.Kumo fills are semi-transparent to provide context without hiding price action. Defaults are tuned for light charts, and every colour can be customised if you prefer another palette.
Built-in alerts
The script includes a small set of ready-to-use alerts, controlled by:
A global “Enable alerts” switch
A built-in cooldown to avoid alert spam
Available conditions (on the chart timeframe):
TK > KJ (UP) – Tenkan crosses above Kijun (filtered by a bullish HTF bias).
TK < KJ (DOWN) – Tenkan crosses below Kijun (filtered by a bearish HTF bias).
Kumo Breakout (UP) – Close breaks above the cloud (with bullish HTF filter).
Kumo Breakout (DOWN) – Close breaks below the cloud (with bearish HTF filter).
All TF Bullish – Chart + TF1 + TF2 + TF3 all have Tenkan > Kijun (full bullish alignment).
All TF Bearish – Chart + TF1 + TF2 + TF3 all have Tenkan < Kijun (full bearish alignment).
HTF Confirms (BULL) – Bullish TK cross on the chart timeframe, with HTF support and price above the cloud.
HTF Confirms (BEAR) – Bearish TK cross on the chart timeframe, with HTF confirmation and price below the cloud.
To use them:
Add an alert on the indicator,
Choose one of these conditions,
Use “Once per bar close” for cleaner signals.
No-repaint logic
Higher-timeframe data is fetched using request.security() with:
barmerge.gaps_off
barmerge.lookahead_off
This means:
No artificial lookahead,
No repainting,
Apart from the normal forward shift of the Ichimoku cloud, which is how standard Ichimoku works by design.
If the chart get “stuck on the left”
stuck on the left side, or misaligned. If you see the TF banner or right-side labels not updating correctly: Clear the TradingView app cache (or restart the app / browser)
Reload the chart. This usually forces TradingView to redraw all tables and labels correctly and fixes the display issue.
Disclaimer
This script is provided for educational and informational purposes only.
It does not constitute financial or investment advice and should not be used as a standalone signal provider.
Always do your own analysis and use proper risk management before taking any trade.
Thanks for using Ichimoku Horizon MTF.
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。