VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
时间: 2023-10-19 11:08:27 浏览: 114
var的计算逻辑及方法
This formula calculates the Volatility Ratio (VAR2) using the Simple Moving Average (SMA) of the absolute difference between the Low Price and a reference value (VAR1) divided by the SMA of the maximum difference between the Low Price and VAR1 and 0.
The calculation steps are as follows:
1. ABS(LOW-VAR1): Calculates the absolute difference between the Low Price and VAR1.
2. SMA(ABS(LOW-VAR1),13,1): Calculates the 13-period SMA of the absolute difference.
3. LOW-VAR1: Calculates the difference between the Low Price and VAR1.
4. MAX(LOW-VAR1,0): Calculates the maximum difference between the Low Price and VAR1 and 0.
5. SMA(MAX(LOW-VAR1,0),10,1): Calculates the 10-period SMA of the maximum difference.
6. VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1): Divides the SMA of the absolute difference by the SMA of the maximum difference to obtain the Volatility Ratio (VAR2).
阅读全文