Factors Directory

Quantitative Trading Factors

Region Strength Index

FluctuationTechnical FactorsVolatility Factor

factor.formula

True Range (TR) =

Weighted Volatility (W) =

Relative volatility (SR(N1)) =

Regional Intensity Index (RI(N1, N2)) =

In the formula:

  • :

    True Range: It measures the maximum fluctuation of the price during the current trading day. It selects the maximum value of the difference between the highest price and the lowest price of the day, the absolute value of the difference between the highest price of the day and the closing price of the previous day, and the absolute value of the difference between the lowest price of the day and the closing price of the previous day.

  • :

    Highest price of the day

  • :

    Lowest price of the day

  • :

    Previous day's closing price

  • :

    Closing price of the day

  • :

    Weighted volatility: When today's closing price is higher than the previous day's closing price, the true volatility is divided by the difference between today's closing price and the previous day's closing price. Otherwise, the true volatility is used directly. It reflects the relationship between the price increase and the true volatility and is used to adjust the volatility.

  • :

    The period parameter for calculating the relative volatility (SR) indicates the size of the lookback window used when calculating the SR. The default value is 20, which means that the W value of the past 20 trading days is used for calculation.

  • :

    The period parameter for smoothing when calculating the Regional Strength Index (RI), which is used to calculate the exponential moving average of SR. The default value is 5, which means that the SR value is smoothed by a 5-period exponential moving average.

  • :

    Relative volatility: Calculate the relative position of the weighted volatility (W) in the N1 period. If the maximum value of W in the N1 period is greater than the minimum value, calculate the percentage of the difference between W and the minimum value in the N1 period to the difference between the maximum and minimum values ​​in the N1 period; otherwise, calculate the difference between W and the minimum value in the N1 period multiplied by 100. It reflects the relative strength of the current W value in the past N1 periods.

  • :

    Regional Strength Index: The relative range (SR) is smoothed by an N2-period exponential moving average to measure the strength of price fluctuations. A high RI value may indicate strong upward momentum or weak downward momentum, while a low RI value may indicate strong downward momentum or weak upward momentum.

  • :

    Exponential moving average is an average calculation method that gives higher weight to recent data and can reflect data changes more quickly.

factor.explanation

The regional strength indicator reflects the strength of stock price fluctuations by calculating the true range (TR) and the weighted volatility (W), and then further calculating the relative volatility (SR), and performing exponential smoothing on the SR. This indicator is often used to identify the reversal point of market trends. When the RSI value reaches an extreme value, it may indicate that the trend is about to reverse.

Related Factors