PROTECTED SOURCE SCRIPT
VPG Multi TF Framework Analysis

📊 VPG – Multi TF Framework Analysis
VPG – Multi TF Framework Analysis is a multi-timeframe market status dashboard designed to help traders quickly understand price direction, swing conditions, and candle timing across several timeframes in one compact table.
This indicator works on any symbol and is especially useful for scalpers, day traders, and swing traders who need a fast overview of market structure.
🚀 Key Features
🔹 Multi-Timeframe Price Status (1m, 5m, 15m, 30m, 1H, 4H, D, W)
Each timeframe is classified in real-time as:
RALLY → current price above previous candle close
BASE → current price equal to previous close (with tolerance option)
DROP → current price below previous candle close
Color-coded for quick visual recognition.
🔹 Swing Detection (Peak / Valley / Up / Down)
A dedicated Swing row shows market structure per timeframe using:
PEAK → local high (based on last 2 closed candles + current price)
VALLEY → local low
UP → trending upward when no swing detected
DOWN → trending downward when no swing detected
This avoids empty “-” states and always provides meaningful structure information.
Swing row can be turned ON/OFF from settings.
🔹 Previous Close Row (Optional)
Displays the previous candle close price for each timeframe.
Can be enabled or disabled from settings.
🔹 Countdown Timer to Candle Close
Shows remaining time until each timeframe candle closes:
Normal color when time is sufficient
Orange background when ≤ 10 minutes remaining
Red background when ≤ 5 minutes remaining
Helps traders prepare for candle close decisions.
Timer row can be enabled or disabled from settings.
🔹 Trend Strength Badge
A floating badge summarizes overall trend strength based on multi-timeframe alignment:
WEAK / MODERATE / STRONG / VERY STRONG
RALLY or DROP
MIXED state when conditions are unclear
Includes optional blinking bullet for non-mixed trends.
Position of the badge can be configured (top/center/bottom & left/center/right).
🔹 Alert System
Two types of alerts:
Structure alerts
Trigger when a timeframe changes into RALLY or DROP (or any state change)
Timer alerts
Trigger when remaining time drops below a chosen minute threshold
Includes a Test Alert button to verify alert functionality.
🔹 Full UI Customization
Table position: top / center / bottom & left / center / right
Font size: tiny / small / normal / large
Background opacity (0–100)
Toggle rows individually (PrevClose, Swing, Timer)
Trend badge position & blink speed
🎯 Who This Indicator Is For
Scalpers monitoring lower timeframes (1m–15m)
Day traders aligning 15m–4H structure
Swing traders watching Daily & Weekly bias
Anyone who wants a clean multi-TF dashboard without cluttering the chart
⚠ Notes
Works on any market (Forex, Gold, Crypto, Indices, Stocks).
Daily timer uses New York close (17:00 NY time).
Uses request.security() for accurate multi-timeframe data.
📌 Summary
This dashboard combines:
✅ Price direction
✅ Market structure (swing)
✅ Time-to-close
✅ Trend strength
✅ Alerts
✅ Full visual customization
into one lightweight and practical trading tool.
VPG – Multi TF Framework Analysis is a multi-timeframe market status dashboard designed to help traders quickly understand price direction, swing conditions, and candle timing across several timeframes in one compact table.
This indicator works on any symbol and is especially useful for scalpers, day traders, and swing traders who need a fast overview of market structure.
🚀 Key Features
🔹 Multi-Timeframe Price Status (1m, 5m, 15m, 30m, 1H, 4H, D, W)
Each timeframe is classified in real-time as:
RALLY → current price above previous candle close
BASE → current price equal to previous close (with tolerance option)
DROP → current price below previous candle close
Color-coded for quick visual recognition.
🔹 Swing Detection (Peak / Valley / Up / Down)
A dedicated Swing row shows market structure per timeframe using:
PEAK → local high (based on last 2 closed candles + current price)
VALLEY → local low
UP → trending upward when no swing detected
DOWN → trending downward when no swing detected
This avoids empty “-” states and always provides meaningful structure information.
Swing row can be turned ON/OFF from settings.
🔹 Previous Close Row (Optional)
Displays the previous candle close price for each timeframe.
Can be enabled or disabled from settings.
🔹 Countdown Timer to Candle Close
Shows remaining time until each timeframe candle closes:
Normal color when time is sufficient
Orange background when ≤ 10 minutes remaining
Red background when ≤ 5 minutes remaining
Helps traders prepare for candle close decisions.
Timer row can be enabled or disabled from settings.
🔹 Trend Strength Badge
A floating badge summarizes overall trend strength based on multi-timeframe alignment:
WEAK / MODERATE / STRONG / VERY STRONG
RALLY or DROP
MIXED state when conditions are unclear
Includes optional blinking bullet for non-mixed trends.
Position of the badge can be configured (top/center/bottom & left/center/right).
🔹 Alert System
Two types of alerts:
Structure alerts
Trigger when a timeframe changes into RALLY or DROP (or any state change)
Timer alerts
Trigger when remaining time drops below a chosen minute threshold
Includes a Test Alert button to verify alert functionality.
🔹 Full UI Customization
Table position: top / center / bottom & left / center / right
Font size: tiny / small / normal / large
Background opacity (0–100)
Toggle rows individually (PrevClose, Swing, Timer)
Trend badge position & blink speed
🎯 Who This Indicator Is For
Scalpers monitoring lower timeframes (1m–15m)
Day traders aligning 15m–4H structure
Swing traders watching Daily & Weekly bias
Anyone who wants a clean multi-TF dashboard without cluttering the chart
⚠ Notes
Works on any market (Forex, Gold, Crypto, Indices, Stocks).
Daily timer uses New York close (17:00 NY time).
Uses request.security() for accurate multi-timeframe data.
📌 Summary
This dashboard combines:
✅ Price direction
✅ Market structure (swing)
✅ Time-to-close
✅ Trend strength
✅ Alerts
✅ Full visual customization
into one lightweight and practical trading tool.
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน