OPEN-SOURCE SCRIPT

Daily Time Markers

123
/ WHAT THIS DOES
// ----------------------------------------------------------------------------
// Up to 8 independently configurable "time of day" markers (e.g. 09:30).
// Each marker is drawn as a vertical line on EVERY calendar day, but only
// for days within a rolling window of N days counting back from the most
// recent bar currently on the chart. That "most recent bar" is automatically
// the replay cursor's position while in Bar Replay mode, and the live last
// bar otherwise -- so the window follows you forward as you replay.
// TODAY'S line is projected ahead immediately at the start of the day, even
// before its target time arrives, so you can see it coming and prepare.
// Works on any chart timeframe: on coarser timeframes (e.g. 1H, 1D) the line
// is placed at the exact target time even if that falls inside a bar.
// Timezone defaults to following the loaded symbol's own exchange timezone
// (syminfo.timezone) automatically -- Pine cannot read the chart's display
// timezone dropdown, so this is the closest automatic equivalent. A manual
// override is available if you want a fixed timezone regardless of symbol.
// Labels are anchored to the top/bottom of the chart's VISIBLE price range,
// so they stay clear of candles and don't look cluttered, no matter how
// you zoom or scroll.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.