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
Remove from Favorite Scripts Add to Favorite Scripts
Follow @TradeWisdom on Twitter for Daily inspiration from the best trading wizards, psychologists and philosophers.

Go to http://www.zenandtheartoftrading.com for articles on forex trading, trading psychology, trading resources, PineScript lessons and more!
Hi, thanks for the script!
Is it possible to make it invisible on timeframes higher than 1H for example
Reply
@additive, Hey man! Sorry for the late reply. I wasn't able to find a way to make it invisible on multiple higher timeframes, but I did add an option to hide it on a specific timeframe. I hope that helps, I'll look into other ways when I get time.

For now, if you open the settings menu there is a new option to specify what timeframe to hide it on. For example, if you want to hide it on the 4H chart then type in "240", if you want to hide it on the Daily chart type in "D". It's disabled by default so you will need to activate it.

Good luck with your trading :) I'll let you know if I find a better way to do this.
Reply
additive ZenAndTheArtOfTrading
@ZenAndTheArtOfTrading, Thanks very much for the update, it works very well!
If it could include a list of disabled times, would be even better tho :)
Right now I am using "240" only, but "240,D,W,M" would close to ideal for me.
Reply
@additive, Great idea. Done :) enjoy! Let me know if you have any other suggestions
Reply
additive ZenAndTheArtOfTrading
@ZenAndTheArtOfTrading, Awesome, tested and it works, thanks again!
Reply
hey great script, how do i get an alert when the session starts and end? then you can call this script sessions alerts
Reply
@russtic, Thanks for the suggestion :) I added alert functionality. Let me know if you experience any issues
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Get Help Ideas Published Followers Following Private Messages Chat Sign Out