This project focuses on calculating and visualizing the volatility of a financial asset. We use the yfinance library to obtain the historical data of the asset, pandas to calculate the True Range and the Average True Range, and matplotlib to plot the results.
If you want to learn more about the concept of volatility, the ATR indicator and the code in detail, I invite you to read my article on Python for Finance. In this article, I explain step by step how to perform this analysis.
In addition, you can subscribe to my newsletter to receive more content on how to use Python to analyze and operate in the financial markets.
I hope you find this project useful and interesting! If you have any questions or suggestions, don’t hesitate to contact me.
The code provided in this repository is for educational and personal use only. It is not intended to be a source of investment advice or a recommendation of any kind. While every effort has been made to ensure the accuracy of the information and the reliability of the code, the author does not make any warranties about the completeness, reliability, and accuracy of this information and code. Any action you take upon the information and code on this repository is strictly at your own risk, and the author will not be liable for any losses and damages in connection with the use of this repository. Always consult with a qualified professional before making any investment decisions.
© Ayrton Nacer | Python for Finance | 2023