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.
Feb 16
Release Notes: Minor improvements
May 29
Release Notes: Added alert functionality
May 29
Release Notes: Added "end of session" alert functionality
May 29
Release Notes: Fixed end of session alert
May 29
Release Notes: Updated alert functionality
Jul 28
Release Notes: Added ability to hide background color on a separate timeframe
Jul 30
Release Notes: Added an option to hide this indicator on the 4HR timeframe, Daily, Weekly and Monthly
Ta bort från favoritskript Lägg till som favoritskript
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, Pine Script lessons and more!
Thanks for this its going to help my back-testing enormously!
+1 Svara
@SAMIR_G11, You're welcome man, good luck with your testing!
Svara
Hi, thanks for the script!
Is it possible to make it invisible on timeframes higher than 1H for example
Svara
@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.
Svara
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.
Svara
@additive, Great idea. Done :) enjoy! Let me know if you have any other suggestions
Svara
additive ZenAndTheArtOfTrading
@ZenAndTheArtOfTrading, Awesome, tested and it works, thanks again!
Svara
hey great script, how do i get an alert when the session starts and end? then you can call this script sessions alerts
Svara
@russtic, Thanks for the suggestion :) I added alert functionality. Let me know if you experience any issues
Svara
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Program Hur det fungerar Diagramfunktioner Priser Ordningsregler Moderatorer Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Help Center Refer a friend Funktionsförfrågan Blogg och nyheter Twitter
Profil Profilinställningar Konto och fakturering Refer a friend Mina kölappar Help Center Publicerade idéer Följare Följer Privata meddelanden Chatt Logga ut