OPEN-SOURCE SCRIPT
Zaktualizowano

Momentum Trend & Ignition Dashboard

1 280
Description

Rationale & Originality Traders often struggle with chart clutter, needing separate indicators for Moving Averages, Volume anomalies, and Fundamental stats (like 52-week highs or Float). This script solves this problem by creating a unified "Momentum Dashboard." It is not just a collection of averages; it is a purpose-built tool for Breakout and Trend Following strategies (such as CAN SLIM or VCP).

The uniqueness of this script lies in its "Confluence Logic": it allows a trader to instantly validate a setup by checking three pillars simultaneously without changing tabs:

Trend: Are the key MAs (20, 50, 100, 200) stacked correctly?

Ignition: Is there a "Power Play" (Big Price Move + Heavy Volume) occurring right now?

Stats: Is the stock near its 52-week high, and does it have a supportive Up/Down Volume Ratio?

How It Works (Detailed Calculations)

1. Custom Trend Ribbon (4x MA Mix):

The script plots 4 independent Moving Averages.

Innovation: Unlike standard inputs, each MA can be individually toggled between SMA (Simple) or EMA (Exponential). This allows traders to mix "Fast" trend lines (e.g., 10 or 20 EMA) with "Slow" institutional lines (e.g., 50 or 200 SMA) in one overlay.

2. "Purple Dot" Ignition Detection:

This features a custom detection algorithm for "Ignition Bars."

Logic: It compares the current candle's Close to the previous Close. If the move exceeds a user-defined threshold (default 5%) AND the Volume exceeds a fixed liquidity threshold (default 500k), a Purple Dot is plotted.

This filters out "low volume drift" and highlights true institutional participation.

3. Relative Volume (RVol) Engine:

Calculates the ratio of Current Volume to the 50-period SMA of Volume.

Visuals: If the ratio exceeds the user threshold (e.g., 1.5x average), the dashboard highlights the data, and optionally the chart bars, alerting the trader to unusual activity.

4. Statistical Dashboard (Data Panel):

Using request.security, the panel fetches daily timeframe data regardless of the chart view.

52-Week & 13-Week H/L: Calculates the percentage distance from these key levels to gauge overhead supply.

U/D Ratio: Calculates the sum of volume on "Up Days" vs. "Down Days" over 50 periods. A value > 1.0 suggests institutional accumulation.

Float %: (Stocks Only) Fetches financial data to show the percentage of shares available for trading.

How to Use This Script

This script is designed for Trend Following and Breakout Trading:

The Setup: Use the Data Panel to find stocks with a U/D Ratio > 1.0 and price within 15% of the 52-Week High.

The Trend: Ensure price is above the MA 2 (set to 50 SMA) and MA 4 (set to 200 SMA) to confirm a Stage 2 uptrend.

The Trigger: Watch for the Purple Dot.

If a Purple Dot appears as price breaks out of a consolidation (base), it confirms institutional buying.

Use the RVol panel to confirm that volume is at least 1.5x normal levels.

Risk Management: Use the MA 1 (set to 20 EMA) as a trailing stop-loss during strong trends.

Settings & Configuration

MAs: Fully adjustable Length and Type (SMA/EMA).

Big Move (Purple Dot): Adjust the % Move based on asset volatility (e.g., use 3% for Large Caps, 10% for Crypto).

Table: The data panel is fully dynamic. You can toggle specific rows (like Float or SMA distance) On/Off to save screen space, and position it anywhere on the chart.

Credits & References

The concept of Relative Volume (RVol) and U/D Ratio is derived from standard Volume Analysis used by William O'Neil.

The "Big Move" combined with Volume thresholds is based on standard Volume Spread Analysis (VSA) concepts regarding "Effort vs. Result."

Financial data fetch (Float) utilizes TradingView's built-in financial() library.
Informacje o Wersji
Description:
To address the issues and prevent future crashes or confusion, I have updated the code with two specific fixes:

