Indicator Description
VR (Volume Ratio) is a volume indicator that reflects market activity and trend changes by calculating the ratio of volume changes.
Function Information
- Function Name: VR
- Input Parameters: Close, Volume
- Parameter Settings: timeperiod1 (default: 21), timeperiod2 (default: 8)
- Output: vr, ma
Calculation Principle
VR is calculated using the following formula:
UpVolume = SUM(IF(Close > Close[-1], Volume, 0), timeperiod1)
DownVolume = SUM(IF(Close < Close[-1], Volume, 0), timeperiod1)
VR = (UpVolume + SUM(Volume, timeperiod1) / 2) / (DownVolume + SUM(Volume, timeperiod1) / 2) * 100Where Close[-1] is the previous closing price.
Usage Scenarios
- Market activity analysis
- Trend strength judgment
- Divergence signal identification
- Trading signal generation
Usage Recommendations
- VR turning from negative to positive can be seen as a buy signal
- VR turning from positive to negative can be seen as a sell signal
- Use in combination with price trends
- Pay attention to volume changes