已更新

Minimalist Price Movement Label

361

Price Movement Label is an ultra-clean, minimal on-chart HUD designed to display the relative percentage move across your currently visible chart window.

Instead of measuring from a static daily session open or arbitrary fixed period, this script uses TradingView’s chart window variables (chart.left_visible_bar_time to chart.right_visible_bar_time).

As you pan or zoom your chart, the indicator dynamically anchors to the leftmost visible bar's open price and calculates the total percentage change to the latest price in real time. It is particularly useful for order-entry execution, fast visual sizing of screen-level trends, and keeping track of bar timers without cluttering your layout.

Features
Dynamic Viewport Measurement: Automatically recalculates percentage change based on whatever section of history is currently visible on your screen.
Minimalist HUD: Pins a single, clean label just past the current bar (bar_index + 1), keeping chart candles unobscured.Optional Price & Candle
Timer: Toggle between showing only the percentage, the raw current price, a live countdown timer (mm:ss) to the bar close, or any combination.
Distinct Visuals: Color-coded label dynamically shifts hue depending on whether the move across the visible window is net positive or net negative.Settings & Inputs
Show percentage: Displays the net percentage gain/loss from the leftmost visible candle open to current price (formatted to 3 decimal places).
Show current price: Appends the exact latest price formatted to the instrument’s minimum tick size.
Show candle countdown: Displays a real-time countdown timer (MM:SS) until the current active bar closes (active on real-time bars only).

How It Works
When the chart renders, the indicator reads the open price of the bar at chart.left_visible_bar_time.On the latest visible bar (chart.right_visible_bar_time), it calculates:

Movement = (Close/Start Price - 1) x 100

The resulting metrics are drawn into a single pinned label styled on the right-hand margin.Note: Because this script relies on visible chart window time boundaries, zooming in, zooming out, or panning left/right will adjust the reference anchor bar to match the new visible range.

版本注释
Dynamic Tick Icon (▲ / ▼): Adds a live micro-indicator directly beside the percentage. Even if your screen is up $+5.4%, you instantly see whether the active candle is pushing higher (▲) or dipping lower (▼) on every price tick.

Explicit Sign Indicator: Formats positive moves clearly with a + sign (e.g., +2.450 %) to pair with your purple/blue palette.

Color Mode Selector: Retains original default purple/blue palette linked to Visible Screen %, while letting the users switch to Live Candle or Previous Close with a single dropdown click in the settings menu.
版本注释
Dynamic Viewport % Movement & Live HUD

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。