OPEN-SOURCE SCRIPT
Updated

Trading Session Indicator

53 282
This indicator is basically just a back-testing tool. All it does is highlight the background of your charts with the specified color within the specified timezone.

This is useful particularly for back-testing purposes, such as testing a day-trading strategy within a particular period of the day or ignoring signals that fall within the given timeframe (which is useful for ignoring setups during your testing that appear while you're asleep or at work etc.)

Take it easy :)
- Matt.
Release Notes
Minor improvements
Release Notes
Added alert functionality
Release Notes
Added "end of session" alert functionality
Release Notes
Fixed end of session alert
Release Notes
Updated alert functionality
Release Notes
Added ability to hide background color on a separate timeframe
Release Notes
Added an option to hide this indicator on the 4HR timeframe, Daily, Weekly and Monthly
Release Notes
-
- Converted to Pine Script v4
Release Notes
A few minor changes & improvements
Release Notes
Fixed the script not working on weekends
Release Notes
Updated to Pine Script v5
Release Notes
Updated to pine script v6

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.