Skip to content
All library documents

Configurable Intraday Session Candle Coloring

Article TradingView scripts

Summary

This indicator highlights bars or candles that fall within a user-defined intraday session. The user sets session hours, timezone, and active weekdays, then chooses whether membership is determined by the bar’s opening tick, closing tick, the full bar, or any one-minute intrabar. An inversion option instead highlights bars outside the selected session.

Color classification is based on whether the close is above, below, or equal to the open, with an option to compare the close against the previous bar’s close. Body, border, wick, and background colors can be customized, and body coloring can overlay or replace the chart’s existing color. Lower-timeframe data supports the close, full-bar, and intrabar membership checks; the script disables itself on daily and higher timeframes. It is a chart-visualization aid: the document provides no trading rules, performance results, or evidence that the coloring predicts price moves.

Key ideas

  • Users can define session hours, timezone, and weekdays for highlighting intraday bars.
  • Session membership can depend on the bar open, close, full duration, or any one-minute intrabar.
  • An inverse setting highlights bars outside the selected session.
  • Bullish, bearish, and neutral colors are based on the current bar or previous close comparison.
  • The indicator is visual only and is disabled on daily and higher chart timeframes.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.