OPEN-SOURCE SCRIPT

Tactical Atlas [DAFE]

1 145
Tactical Atlas [DAFE]: A Multi-Dimensional Regime & Phase Space Visualizer

This is not an indicator. This is a tactical map of the market's current state. It synthesizes multiple dimensions of data—trend, momentum, volatility, and stress—into a single, observable point in a four-quadrant phase space, providing an unparalleled, at-a-glance view of the market's true character.

█ CHAPTER 1: THE PHILOSOPHY - FROM CLUTTER TO CLARITY
The modern trader is drowning in data. We stack our charts with RSI, MACD, ADX, and Bollinger Bands, creating a cluttered screen of conflicting signals. We are then forced to perform a complex, subjective mental synthesis to answer the most fundamental question: "What is the market actually doing right now?" Is it a healthy trend, an exhausted trend, a low-volatility compression, or a nascent recovery? Answering this requires juggling multiple concepts simultaneously.

The Tactical Atlas was engineered to solve this problem of information overload. It is a powerful data visualization engine built on a simple premise: a picture is worth a thousand indicators. It takes a suite of underlying metrics that quantify the market's key characteristics and maps them into a single, intuitive, two-dimensional "phase space." The position and trajectory of a single point within this space provides a complete, synthesized, and immediate understanding of the market's regime.

This tool is not about adding another line to your chart; it's about replacing a dozen. It is a system for achieving profound contextual awareness, allowing you to see the market's state, its evolution over time, and its alignment across multiple timeframes, all within a single, elegant visual interface.

█ CHAPTER 2: THE CORE INNOVATIONS - ORIGINALITY & USEFULNESS
The Tactical Atlas is not a "mashup" of existing indicators. It is a novel framework for data synthesis and visualization, built upon a suite of proprietary and established analytical concepts.

The Phase Space Architecture: This is the core innovation. Instead of displaying multiple oscillators in separate panes, the Atlas maps different dimensions of market data onto the X and Y axes of a scatter plot. The result is a single "point" whose coordinates (x, y) represent the synthesized state of the market. Its position and movement provide a rich, holistic view that is impossible to achieve with standard indicators.

Three Distinct Analytical Modes: The Atlas is not one map, but three. You can instantly switch between different "lenses" to view the market's state from different perspectives, each answering a different critical question:
Phase Space: Maps Trend Strength (X-axis) vs. Momentum (Y-axis). Answers: "Is this a strong trend with momentum, or is it an exhausted trend?"
Stress Orbit: Maps Volatility Rank (X-axis) vs. Market Stress (Y-axis). Answers: "Is this a calm, low-volatility environment, or a high-stress, fearful one?"
Permission Field: Maps Directional Bias (X-axis) vs. a proprietary Permission Score (Y-axis). Answers: "Does the market have the underlying conditions (permission) to support a sustained directional move?"

The Four Quadrant Regime Model: The phase space is divided into four distinct, named quadrants: RECOVERY, EXPANSION, COMPRESSION, and EXHAUSTION. The position of the point within these quadrants provides an immediate, human-readable classification of the market's character, allowing you to instantly align your strategy with the current environment.

Multi-Timeframe "Ghost" Points: A revolutionary approach to multi-timeframe analysis. The Atlas calculates the state of the market on up to three higher timeframes and projects them as semi-transparent "ghost" points into the same phase space. This allows you to see, at a glance, if the current timeframe's regime is in alignment or conflict with the macro trend, without ever leaving your chart.

The Velocity Vector: The system doesn't just show you where the market is in phase space; it shows you where it's going. A dynamic arrow is drawn from the current point, indicating the direction and magnitude of its recent travel through the space. A point moving rapidly from Compression towards Expansion is a powerful leading signal of an impending breakout.

█ VISUALS - HOW TO READ THE ATLAS
Every visual element is a data-rich component designed for rapid, intuitive interpretation.

The Scatter Plot (The Map)
The Quadrant Fields: The four colored quadrants that define the map. Each is labeled and has a distinct meaning. Your primary goal is to identify which quadrant the market currently occupies.
The Gridlines: These faint lines mark the 25%, 50%, and 75% levels on both the X and Y axes, providing a clear visual reference for the strength of each component. The central intersection is the "neutral" point.
The Trail: A multi-colored line that shows the historical path of the market's state over the last N bars. It allows you to see the journey the market took to arrive at its current position. A smooth, directional trail indicates a healthy, evolving regime. A tangled, chaotic trail indicates indecision.
The Current Point (The Comet): This is you. It is the most important point on the map, representing the market's state on the most recent bar. It is rendered with a multi-layered, pulsating glow to make it the clear focal point. Its color is determined by the quadrant it is in.
The Velocity Vector: An arrow drawn from the current point, indicating its recent direction of travel through the phase space. This is a critical leading indicator, showing you the "momentum of the regime."
The MTF Ghost Points (◆): These are the semi-transparent, diamond-shaped markers. Each ghost represents the position of a higher timeframe (e.g., 1H, 4H, Daily) within the same coordinate space.
Alignment:If the ghost points are clustered near the current point, it signals strong multi-timeframe confluence.
Divergence: If the current point is in the "Expansion" quadrant but the Daily ghost point is deep in the "Exhaustion" quadrant, it's a powerful warning of a potential macro reversal.
snapshot

