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.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。