OPEN-SOURCE SCRIPT

VR Volume Ratio + Divergence (Pro)

211
成交量比率 (Volume Ratio, VR) 是一項通過分析股價上漲與下跌日的成交量,來研判市場資金氣氛的技術指標。本腳本基於傳統 VR 公式進行了優化,增加了**「趨勢變色」與「自動背離偵測」**功能,幫助交易者更精準地捕捉量價轉折點。

[EN] Introduction
Volume Ratio (VR) is a technical indicator that measures the strength of a trend by comparing the volume on up-days versus down-days. This script enhances the classic VR formula with "Trend Color Coding" and "Auto-Divergence Detection", helping traders identify volume-price reversals more accurately.

[TW] 核心功能與參數
公式原理: VR = (Qu + Qf/2) / (Qd + Qf/2) * 100

Qu: 上漲日成交量 (Up volume)

Qd: 下跌日成交量 (Down volume)

Qf: 平盤日成交量 (Flat volume)

參數 (Length):預設為 26 日,這是市場公認最有效的短中線參數。

關鍵水位線 (Key Levels):

< 40% (底部區):量縮極致,市場情緒冰點,常對應股價底部,適合尋找買點。

100% (中軸):多空分界線。

> 260% (多頭警戒):進入強勢多頭行情,但需注意過熱。

> 450% (頭部區):成交量過大,市場情緒亢奮,通常為頭部訊號。

視覺優化 (Visuals):

紅漲綠跌:當 VR 數值大於前一日顯示為紅色(動能增強);小於前一日顯示為綠色(動能退潮)。

背離訊號 (Divergence):自動標記量價背離。

▲ 底背離 (Bullish):股價創新低,但 VR 指標墊高(主力吸籌)。

▼ 頂背離 (Bearish):股價創新高,但 VR 指標走弱(買氣衰竭)。

[EN] Features & Settings
Formula Logic: Calculated as VR = (Qu + Qf/2) / (Qd + Qf/2) * 100.

Default Length: 26, widely regarded as the optimal setting for short-to-medium term analysis.

Key Zones:

< 40% (Oversold/Bottom): Extreme low volume, often indicating a market bottom and potential buying opportunity.

100% (Neutral): The balance point between bulls and bears.

> 260% (Bullish Zone): Strong uptrend, volume is expanding.

> 450% (Overbought/Top): Extreme high volume, often indicating a market top and potential reversal.

Visual Enhancements:

Color Coding: Line turns Red when VR rises (Momentum Up) and Green when VR falls (Momentum Down).

Divergence Signals: Automatically marks divergence points on the chart.

▲ Bullish Divergence: Price makes a lower low, but VR makes a higher low (Accumulation).

▼ Bearish Divergence: Price makes a higher high, but VR makes a lower high (Distribution).

[TW] 應用策略建議
抄底策略:當 VR 跌破 40% 後,指標線由綠翻紅,或出現「▲底背離」訊號時,為極佳的波段進場點。

逃頂策略:當 VR 衝過 450% 進入高檔區,一旦指標線由紅翻綠,或出現「▼頂背離」訊號時,建議分批獲利了結。

[EN] Strategy Guide
Bottom Fishing: Look for entries when VR drops below 40% and turns red, or when a "▲ Bullish Divergence" label appears.

Taking Profit: Consider selling when VR exceeds 450% and turns green, or when a "▼ Bearish Divergence" label appears.

Disclaimer: This tool is for informational purposes only and does not constitute financial advice. / 本腳本僅供參考,不構成投資建議。

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน