yeungshawn

intraday trading period

display the intraday trading period (08:30 - 15:00) on chart with high transparent white background.

you can edit the time period by yourself in the pine editor mode.
Release Notes: simplify the code.

(Note: the code adapt itself with either summer time and winter time automatically, so there's no need to adjust it by yourself.)
Release Notes: this script serves future investors better (such as ES/
NQ/CL, etc.), a bit useless for stock investors.
Release Notes: tiny update
Release Notes:
  • update to PineScript Version 4
  • simplify the code
Release Notes: update code to Pinescript Version 5

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?