ZenAndTheArtOfTrading

Trading Session Indicator

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

My Resources Hub: theartoftrading.com
FREE YouTube Lessons: rebrand.ly/zyt
FREE Pine Script Basics Course: rebrand.ly/zpsbc
Pine Script MASTERY Course: rebrand.ly/zpsmc
My Indicators & Strategies: rebrand.ly/zmisc
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?