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