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.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.