OPEN-SOURCE SCRIPT
OSOK Opening Times

OSOK Opening Times marks the opening times of active trading periods with vertical lines. It automatically adjusts the periods shown to match your chart timeframe, using solid lines for the larger period and dotted lines for the smaller active period.
Each boundary pair marks the current period's opening and the next period's opening. This creates a clear time reference for the active day, week, month or quarter.
Timeframe visibility
The breakdown below shows the default line styles when all visibility settings are enabled.
A quarter is a three-month period. Quarterly boundaries appear on the 1W and 1M charts; the 3M chart itself displays no lines.
Active periods and shared boundaries
Only the active periods are displayed. As new periods begin, their boundaries replace the previous markers. On intraday charts, daily dotted lines bracket only the active daily candle.
When two displayed boundaries coincide, the larger period's line takes precedence. The first daily candle of the week uses the weekly opening line as its starting boundary, avoiding a duplicate daily line.
Appearance and customization
Opening times and chart support
The indicator follows the symbol's TradingView candle sessions. Changing the chart's display timezone does not redefine those openings.
Upcoming boundaries use projected opening times. The active periods are determined by the latest chart bar, including when using Bar Replay.
The indicator supports standard time-based charts and Heikin Ashi. Tick, Renko, Range, Kagi, Line Break and Point & Figure charts are excluded.
Each boundary pair marks the current period's opening and the next period's opening. This creates a clear time reference for the active day, week, month or quarter.
Timeframe visibility
The breakdown below shows the default line styles when all visibility settings are enabled.
- Intraday below 1D, including 15m, 1H and 4H
Solid: current week opening to next week opening.
Dotted: active day opening to next day opening. - Daily - 1D
Solid: current month opening to next month opening.
Dotted: active week opening to next week opening. - Weekly - 1W
Solid: current quarter opening to next quarter opening.
Dotted: active month opening to next month opening. - Monthly - 1M
Solid: none.
Dotted: current quarter opening to next quarter opening. - Other intervals above 1D, such as 2D, 2W and 3M
No lines are displayed.
A quarter is a three-month period. Quarterly boundaries appear on the 1W and 1M charts; the 3M chart itself displays no lines.
Active periods and shared boundaries
Only the active periods are displayed. As new periods begin, their boundaries replace the previous markers. On intraday charts, daily dotted lines bracket only the active daily candle.
When two displayed boundaries coincide, the larger period's line takes precedence. The first daily candle of the week uses the weekly opening line as its starting boundary, avoiding a duplicate daily line.
Appearance and customization
- Solid lines: black at 30% opacity by default.
- Dotted lines: black at 100% opacity by default.
- Line width: 1 by default.
- Visibility, color, opacity, style and width can be adjusted in the indicator's settings. Separate style settings are available for the different chart contexts.
Opening times and chart support
The indicator follows the symbol's TradingView candle sessions. Changing the chart's display timezone does not redefine those openings.
Upcoming boundaries use projected opening times. The active periods are determined by the latest chart bar, including when using Bar Replay.
The indicator supports standard time-based charts and Heikin Ashi. Tick, Renko, Range, Kagi, Line Break and Point & Figure charts are excluded.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
in the pursuit of excellence.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
in the pursuit of excellence.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.