{"id":17642865,"url":"https://github.com/manishkr1754/nifty50_data_analysis_nsetools_nsepy_python","last_synced_at":"2025-08-16T07:33:45.843Z","repository":{"id":89669206,"uuid":"592633740","full_name":"manishkr1754/NIFTY50_Data_Analysis_NSETOOLS_NSEPY_Python","owner":"manishkr1754","description":"NIFTY50 Data Analysis from scratch (Data Extraction \u0026 Visualization to Investment Insights)","archived":false,"fork":false,"pushed_at":"2023-05-20T06:03:22.000Z","size":6687,"stargazers_count":13,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T23:13:40.370Z","etag":null,"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"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manishkr1754.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-24T07:07:04.000Z","updated_at":"2025-01-23T15:09:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"8dac3b4d-dfa9-413e-aeaf-82d7c52e3262","html_url":"https://github.com/manishkr1754/NIFTY50_Data_Analysis_NSETOOLS_NSEPY_Python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishkr1754%2FNIFTY50_Data_Analysis_NSETOOLS_NSEPY_Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishkr1754%2FNIFTY50_Data_Analysis_NSETOOLS_NSEPY_Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishkr1754%2FNIFTY50_Data_Analysis_NSETOOLS_NSEPY_Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishkr1754%2FNIFTY50_Data_Analysis_NSETOOLS_NSEPY_Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manishkr1754","download_url":"https://codeload.github.com/manishkr1754/NIFTY50_Data_Analysis_NSETOOLS_NSEPY_Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643006,"owners_count":21138355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["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"],"created_at":"2024-10-23T08:42:22.574Z","updated_at":"2025-04-12T23:13:45.078Z","avatar_url":"https://github.com/manishkr1754.png","language":"Jupyter Notebook","readme":"# NIFTY50 Data Analysis using Python\n![image](https://user-images.githubusercontent.com/114581035/216782163-eea21cbf-2560-4919-a28c-3ecf3cfbb499.png)\n\n# Detailed Article @ Medium\n- [NIFTY50 Data Analysis Series using Python](https://medium.com/@kmrmanish/nifty50-data-analysis-using-python-d9227e525894)\n- [A Data Extraction Guide for NIFTY50 Historical Data [1]](https://medium.com/@kmrmanish/a-data-extraction-guide-for-nifty50-historical-data-1-220a097c7a1a)\n- [Interactive Data Visualization for NIFTY50 Historical Data [2]](https://medium.com/@kmrmanish/interactive-data-visualization-for-nifty50-historical-data-2-5a7fb672a8ec)\n- [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)\n- [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)\n\n\n\n# Structure of NIFTY50 Data Analysis Series\n1. **Data Extraction :** Download NIFTY50 daily data for last 15 years using API like nsetools/nsepy\n2. **Data Visualization :** Plot the interactive trends(Line, Candlesticks and Heikin Ashi Charts) for different period using Cufflinks and Plotly\n3. **High-Low Analysis \u0026 Open-Close Analysis**\n4. **Gap Up-Gap Down Analysis**\n5. **Simple Moving Average (SMA) Analysis :** Calculate and Plot 7 days, 14 days, 21 days, 50 days and 200 days SMA\n6. **Exponential Moving Average (EMA) Analysis :** Calculate and Plot 7 days, 14 days, 21 days, 50 days and 200 days EMA\n7. **Monthly Return Analysis :** Calculate and Plot %Monthly Return and Positive \u0026 Negative Return Count\n8. **Portfolio Analysis :** One Time Lump-sum Investment\n9. **Portfolio Analysis :** Monthly SIP on 1st trading day of the month\n10. **Portfolio Analysis :** Invest only on First Gap Down Day of the every month\n11. **Portfolio Analysis :** Invest on All Gap Down Days\n12. **Sharpe Ratio Comparison :** Compare different investment strategies and risk adjusted returns\n\n\n# Approach\nExtracted 15 years NIFTY50 data using **nsepy/nsetools**, performed **technical analysis**, used **Cufflinks** and **Plotly** for interactive **candlestick** and **Heikin Ashi charts**\n\n# Outcome\n\nUnderstood NIFTY50 trends through interactive data visualization and provided investment insights\n\n\n![1](https://user-images.githubusercontent.com/114581035/233861339-f3502eec-019b-4bff-aa3a-332422d71f45.png)\n\n![2](https://user-images.githubusercontent.com/114581035/233861391-8c5ed324-7fab-43d6-97c6-3aa18f4f95be.png)\n\n![3](https://user-images.githubusercontent.com/114581035/233861469-603e4aac-0a3f-4842-96ef-deff7ac73cf8.png)\n\n![4](https://user-images.githubusercontent.com/114581035/233861525-f12faa1e-9f05-4cd8-b026-e70c12c1f9a4.png)\n\n![5](https://user-images.githubusercontent.com/114581035/233861675-3b1f91f0-879c-425b-afe3-355fdead4b53.png)\n\n![6](https://user-images.githubusercontent.com/114581035/233861721-0c900a67-3686-4352-9c27-38f14ff0848d.png)\n\n![7](https://user-images.githubusercontent.com/114581035/233861766-cc7b08ac-27df-46ba-b5fc-3e2006c19100.png)\n\n![8](https://user-images.githubusercontent.com/114581035/233861792-be9b654d-746a-47e0-b8c1-1453c8e0ab63.png)\n\n![9](https://user-images.githubusercontent.com/114581035/233861829-f1b9725d-ef94-48a3-b4e9-d1b5fad7d675.png)\n\n![10](https://user-images.githubusercontent.com/114581035/233861872-7ed4f0e7-acc5-46b0-98ae-8d3ea8f5cc1f.png)\n\n![11](https://user-images.githubusercontent.com/114581035/233861907-1b35f048-2c6c-48f7-b9d6-b3b1446274af.png)\n\n![12](https://user-images.githubusercontent.com/114581035/233862025-90b9fc6e-2027-4ec4-815e-abc7f626e0c8.png)\n\n![13](https://user-images.githubusercontent.com/114581035/233862041-13f6f9d0-971b-4e6a-a5d1-4bc3b16e2d6b.png)\n\n![14](https://user-images.githubusercontent.com/114581035/233862078-6ec0d67c-8e45-404c-847b-fb2d418d5cdd.png)\n\n![15](https://user-images.githubusercontent.com/114581035/233862099-f7ca6631-1e8b-415a-aeb9-4a9dcb035ffe.png)\n\n![16](https://user-images.githubusercontent.com/114581035/233862337-a3a82950-9da3-4217-bc0b-64f800b4d468.png)\n\n![17](https://user-images.githubusercontent.com/114581035/233862366-e547f163-a7a9-4372-a336-d1442466ee27.png)\n\n![18](https://user-images.githubusercontent.com/114581035/233862388-40446e0c-f821-4234-84d4-dc34ab50c37c.png)\n\n![19](https://user-images.githubusercontent.com/114581035/233862440-9e3f7506-8a62-4d35-b547-22f2b8a25365.png)\n\n![20](https://user-images.githubusercontent.com/114581035/233862457-97826434-3f7d-4798-bdb0-6d67b1cb6ffa.png)\n\n\n\n\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanishkr1754%2Fnifty50_data_analysis_nsetools_nsepy_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanishkr1754%2Fnifty50_data_analysis_nsetools_nsepy_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanishkr1754%2Fnifty50_data_analysis_nsetools_nsepy_python/lists"}