OPEN-SOURCE SCRIPT
Updated Forex/Crypto/Custom Market Sessions

Credit goes to TradeMasterSavis for providing the original code
I merge the 2 sessions together allowing you to toggle between the two. I also add a 3rd custom session type and the ability to change the duration of each trading session. This would solve any problems ran into the case of Daylight savings time switch or if you just want different session duration.
I merge the 2 sessions together allowing you to toggle between the two. I also add a 3rd custom session type and the ability to change the duration of each trading session. This would solve any problems ran into the case of Daylight savings time switch or if you just want different session duration.
Release Notes
Changed some lines of script so that is is easier to separate custom market sessions in settings menuRelease Notes
I added a 5th trading session, so you can now use that session as a "no trade zone" i.e. times where you know there will be low liquidity or unpredictable volatility.Release Notes
I removed the clutter off my screen so you can see the indicatorOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.