PROTECTED SOURCE SCRIPT

Time Marks

14




**Overview**
- Displays time labels at specific daily moments: Midnight, Morning, Afternoon, and Evening.
- Each time has an inline show toggle and a configurable `HH:mm` value for a clean, compact settings panel.
- Supports a timezone offset to align marks with your local or desired session time.

**Inputs**
- `Timezone Offset (hours)`: Shifts the bar time used for matching by the specified hours.
- `Midnight / Morning / Afternoon / Evening`:
- Show toggle: enable or disable the label for that time.
- Time input: `HH:mm` format (24-hour), e.g., `09:00`, `14:00`, `21:00`.
- `Show Last Only`: When enabled, only the most recent label of each type stays on chart (previous one is deleted).
- `Label Style`: Choose from `Down`, `Up`, `Left`, `Right`.
- `Background Color` and `Background Transparency`: Set label background and its opacity.
- `Text Color` and `Text Size`: Customize label text color and size.

**Display Logic**
- Computes `bar time + timezone offset` and formats it as `HH:mm`.
- If the formatted time exactly equals a configured time (e.g., `09:00`) and the corresponding toggle is on, a label is drawn.
- Labels are anchored at the current bar’s index and positioned at the bar’s high.

**Usage Notes**
- Use `HH:mm` (24-hour) strings for time inputs.
- Adjust `Timezone Offset` to match your session reference (e.g., local time or exchange time).
- Inline toggles plus time inputs keep the panel concise; you can enable only the moments meaningful to your workflow.

**Limitations**
- Labels appear only when a bar’s timestamp (after offset) exactly matches the configured `HH:mm`. On higher timeframes, marks may not appear if the bar doesn’t start at that minute.
- This indicator doesn’t auto-infer sessions; it relies on user-defined times and the exact time match logic.

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.