ATR Trend & Chop Dashboard (Overlay)# ATR Trend & Chop Dashboard (Overlay)
**Version:** 3
**Script Type:** Overlay (Dashboard)
**Pine Script Version:** v6
---
## SUMMARY
The ATR Trend & Chop Dashboard identifies volatility regimes and directional bias directly on the active chart. It combines ATR expansion and contraction behavior with EMA slope detection to help traders determine whether the market is trending, neutral, or choppy.
This version is designed for clarity and precision, with background colors disabled by default for clean chart visibility. A live dashboard displays the current state, ATR values, and ratio data in real time.
---
## FUNCTION
The indicator measures volatility and direction using two main components:
1. **ATR Regime Detection**
Calculates the ratio between the current ATR and its smoothed average (SMA of ATR).
- When the ATR expands beyond the upper threshold, volatility is considered trending.
- When it contracts below the lower threshold, the market is entering compression or chop.
2. **Directional Filter (EMA Slope)**
Measures the slope of a 50-period EMA across a short lookback window to confirm meaningful directional bias.
The ATR regime is validated only when the EMA slope supports trend direction.
3. **Classification**
- **TREND:** ATR expanded and EMA showing directional slope.
- **CHOP:** ATR suppressed and EMA showing minimal slope.
- **NEUTRAL:** Conditions between those thresholds.
---
## LOGIC
| Condition | Description |
|------------|-------------|
| TREND | Volatility expanded and direction confirmed by EMA slope. |
| CHOP | Volatility compressed with no strong directional structure. |
| NEUTRAL | Transitional condition near baseline ratio. |
The script dynamically adapts across instruments and timeframes.
---
## INPUTS
**Core Settings**
- ATR timeframe (default: 5-minute, adjustable to any timeframe).
- ATR length and smoothing period (SMA length).
- Trend threshold (ratio above/below 1.0).
**Directional Filter**
- EMA length (default: 50).
- Slope lookback (default: 3 bars).
- Minimum EMA slope as a fraction of ATR (default: 0.05).
**Visual Options**
- Show background colors (off by default).
- Dashboard position (Top Left, Top Right, Bottom Left, Bottom Right).
- Show status label (optional on-chart tag with current ATR timeframe and state).
---
## HOW TO USE
1. Apply the indicator to the timeframe where you plan to analyze entries and exits.
The default ATR timeframe is **5-minute**, but it can be changed in settings to match your preferred analysis timeframe.
2. Use the dashboard and background color states as environmental filters:
- TREND = Favor continuation or breakout strategies.
- CHOP = Favor mean reversion or avoid overtrading.
- NEUTRAL = Transition zone; remain patient or reduce size.
3. Combine the dashboard signals with VWAP, EMA crossovers, or ORB range tools for confirmation and higher confluence.
---
## ALERTS
The following alerts are available for automation or visual triggers:
- ATR TREND Regime
- ATR CHOP Regime
- ATR NEUTRAL Regime
Each alert provides clear notification when volatility or structure changes.
---
## COMPLIANCE NOTES
- Background colors are disabled by default to maintain chart readability.
- Default ATR timeframe is **5-minute**, but this value can be modified in the inputs menu.
- The script’s logic is original and built specifically to merge ATR-driven volatility structure with directional slope context in a single overlay.
- Description provided here meets TradingView’s publication rules for clarity, purpose, originality, and instructional detail.
---
Индикаторы и стратегии
SMACD Screener Table (fixed)Attemt to get a table with SMACD-values for filtering on for instance; value crossing (or close) signal and is below 0-line.
Moyennes Mobiles PersonnaliséesThis script simply combines the moving averages I use most frequently in my market analysis: EMA 13 and 21, along with SMA 50 and 200.
The goal is to gather all of these essential indicators into a single tool, avoiding the need to load multiple separate scripts and keeping the chart clean and efficient.
There’s no complex logic or advanced functionality here — the script’s purpose is purely to display these moving averages in a convenient, streamlined way. I’m providing a more detailed description primarily to meet TradingView’s publication requirements, which ask for a minimum amount of explanatory text before an indicator can be published.
Gap Zones - Daily & Intraday (v9)Gap Zones (wick-fill, custom colors, hide filled)
What’s new
• Wick-based gap fills
• A gap is now considered filled as soon as the price wick touches the far edge of the gap.
• Gap up → filled when low ≤ lower edge.
• Gap down → filled when high ≥ upper edge.
• Custom colors & transparency
• New inputs:
• Gap Up Color
• Gap Down Color
• Gap Fill Transparency
• Lets you style bullish / bearish gaps and adjust how strong the zones appear on the chart.
• Hide filled gaps (optional)
• New toggle: Hide Gaps Once Filled.
• When ON, lines and fills are deleted as soon as the gap is filled.
• When OFF, gaps stop extending and are faded out (colors set to na).
• Daily + Intraday modes preserved
• Gap Mode still supports both:
• "Daily" → gaps between daily candles (using higher-timeframe data).
• "Intraday Bars" → gaps between consecutive intraday bars.
Stability / bug fixes
• Fixed all line.new() and label.new() syntax issues by keeping function calls on a single line.
• Added a safety guard so the script doesn’t try to read from empty arrays on the first bar (if count > 0).
• Cleaned up the gap detection logic so there are no ta.change() warnings.
On-Chart Buy, Sell, Caution, Resume Indicator## What this script does
**On-Chart BUY, SELL, RESUME & CAUTION (EMA 9/20 + MACD)** marks key decision points directly on your candles using a simple, transparent rule set:
This tool is designed to be used on the **timeframe where you actually plan your entries and exits.**
- **BUY** – Bullish EMA crossover (EMA 9 crossing above EMA 20).
- **SELL** – Bearish EMA crossover (EMA 9 crossing below EMA 20).
- **CAUTION** – Trend still intact, but MACD turns against it.
- **RESUME** – MACD turns back in favor of the trend after CAUTION.
All signals are based on **EMA 9/20 trend structure** and the **MACD line vs signal** relationship on the **current chart timeframe**.
The visual layout (circles + thin connectors) is ATR-based, so labels stay clean above wicks and EMAs without covering price action.
---
## Very important: timeframe usage
This tool is designed to be used on the **timeframe where you actually plan your entries and exits.**
- Every signal is calculated from the **current chart timeframe**:
- A BUY on the 1-minute chart is **not** the same signal as a BUY on the 5-minute or 15-minute chart.
- If you change timeframe, the historical signals will change accordingly, because the EMAs and MACD are different.
- Recommended usage:
- Choose your execution/decision timeframe (e.g., 1m, 3m, 5m, 15m, etc.).
- Apply this indicator there.
- Use higher timeframes with your own tools (or your MTF dashboard) for context, **not** by stacking multiple versions of this script.
This clarification is intentional to avoid confusion: it is **not** a multi-timeframe signal engine. It is a clean on-chart signaling layer for the timeframe you trade.
---
## Signal logic
1. **Trend backbone: EMA 9 vs EMA 20**
- `EMA 9 > EMA 20` → bullish structure.
- `EMA 9 < EMA 20` → bearish structure.
2. **BUY / SELL**
- **BUY**: A confirmed crossover of EMA 9 above EMA 20.
- **SELL**: A confirmed crossunder of EMA 9 below EMA 20.
- Optional setting `Wait for candle close` controls whether signals only print on confirmed bars (non-repainting) or can appear intrabar.
3. **CAUTION**
- When trend and MACD temporarily disagree:
- Bull trend (EMA 9 > EMA 20) but **MACD crosses down** → CAUTION for longs.
- Bear trend (EMA 9 < EMA 20) but **MACD crosses up** → CAUTION for shorts.
- CAUTION means: “Trend is still in place, but momentum just fired a warning.”
4. **RESUME**
- After a CAUTION, if MACD crosses back in favor of the prevailing trend:
- In a bull trend after CAUTION → **RESUME** (green).
- In a bear trend after CAUTION → **RESUME** (red).
- This marks a potential continuation after a pause, not a brand-new crossover.
5. **Visual design**
- EMAs can be shown or hidden.
- Signals are drawn **above** price and EMAs using ATR-based spacing:
- Thin vertical connector (optional)
- Arrow
- Circle with the text: BUY, SELL, CAUTION, or RESUME
- This keeps the price area uncluttered and makes each event easy to see.
6. **Alerts**
- Each event type has its own `alertcondition` with a structured message,
allowing integration with webhooks, bots, or external tools.
---
## Originality & compliance notes
- The script is a **single, coherent tool**:
- It implements a clear 4-state model (BUY / SELL / CAUTION / RESUME) from EMA 9/20 + MACD.
- It includes explicit CAUTION and RESUME behavior, which goes beyond a basic crossover indicator.
- Visual placement is calculated (ATR-based) to be usable in live trading.
- All logic is visible and explained; this is not a closed, black-box mashup.
- For publishing:
- Use a **clean chart** for the public example:
- Candles + this indicator (and only minimal extras if needed to illustrate usage).
- Title is ASCII only and the description explains:
- What it does,
- How it works,
- How and where it should be used,
- Why it produces different signals on different timeframes.
ICT Smart Money - PremiumCME_MINI:NQ1!
✅ Detecting FVG boxes (green/red) for A+ setups
✅ When price taps back into the FVG, it triggers an entry
✅ Shows the position boxes (green profit zone, red SL zone)
✅ Calculates SL (25-35 points auto or fixed)
✅ Sets TP1, TP2, TP3 based on liquidity levels (swing highs/lows)
✅ Shows labels with entry price, SL in points, and TP levels with R:R
MTF Traffic Lights## What this script does
**MTF Traffic Lights (4H / 1H / 15m / 5m / 3m / 1m) - Realtime ** is a compact multi-timeframe dashboard that shows, in one glance, whether each timeframe is:
- Bullish (green),
- Bearish (red),
- Or in disagreement / transition (yellow),
based on a consistent combination of **EMA 9/20 trend** and optional **MACD confirmation**.
The goal is to replace cluttered stacks of indicators with one clear “traffic light” panel that updates live and is easy to interpret.
---
## Core Logic
For each timeframe (4H, 1H, 15m, 5m, 3m, 1m):
1. **Trend via EMA 9/20**
- Fast EMA (default 9) vs Slow EMA (default 20).
- `EMA fast > EMA slow` → bullish structure on that timeframe.
- `EMA fast < EMA slow` → bearish structure.
2. **Momentum via MACD (optional)**
- Standard MACD (12, 26, 9 by default).
- Uses the MACD histogram sign as a confirmation filter.
3. **Traffic-light state**
- If **MACD filter ON**:
- **Green**: EMA bullish **and** MACD histogram ≥ 0.
- **Red**: EMA bearish **and** MACD histogram ≤ 0.
- **Yellow**: EMA and MACD do not agree → caution / transition.
- If **MACD filter OFF**:
- **Green**: EMA bullish.
- **Red**: EMA bearish.
- **Yellow**: EMAs essentially flat/indecisive.
4. **Realtime MTF behavior**
- Uses `request.security()` per timeframe.
- The **Intrabar HTF (LIVE)** option:
- When disabled (default): values are based on **confirmed closes** (no repaint).
- When enabled: higher timeframe values update intrabar using lookahead-on, so you can see evolving conditions; this is intentionally labeled as **repainting** behavior.
5. **Display**
- A fixed table in the top-right corner:
- Left column: timeframe labels (4H, 1H, 15m, 5m, 3m, 1m).
- Right column: a colored dot representing that timeframe’s current state.
No additional plots, shapes, or unrelated indicators are required.
---
## How to Use It
- Read the table **top to bottom** as a quick MTF alignment check:
- Mostly green → aligned bullish conditions across timeframes.
- Mostly red → aligned bearish conditions.
- Mixed / yellow → conflicting signals; consider standing down or zooming in.
- Combine with your own entries:
- Use it as a regime/confirmation layer for trend-following, ORB, or scalping systems.
- Filter trades to those aligned with higher timeframe conditions.
- Adjust inputs as needed:
- Change EMA or MACD parameters if your system uses different values.
- Toggle MACD filter off if you only want pure EMA 9/20 structure.
---
## Originality & Compliance Notes
- This script is a **single, focused tool**:
- A structured MTF state engine using consistent EMA + MACD logic.
- Presented as a compact table instead of multiple stacked indicators.
- It does **not** simply clone an existing open-source script one-to-one.
- The description explains:
- What each color means,
- How the calculations work,
- The effect of the LIVE/repaint option.
For publishing:
- Use a **clean chart** in the published example:
- Candles + this dashboard (and only essential elements) so its output is clear.
- Title uses standard ASCII characters, as required by the House Rules.
Multi-Session Range Boxes (Asia, Europe, New York)## What this script does
**Multi-Session ORB (NY / London / Asia) - One Indicator** builds Opening Range Boxes for the three major trading sessions using one unified engine:
- New York session ORB
- London session ORB
- Asia session ORB
It is designed for traders who trade ORB and session-based structure and want all three sessions managed consistently by a single tool, instead of stacking multiple separate indicators.
---
## Core Logic & How It Works
For each enabled session, the script:
1. **Defines a configurable Opening Range window**
- Example defaults:
- NY: 09:30–09:45
- London: 03:00–03:15 (ET)
- Asia: 20:00–20:15 (ET)
2. **Builds the Opening Range**
- During the chosen window, it continuously tracks the highest high and lowest low.
- At the end of the window, that high/low becomes the official ORB for that session.
3. **Draws and extends the ORB box**
- A box is drawn from the start of the ORB window to its end, between the ORB high and low.
- During the user-defined “Extend/Show Until” window for that session, the box is extended in time so you can see how price behaves relative to that fixed opening range.
4. **Detects breakouts**
- During the extension window:
- If price crosses above the ORB high → potential long breakout condition.
- If price crosses below the ORB low → potential short breakout condition.
- These conditions are session-specific (NY, London, Asia) and exposed via alertconditions.
5. **Alerts with structured messages**
- Alerts are provided for:
- NY ORB Breakout UP / DOWN
- London ORB Breakout UP / DOWN
- Asia ORB Breakout UP / DOWN
- Messages are JSON-style, making them easy to integrate with webhooks or bots.
---
## Why this is a single, original tool (not a random mashup)
- Uses **one shared ORB function** to manage all sessions consistently.
- Encodes both:
- Visual structure (session ranges as bands on price).
- Mechanical logic (session-specific breakout signals + automation-ready alerts).
- Focuses specifically on global session ORB behavior in a compact overlay, instead of recreating generic tools or hiding basic code as a closed-source clone.
This makes it:
- Transparent: logic is clearly visible in the code.
- Practical: directly supports ORB traders across NY / London / Asia.
- Distinct: three sessions, one engine, one indicator.
---
## How to Use
1. **Session visualization**
- Enable/disable NY, London, and Asia ranges as needed.
- Use the colored bands to see where current price sits relative to each session’s ORB.
- Default: New York is highlighted in yellow for quick recognition.
2. **Strategy building**
- Use the ORB high/low as key decision levels:
- Trade confirmed breakouts.
- Fade failed breakouts back into the range.
- Track how later sessions interact with earlier session ranges.
3. **Alerts for automation**
- Set alerts on the built-in conditions to:
- Trigger entries in your own system.
- Send signals to a Discord/Telegram/bot via webhooks.
- No extra indicator is required to identify the session or the breakout.
---
## Publication Notes
- Title uses standard ASCII characters, as required.
- Chart for publication should be kept **clean**:
- Candles + this ORB indicator only, or any additional drawings strictly used to illustrate how to read the ranges.
- Description explains:
- What the script does,
- How it does it,
- How traders can use it,
- Why it is a coherent, original tool rather than an arbitrary mashup.
Multi-Session ORB (NY / London / Asia) - One Indicator## What this script does
**Multi-Session ORB (NY / London / Asia) - One Indicator** builds Opening Range Boxes for the three major trading sessions using one unified engine:
- New York session ORB
- London session ORB
- Asia session ORB
It is designed for traders who trade ORB and session-based structure and want all three sessions managed consistently by a single tool, instead of stacking multiple separate indicators.
---
## Core Logic & How It Works
For each enabled session, the script:
1. **Defines a configurable Opening Range window**
- Example defaults:
- NY: 09:30–09:45
- London: 03:00–03:15 (ET)
- Asia: 20:00–20:15 (ET)
2. **Builds the Opening Range**
- During the chosen window, it continuously tracks the highest high and lowest low.
- At the end of the window, that high/low becomes the official ORB for that session.
3. **Draws and extends the ORB box**
- A box is drawn from the start of the ORB window to its end, between the ORB high and low.
- During the user-defined “Extend/Show Until” window for that session, the box is extended in time so you can see how price behaves relative to that fixed opening range.
4. **Detects breakouts**
- During the extension window:
- If price crosses above the ORB high → potential long breakout condition.
- If price crosses below the ORB low → potential short breakout condition.
- These conditions are session-specific (NY, London, Asia) and exposed via alertconditions.
5. **Alerts with structured messages**
- Alerts are provided for:
- NY ORB Breakout UP / DOWN
- London ORB Breakout UP / DOWN
- Asia ORB Breakout UP / DOWN
- Messages are JSON-style, making them easy to integrate with webhooks or bots.
---
## Why this is a single, original tool (not a random mashup)
- Uses **one shared ORB function** to manage all sessions consistently.
- Encodes both:
- Visual structure (session ranges as bands on price).
- Mechanical logic (session-specific breakout signals + automation-ready alerts).
- Focuses specifically on global session ORB behavior in a compact overlay, instead of recreating generic tools or hiding basic code as a closed-source clone.
This makes it:
- Transparent: logic is clearly visible in the code.
- Practical: directly supports ORB traders across NY / London / Asia.
- Distinct: three sessions, one engine, one indicator.
---
## How to Use
1. **Session visualization**
- Enable/disable NY, London, and Asia ranges as needed.
- Use the colored bands to see where current price sits relative to each session’s ORB.
- Default: New York is highlighted in yellow for quick recognition.
2. **Strategy building**
- Use the ORB high/low as key decision levels:
- Trade confirmed breakouts.
- Fade failed breakouts back into the range.
- Track how later sessions interact with earlier session ranges.
3. **Alerts for automation**
- Set alerts on the built-in conditions to:
- Trigger entries in your own system.
- Send signals to a Discord/Telegram/bot via webhooks.
- No extra indicator is required to identify the session or the breakout.
---
## Publication Notes
- Title uses standard ASCII characters, as required.
- Chart for publication should be kept **clean**:
- Candles + this ORB indicator only, or any additional drawings strictly used to illustrate how to read the ranges.
- Description explains:
- What the script does,
- How it does it,
- How traders can use it,
- Why it is a coherent, original tool rather than an arbitrary mashup.
VPG – MTF PrevClose Dashboard (Horizontal 6TF, Bottom Right, VPG – MTF PrevClose Dashboard is a lightweight, real-time visual indicator that displays the current price position across six key timeframes — Weekly (W), Daily (D), 4H, 1H, 30m, and 15m.
It compares the current market price to the previous candle close and shows whether the price is:
🟢 RALLY → higher than the previous close
🔵 BASE → roughly equal (sideways / consolidation)
🔴 DROP → lower than the previous close
Designed as a clean, horizontal dashboard fixed at the bottom-right corner of your chart, it provides instant multi-timeframe insight without cluttering your workspace.
⚙️ Key Features
🔹 Real-time monitoring of six key timeframes (W, D, 4H, 1H, 30m, 15m)
🔹 Clear and intuitive color scheme: Green = RALLY, Blue = BASE, Red = DROP
🔹 Fixed bottom-right placement for consistent visibility
🔹 Horizontal layout for compact, at-a-glance analysis
🔹 Adjustable tolerance to define how “equal” prices are classified as BASE
🔹 No alerts or labels — clean, fast, and resource-light
📊 Best For
Multi-timeframe traders who need quick directional context
Scalpers, intraday, and swing traders doing top-down analysis
Dashboard lovers who want a minimalist, data-driven overview
Confirming short-term price moves against higher-timeframe trends
💡 How to Use
Add VPG – MTF PrevClose Dashboard to any chart (Forex, Crypto, Stocks, Gold, Indices, etc.).
Adjust the tolerance parameter if you want a wider or stricter “BASE” range.
Watch the table in the bottom-right corner — it updates live with every price move.
🧠 About the Author
Nizar M — Developer of VPG indicators focused on clarity, momentum visualization, and fast market interpretation for real-time decision-making.
Choppy Lights by Stay ToxicMACD Angle Fluidity Index (MACD-AFI)
This proprietary indicator measures the stability and fluidity of momentum by analyzing the acceleration (or rate of change) of the MACD's Diff Line (Histogram). It is a non-lagging confirmation tool designed to help traders quickly identify market conditions suitable for directional trades (Green) versus those that are chaotic or trendless (Red). The score is normalized from 0 (Most Stable Angle) to 100 (Most Abrupt Angle Change).
How It Works
The indicator uses a robust background coloring system based on the calculated momentum angle change:
Angle Change Score (0-100): A custom formula calculates the difference between the current angle (slope) of the MACD Diff line and its previous angle. This "Angle Change" is then scaled from 0 to 100 based on the highest recent volatility observed, giving you a consistent fluidity reading.
Constancy Filter: A user-defined Constancy Period prevents flickering. The background color will only change if the calculated condition has been sustained for the specified number of bars.
Visual Alerts: The colors reflect your trading risk tolerance:
🟢 GREEN (Trade): Low Score (0 to Max Green). HIGH FLUIDITY. Angle is very stable. Momentum is smooth and predictable. Ideal conditions for trading.
🟡 YELLOW (Beware): Mid Score. MODERATE RISK. Angle is changing slightly. Momentum is slowing or uncertain. Exercise caution.
🔴 RED (Stay Out): High Score (Above Max Yellow). LOW FLUIDITY. Angle is abrupt (high volatility). Suggests chaotic action, whipsaws, or potential reversals. Avoid entering trades.
Customizable Inputs
The indicator provides complete control for calibration:
MACD & Angle Sensitivity: Adjust the standard MACD lengths, plus the Pente Period (for angle calculation smoothing) and Normalization Period (for setting the 0-100 scale).
Thresholds: Precise control over Max Green and Max Yellow values to define your trading zones.
Time Filter: The Constancy Period ensures changes are confirmed over a defined number of bars.
Visuals: Separate controls for color and global opacity.
Soothing Trades – TrendWhat it shows
Two adaptive trend lines built from bar OHLC with ATR-based rails and an MFI-gated regime switch:
Short-term Trend — a stair-style line that “locks” in the current regime.
• If bullish (MFI ≥ 55), it tracks a rising floor based on low − ATR × Multiplier.
• If bearish (MFI ≤ 45), it tracks a falling ceiling based on high + ATR × Multiplier.
• Slope color: rising = Bull Color, falling = Bear Color.
• Optional Band Fill shows a second line offset by N bars with a shaded band.
Long-term Trend — same logic with fixed parameters (Coeff 12, Period 24) and fully customizable style (line, breaks, step, circles, columns, histogram).
How to use
Choose Visualization: single slope-colored line or two-line band with fill.
Tune Multiplier and Common Period to your symbol/timeframe’s volatility.
Use the Long-term line as a higher-order filter (e.g., trade in its direction) and the Short-term line for timing/structure.
Signals are informational; confirm with your own process (price action, volume, levels, etc.).
House-Rules & transparency
This script uses bar data only (OHLC, ATR, MFI). It does not access or claim historical tick data.
Values update intrabar; final states are determined at bar close.
No promises of performance or future results. Educational use only.
Notes
MFI thresholds (55/45) form a simple state machine; feel free to test alternative gates for your market.
The band option is visual—signals do not depend on the fil
Dynamic 9 EMAWhat this script does
**Dynamic 9 EMA State by 20 EMA & MACD** is a visual trend and momentum tool built around a single idea:
> Turn the classic 9 EMA into a **three-state engine** (Bullish / Bearish / Neutral) by requiring agreement between the **9 vs 20 EMA trend** and a **MACD signal filter**, then display that state directly on price with one clean, readable overlay.
Instead of stacking multiple separate indicators, this script fuses them into one decision layer that is easy to see at a glance.
---
Core Logic
This script is not a random mashup. Each component has a specific role in a single, unified model:
1. **Trend Backbone: 9 EMA vs 20 EMA**
- When `9 EMA > 20 EMA`, price is in a short-term bullish environment.
- When `9 EMA < 20 EMA`, price is in a short-term bearish environment.
- The 20 EMA is treated as the reference bias; the 9 EMA tracks short-term behaviour.
2. **Momentum Filter: MACD Line vs Signal Line**
- MACD is calculated from user-defined lengths.
- When `MACD line > Signal line`, momentum confirms bullish pressure.
- When `MACD line < Signal line`, momentum confirms bearish pressure.
3. **Three-State Engine**
- **Bullish State (Green)**:
`9 EMA > 20 EMA` **and** `MACD line > Signal line`.
-> Short-term trend and momentum are aligned up.
- **Bearish State (Red)**:
`9 EMA < 20 EMA` **and** `MACD line < Signal line`.
-> Short-term trend and momentum are aligned down.
- **Neutral / Caution State (Yellow)**:
Any situation where EMAs and MACD **do not agree**.
-> Potential transition, chop, or indecision.
The color of the **9 EMA line** reflects this state in real time.
---
Visual Design and Why It Matters
All visuals are built to make the state engine intuitive and clean:
- **Dynamic 9 EMA line**
- Changes color (Bullish / Bearish / Neutral) based on the combined EMA + MACD logic.
- This is the core signal; you don’t need extra subwindows to interpret it.
- **Optional 20 EMA**
- Plotted as a simple reference trend line.
- Can be hidden if you only want the state color and glow.
- **Glow Effect (optional)**
- Multiple soft layers drawn around the 9 EMA.
- Uses the same state color to emphasize regime changes without adding extra indicators.
- Purely visual; no separate signals.
- **Cross Markers (optional)**
- Marks when the 9 EMA crosses the 20 EMA.
- Helps visually confirm where state bias may start to shift.
- Fully optional and configurable in size.
No unrelated scripts are required. The chart is meant to be published **clean**, with this indicator as the primary visual element.
---
How to Use It
1. **Trend Confirmation**
- Focus on the line color:
- Green: Look for long setups only (or manage shorts aggressively).
- Red: Look for short setups only (or manage longs defensively).
- Yellow: Be cautious; conditions are conflicting or transitioning.
2. **Regime Shifts via Alerts**
- Built-in alerts trigger **only when the state changes**:
- Bullish → Bearish
- Bearish → Bullish
- Any → Neutral / Caution
- This lets you track market regime shifts without staring at every candle.
3. **Multi-Timeframe Adaptation**
- Works on any symbol and timeframe supported by TradingView.
- You can tune:
- EMA lengths (9/20 by default),
- MACD parameters,
- Colors, glow, and cross markers,
- To fit scalping, intraday, or swing workflows.
---
Originality & Publication Notes
- This script:
- Uses standard components (EMA, MACD), but
- Combines them into a **structured, three-state regime model** directly encoded into a single EMA line + visual layer.
- Provides **state-based alerts** focused on regime transitions, not just raw indicator values.
- It is **not** a one-click clone of an existing public script.
- It is designed as a single, self-contained tool that replaces the need to stack separate 9 EMA, 20 EMA, and MACD panels just to answer one question:
- “Is the short-term trend and momentum aligned, and in which direction?”
For best compliance with House Rules:
- Publish with a **clean chart** showing only:
- This indicator,
- Candles,
- And any drawings strictly needed to demonstrate usage (or none).
- Avoid emojis in the **title**; they are fine in the description if used sparingly and not as decoration only.
Soothing Trades – Risk Per Contract Table (1 candle)What it does
A compact risk table for futures/derivatives that estimates adverse move risk per contract from the current bar. It uses bar OHLC and the instrument’s minimum price increment (syminfo.mintick). In this script, a “step” means one minimum price increment (not exchange tick data).
Long Risk = potential adverse move from Close → Low on the active bar.
Short Risk = potential adverse move from Close → High on the active bar.
“Live” rows update while the bar forms.
Per-step currency value defaults to syminfo.pointvalue × syminfo.mintick, or you can set a Custom Per-Step Value (e.g., $5 per 0.25 for NQ).
How to use
Add the indicator and choose where to place the table.
Set your contract quantities (four quick rows).
If the default per-step value doesn’t match your instrument, turn on Use Custom Per-Step Value and enter the correct currency value for one minimum price increment.
Read the columns: Long / Short show estimated adverse risk per row of contracts; “Live” versions update intrabar.
What this is not
It does not use or claim access to historical tick data.
TradingView doesn’t provide tick-data charts; this tool works from bar data only.
It does not place orders or tell you what to trade.
It’s a convenience calculator for sizing awareness.
Notes
Contract specs vary. Always confirm your contract’s point value and minimum price increment with your broker/exchange.
Educational use only. No financial advice.
Volume by sanzyVolume by sanzy is a modified volume indicator where the buy and sell volumes on a candle can be seen separately.
Williams Fractals Auto AlertEnables one to set alerts that automatically track the WF for that timeline
VWAP CATS background flipped 4.0VWAP CATS Background Flipped 4.0 is a sophisticated Pine Script v5 indicator for TradingView that combines a configurable moving average (MA) with dynamic Gann Square of 9 levels to create a multi-layered background shading system for price action analysis. It visualizes support/resistance zones around a central MA (often VWAP or RVWAP) using incremental offsets (either % or absolute points), generating symmetrical bands that resemble a "CATS" (Concentric Adaptive Tiered System) — hence the name.The background is "flipped" in the sense that shading intensity and structure emphasize higher-tier zones, and labels are placed to the right of the chart for future projection.Key FeaturesFeature
Description
Multi-MA Engine
Supports 20+ MA types: EMA, DEMA, TEMA, SMA, VWAP, RVWAP, HMA, ALMA, custom volume blends (CVB1–4)
RVWAP Mode
Rolling VWAP with adaptive or fixed time window (days/hours/minutes)
Gann Square of 9 Logic
Generates 80+ symmetric levels (0.25x to 17x increment) above/below the MA
Dual Increment Mode
Choose Percent or Points for spacing
Background Fills
Tiered transparency fills between Gann levels (darker = stronger zones)
Visual MA Offset
Shift MA line left/right without breaking fill alignment
Smart Labels
Projected labels on last bar: "FV", "normal", "high", "3/4" at key levels
Performance Optimized
Hidden plots + label cleanup to prevent lag
Primary Use Cases
1. Institutional VWAP Anchoring
Use RVWAP (1-day fixed) as maRaw
Set Increment = 0.5 points or 0.05%
Watch price interaction with "normal" (2x), "high" (4x), "3/4" (6x) zones
Ideal for intraday scalping on indices (ES, NQ) or forex
2. Swing Trading with Gann Projections
Use 400-period SMA/EMA on daily chart
Increment in Percent mode (~1.22%)
Identify confluence when price rejects at 2x, 4x, or 6x bands
Labels project future targets to the right
3. Volume-Weighted Mean Reversion
Select CVB1–CVB4 for heavy volume smoothing
Use Points mode for stocks with stable tick sizes (e.g. $0.50 increments)
Trade mean reversion between ±1x and ±2x bands
4. Risk Management & Stop Placement
Place stops beyond 2x or 4x bands
Take profits at next major tier (e.g. 4x → 6x)
Pro Tips
Enable "Use Fixed Time Period" for RVWAP to avoid session reset issues
Increase i_label_offset on lower timeframes to avoid overlap
Combine with volume profile or order flow for confluence
The "FV" label marks the Fair Value MA — core anchor
Summary"VWAP CATS Background Flipped 4.0" turns any moving average into a dynamic Gann-based pricing grid with intelligent background shading and forward-projected labels — perfect for institutional-style mean reversion, swing targeting, and risk-defined trading."
Boss Short Setup ScannerThis indicator identifies my Retest-Fail Short Setup. It scans for 3 conditions happening in sequence:
Downtrend confirmed: 20 EMA below 50 EMA and price trading below both → momentum is already bearish.
Flip Candle: Price pushes up into a minor pullback, then prints a bearish shift candle that closes below the midpoint of the prior bullish candle. This shows buyer exhaustion and seller re-control.
Confirmation Break: The next candle closes below the flip candle’s low, confirming continuation and removing guesswork.
When all 3 align, the indicator prints a Short Signal.
This setup is designed to catch the first continuation move after a failed upward retest — not tops, not guesswork, just controlled trend re-entry with clear invalidation.
Best used on:
• 5m, 10m, or 15m execution charts
• With pre-marked supply zones or prior failure levels
• Only on liquid tickers (avoid illiquid trash)
Trade Idea:
Enter on the confirmation break.
Stop goes above flip candle high.
Target prior swing lows or next liquidity pocket.
Keep it simple, disciplined, and repeatable.
Candle Color & Time Filter + Flexible Price Triggerthis indicator gives triggers when candles colour change at certain time and certain levels
Macro Risk Dashboard (TNX/DXY/HYG/TLT) [TradeCore]//@version=5
indicator("Macro Risk Dashboard (TNX/DXY/HYG/TLT) ",
shorttitle="MacroRiskDash",
overlay=false)
// ===== Inputs
symTNX = input.symbol("CBOE:TNX", "TNX (10Y yield)")
symDXY = input.symbol("TVC:DXY", "DXY (US Dollar)")
symHYG = input.symbol("AMEX:HYG", "HYG (High Yield)")
symTLT = input.symbol("NASDAQ:TLT","TLT (20Y Bonds)")
tf = input.timeframe("", "Timeframe (vacío = del gráfico)")
showLbl = input.bool(true, "Mostrar etiqueta en la última vela")
// ===== Utilidades
f_close(sym) => request.security(sym, tf == "" ? timeframe.period : tf, close)
f_prev(sym) => request.security(sym, tf == "" ? timeframe.period : tf, close )
f_pct(sym) =>
c = f_close(sym)
p = f_prev(sym)
p == 0.0 ? na : (c - p) / p
// % cambios (vs. cierre previo del mismo TF)
tnxPct = f_pct(symTNX)
dxyPct = f_pct(symDXY)
hygPct = f_pct(symHYG)
tltPct = f_pct(symTLT)
// Señales (+1 / -1) según tu lógica:
// Risk-On = TNX↓, DXY↓, HYG↑, TLT↑
tnxSig = na(tnxPct) ? 0 : (tnxPct < 0 ? 1 : -1)
dxySig = na(dxyPct) ? 0 : (dxyPct < 0 ? 1 : -1)
hygSig = na(hygPct) ? 0 : (hygPct > 0 ? 1 : -1)
tltSig = na(tltPct) ? 0 : (tltPct > 0 ? 1 : -1)
riskScore = tnxSig + dxySig + hygSig + tltSig
riskText = riskScore >= 2 ? "RISK-ON" : riskScore <= -2 ? "RISK-OFF" : "MIXED"
riskCol = riskScore >= 2 ? color.lime : riskScore <= -2 ? color.red : color.yellow
// ===== Plots (para Watchlist usa estos como columnas)
plot(riskScore, title="RiskScore", color=riskCol, linewidth=2,
display=display.all)
plot(tnxPct, title="TNX_%", display=display.status_line + display.data_window)
plot(dxyPct, title="DXY_%", display=display.status_line + display.data_window)
plot(hygPct, title="HYG_%", display=display.status_line + display.data_window)
plot(tltPct, title="TLT_%", display=display.status_line + display.data_window)
// ===== Etiqueta opcional (sin errores de sintaxis)
var label tag = na
if barstate.islast and showLbl
if not na(tag)
label.delete(tag)
txt = "Macro: " + riskText +
" Score: " + str.tostring(riskScore) +
" TNX: " + str.tostring(tnxPct, format.percent) +
" DXY: " + str.tostring(dxyPct, format.percent) +
" HYG: " + str.tostring(hygPct, format.percent) +
" TLT: " + str.tostring(tltPct, format.percent)
tag := label.new(x=bar_index, y=high, text=txt,
style=label.style_label_left,
color=riskCol, textcolor=color.black, size=size.small)
// Fondo suave según régimen
bgcolor(color.new(riskCol, 90))






















