Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getbhav convert to Metastock #234

Open
algaeginger opened this issue May 27, 2023 · 31 comments
Open

Getbhav convert to Metastock #234

algaeginger opened this issue May 27, 2023 · 31 comments

Comments

@algaeginger
Copy link

Hi, I used getbhav since its inception till it provided NSE bhavcopy. I again came back to download BSE bhavcopy for the first time, a couple of days back. It worked very well just as in the past. However I've encountered a odd problem. The bhavcopy has the scrip symbol as a number (BSE symbols) but the Metastock conversion requires a alphanumeric symbol to proceed with the conversion. Has anyone overcome this issue? Some roundabout? Is it possible to delete the number symbol col and leave the alphanumeric symbol column in the BSE bhavcopy? Any help will be appreciated. Thanks

@pparesh25
Copy link

Please provide me with a sample file, and I will try to assist you.

@algaeginger
Copy link
Author

algaeginger commented May 28, 2023 via email

@pparesh25
Copy link

A simple solution to this is to write a python script using the pandas module, which replaces the first column which is the bse code and replaces it with the name. And another solution is to write a new downloader which downloads the data from bse india site and saves it in the desired format so that the latest data can be updated. I will write the script of first solution on Tuesday and give you the link, and if I get time for the second solution, I will definitely try

@algaeginger
Copy link
Author

algaeginger commented May 30, 2023 via email

@pparesh25
Copy link

A simple solution to this is to write a python script using the pandas module, which replaces the first column which is the bse code and replaces it with the name. And another solution is to write a new downloader which downloads the data from bse india site and saves it in the desired format so that the latest data can be updated. I will write the script of first solution on Tuesday and give you the link, and if I get time for the second solution, I will definitely try

I apologize for the delay. I had intended to complete this task on Tuesday but was unable to do so because I was out of town. Here is the link to the file, I have written and instructions on how to use it.

https://github.com/pparesh25/BSE-Code-to-Name/archive/refs/heads/main.zip

@pparesh25
Copy link

Thank you very much Paresh. You're going out of your way to help. It's not all that important, you would be extremely busy in your (IT) job. regards>

I have created 'getbhavcopy-alternative' for accessing NSE EOD data, and it was part of my plan to include a similar option for BSE EOD data.

https://github.com/pparesh25/Getbhavcopy-alternative

@algaeginger
Copy link
Author

algaeginger commented Jun 1, 2023 via email

@pparesh25
Copy link

pparesh25 commented Jun 1, 2023

Dear Paresh, Thank you so much for your email and your solutions to the issue we were facing. Your expertise and help are greatly appreciated. Life can get busy, and I appreciate you taking the time to undertake this project and for sharing it, Can I request you to make it an exe file so that non techies can use it. I can't make use of it myself. Presently i have a vba code to delete the extraneous columns and save it as a csv file. Your program will be a life saver. Best regards, algae

https://github.com/pparesh25/Getbhavcopy-alternative/blob/main/How%20to%20download%20eod%20data.txt

@pparesh25
Copy link

Installing and running Python scripts is very easy. Videos are available on YouTube for guidance. However, I cannot share the .exe file of my script, 'Getbhavcopy-alternative,' because Microsoft Defender shows a false positive. But you can build it yourself using the PyInstaller library to create a standalone .exe file. There is also a YouTube video tutorial available on how to create an .exe file from a .py file using PyInstaller. I will provide a video link that explains how to install Python and download data using the source code in the .py file.

@pparesh25
Copy link

I hope you have already used the program to convert the BSE code column to names. If not, please follow these steps: create two new folders on drive C and name them 'BSE' and 'CSV'. Place your BSE bhavcopy file in the 'BSE' folder and the 'name.csv' file in the 'CSV' folder (note that the folder names must be capitalized). Finally, double-click on the .py file, and that's it!

@algaeginger
Copy link
Author

algaeginger commented Jun 2, 2023 via email

