OPEN-SOURCE SCRIPT
Mis à jour

Show Extended Hours (Futures & Crypto)

3598
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
Notes de version
  • Minor cleanup.
  • Added ability to change the background color 1 hour before the open or close of the market.
Notes de version
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.
Notes de version
Minor cleanup.
Notes de version
• User inputs were set to not display in the status line to minimize chart clutter.
Notes de version
Updated settings to use the session input and reduced script length.
Notes de version
• Visual cleanup of settings panel.
Notes de version
• Added Midday option. This is off by default.
• Minor setting format changes.
Notes de version
• Adjusted time evaluation to more reliably produce a bool.
• Removed unnecessary "var" from variables to reduce performance penalties.
• Logic format cleanup.
Notes de version
  • Converted to Pine Script v6
  • Added custom segments.
  • Simplified time logic.
  • Other minor enhancements.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.