OPEN-SOURCE SCRIPT
已更新 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.
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.
版本注释
VPG – MTF PrevClose Dashboard v 0.0.2 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 Mahroussy — Developer of VPG indicators focused on clarity, momentum visualization, and fast market interpretation for real-time decision-making.
版本注释
🟦 VPG – MTF PrevClose Dashboard v2.1Multi-Timeframe Price State Monitor
Overview
VPG – MTF PrevClose Dashboard v2.1 is a lightweight yet powerful visual tool that tracks the current price position relative to the previous candle’s close across multiple timeframes — 15m, 30m, 1H, 4H, 1D, and 1W — in real time.
This dashboard helps traders instantly see whether gold (or any instrument) is in a Rally, Base, or Drop phase across different chart intervals — without switching charts.
🧩 Key Features
✅ Rally / Base / Drop Detection
– Compares current price with previous candle close per timeframe.
– Automatically color-coded:
🟩 Rally (Price > Prev Close)
🟦 Base (Price = Prev Close)
🟥 Drop (Price < Prev Close)
✅ Multi-Timeframe Overview
– Monitors 15m, 30m, 1H, 4H, 1D, and 1W simultaneously.
– Displays both textual state (Rally/Base/Drop) and live price value.
✅ Prev Close Row (Toggle)
– Optional display of previous close prices per timeframe.
– Hide/show instantly from settings.
✅ Countdown Timer Row (Toggle)
– Real-time bar countdown for each timeframe.
– Daily timeframe synced with FOREX/NY close (17:00 NY time).
– Adapts automatically to DST (Daylight Saving Time).
✅ Dynamic Positioning
– Place dashboard anywhere on screen:
- Top / Bottom
- Left / Center / Right
✅ Adjustable Font Size
– Choose between: Tiny, Small, Normal, or Large.
✅ Clean Table Rendering
– Auto-clears rows when toggled off (no redraw artifacts).
– Lightweight and compatible with real-time charts.
⚙️ How It Works
The script checks the current price against the previous bar’s closing price on each selected timeframe.
If current > prev → RALLY
If current = prev → BASE
If current < prev → DROP
Values update in real-time for all listed timeframes simultaneously.
🧭 Best Use Cases
Ideal for multi-timeframe confirmation setups (e.g., intraday traders tracking M15–H4 alignment).
Excellent for gold, forex, and indices monitoring dashboards.
Quickly identify whether price is trending or ranging across the spectrum.
🆙 Version History
v2.1 (Current)
Added user-selectable table position (Top/Bottom × Left/Center/Right).
Added user-adjustable font size (Tiny → Large).
Added toggle to show/hide Prev Close and Countdown Timer rows.
Improved syntax safety (no ternary line breaks).
Polished layout for better compactness.
v2.0
Added Countdown Timer (per timeframe, DST-aware).
Added PrevClose row below state bar.
Color and structure refinements.
v1.0
Initial release with MTF Rally/Base/Drop detection (no timer/positioning).
💡 Tips
You can duplicate this indicator and adjust the default color theme to match your chart style.
Set calc_on_every_tick=false in code if you prefer bar-closed-only refresh for CPU efficiency.
Works best on FOREX.COM XAUUSD, but supports any instrument.
📌 Credits
Developed by: VPG Quant Lab
Lead Dev: Nizar M.
Version: 2.1 (November 2025)
版本注释
VPG – MTF PrevClose Dashboard v2.2Real-Time Multi-Timeframe Price Phase Monitor
What's New (v2.2)
Added vertical “center” positioning (top / center / bottom).
Full 9-point table placement grid (top-left → bottom-right).
Fully compatible with TradingView’s new position.middle_* constants.
Cleaned internal logic, verified Pine v5 compliance.
Ready for public release.
Core Features
✅ Detects RALLY / BASE / DROP across 6 timeframes (15m → 1W).
✅ Adjustable table position (top / center / bottom × left / center / right).
✅ Toggle PrevClose and Countdown Timer rows.
✅ Adjustable font size (Tiny → Large).
✅ DST-aware daily countdown (FOREX/NY close).
✅ Lightweight & fully dynamic rendering.
Version: 2.2 (November 2025)
Developer: VPG Quant Lab — Nizar M.
版本注释
VPG – MTF PrevClose Trend DashboardA clean multi-timeframe price structure dashboard designed to quickly identify whether the market is in Rally, Base, or Drop conditions across 15m → Weekly timeframes, with trend strength classification and a floating trend badge for fast directional bias.
✔ What This Indicator Shows
Component Description
MTF State Row Compares current price vs previous bar close → turns into RALLY, BASE, DROP per timeframe
Prev Close Row (optional) Shows prior bar closing prices across all timeframes
Countdown Timer (optional) Time remaining until the next bar closes
Trend Strength Engine Detects alignment strength (Weak → Very Strong) based on MTF structure rules
Floating Trend Badge Displays large directional tag (e.g. Very Strong Rally) independently from the table
Alert System + Manual Test Trigger Can alert only on structural shifts (Rally/Drop) or any state change
🔥 Trend Classification Logic
Rally Case (first 4 TF must be rally):
Weak Rally → 15m–4H rally, D & W drop
Moderate Rally → 15m–4H rally, D drop, W rally
Strong Rally → 15m–4H rally, D rally, W drop
Very Strong Rally → 15m–W all rally
Drop Case (first 4 TF must be drop):
Weak Drop → 15m–4H drop, D & W rally
Moderate Drop → 15m–4H drop, D rally, W drop
Strong Drop → 15m–4H drop, D drop, W rally
Very Strong Drop → 15m–W all drop
If alignment doesn't match any structured scenario → displayed as Mixed.
⚙ Customization
Table position: Top / Center / Bottom × Left / Center / Right
Trend badge position independent from table
Adjustable font size & opacity
Selective display: Prev Close, Timer, Alerts
📡 Alerts
You can trigger alerts in two modes:
Mode Behavior
State Only Alerts only when entering Rally / Drop
Any Change Alerts on every transition including Base
Manual Test Trigger Helps verify webhook/notification setup
📍 Recommended Use
Determine multi-timeframe directional bias in seconds
Confirm trend alignment before executing trades
Avoid counter-trend entries during strong alignment conditions
Pair with liquidity/volume/order-flow tools for execution timing
📌 Notes
This indicator does not predict price movement; it reads structure objectively based on prior closes and alignment rules. Best used as a directional filter.
版本注释
VPG – MTF PrevClose Trend DashboardA structured multi-timeframe price-state dashboard designed to identify directional bias using Rally–Base–Drop logic across 15m to Weekly intervals, with trend-strength scoring and a floating blinking trend badge.
✔ Core Features
Multi-Timeframe Structure Readings
Displays RALLY / BASE / DROP per timeframe based on current price vs previous close.
Trend Strength Engine
Classifies alignment into:
Weak, Moderate, Strong, Very Strong (Rally or Drop).
Floating Trend Badge
Independent UI object, not tied to table size.
Shows main directional bias.
Blinking bullet for emphasis (speed adjustable).
Prev Close Row (optional)
Bar Countdown Row (optional)
⚡ Blink Behavior
Only the bullet indicator blinks (not the entire badge) for visual clarity.
Blink rate adjustable from inputs (100ms–2000ms).
📊 Classification Logic (Summary)
Rally Case: first 4 TFs must be Rally
Condition Timeframe Pattern Output
Weak 15m–4H Rally, D & W Drop WEAK RALLY
Moderate 15m–4H Rally, D Drop, W Rally MODERATE RALLY
Strong 15m–4H Rally, D Rally, W Drop STRONG RALLY
Very Strong 15m–W all Rally VERY STRONG RALLY
Drop Case: first 4 TFs must be Drop
Condition Timeframe Pattern Output
Weak 15m–4H Drop, D & W Rally WEAK DROP
Moderate 15m–4H Drop, D Rally, W Drop MODERATE DROP
Strong 15m–4H Drop, D Drop, W Rally STRONG DROP
Very Strong 15m–W all Drop VERY STRONG DROP
Anything outside these rules → Mixed.
⚙ Customization
Position (Top / Middle / Bottom × Left / Center / Right)
Font size presets
Opacity control
Toggle: PrevClose, Timer, Trend Badge
Blink speed control (ms)
Symbol override input
📡 Alerts
Alerts per timeframe
Option to trigger only on Rally/Drop transitions or any state change
Built-in Manual Test Button to verify notification setup (webhook/app/email)
📍 Recommended Usage
Identify higher-timeframe alignment before entering trades
Filter counter-trend signals
Validate direction for confirmation-based entries
Works well with orderflow/liquidity tools
📝 Notes
This indicator does not predict movement. It objectively measures structure relative to previous closes and aggregates alignment into a trend bias.
版本注释
VPG – MTF PrevClose Trend DashboardA multi–timeframe structure dashboard that compares current price to the previous bar close across 15m → Weekly timeframes and highlights market direction using Rally–Base–Drop logic, trend strength scoring, and time-based urgency visual cues.
✔ What It Shows
Component Function
MTF Structure Row Shows RALLY / BASE / DROP based on price vs previous close per timeframe
Prev Close Row (optional) Shows previous close values for each timeframe
Timer Row Shows time until next bar closes for each timeframe
Urgency Timer Highlight Background turns red when time left < 5 minutes
Trend Badge (Floating UI) Displays aggregated directional bias such as Strong Rally
MIXED Mode Visible When alignments don't match trend criteria
🔥 Trend Strength Classification
Requires alignment of first four timeframes (15m → 4H)
RALLY GROUP
Weak Rally → 15m–4H rally, D & W drop
Moderate Rally → 15m–4H rally, D drop, W rally
Strong Rally → 15m–4H rally, D rally, W drop
Very Strong Rally → 15m–W all rally
DROP GROUP
Weak Drop → 15m–4H drop, D & W rally
Moderate Drop → 15m–4H drop, D rally, W drop
Strong Drop → 15m–4H drop, D drop, W rally
Very Strong Drop → 15m–W all drop
If none match → Mixed (shown visibly)
⚙ Customization
Table position: Top / Center / Bottom × Left / Center / Right
Trend badge independent position
Adjustable opacity & font size
Toggle:
PrevClose row
Timer row
Trend badge
Supports custom symbols
⏳ Time Awareness Layer
Countdown per timeframe
Background turns red when remaining time < 5 minutes
Helps anticipate breakout timing & session transitions
📡 Alerts
Alerts per timeframe
Choose:
Only on Rally/Drop transitions
Any structure change
Manual Test Alert button to validate webhook / notification setup
📍 Recommended Usage
Identify directional bias before entering trades
Filter lower-timeframe signals against higher-timeframe context
Time entries near bar closes when volatility expands
Works best paired with order flow / OB / liquidity tools
📝 Notes
This tool does not predict price movement — it simply provides structural alignment and timing context to support decision-making.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。