liquid-trader

Show Extended Hours (Futures & Crypto)

OVERVIEW
This indicator mimics TradingViews "Extended trading hours" background color settings. It is most useful on symbols that do not conventionally have extended hours, but are available to trade during those hours (ie. Futures and Crypto). Because market participation (ie. volatility) in a given symbol can change dramatically at or near these transitions, seeing conventional market open / closures expedites price action context around these transitions.

INPUTS
You can configure:
  • Background colors for both Premarket and After Hours
  • Which extended hours you would like to see
  • Market Hours and Time Zone
Release Notes:
  • Minor cleanup.
  • Added ability to change the background color 1 hour before the open or close of the market.
Release Notes:
The previous update added the ability to change the background color 1 hour before the market opens or closes. This update adds the ability to specify any number of minutes before a markets open or close.
Release Notes:
Minor cleanup.
Release Notes:
• User inputs were set to not display in the status line to minimize chart clutter.
Release Notes:
Updated settings to use the session input and reduced script length.
Release Notes:
• Visual cleanup of settings panel.
Release Notes:
• Added Midday option. This is off by default.
• Minor setting format changes.
Release Notes:
• Adjusted time evaluation to more reliably produce a bool.
• Removed unnecessary "var" from variables to reduce performance penalties.
• Logic format cleanup.
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?