OPEN-SOURCE SCRIPT
Morph's Time Filter

Time Filter (days of week and hours of day)
Here you can select which days of the week you would like to filter as well as what hours you would like it to trade within. Take this code and add it to any script and use the "TimeFilter" to your strategies or indicators to filter out certain times
Here you can select which days of the week you would like to filter as well as what hours you would like it to trade within. Take this code and add it to any script and use the "TimeFilter" to your strategies or indicators to filter out certain times
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.
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.
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.