OPEN-SOURCE SCRIPT

Show Extended Hours (Futures & Crypto)

Updated
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.
CyclesmultitimeframePivot points and levelsPOSTMARKETpremarket

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

Want to use this script on a chart?

Disclaimer