OPEN-SOURCE SCRIPT
Saptx Trading Time Ranges v2

Saptx – Trading Time Ranges is a session-based market timing indicator designed for traders who focus on specific intraday trading windows rather than constant screen time.
The indicator highlights predefined key trading times using vertical ranges and reference lines, allowing traders to quickly identify when to actively look for trade setups during live trading, backtesting, or TradingView Replay Mode.
Unlike many session indicators, this tool is specifically engineered to work reliably in Replay Mode without auto-scale or zoom distortions.
Once a trading window has ended, its range automatically freezes to the true High and Low of that session, providing clean and stable historical reference levels.
────────────────────
CORE FEATURES
────────────────────
• Session-based trading time ranges
• Automatic High & Low range detection
• Ranges freeze after the session window ends
• Clean and non-intrusive chart visuals
• Replay and backtesting optimized logic
• No auto-scale or zoom distortion issues
────────────────────
SESSION WINDOWS
────────────────────
• Frankfurt Open
• London Open
• MMM1
• MMM2
• New York Open
• New York Trap
• Market Closing
────────────────────
BACKTEST & REPLAY
────────────────────
• Displays previous, current, and next trading day
• Fast navigation to key trading windows in Replay Mode
• Designed for efficient historical trade review
• Stable behavior while scrolling and zooming the chart
────────────────────
CUSTOMIZATION
────────────────────
• Adjustable UTC offset (Winter / Summer time support)
• Custom colors and transparency for ranges and lines
• Clean session labels with optional visibility
• Optional next-session countdown timer
────────────────────
IMPORTANT NOTE
────────────────────
This indicator does NOT generate trade signals.
It is a visual timing and structural tool intended to support discretionary and session-based trading strategies.
────────────────────
RECOMMENDED MARKETS & TIMEFRAMES
────────────────────
• Forex (EUR/USD, GBP/USD, DXY, etc.)
• Intraday timeframes (M5, M15, H1)
The indicator highlights predefined key trading times using vertical ranges and reference lines, allowing traders to quickly identify when to actively look for trade setups during live trading, backtesting, or TradingView Replay Mode.
Unlike many session indicators, this tool is specifically engineered to work reliably in Replay Mode without auto-scale or zoom distortions.
Once a trading window has ended, its range automatically freezes to the true High and Low of that session, providing clean and stable historical reference levels.
────────────────────
CORE FEATURES
────────────────────
• Session-based trading time ranges
• Automatic High & Low range detection
• Ranges freeze after the session window ends
• Clean and non-intrusive chart visuals
• Replay and backtesting optimized logic
• No auto-scale or zoom distortion issues
────────────────────
SESSION WINDOWS
────────────────────
• Frankfurt Open
• London Open
• MMM1
• MMM2
• New York Open
• New York Trap
• Market Closing
────────────────────
BACKTEST & REPLAY
────────────────────
• Displays previous, current, and next trading day
• Fast navigation to key trading windows in Replay Mode
• Designed for efficient historical trade review
• Stable behavior while scrolling and zooming the chart
────────────────────
CUSTOMIZATION
────────────────────
• Adjustable UTC offset (Winter / Summer time support)
• Custom colors and transparency for ranges and lines
• Clean session labels with optional visibility
• Optional next-session countdown timer
────────────────────
IMPORTANT NOTE
────────────────────
This indicator does NOT generate trade signals.
It is a visual timing and structural tool intended to support discretionary and session-based trading strategies.
────────────────────
RECOMMENDED MARKETS & TIMEFRAMES
────────────────────
• Forex (EUR/USD, GBP/USD, DXY, etc.)
• Intraday timeframes (M5, M15, H1)
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.