Detailed method of drawing the CCI indicator of stocks in Excel

WBOY
Release: 2024-03-30 14:36:04
forward
576 people have browsed it

php editor Strawberry will introduce today the detailed method of how to use the CCI indicator to draw stock trend charts in Excel. The CCI indicator is an important technical analysis tool that can help investors determine whether a stock is overbought or oversold and guide investment decisions. Using the CCI indicator to draw stock trend charts in Excel can observe stock price fluctuations more intuitively and provide more reference for investment. Next, we will introduce in detail how to implement this function in Excel, so that investors can easily grasp the stock trend.

1. From the description of the CCI indicator in the stock software, we can know that the formula of the CCI indicator is

TYP:=(HIGH LOW CLOSE)/3.

CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)).

The default N is 14 days. Next we will decompose the formula in EXCEL.

Detailed method of drawing the CCI indicator of stocks in Excel

2. Prepare some stock data. In the example, it is the data of an index, which includes date, opening price, highest price, lowest price and closing price.

Detailed method of drawing the CCI indicator of stocks in Excel

3. Add a column on the right to calculate the parameter TYP. The calculation method is (HIGH LOW CLOSE)/3, that is (highest price lowest price closing price)/3.

Detailed method of drawing the CCI indicator of stocks in Excel

4. Add another column to calculate the parameter MA. The parameter formula is MA(TYP,N), where N is 14, that is, use the AVERAGE function to find the 14-day moving average of the parameter TYP. value.

Detailed method of drawing the CCI indicator of stocks in Excel

5. Add a column of calculation parameters AD. The formula is AVEDEV(TYP,N), where N is 14, that is, use the AVEDEV function to find the 14-day average absolute deviation of TYP.

Detailed method of drawing the CCI indicator of stocks in Excel

6. Use the formula to calculate (TYP-MA)/(0.015*AD) to get the CCI value. Put the calculated CCI value in the last column and you are done.

7. In order to intuitively reflect the CCI indicator, you can add a two-dimensional line chart and reference the CCI column as the data source, and use the date as the X-coordinate axis.

Detailed method of drawing the CCI indicator of stocks in ExcelDetailed method of drawing the CCI indicator of stocks in Excel

#8. After setting, the line chart of the CCI indicator will appear.

Detailed method of drawing the CCI indicator of stocks in ExcelDetailed method of drawing the CCI indicator of stocks in Excel

The above is the detailed content of Detailed method of drawing the CCI indicator of stocks in Excel. For more information, please follow other related articles on the PHP Chinese website!

source:zol.com.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template