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. Это позволяет физически прерывать линию в нерабочие часы и выходные.
Основные возможности:
Скрытие выходных: Автоматически убирает субботу и воскресенье.
Кастомные сессии: Вы можете задать любой диапазон (например, ночной клиринг или паузы), чтобы линия в это время не рисовалась.
Отсутствие соединительных линий: В нерабочие периоды график просто прерывается, не создавая ложных визуальных трендов.
Настройка часового пояса: Удобно для синхронизации графиков разных бирж.
Как использовать: Скройте основной график в настройках символа (сделайте его прозрачным), чтобы видеть только «чистую» линию индикатора.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Больше сделок и логика арбитража в моем ТГ: t.me/from_business_to_trading
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Больше сделок и логика арбитража в моем ТГ: t.me/from_business_to_trading
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.