OPEN-SOURCE SCRIPT

Forex/Crypto/Custom Market Sessions

By savisoffical
Updated
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.
Release Notes
Changed some lines of script so that is is easier to separate custom market sessions in settings menu
Release 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 indicator
forexsessionssessionssessionseparatortradingsessionsTrend Analysiszenith

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer