PROTECTED SOURCE SCRIPT
Time Marks

**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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.