OPEN-SOURCE SCRIPT
Last Candle of Hour Highlighter (M1 + M5)

Highlights the last candle of every hour on 1-minute (M1) and 5-minute (M5) charts, making it easier to spot session closes, breakouts, and end-of-hour price action at a glance.
Detailed Description / How to Use:
This indicator automatically detects the last candle of each hour and changes its colour for quick visual reference. It’s designed for traders who use short-term timeframes (M1, M5) and want a clean visual cue for hourly closes.
Features:
• Automatically detects M1 and M5 timeframes.
• Highlights the last candle of each hour with a customisable colour.
• Optional Bull/Bear mode: colour changes depending on candle direction.
• Simple and lightweight — does not affect chart performance.
Inputs / Settings:
1. Color by Bull/Bear – Toggle on to automatically colour the last candle green (bullish) or red (bearish) based on its close relative to the open.
2. Highlight Colour – Choose a single colour if Bull/Bear mode is off.
3. Bullish Colour – Choose the colour for bullish last candles.
4. Bearish Colour – Choose the colour for bearish last candles.
Usage Tips:
• Works best on 1-minute and 5-minute charts.
• Ideal for spotting end-of-hour reversals, breakout candles, and momentum shifts.
• Can be combined with other indicators like support/resistance or moving averages for more advanced strategies.
Detailed Description / How to Use:
This indicator automatically detects the last candle of each hour and changes its colour for quick visual reference. It’s designed for traders who use short-term timeframes (M1, M5) and want a clean visual cue for hourly closes.
Features:
• Automatically detects M1 and M5 timeframes.
• Highlights the last candle of each hour with a customisable colour.
• Optional Bull/Bear mode: colour changes depending on candle direction.
• Simple and lightweight — does not affect chart performance.
Inputs / Settings:
1. Color by Bull/Bear – Toggle on to automatically colour the last candle green (bullish) or red (bearish) based on its close relative to the open.
2. Highlight Colour – Choose a single colour if Bull/Bear mode is off.
3. Bullish Colour – Choose the colour for bullish last candles.
4. Bearish Colour – Choose the colour for bearish last candles.
Usage Tips:
• Works best on 1-minute and 5-minute charts.
• Ideal for spotting end-of-hour reversals, breakout candles, and momentum shifts.
• Can be combined with other indicators like support/resistance or moving averages for more advanced strategies.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。