PROTECTED SOURCE SCRIPT
Trade Holding Time Background Highlighter

Trade Holding Time Background Highlighter
This script visually highlights the chart background based on how old each bar is relative to the current time. It’s designed for crypto futures traders (and other active traders) who want to quickly see whether price action falls inside a day trading window, a swing trading window, or is considered older history.
⸻
🔑 Features
• Dynamic Background Highlighting
• Day Trader Zone (default = last 24 hours, light green).
• Swing Trader Zone (default = last 2 weeks, light yellow).
• Older Zone (beyond 2 weeks, light gray).
• Customizable Colors
• Choose your own background colors for each zone.
• Adjust opacity to make shading subtle or bold.
• Adjustable Timeframes
• Change day trading hours (default: 24 hours).
• Change swing trading window (default: 14 days).
• Simple, Intuitive Design
• Instantly see whether the current market structure is suitable for scalps/day trades, swing trades, or simply part of older price action.
⸻
🎯 Why Use This?
As a futures/perpetual trader, knowing the context of price action is crucial:
• Scalpers/Day Traders focus on the most recent 24h.
• Swing Traders look back 1–2 weeks.
• Anything older often has less weight for short-term setups.
This script highlights those zones automatically, saving you time and giving clarity on whether you’re trading inside a fresh opportunity window or old, less relevant price action.
This script visually highlights the chart background based on how old each bar is relative to the current time. It’s designed for crypto futures traders (and other active traders) who want to quickly see whether price action falls inside a day trading window, a swing trading window, or is considered older history.
⸻
🔑 Features
• Dynamic Background Highlighting
• Day Trader Zone (default = last 24 hours, light green).
• Swing Trader Zone (default = last 2 weeks, light yellow).
• Older Zone (beyond 2 weeks, light gray).
• Customizable Colors
• Choose your own background colors for each zone.
• Adjust opacity to make shading subtle or bold.
• Adjustable Timeframes
• Change day trading hours (default: 24 hours).
• Change swing trading window (default: 14 days).
• Simple, Intuitive Design
• Instantly see whether the current market structure is suitable for scalps/day trades, swing trades, or simply part of older price action.
⸻
🎯 Why Use This?
As a futures/perpetual trader, knowing the context of price action is crucial:
• Scalpers/Day Traders focus on the most recent 24h.
• Swing Traders look back 1–2 weeks.
• Anything older often has less weight for short-term setups.
This script highlights those zones automatically, saving you time and giving clarity on whether you’re trading inside a fresh opportunity window or old, less relevant price action.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.