@pparesh25
Copy link

  1. Download the zip file from the following URL: BSE-Code-to-Name.zip.

    1. Extract the contents of the downloaded zip file.

    Inside the extracted folder, you will find two files: "name.csv" and "BSE-Code-to-Name.py".

  2. Create a folder named "CSV" in C: and place the "name.csv" file inside it.

  3. Create another folder named "BSE" in C: and place all the "bse-eq-bhavcopy.txt" files inside it.

  4. Ensure that Python is correctly installed on your system. If not, download and install Python from the official website (https://www.python.org/).

  5. If your Python installation is correct, navigate to the extracted folder and locate the "BSE-Code-to-Name.py" file.

  6. Double-click on the "BSE-Code-to-Name.py" file to run it. This script will process the files in the "BSE" folder and perform the desired changes.

  7. After running the script, check the files in the "BSE" folder to see if any changes have occurred.

  8. If the changes have not happened, you can try using Visual Studio Code (VS Code) as an alternative. Download and install VS Code from the official website (https://code.visualstudio.com/).

  9. Open VS Code, navigate to the extracted folder, and open the "BSE-Code-to-Name.py" file in the editor.

@algaeginger
Copy link
Author

algaeginger commented Jun 3, 2023 via email

@algaeginger
Copy link
Author

algaeginger commented Jun 4, 2023 via email

@iMakeBid
Copy link

iMakeBid commented Jun 4, 2023

A New version of BID released which includes Open Interest and Series Filter. You can download from the link
https://drive.google.com/drive/folders/1QYUXC-GJQRV5zRnC_SPLJ70Mq5yQY7UP?usp=share_link

@pparesh25
Copy link

pparesh25 commented Jun 4, 2023

Hi Paresh , Yes, the work to add the name in BSE bhav copy has been completed though im yet to use NSE bhav copy-alternative. Is it something like bhavcopy, meaning fill in the date and click to download? Or a python procedure via cmd prompt? Thats always a bit intimidating :) Cheers,


If your installation of Python is proper, you can simply double-click on the 'Getbhavcopy-Eq-Ind.py' file. This action will automatically open the command prompt, where you will be prompted to enter the start date in the format YYYY-MM-DD, followed by the end date. Once you provide the dates, a new folder will be created on the C drive, and the data for the selected date range will be saved in that folder. I have renamed the NSE index names to match the name used in the old bhavcopy, and the data format is also consistent with the old bhavcopy. As a result, the databases created in Amibroker or Metastock using Heman sir's 'getbhavcopy' software can be updated seamlessly without requiring any modifications.

@pparesh25
Copy link

A New version of BID released which includes Open Interest and Series Filter. You can download from the link https://drive.google.com/drive/folders/1QYUXC-GJQRV5zRnC_SPLJ70Mq5yQY7UP?usp=share_link

2023-05-07-NSE-EQ.txt
2023-05-14-NSE-EQ.txt
2023-05-21-NSE-EQ.txt
2023-05-28-NSE-EQ.txt
2023-06-04-NSE-EQ.txt
what is this i don't understand

@iMakeBid
Copy link

iMakeBid commented Jun 6, 2023

what is this i don't understand

It is the bhavcopy file which has been processed for use in charting software.
what is it that you do not understand? Can you elaborate?

@iMakeBid
Copy link

iMakeBid commented Jun 6, 2023

I have shifted the BID discussion. You can down load the update from here.
iMakeBid/BID#1 (comment)

@algaeginger
Copy link
Author

algaeginger commented Jun 7, 2023 via email

@iMakeBid
Copy link

iMakeBid commented Jun 7, 2023

You can click on the google drive link and download the app. Also the link to the app is below
https://drive.google.com/drive/folders/1QYUXC-GJQRV5zRnC_SPLJ70Mq5yQY7UP?usp=share_link

@pparesh25
Copy link

pparesh25 commented Jun 7, 2023

what is this i don't understand

It is the bhavcopy file which has been processed for use in charting software.
what is it that you do not understand? Can you elaborate?

I believe all these dates are from Sundays, and I don't know since when nse started market on Sundays.

@pparesh25
Copy link

Hi Paresh , Yes, the work to add the name in BSE bhav copy has been completed though im yet to use NSE bhav copy-alternative. Is it something like bhavcopy, meaning fill in the date and click to download? Or a python procedure via cmd prompt? Thats always a bit intimidating :) Cheers,

https://github.com/pparesh25/Getbhavcopy-alternative/blob/main/Video%20guide%20for%20downloading%20EOD%20data.txt

@iMakeBid
Copy link

iMakeBid commented Jun 8, 2023

Paresh there is some error on the NSE Server. It throws data for Saturday and Sunday. But I have updated my app and that has been rectified from the app siode., Probably NSE are still working on the new server and hope they will correct the same.

@iMakeBid
Copy link

iMakeBid commented Jun 8, 2023

Hi Paresh , Yes, the work to add the name in BSE bhav copy has been completed though im yet to use NSE bhav copy-alternative. Is it something like bhavcopy, meaning fill in the date and click to download? Or a python procedure via cmd prompt? Thats always a bit intimidating :) Cheers,

https://github.com/pparesh25/Getbhavcopy-alternative/blob/main/Video%20guide%20for%20downloading%20EOD%20data.txt

NIce work Paresh. I saw the video. Your app seems to do the works well. Keep it up.

@algaeginger
Copy link
Author

algaeginger commented Jun 8, 2023 via email

@iMakeBid
Copy link

iMakeBid commented Jun 8, 2023

Please check your internet connection. This error is displayed with the app is unable to connect to NSE server. Also please check if you are able to access the NSE website. Are you using vpn or any firewall?

@algaeginger
Copy link
Author

algaeginger commented Jun 9, 2023 via email

@iMakeBid
Copy link

iMakeBid commented Jun 9, 2023

Oh.. I tried on jio using mobile hotspot and It works fine. I believe no other user have got this issue. Maybe you can try a few times or I request you please check with your interenet service provider.

@algaeginger
Copy link
Author

algaeginger commented Jun 11, 2023 via email

@algaeginger
Copy link
Author

algaeginger commented Aug 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants