PROTECTED SOURCE SCRIPT

Trade Holding Time Background Highlighter

20
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.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.