OPEN-SOURCE SCRIPT

yatofx

227
Description: "Ramon Coto's 3 Session Bar Color" Indicator

This TradingView Pine Script indicator colors candlestick bars based on three custom trading sessions. It allows traders to visually distinguish different market timeframes on their charts.

Features:

Three configurable trading sessions with user-defined time ranges.

Customizable session colors:

Session A → Blue

Session B → Red

Session C → Lime


Enable/disable sessions independently using input toggles.

Automatic session detection: Bars are colored based on the active session.

Optimized for TradingView Mobile & Desktop with clear and efficient logic.


How It Works:

1. User Inputs: The script takes session time ranges and enables/disables each session.


2. Session Detection: The script checks whether the current time falls within any of the defined sessions.


3. Bar Coloring: If a session is active, the corresponding color is applied to the bars.



This indicator helps traders quickly recognize which market session they are in, improving decision-making for session-based strategies.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.