Generally, it is a statistical system for stock analysis. According to the principle of statistics, through the highest price, lowest price and closing price of the previous calculation period in a specific period (usually 9 days and 9 weeks). ) and the proportional relationship between them,
To calculate the immature random value RSV in the last calculation period, and then calculate the K value, D value and J value according to smma method, and draw a graph to judge the stock trend.
Red and white. The yellow line refers to the daily average of 5 10, 20 and 60 respectively in the daily K-line chart. However, this is not fixed and will change according to different settings. For example, it can also be set as a moving average of 5, 15, 30, 60 in the system.
Extended data:
The calculation of KDJ is complicated. First of all, we have to calculate the RSV value of the period (n days, n weeks, etc. ), that is, the immature random index value, and then calculate the K value, D value, J value, etc. Take the calculation of KDJ value for n days as an example, and its calculation formula is as follows
Rsv for n days = (cn-ln)/(HN-ln) ×100.
In the formula, Cn is the closing price on the nth day; Ln is the lowest price in n days; Hn is the highest price for n days.
Secondly, calculate the values of k and d:
K value of the current day = 2/3× K value of the previous day +65438+ 0/3× RSV of the current day.
D value of current day = 2/3× D value of previous day +65438+ 0/3× K value of current day.
If there is no K value and D value of the previous day, you can use 50 instead.
J value =3* K value of the day -2* D value of the day.
Taking the KD line with a period of 9 days as an example, that is, the immature random value, the calculation formula is
No.9 RSV = (C-L9) ÷ (H9-L9) × 100
In the formula, C is the closing price on the 9th day; L9 is the lowest price in 9 days; H9 is the highest price in 9 days.
Baidu Encyclopedia -KDJ Index