DASHBOARD (THE LEGEND)
Current Quadrant: A clear, color-coded readout of the market's current regime.
MTF Quadrants: Displays the regime classification for each of your selected higher timeframes, allowing for quick confirmation of alignment.
Axis Info: Explicitly tells you what the X and Y axes currently represent based on your selected "Visualization Mode."
Confluence & Stress: Provides the numerical score for MTF alignment and the calculated "Stress Score."
Earnings Block: For equity traders, this section automatically pulls and displays the latest earnings data (Actual vs. Estimate) and the resulting surprise percentage.
How To Read Guide: A built-in legend that provides a quick reference for interpreting the various visual elements.
snapshot

█ THE THREE ATLASES - A DEEP DIVE INTO THE MODES
MODE 1: PHASE SPACE (The Classic)
X-Axis: Trend Strength. A composite score derived from ADX, price position relative to a long-term MA, and the alignment of multiple EMAs. It measures the existence and quality of a directional trend. A value of 100 is a powerful, unambiguous trend.
Y-Axis: Momentum. A composite score derived from RSI, ROC, and Stochastic RSI. It measures the velocity and acceleration of price.
This mode answers: Is this a strong trend backed by momentum (Expansion), or is the momentum dying while the trend is still high (Exhaustion)? Is momentum starting to build from a low-trend base (Recovery)?

MODE 2: STRESS ORBIT (The Risk Gauge)
X-Axis: Volatility Rank. Measures the current ATR relative to its historical range over a long lookback. A value of 100 means volatility is at a multi-month high.
Y-Axis: Market Stress. A proprietary score that blends Volatility Rank with Bollinger Band Width and a penalty for a lack of trend strength. It quantifies "unproductive" or "fearful" volatility.
This mode answers: Is this a low-volatility, calm environment (Compression), or a high-stress, dangerous one (Exhaustion)? Is volatility starting to expand in a productive way (Expansion)?

MODE 3: PERMISSION FIELD (The Go/No-Go)
X-Axis: Directional Bias. A composite score of momentum oscillators, all pointing in the same direction. It measures the short-term directional pressure.
Y-Axis: Permission Score. A proprietary score that asks if the underlying market conditions have "permission" to trend. It rewards low volatility, rewards existing trend strength, and rewards momentum.
This mode answers: We have a strong directional bias, but do we have the low-volatility, high-trend-strength "permission" needed for a successful breakout (Expansion)? Or is the directional bias occurring in a high-volatility, low-trend environment where it's likely to fail (Exhaustion)?

█ DEVELOPMENT PHILOSOPHY
The Tactical Atlas was born from a need to escape the "tyranny of the single indicator." It is a tool for systems thinking. It is built on the belief that a market's true character cannot be understood by looking at any single metric in isolation, but by observing the interplay and relationships between multiple dimensions of data. By transforming this complex, multi-dimensional state into a simple, intuitive visual, we empower traders to make faster, more accurate, and more contextually-aware decisions. This is not just data visualization; it is the visualization of understanding.

█ DISCLAIMER AND BEST PRACTICES
THIS IS A CONTEXTUAL TOOL, NOT A SIGNAL GENERATOR: The Tactical Atlas is designed to provide you with a deep understanding of the market regime. Use this understanding to select the appropriate strategy (e.g., trend-following in Expansion, mean-reversion in Compression).
RISK MANAGEMENT IS PARAMOUNT: All trading involves substantial risk.
CONFLUENCE IS KEY: The most powerful insights come from confluence. A move of the current point into the Expansion quadrant is a good sign. That same move, while the higher timeframe "ghost points" are also in or moving towards Expansion, is an A++ signal that a major, multi-timeframe move is underway.
STUDY THE TRAJECTORY: Do not just look at where the point is. Look at the trail. Where did it come from? How fast is it moving? The history and velocity of the point are often more important than its current location.

— Dskyz, Trade with insight. Trade with anticipation. (Don't follow the trend, be the trend)

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.