Atualizado
MTF Candle Direction Dashboard + Session Volume Alerts

OVERVIEW
This indicator shows the direction of the current and previous candle across five higher timeframes (15M, 1H, 4H, Daily, Weekly) in a compact dashboard. It also sends real-time alerts for candle direction flips on 1H, 4H and Daily, and for unusual volume in the pre-market and regular trading hours (RTH) sessions compared with their own 7-day and 30-day averages.
It is built for intraday traders who want to see higher-timeframe bias and session volume strength at a glance, without switching charts.
────────────────────────
1. MTF CANDLE DIRECTION DASHBOARD
────────────────────────
A table on the right side of the chart shows, for each timeframe:
- Current: direction of the candle that is still forming
- Previous: direction of the last closed candle
Symbols:
▲ Bullish (close > open)
▼ Bearish (close < open)
■ Neutral / Doji (close = open)
Timeframes: 15M, 1H, 4H, D, W
This gives a quick read on whether the higher timeframes agree or conflict, e.g. the 1H and 4H are both bullish while the Daily is still bearish.
────────────────────────
2. CANDLE FLIP ALERTS (1H / 4H / DAILY)
────────────────────────
When a new 1H, 4H or Daily candle opens, the script compares the last two CLOSED candles on that timeframe:
- BEAR→BULL: the prior candle was bearish and the last closed candle is bullish
- BULL→BEAR: the prior candle was bullish and the last closed candle is bearish
Notes:
- Only confirmed (closed) candles are used, so flip alerts do not repaint.
- The alert fires on the first tick of the new candle, which is the earliest a flip can be confirmed.
- Doji candles (close = open) are neutral and never trigger a flip.
- Candle open times follow the chart's session. With extended hours ON, Daily/4H candles start at 04:00 ET. With extended hours OFF, they start at 09:30 ET.
────────────────────────
3. SESSION VOLUME ALERTS (PRE-MARKET & RTH)
────────────────────────
The script tracks cumulative volume separately for two New York sessions:
- Pre-market: 04:00 – 09:30 ET
- RTH (Regular Trading Hours): 09:30 – 16:00 ET
Times use the America/New_York time zone and adjust automatically for EST/EDT.
For each session, today's running volume is compared with:
- the 7-day average of that same session's total volume
- the 30-day average of that same session's total volume
Pre-market is compared only against past pre-market sessions, and RTH only against past RTH sessions. The two are never mixed.
Four volume alerts:
- PM VOL > 7D AVG
- PM VOL > 30D AVG
- RTH VOL > 7D AVG
- RTH VOL > 30D AVG
Each alert fires in real time, on the tick when the running volume crosses the average, and only once per session.
Volume is always calculated from 5-minute extended-hours data, whatever the chart's timeframe, so session boundaries are exact.
────────────────────────
ALERT MESSAGE FORMAT
────────────────────────
All triggers are combined into a single message:
TICKER | EVENT(S) | Price
Example:
NVDA | 1H BEAR→BULL | PM VOL > 7D AVG (2.1M vs 1.8M) | Price 182.45
────────────────────────
HOW TO SET UP ALERTS
────────────────────────
1. Add the indicator to an intraday chart.
2. For pre-market alerts, turn ON extended trading hours on the chart. The script only updates when the chart receives data, so pre-market alerts cannot fire on an RTH-only chart. RTH alerts work either way.
3. Create an alert and set the condition to: MTF Candle Dir → "Any alert() function call".
4. Choose your notifications (app, email, webhook, etc.).
Alert frequency is handled inside the script (flips once per new candle, volume once per session), so no extra frequency setting is needed.
────────────────────────
SETTINGS
────────────────────────
- Show Dashboard: show or hide the table
- Triangle/Text Size: Tiny / Small / Normal / Large / Huge
- Colors: Bullish, Bearish, Neutral, Background, Label Text
- HTF Session:
- Chart: follow the chart's session setting (default)
- Regular: always use RTH candles for the dashboard and flip alerts
- Extended: always use extended-hours candles for the dashboard and flip alerts
────────────────────────
LIMITATIONS
────────────────────────
- The 7-day averages need at least 7 completed sessions of history, and the 30-day averages need 30. Until then, those alerts stay silent.
- Volume session windows are set for US equities on NY time. Other markets may not fit these hours.
- The dashboard's "Current" column shows the candle that is still forming, and can change until that candle closes.
- Volume accuracy depends on the extended-hours data your data feed provides for the symbol.
────────────────────────
DISCLAIMER
────────────────────────
This script is for informational and educational purposes only and is not financial advice. Past behavior of price or volume does not guarantee future results. Always use your own judgment and risk management.
This indicator shows the direction of the current and previous candle across five higher timeframes (15M, 1H, 4H, Daily, Weekly) in a compact dashboard. It also sends real-time alerts for candle direction flips on 1H, 4H and Daily, and for unusual volume in the pre-market and regular trading hours (RTH) sessions compared with their own 7-day and 30-day averages.
It is built for intraday traders who want to see higher-timeframe bias and session volume strength at a glance, without switching charts.
────────────────────────
1. MTF CANDLE DIRECTION DASHBOARD
────────────────────────
A table on the right side of the chart shows, for each timeframe:
- Current: direction of the candle that is still forming
- Previous: direction of the last closed candle
Symbols:
▲ Bullish (close > open)
▼ Bearish (close < open)
■ Neutral / Doji (close = open)
Timeframes: 15M, 1H, 4H, D, W
This gives a quick read on whether the higher timeframes agree or conflict, e.g. the 1H and 4H are both bullish while the Daily is still bearish.
────────────────────────
2. CANDLE FLIP ALERTS (1H / 4H / DAILY)
────────────────────────
When a new 1H, 4H or Daily candle opens, the script compares the last two CLOSED candles on that timeframe:
- BEAR→BULL: the prior candle was bearish and the last closed candle is bullish
- BULL→BEAR: the prior candle was bullish and the last closed candle is bearish
Notes:
- Only confirmed (closed) candles are used, so flip alerts do not repaint.
- The alert fires on the first tick of the new candle, which is the earliest a flip can be confirmed.
- Doji candles (close = open) are neutral and never trigger a flip.
- Candle open times follow the chart's session. With extended hours ON, Daily/4H candles start at 04:00 ET. With extended hours OFF, they start at 09:30 ET.
────────────────────────
3. SESSION VOLUME ALERTS (PRE-MARKET & RTH)
────────────────────────
The script tracks cumulative volume separately for two New York sessions:
- Pre-market: 04:00 – 09:30 ET
- RTH (Regular Trading Hours): 09:30 – 16:00 ET
Times use the America/New_York time zone and adjust automatically for EST/EDT.
For each session, today's running volume is compared with:
- the 7-day average of that same session's total volume
- the 30-day average of that same session's total volume
Pre-market is compared only against past pre-market sessions, and RTH only against past RTH sessions. The two are never mixed.
Four volume alerts:
- PM VOL > 7D AVG
- PM VOL > 30D AVG
- RTH VOL > 7D AVG
- RTH VOL > 30D AVG
Each alert fires in real time, on the tick when the running volume crosses the average, and only once per session.
Volume is always calculated from 5-minute extended-hours data, whatever the chart's timeframe, so session boundaries are exact.
────────────────────────
ALERT MESSAGE FORMAT
────────────────────────
All triggers are combined into a single message:
TICKER | EVENT(S) | Price
Example:
NVDA | 1H BEAR→BULL | PM VOL > 7D AVG (2.1M vs 1.8M) | Price 182.45
────────────────────────
HOW TO SET UP ALERTS
────────────────────────
1. Add the indicator to an intraday chart.
2. For pre-market alerts, turn ON extended trading hours on the chart. The script only updates when the chart receives data, so pre-market alerts cannot fire on an RTH-only chart. RTH alerts work either way.
3. Create an alert and set the condition to: MTF Candle Dir → "Any alert() function call".
4. Choose your notifications (app, email, webhook, etc.).
Alert frequency is handled inside the script (flips once per new candle, volume once per session), so no extra frequency setting is needed.
────────────────────────
SETTINGS
────────────────────────
- Show Dashboard: show or hide the table
- Triangle/Text Size: Tiny / Small / Normal / Large / Huge
- Colors: Bullish, Bearish, Neutral, Background, Label Text
- HTF Session:
- Chart: follow the chart's session setting (default)
- Regular: always use RTH candles for the dashboard and flip alerts
- Extended: always use extended-hours candles for the dashboard and flip alerts
────────────────────────
LIMITATIONS
────────────────────────
- The 7-day averages need at least 7 completed sessions of history, and the 30-day averages need 30. Until then, those alerts stay silent.
- Volume session windows are set for US equities on NY time. Other markets may not fit these hours.
- The dashboard's "Current" column shows the candle that is still forming, and can change until that candle closes.
- Volume accuracy depends on the extended-hours data your data feed provides for the symbol.
────────────────────────
DISCLAIMER
────────────────────────
This script is for informational and educational purposes only and is not financial advice. Past behavior of price or volume does not guarantee future results. Always use your own judgment and risk management.
Notas de Lançamento
Updated alert code to ignore minor candle Open - close gap.Notas de Lançamento
MTF Candle Direction Dashboard: UpdateNew: ROC (Rate of Change) row
- Shows the live ROC (Current) and the previous candle's ROC (Previous), green above 0 and red below 0.
- Adjustable ROC length and timeframe. For example, 26 on 15m covers about one full trading day of momentum.
New: ROC Signal column
- FLIP UP / FLIP DOWN: ROC crossed the zero line, so momentum has changed direction.
- STRETCHED: ROC is beyond your set level (default ±8%), so the move is overextended.
- BUYERS LOSING: ROC is positive but falling, an early warning of a top or pullback.
- SELLERS LOSING: ROC is negative but rising, an early warning of a bottom or bounce.
- STRONG ↑ / STRONG ↓: momentum is intact.
- Adjustable "Stretched level %" and warning colour.
New: ROC alerts
- Separate on/off toggles for "ROC crosses above" and "ROC crosses below", each with its own % threshold.
- Fires only on a real cross, at most once per ROC-timeframe candle.
- Included in the indicator's single alert message.
New: 1M and 5M candle direction
- 1-minute and 5-minute rows added above 15M, showing current and previous candle direction.
Unchanged: 15M/1H/4H/D/W candle direction, 1H/4H/D flip alerts with the min-body filter, and PM/RTH volume rows, alerts and labels.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.