FIXES:

  1. Float Calculation Safety: I added a "Safe Mode" to the float calculation. It now checks if the financial data is available (which it isn't for Indexes or Crypto). If the data is missing (na), it will gracefully display "N/A" in the table instead of crashing the script.
  2. Context-Aware SMA Distance: I added logic to detect if you are on a Weekly chart.
  3. On Weekly Chart: It uses a new "Weekly Distance SMA" setting (e.g., 10-week).
  4. On Daily/Intraday Charts: It uses the standard "Daily Distance SMA" setting (e.g., 20-day).
  5. The table label updates dynamically (e.g., displaying "vs 10W SMA" or "vs SMA 20").
Informacje o Wersji
Added Features:

==> I have expanded the script to include 6 Moving Averages in total.

New MAs: Added MA 5 and MA 6 with full configuration (SMA/EMA, Color, Length).

Visibility Control: Every single MA now has a dropdown menu with the specific options you requested (All, Intraday + Daily, Weekly + Monthly, etc.), giving you total control over what appears on each timeframe.

==> I have added a "Visibility" dropdown menu for each of the 4 Moving Averages.

This gives you granular control. For example:

MA 1 (Fast): You can set this to "Intraday Only" so it doesn't clutter your Weekly chart.

MA 4 (200 SMA): You can set this to "Daily + Weekly" so it hides on 5-minute charts.
Informacje o Wersji
Description
Rationale & Utility Professional momentum and breakout trading requires analyzing multiple data points simultaneously: Trend, Volume Participation, and Fundamental Context. Traders often suffer from "chart clutter" by loading separate indicators for Moving Averages, Relative Volume, and Fundamental tables.

This script solves this problem by consolidating four critical analytical pillars into a single, highly optimized overlay. It is designed specifically for strategies like CAN SLIM, Minervini VCP, and Volume Spread Analysis (VSA), allowing traders to qualify setups instantly without switching screens.

Key Features & Calculations

1. Adaptive Trend Ribbon (6 Moving Averages) Unlike standard indicators, this tool provides 6 fully independent Moving Averages.

Flexibility: Each line can be toggled between SMA (Simple) and EMA (Exponential).

Timeframe Visibility: A unique feature allowing you to assign specific MAs to specific timeframes.

Example: You can set MA 1 (10 EMA) to appear only on Intraday charts to track fast momentum, while keeping MA 6 (200 SMA) visible only on Daily/Weekly charts for long-term support.

Benefit: This keeps your chart clean and relevant to the timeframe you are trading.

2. "Purple Dot" Ignition Detection This algorithm identifies "Power Plays"—moments where institutional money enters the stock.

The Logic: It flags bars where Price moves > X% (User Configurable) AND Volume exceeds a fixed liquidity threshold (e.g., 500k shares).

Smart Filtering: Includes a visibility filter to show these dots only on specific timeframes (e.g., show on Daily to spot breakouts, hide on Weekly to reduce noise).

Visuals: Plots a Purple Dot below the bar and optionally colors the bar Green (Up) or Red (Down).

3. Institutional Data Panel (Heads-Up Display) A dynamic table that displays critical context that charts often hide.

Sector, Industry & Market Cap: Instantly know the stock's classification and size. Includes "Safe Mode" to prevent crashes on Indices or Crypto (displays "N/A" instead).

Float %: Calculates (Floating Shares / Total Shares) to identify low-float runners (Stocks Only).

U/D Ratio: The Up/Down Volume Ratio (50-day lookback). A value > 1.0 indicates that up-days have heavier volume than down-days (Accumulation).

52-Week & 13-Week Highs: Shows how far price is (%) from key structural levels.

Context-Aware SMA Distance: Automatically switches calculations based on your chart. On a Daily chart, it shows distance to the 20 SMA. On a Weekly chart, it shows distance to the 10-Week SMA.

4. Relative Volume (RVol) Engine

Calculates the ratio of Current Volume vs. 50-period Average Volume.

Highlights abnormal activity (e.g., RVol > 1.5) in the data panel and optionally colors the chart bars orange.

Settings & Configuration Guide

Group 1-6: Moving Averages

Show: Toggle the line On/Off.

Visibility: Critical Feature. Select where this line appears (e.g., "Intraday Only", "Weekly + Monthly", "All Timeframes").

Length: Lookback period (e.g., 50, 200).

Type: Choose SMA or EMA.

Color: Customize line color.

Group: Purple Dot (Big Move)

Show Purple Dot: Main toggle.

Dot Visibility: Choose "Day and Below" (for granular breakout spotting) or "Week and Above".

Min % Move: The minimum price change required to trigger a dot (Default: 5%).

Min Volume: The liquidity floor (Default: 500,000).

Color Bar on Big Move: If enabled, paints the candle Green/Red when a dot appears.

Group: Data Panel (Appearance)

Layout Style: Choose "Vertical" (Table box) or "Horizontal" (Headband strip).

Position: Place the table in any corner (Top Right, Bottom Left, etc.).

Table Text Size: Scale the table (Tiny to Large) to fit your screen resolution.

Group: Data Panel (Content Selection)

Toggles: Individually enable/disable rows for Sector, Industry, Market Cap, 52W High, Float, etc., to customize your view.

Group: Relative Volume

Avg Vol Length: Lookback for average volume (Default: 50).

Threshold: The multiplier to flag high volume (Default: 1.5x).

Color Bars: If enabled, paints candles Orange when volume is high but price didn't trigger a "Purple Dot."

Suggested Workflow

Trend Check: Use the Data Panel to ensure the stock is in a leading Sector/Industry and near its 52-Week High.

Accumulation: Look for a U/D Ratio > 1.0 and rising Market Cap. 3
Informacje o Wersji
Here is the updated Pine Script (v6).

I have added the ADR / ATR row to the data panel.

ADR (Average Daily Range): Calculates the average percentage move of the stock per day over your specified period (e.g., 20 days).

ATR (Average True Range): Calculates the average price movement in points.

Format: Displayed as ADR% / ATR (e.g., 4.5% / 125.5) in a single row.

Configuration: You can set separate periods for ADR and ATR in the settings.
Informacje o Wersji
================================================================================
MTID — Changelog: Original (v6.9) → Current (v7.5)
================================================================================

DASHBOARD (TABLE 1)
• Dark theme with configurable colors (title, labels, values, border, frame,
positive/negative/neutral — 10 color inputs).
• Vertical (Table) + Horizontal (Headband) layout with configurable position.
• Configurable border width, frame width, text size.
• Zero ghost rows — table recreated with exact dimensions each render.
• Values color-coded (green/red/yellow) for at-a-glance reading.

MARKET CAP — MULTI-CURRENCY
• Display currency selector: Auto (Native), USD, INR, EUR, GBP, JPY.
• FX conversion via FX_IDC cross rates.
• Format style: Auto, Indian (L/Cr/LCr), Western (M/B/T).

FUNDAMENTALS TABLE (TABLE 2 — NEW)
• Independent second table with own position, text size, colors.
• Header row: MCap | Free Float MCap | ROE | P/E.
• Sector/Industry row.
• 4 quarterly rows with Mon-YY labels (e.g., Dec-25, Sep-25).
• Latest quarter row highlighted with distinct background.
• Per row: EPS, EPS YoY%, EPS QoQ%, Sales (unit in header), Sales YoY%,
Sales QoQ%, P/E.
• Sales header auto-adapts: "Sales Cr" for INR, "Sales B/M" for USD, etc.
• Sales values are plain numbers — unit shown only in column header.
• Optional 2 estimate rows (EPS via request.earnings — disabled by default).
• Vertical (Table) + Horizontal (Headband) layout.
• All content sections independently toggleable.
• Quarterly data fetched via ta.valuewhen() for reliable 8-quarter history.

PURPLE DOT — CROSS-PLATFORM FIX
• Removed size.auto (inconsistent across mobile/desktop/web).
• Added shape selector: Diamond, Circle, Cross, Triangle Up, Triangle Down.
• Added Large size option. Default: Small + Diamond.

REMOVED
• OPM% column (removed from fundamentals table).
• RS Rating (Pine cannot accurately replicate IBD cross-sectional ranking).
• Industry RS (removed along with RS).
• 3-column status dashboard (replaced with color-coded 2-column).

================================================================================

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.