This indicator draws a box on the current period based on the high, low, and midline of the previous period.
You can plot various lines that align with the box's range.
To prevent display errors, I have created separate versions for historical data and the current period.
Hist: Displays data up to the previous period.
Current: Displays only the latest data.
You can adjust the horizontal offset of the box. Use this if the display is misaligned depending on the ticker.
The calculated values of the lines remain the same regardless of the offset adjustment.

Chart display example of NK-box
Source: TradingView

⇩ "Hist" (Top), "Current" (Bottom)