OPEN-SOURCE SCRIPT
更新済 Premarket High/Low (Horizontal Rays)

=== Script Description ===
This TradingView script automatically detects and displays the high and low prices
during the premarket session (04:00–09:30 Eastern Time) for the current trading day.
It draws horizontal rays that extend across the chart and labels them as "PM High" and "PM Low".
These markers are refreshed daily and only apply to today's session.
The script also provides full customization for:
- Line color, width, and style (solid, dotted, dashed)
- Label text color, background color, size, and style (left, right, up, down)
Time note: This script assumes data aligned with U.S. market hours.
This TradingView script automatically detects and displays the high and low prices
during the premarket session (04:00–09:30 Eastern Time) for the current trading day.
It draws horizontal rays that extend across the chart and labels them as "PM High" and "PM Low".
These markers are refreshed daily and only apply to today's session.
The script also provides full customization for:
- Line color, width, and style (solid, dotted, dashed)
- Label text color, background color, size, and style (left, right, up, down)
Time note: This script assumes data aligned with U.S. market hours.
リリースノート
=== Script Description ===This TradingView script automatically detects and displays the high and low prices
during the premarket session (04:00–09:30 Eastern Time) for the current trading day.
It draws horizontal rays that extend across the chart and labels them as "PM High" and "PM Low".
These markers are refreshed daily and only apply to today's session.
The script also provides full customization for:
- Line color, width, and style (solid, dotted, dashed)
- Label text color, background color, size, and style (left, right, up, down)
Time note: This script assumes data aligned with U.S. market hours.
リリースノート
=== Script Description ===This TradingView script automatically detects and displays the high and low prices
during the premarket session (04:00–09:30 Eastern Time) for the current trading day.
It draws horizontal rays that extend across the chart and labels them as "PM High" and "PM Low".
These markers are refreshed daily and only apply to today's session.
The script also provides full customization for:
- Line color, width, and style (solid, dotted, dashed)
- Label text color, background color, size, and style (left, right, up, down)
Time note: This script assumes data aligned with U.S. market hours.
リリースノート
Updated:The labels for PM High and PM Low now dynamically update during the premarket session as new highs or lows are reached. The rays and labels move in real time without waiting for the premarket session to end.
リリースノート
Update:It now works on all time frames.
リリースノート
Updated the chart in the script preview to include only the Premarket High/Low (Horizontal Rays) script.リリースノート
Updated from the original v5 script to Pine Script v6 and improved premarket high/low accuracy across all chart timeframes.Key changes:
- Converted script to Pine Script v6.
- Added internal lower-timeframe calculation, defaulted to 1-minute, so PM High/Low remain accurate on higher chart timeframes.
- Added optional forced extended-hours data support.
- Replaced fixed timestamp logic with configurable session inputs.
- Improved drawing efficiency by updating existing lines and labels instead of deleting/recreating them every bar.
- Added time-based ray positioning for better multi-timeframe compatibility.
- Added optional price display in labels.
- Added separate PM High/Low line color controls.
- Added breakout alerts for crosses above PM High and below PM Low.
リリースノート
Updated from the original v5 script to Pine Script v6 and improved premarket high/low accuracy across all chart timeframes.Key changes:
- Converted script to Pine Script v6.
- Added internal lower-timeframe calculation, defaulted to 1-minute, so PM High/Low remain accurate on higher chart timeframes.
- Added optional forced extended-hours data support.
- Replaced fixed timestamp logic with configurable session inputs.
- Improved drawing efficiency by updating existing lines and labels instead of deleting/recreating them every bar.
- Added time-based ray positioning for better multi-timeframe compatibility.
- Added optional price display in labels.
- Added separate PM High/Low line color controls.
- Added breakout alerts for crosses above PM High and below PM Low.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。