Pre-market Highs & Lows on regular trading hours (RTH) chart

twingall Mis à jour   
Shows pre-market highs and lows on RTH or ETH chart

-Pre-market duration user input (default is 16 'bar hours'; covering the time from S&P RTH close at 4pm >> 9:30am RTH open next day
-Displays on both RTH and ETH charts
-Written for ES (ES1! or e.g ESM2023), but tested and working on SPY, SPX
-Works across timeframes

Example usage on Electronic trading hours (ETH) chart; showing the 'bar hours' user input lookback duration visually
Notes de version:
-Added realtime plotting of out-of-hours highest/lowest as price progresses through the overnight session. Lines move on 'static' RTH chart too. This will dissappear and be replaced with the original lines as we enter the opening bell.
-Really this indicator is designed / working properly only on ES, NQ, YM (i.e. ES1!, ESM2023 etc etc). Not printing correctly on SPY due to extended session time quirks.
-I'm planning to release a much simpler realtime version, current day only, versatile across all all variants of S&P 500.
Notes de version:
-fixed code: needed to use request.security_lower_tf() to fetch price data from ETH feed while on RTH chart during extended hours ( would not work)
Notes de version:
-Note on the above update: due to pinescript execution model (execute on a new bar), when viewing on RTH static chart overnight, only way to retrieve ETH up-to-date levels is to refresh the page.

You can buy me a coffee here...

BTC: 3JrhUwNRnKyqhaa1n1AXKeAubNeEFoch6S
ETH erc20: 0x4b0400B1c18503529ab69611e82a934DDe4Ab038
ETH bep20: 0x1F0f03F184079bb1085F8C9dF3a8191C9f5869B3
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

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.

Vous voulez utiliser ce script sur un graphique ?