https://github.com/manishkr1754/nifty50_data_analysis_nsetools_nsepy_python
NIFTY50 Data Analysis from scratch (Data Extraction & Visualization to Investment Insights)
https://github.com/manishkr1754/nifty50_data_analysis_nsetools_nsepy_python
candlestick-chart cufflinks data-analysis data-visualization heikin-ashi interactive-visualizations moving-average nsepy nsetools plotly portfolio-analysis portfolio-analytics portfolio-and-investment-analysis python sharpe-ratio technical-analysis
Last synced: about 2 months ago
JSON representation
NIFTY50 Data Analysis from scratch (Data Extraction & Visualization to Investment Insights)
- Host: GitHub
- URL: https://github.com/manishkr1754/nifty50_data_analysis_nsetools_nsepy_python
- Owner: manishkr1754
- Created: 2023-01-24T07:07:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-20T06:03:22.000Z (over 2 years ago)
- Last Synced: 2025-04-12T23:13:40.370Z (6 months ago)
- Topics: candlestick-chart, cufflinks, data-analysis, data-visualization, heikin-ashi, interactive-visualizations, moving-average, nsepy, nsetools, plotly, portfolio-analysis, portfolio-analytics, portfolio-and-investment-analysis, python, sharpe-ratio, technical-analysis
- Language: Jupyter Notebook
- Homepage:
- Size: 6.38 MB
- Stars: 13
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NIFTY50 Data Analysis using Python
# Detailed Article @ Medium
- [NIFTY50 Data Analysis Series using Python](https://medium.com/@kmrmanish/nifty50-data-analysis-using-python-d9227e525894)
- [A Data Extraction Guide for NIFTY50 Historical Data [1]](https://medium.com/@kmrmanish/a-data-extraction-guide-for-nifty50-historical-data-1-220a097c7a1a)
- [Interactive Data Visualization for NIFTY50 Historical Data [2]](https://medium.com/@kmrmanish/interactive-data-visualization-for-nifty50-historical-data-2-5a7fb672a8ec)
- [A Macro View of NIFTY50 Historical Data through High-Low and Open-Close Analysis [3]](https://medium.com/@kmrmanish/a-macro-view-of-nifty50-historical-data-through-high-low-and-open-close-analysis-3-753212d7f88b)
- [Gap Up-Gap Down Analysis for NIFTY50 Historical Data [4]](https://medium.com/@kmrmanish/gap-up-gap-down-analysis-for-nifty50-historical-data-4-126e51f21ce1)# Structure of NIFTY50 Data Analysis Series
1. **Data Extraction :** Download NIFTY50 daily data for last 15 years using API like nsetools/nsepy
2. **Data Visualization :** Plot the interactive trends(Line, Candlesticks and Heikin Ashi Charts) for different period using Cufflinks and Plotly
3. **High-Low Analysis & Open-Close Analysis**
4. **Gap Up-Gap Down Analysis**
5. **Simple Moving Average (SMA) Analysis :** Calculate and Plot 7 days, 14 days, 21 days, 50 days and 200 days SMA
6. **Exponential Moving Average (EMA) Analysis :** Calculate and Plot 7 days, 14 days, 21 days, 50 days and 200 days EMA
7. **Monthly Return Analysis :** Calculate and Plot %Monthly Return and Positive & Negative Return Count
8. **Portfolio Analysis :** One Time Lump-sum Investment
9. **Portfolio Analysis :** Monthly SIP on 1st trading day of the month
10. **Portfolio Analysis :** Invest only on First Gap Down Day of the every month
11. **Portfolio Analysis :** Invest on All Gap Down Days
12. **Sharpe Ratio Comparison :** Compare different investment strategies and risk adjusted returns# Approach
Extracted 15 years NIFTY50 data using **nsepy/nsetools**, performed **technical analysis**, used **Cufflinks** and **Plotly** for interactive **candlestick** and **Heikin Ashi charts**# Outcome
Understood NIFTY50 trends through interactive data visualization and provided investment insights



















