OPEN-SOURCE SCRIPT
Hide Non-Trading Sessions Smart Line

English / Английский
Title: Smart Line Gap (Hide Non-Trading Sessions)
Description:
This indicator is designed for traders who need a clean visual environment, especially when working with different market sessions (like MOEX-Forex arbitrage). It solves the common issue of "cluttered" line charts during non-trading hours.
Standard TradingView line charts connect the previous day's close to the current day's open with a long diagonal line. This script uses style_linebr logic to physically break the line during weekends and off-hours, ensuring no "ghost" connections are drawn.
Key Features:
Weekend Hiding: Automatically hides Saturday and Sunday data.
Custom Session Gaps: Define any time range (e.g., overnight gaps or maintenance breaks) to stop the line from rendering.
No Connection Lines: The chart creates a clean break instead of drawing a straight line through inactive periods.
Timezone Support: Easily sync with your local exchange time (e.g., UTC+3 for Moscow or UTC+0 for GMT).
Usage Tip: For the best experience, hide the default price chart in the "Symbol" settings (make it transparent) to leave only the "smart" line visible.
Russian / Русский
Название: Smart Line Gap (Hide Non-Trading Sessions)
Описание:
Этот индикатор разработан специально для трейдеров, торгующих на стыке сессий (например, MOEX и Forex), где важно видеть только активные торговые часы без визуального шума.
В отличие от стандартного линейного графика TradingView, который соединяет последнюю цену закрытия вчерашнего дня с открытием сегодняшнего длинной косой линией, этот скрипт использует логику style_linebr. Это позволяет физически прерывать линию в нерабочие часы и выходные.
Основные возможности:
Скрытие выходных: Автоматически убирает субботу и воскресенье.
Кастомные сессии: Вы можете задать любой диапазон (например, ночной клиринг или паузы), чтобы линия в это время не рисовалась.
Отсутствие соединительных линий: В нерабочие периоды график просто прерывается, не создавая ложных визуальных трендов.
Настройка часового пояса: Удобно для синхронизации графиков разных бирж.
Как использовать: Скройте основной график в настройках символа (сделайте его прозрачным), чтобы видеть только «чистую» линию индикатора.
Title: Smart Line Gap (Hide Non-Trading Sessions)
Description:
This indicator is designed for traders who need a clean visual environment, especially when working with different market sessions (like MOEX-Forex arbitrage). It solves the common issue of "cluttered" line charts during non-trading hours.
Standard TradingView line charts connect the previous day's close to the current day's open with a long diagonal line. This script uses style_linebr logic to physically break the line during weekends and off-hours, ensuring no "ghost" connections are drawn.
Key Features:
Weekend Hiding: Automatically hides Saturday and Sunday data.
Custom Session Gaps: Define any time range (e.g., overnight gaps or maintenance breaks) to stop the line from rendering.
No Connection Lines: The chart creates a clean break instead of drawing a straight line through inactive periods.
Timezone Support: Easily sync with your local exchange time (e.g., UTC+3 for Moscow or UTC+0 for GMT).
Usage Tip: For the best experience, hide the default price chart in the "Symbol" settings (make it transparent) to leave only the "smart" line visible.
Russian / Русский
Название: Smart Line Gap (Hide Non-Trading Sessions)
Описание:
Этот индикатор разработан специально для трейдеров, торгующих на стыке сессий (например, MOEX и Forex), где важно видеть только активные торговые часы без визуального шума.
В отличие от стандартного линейного графика TradingView, который соединяет последнюю цену закрытия вчерашнего дня с открытием сегодняшнего длинной косой линией, этот скрипт использует логику style_linebr. Это позволяет физически прерывать линию в нерабочие часы и выходные.
Основные возможности:
Скрытие выходных: Автоматически убирает субботу и воскресенье.
Кастомные сессии: Вы можете задать любой диапазон (например, ночной клиринг или паузы), чтобы линия в это время не рисовалась.
Отсутствие соединительных линий: В нерабочие периоды график просто прерывается, не создавая ложных визуальных трендов.
Настройка часового пояса: Удобно для синхронизации графиков разных бирж.
Как использовать: Скройте основной график в настройках символа (сделайте его прозрачным), чтобы видеть только «чистую» линию индикатора.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Больше сделок и логика арбитража в моем ТГ: t.me/from_business_to_trading
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Больше сделок и логика арбитража в моем ТГ: t.me/from_business_to_trading
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.