OPEN-SOURCE SCRIPT
Multi-Timeframe Alignment Version 2.0

# Multi-Timeframe Alignment Alert — Strength Version
## Purpose of the Indicator
The Multi-Timeframe Alignment Alert — Strength Version was created to address a problem that affects both intraday and swing traders: a market can appear bullish on one chart while the larger timeframe structure remains bearish, or appear bearish on a lower timeframe while the broader trend remains bullish.
Looking at only one timeframe can cause a trader to mistake a temporary pullback for a full trend reversal or mistake a short-lived breakout for a move that is supported by the broader market structure.
This indicator provides a consolidated view of trend direction and trend strength across eight customizable timeframes:
* Weekly
* Daily
* Four-hour
* One-hour
* 30-minute
* 15-minute
* Five-minute
* One-minute
Its primary purpose is to help traders determine whether the price movement visible on their execution chart is supported by the intermediate and higher timeframes.
The indicator is not intended to predict price or produce automatic buy-and-sell signals. Its best purpose is to serve as a directional-bias dashboard, market-condition filter, and pre-trade decision-support tool.
## Why Multi-Timeframe Alignment Is Important
Every timeframe represents a different view of market behavior.
The weekly and daily charts provide broader directional context. The four-hour and one-hour charts help identify the active market structure. The 30-minute and 15-minute charts show how that structure is developing during the trading session. The five-minute and one-minute charts provide more immediate information that may be useful for trade execution.
A bullish signal on a one-minute chart does not necessarily carry the same significance when the weekly, daily, four-hour, and one-hour charts remain bearish. Likewise, a bearish move on a five-minute chart may simply be a temporary pullback inside a larger bullish trend.
This indicator helps traders distinguish between:
* A short-term move occurring against the larger trend
* A pullback occurring inside an established trend
* Partial bullish or bearish alignment
* Complete multi-timeframe alignment
* Strong alignment supported by moving-average direction
* Mixed conditions where the timeframes disagree
The dashboard makes these relationships visible without requiring the trader to repeatedly switch between eight separate charts.
## Why the 30-Minute Timeframe Was Included
The 30-minute timeframe serves an important purpose because it bridges the gap between the 15-minute execution structure and the one-hour directional structure.
The 15-minute chart can respond quickly to intraday price movement, but it may also change direction several times during a session. The one-hour chart provides more stable information, but it may react too slowly to reveal an important shift developing within the current hour.
The 30-minute timeframe provides an intermediate layer of confirmation.
For example, a bullish change on the one-minute, five-minute, and 15-minute charts may represent only a brief rally. When the 30-minute chart also becomes bullish, the move has begun to affect a more meaningful portion of the session. If the one-hour, four-hour, daily, and weekly charts are also bullish, the lower-timeframe movement is occurring with broader directional support.
The 30-minute timeframe can therefore help a trader determine whether a lower-timeframe move is beginning to develop into a more significant structural change or remains only short-term price noise.
## How the Indicator Determines Trend Strength
Each timeframe is evaluated using two conditions:
1. The location of price relative to the selected moving average
2. The direction of the selected moving average
Users can choose between an exponential moving average and a simple moving average. The moving-average length is also customizable.
The default setting uses a 21-period EMA.
The indicator classifies each timeframe into one of five states.
### Strong Bull
Price is above the moving average, and the moving average is rising.
This means that both price location and moving-average direction support a bullish interpretation.
### Weak Bull
Price is above the moving average, but the moving average is not rising.
Price remains on the bullish side of the moving average, but the trend may be flattening, transitioning, or losing upward momentum.
### Strong Bear
Price is below the moving average, and the moving average is falling.
This means that both price location and moving-average direction support a bearish interpretation.
### Weak Bear
Price is below the moving average, but the moving average is not falling.
Price remains on the bearish side of the moving average, but the bearish trend may be flattening, transitioning, or losing downward momentum.
### Neutral
The price and moving-average conditions do not create a clear bullish or bearish classification.
## Overall Alignment Conditions
The indicator combines the individual timeframe readings into an overall market status.
### Strong Bullish Aligned
All eight timeframes are classified as Strong Bull.
This means price is above the selected moving average and the moving average is rising on the weekly, daily, four-hour, one-hour, 30-minute, 15-minute, five-minute, and one-minute charts.
### Bullish Bias
All eight timeframes are bullish, but at least one timeframe is classified as Weak Bull rather than Strong Bull.
The market is directionally aligned, but the strength of the bullish condition is not identical across every timeframe.
### Strong Bearish Aligned
All eight timeframes are classified as Strong Bear.
This means price is below the selected moving average and the moving average is falling on every monitored timeframe.
### Bearish Bias
All eight timeframes are bearish, but at least one timeframe is classified as Weak Bear rather than Strong Bear.
The market is directionally aligned, but the strength of the bearish condition is not identical across every timeframe.
### Mixed
The monitored timeframes are not fully aligned in one direction.
A Mixed reading is useful because it warns the trader that the market is producing conflicting directional information. This may occur during consolidations, pullbacks, reversals, opening volatility, or transitions from one trend to another.
Mixed does not automatically mean that no trading opportunity exists. It means the trader should understand that the opportunity is not supported by complete timeframe agreement.
## Best Purpose and Practical Use
The indicator is best used before entering a trade rather than as a standalone entry trigger.
A practical workflow is to divide the dashboard into three layers.
### Higher-Timeframe Direction
Use the weekly, daily, and four-hour readings to identify the broader market direction.
These timeframes can help answer whether the larger market environment is bullish, bearish, or transitioning.
### Intermediate Market Structure
Use the one-hour and 30-minute readings to evaluate whether the active session structure agrees with the broader trend.
The 30-minute chart is especially useful here because it can identify an intraday shift before that shift becomes fully visible on the one-hour chart.
### Execution Conditions
Use the 15-minute, five-minute, and one-minute readings to evaluate the shorter-term conditions surrounding a potential entry.
The lower timeframes can help show whether price is moving back into alignment after a pullback or beginning to move against the larger trend.
A trader can then combine the dashboard with an independent entry method such as:
* Market-structure confirmation
* Break-and-retest confirmation
* Support or resistance
* Volume analysis
* VWAP
* Liquidity levels
* Candlestick confirmation
* Risk-to-reward requirements
For example, a trader considering a long position may give the setup greater weight when the weekly, daily, four-hour, one-hour, and 30-minute charts are bullish and the 15-minute, five-minute, and one-minute charts are returning to bullish alignment after a pullback.
A trader may be more cautious when the one-minute and five-minute charts are bullish but the 30-minute, one-hour, four-hour, daily, and weekly charts remain bearish. In that situation, the lower-timeframe rally may represent a countertrend move rather than the beginning of a broader bullish trend.
## Dashboard and Visual Features
The on-chart dashboard displays the current condition of each monitored timeframe.
The color-coded trend cells make it easier to distinguish between:
* Strong bullish conditions
* Weak bullish conditions
* Strong bearish conditions
* Weak bearish conditions
* Neutral conditions
The final Status row displays the overall alignment classification.
Users may customize the dashboard position and text size. The dashboard can also be hidden while leaving the indicator’s other visual features active.
## Chart Markers and Background Shading
Optional chart markers identify periods when the market reaches:
* Strong Bullish Alignment
* Bullish Bias
* Strong Bearish Alignment
* Bearish Bias
Optional background shading provides a broader visual indication of the current alignment condition.
The stronger background colors represent complete strong alignment, while the lighter background colors represent general bullish or bearish bias.
These visual tools are intended to make alignment changes easier to recognize. They are not automatic entry instructions.
## Alerts
The indicator includes separate alert conditions for:
* New Strong Bullish Alignment
* New Bullish Bias
* New Strong Bearish Alignment
* New Bearish Bias
The alerts are designed to trigger when the market first enters a new alignment condition rather than repeatedly triggering on every bar while the same condition remains active.
Each alert category can be enabled or disabled independently in the indicator settings.
## Customization
Users can customize:
* The moving-average length
* EMA or SMA calculation
* Weekly timeframe
* Daily timeframe
* Four-hour timeframe
* One-hour timeframe
* 30-minute timeframe
* 15-minute timeframe
* Five-minute timeframe
* One-minute timeframe
* Dashboard location
* Dashboard text size
* Chart markers
* Background highlighting
* Individual alert categories
Although the default settings use common trading timeframes, each timeframe input can be changed to support different intraday, swing-trading, or position-trading workflows.
The indicator is written in Pine Script v6.
## Important Limitations
Multi-timeframe alignment does not guarantee that price will continue in the aligned direction.
Complete alignment may sometimes occur after price has already made an extended move. A strongly bullish reading does not mean that price cannot pull back, and a strongly bearish reading does not mean that price cannot rally.
The indicator does not independently evaluate:
* Support and resistance
* Liquidity
* Volume
* Volatility
* Market profile
* Economic announcements
* Earnings events
* Stop-loss placement
* Position sizing
* Risk-to-reward
* Whether price is overextended
The condition of an open candle may also change before that candle closes. For example, the 30-minute or one-hour reading may change during the formation of the current 30-minute or one-hour bar.
For this reason, traders who require confirmed signals should consider whether the relevant timeframe candle has closed before acting on a change in status.
The indicator should be used as a market-context and trade-filtering tool alongside an independent trading strategy and appropriate risk management.
## Summary
The Multi-Timeframe Alignment Alert — Strength Version provides a consolidated view of trend direction and moving-average strength across eight customizable timeframes.
Its main value is helping traders understand whether short-term price movement is supported by the intermediate and higher timeframe structure.
The addition of the 30-minute timeframe improves the transition between the 15-minute and one-hour charts, helping traders evaluate whether an intraday move is gaining structural importance or remains limited to the shortest timeframes.
Rather than treating every bullish or bearish move equally, the indicator distinguishes between weak conditions, strong conditions, full alignment, and mixed markets.
Its best use is as a directional-bias dashboard, pre-trade checklist, countertrend warning, and multi-timeframe market-context tool.
## Purpose of the Indicator
The Multi-Timeframe Alignment Alert — Strength Version was created to address a problem that affects both intraday and swing traders: a market can appear bullish on one chart while the larger timeframe structure remains bearish, or appear bearish on a lower timeframe while the broader trend remains bullish.
Looking at only one timeframe can cause a trader to mistake a temporary pullback for a full trend reversal or mistake a short-lived breakout for a move that is supported by the broader market structure.
This indicator provides a consolidated view of trend direction and trend strength across eight customizable timeframes:
* Weekly
* Daily
* Four-hour
* One-hour
* 30-minute
* 15-minute
* Five-minute
* One-minute
Its primary purpose is to help traders determine whether the price movement visible on their execution chart is supported by the intermediate and higher timeframes.
The indicator is not intended to predict price or produce automatic buy-and-sell signals. Its best purpose is to serve as a directional-bias dashboard, market-condition filter, and pre-trade decision-support tool.
## Why Multi-Timeframe Alignment Is Important
Every timeframe represents a different view of market behavior.
The weekly and daily charts provide broader directional context. The four-hour and one-hour charts help identify the active market structure. The 30-minute and 15-minute charts show how that structure is developing during the trading session. The five-minute and one-minute charts provide more immediate information that may be useful for trade execution.
A bullish signal on a one-minute chart does not necessarily carry the same significance when the weekly, daily, four-hour, and one-hour charts remain bearish. Likewise, a bearish move on a five-minute chart may simply be a temporary pullback inside a larger bullish trend.
This indicator helps traders distinguish between:
* A short-term move occurring against the larger trend
* A pullback occurring inside an established trend
* Partial bullish or bearish alignment
* Complete multi-timeframe alignment
* Strong alignment supported by moving-average direction
* Mixed conditions where the timeframes disagree
The dashboard makes these relationships visible without requiring the trader to repeatedly switch between eight separate charts.
## Why the 30-Minute Timeframe Was Included
The 30-minute timeframe serves an important purpose because it bridges the gap between the 15-minute execution structure and the one-hour directional structure.
The 15-minute chart can respond quickly to intraday price movement, but it may also change direction several times during a session. The one-hour chart provides more stable information, but it may react too slowly to reveal an important shift developing within the current hour.
The 30-minute timeframe provides an intermediate layer of confirmation.
For example, a bullish change on the one-minute, five-minute, and 15-minute charts may represent only a brief rally. When the 30-minute chart also becomes bullish, the move has begun to affect a more meaningful portion of the session. If the one-hour, four-hour, daily, and weekly charts are also bullish, the lower-timeframe movement is occurring with broader directional support.
The 30-minute timeframe can therefore help a trader determine whether a lower-timeframe move is beginning to develop into a more significant structural change or remains only short-term price noise.
## How the Indicator Determines Trend Strength
Each timeframe is evaluated using two conditions:
1. The location of price relative to the selected moving average
2. The direction of the selected moving average
Users can choose between an exponential moving average and a simple moving average. The moving-average length is also customizable.
The default setting uses a 21-period EMA.
The indicator classifies each timeframe into one of five states.
### Strong Bull
Price is above the moving average, and the moving average is rising.
This means that both price location and moving-average direction support a bullish interpretation.
### Weak Bull
Price is above the moving average, but the moving average is not rising.
Price remains on the bullish side of the moving average, but the trend may be flattening, transitioning, or losing upward momentum.
### Strong Bear
Price is below the moving average, and the moving average is falling.
This means that both price location and moving-average direction support a bearish interpretation.
### Weak Bear
Price is below the moving average, but the moving average is not falling.
Price remains on the bearish side of the moving average, but the bearish trend may be flattening, transitioning, or losing downward momentum.
### Neutral
The price and moving-average conditions do not create a clear bullish or bearish classification.
## Overall Alignment Conditions
The indicator combines the individual timeframe readings into an overall market status.
### Strong Bullish Aligned
All eight timeframes are classified as Strong Bull.
This means price is above the selected moving average and the moving average is rising on the weekly, daily, four-hour, one-hour, 30-minute, 15-minute, five-minute, and one-minute charts.
### Bullish Bias
All eight timeframes are bullish, but at least one timeframe is classified as Weak Bull rather than Strong Bull.
The market is directionally aligned, but the strength of the bullish condition is not identical across every timeframe.
### Strong Bearish Aligned
All eight timeframes are classified as Strong Bear.
This means price is below the selected moving average and the moving average is falling on every monitored timeframe.
### Bearish Bias
All eight timeframes are bearish, but at least one timeframe is classified as Weak Bear rather than Strong Bear.
The market is directionally aligned, but the strength of the bearish condition is not identical across every timeframe.
### Mixed
The monitored timeframes are not fully aligned in one direction.
A Mixed reading is useful because it warns the trader that the market is producing conflicting directional information. This may occur during consolidations, pullbacks, reversals, opening volatility, or transitions from one trend to another.
Mixed does not automatically mean that no trading opportunity exists. It means the trader should understand that the opportunity is not supported by complete timeframe agreement.
## Best Purpose and Practical Use
The indicator is best used before entering a trade rather than as a standalone entry trigger.
A practical workflow is to divide the dashboard into three layers.
### Higher-Timeframe Direction
Use the weekly, daily, and four-hour readings to identify the broader market direction.
These timeframes can help answer whether the larger market environment is bullish, bearish, or transitioning.
### Intermediate Market Structure
Use the one-hour and 30-minute readings to evaluate whether the active session structure agrees with the broader trend.
The 30-minute chart is especially useful here because it can identify an intraday shift before that shift becomes fully visible on the one-hour chart.
### Execution Conditions
Use the 15-minute, five-minute, and one-minute readings to evaluate the shorter-term conditions surrounding a potential entry.
The lower timeframes can help show whether price is moving back into alignment after a pullback or beginning to move against the larger trend.
A trader can then combine the dashboard with an independent entry method such as:
* Market-structure confirmation
* Break-and-retest confirmation
* Support or resistance
* Volume analysis
* VWAP
* Liquidity levels
* Candlestick confirmation
* Risk-to-reward requirements
For example, a trader considering a long position may give the setup greater weight when the weekly, daily, four-hour, one-hour, and 30-minute charts are bullish and the 15-minute, five-minute, and one-minute charts are returning to bullish alignment after a pullback.
A trader may be more cautious when the one-minute and five-minute charts are bullish but the 30-minute, one-hour, four-hour, daily, and weekly charts remain bearish. In that situation, the lower-timeframe rally may represent a countertrend move rather than the beginning of a broader bullish trend.
## Dashboard and Visual Features
The on-chart dashboard displays the current condition of each monitored timeframe.
The color-coded trend cells make it easier to distinguish between:
* Strong bullish conditions
* Weak bullish conditions
* Strong bearish conditions
* Weak bearish conditions
* Neutral conditions
The final Status row displays the overall alignment classification.
Users may customize the dashboard position and text size. The dashboard can also be hidden while leaving the indicator’s other visual features active.
## Chart Markers and Background Shading
Optional chart markers identify periods when the market reaches:
* Strong Bullish Alignment
* Bullish Bias
* Strong Bearish Alignment
* Bearish Bias
Optional background shading provides a broader visual indication of the current alignment condition.
The stronger background colors represent complete strong alignment, while the lighter background colors represent general bullish or bearish bias.
These visual tools are intended to make alignment changes easier to recognize. They are not automatic entry instructions.
## Alerts
The indicator includes separate alert conditions for:
* New Strong Bullish Alignment
* New Bullish Bias
* New Strong Bearish Alignment
* New Bearish Bias
The alerts are designed to trigger when the market first enters a new alignment condition rather than repeatedly triggering on every bar while the same condition remains active.
Each alert category can be enabled or disabled independently in the indicator settings.
## Customization
Users can customize:
* The moving-average length
* EMA or SMA calculation
* Weekly timeframe
* Daily timeframe
* Four-hour timeframe
* One-hour timeframe
* 30-minute timeframe
* 15-minute timeframe
* Five-minute timeframe
* One-minute timeframe
* Dashboard location
* Dashboard text size
* Chart markers
* Background highlighting
* Individual alert categories
Although the default settings use common trading timeframes, each timeframe input can be changed to support different intraday, swing-trading, or position-trading workflows.
The indicator is written in Pine Script v6.
## Important Limitations
Multi-timeframe alignment does not guarantee that price will continue in the aligned direction.
Complete alignment may sometimes occur after price has already made an extended move. A strongly bullish reading does not mean that price cannot pull back, and a strongly bearish reading does not mean that price cannot rally.
The indicator does not independently evaluate:
* Support and resistance
* Liquidity
* Volume
* Volatility
* Market profile
* Economic announcements
* Earnings events
* Stop-loss placement
* Position sizing
* Risk-to-reward
* Whether price is overextended
The condition of an open candle may also change before that candle closes. For example, the 30-minute or one-hour reading may change during the formation of the current 30-minute or one-hour bar.
For this reason, traders who require confirmed signals should consider whether the relevant timeframe candle has closed before acting on a change in status.
The indicator should be used as a market-context and trade-filtering tool alongside an independent trading strategy and appropriate risk management.
## Summary
The Multi-Timeframe Alignment Alert — Strength Version provides a consolidated view of trend direction and moving-average strength across eight customizable timeframes.
Its main value is helping traders understand whether short-term price movement is supported by the intermediate and higher timeframe structure.
The addition of the 30-minute timeframe improves the transition between the 15-minute and one-hour charts, helping traders evaluate whether an intraday move is gaining structural importance or remains limited to the shortest timeframes.
Rather than treating every bullish or bearish move equally, the indicator distinguishes between weak conditions, strong conditions, full alignment, and mixed markets.
Its best use is as a directional-bias dashboard, pre-trade checklist, countertrend warning, and multi-timeframe market-context tool.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.