Plumptoiletduck

Custom Time ranges



Description:
This script colours the background of any time range you specify, including weekend periods.

It can be useful for spotting patterns on Bitcoin (recurring times of buying or selling).

Checkboxes to switch on and off. Inputs to specify time and day of week.


Monday = 2
Tuesday = 3
Wednesday = 4
Thursday = 5
Friday = 6
Saturday = 7
Sunday = 1


Example 1:

1500-1800:2

This will colour the background between 3pm and 6pm on Mondays.


Example 2:


0000-0600:247

This will colour the background between midnight and 6am on Mondays, Wednesdays, and Saturdays.


Any questions you may have, please leave in comments below and I'll respond when I have time.

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

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.

Want to use this script on a chart?