Installation Guide: QtStalker on Ubuntu Linux with NSE EOD Data Plugin (Bhavcopy)

#1
With reference to my earlier thread (http://www.traderji.com/software/32899-qtstalker-ubuntu-linux-its-working.html) I got requests from people to post this... So here goes...

OK...

So, here are the steps:
1. First install UBUNTU (Hardy 8.04) :thumb:
2. Add the following lines to the end of your /etc/apt/sources.list file
Code:
    deb     [url]http://www.zwets.com/debs[/url]    unstable/
    deb-src [url]http://www.zwets.com/debs[/url]    unstable/
3. Then type the following commands in Terminal
Code:
$ sudo apt-get update
$ sudo apt-get install qtstalker libqtstalker0 qtstalker-quote-plugins build-essential
This will get Qtstalker installed (latest version 0.36), and you'll be up and running in no time...

4. Now in the terminal do
Code:
$ sudo apt-get install php5-cli
This will installed php5-cli which required for bhavcopy downloads...

5. Now in put the attached php file in your home directory, and create a new folder called bhavcopy in your home directory. Our EOD quotes will get downloaded in this folder. In the attached php file replace "USERNAME" with your Linux username.

6. Now go to your home directory in terminal and issue the command
Code:
$ php dl.php 2007
This will download all bhavcopy data files since 1st Jan 2007 till today.
It will take some time, so please be patient
You can replace 2007 with any year of your choice... I have tested Historical Data since 1996 and it works gr8 :thumb:

7. Now open QtStalker
Click on "Tools" then "Load Quotes"
Choose Quote Type as CSV

8. In the window that opens click on new rule
Type the new rule name as bhavcopy

9. In the windows that opens choose Symbol,Date:YYYYMMDD,Open,High,Low,Close,Volume exactly in this order from top to down...

10. Apply that and click ok...

11. Now click on the input button that says 0 Files (or maybe n Files)
12. Select the data files from the directory /home/YOURUSERNAME/bhavcopy
13. Set the date range (dl.php always downoads files from 1st Jan of a given year) and Click OK.
14. This would download and sync the data files with QtStalker
15. After this just enjoy the software :)


To keep yourself updated, load quotes every day...
1. Download quotes by giving the command
Code:
 $ php dl.php 2009
2. After the download finishes, open QtStalker. Click Tools -> Load Quotes
3. Select CSV
4. And then import the files in the exactly same way as described above (11. to 14.)

Hope this clears many doubts...
If you have questions please do ask...





Note:
Attached is the dl.zip containing dl.php file.
Extract and put the file in your home directory.
 

lvgandhi

Well-Known Member
#2
I tried your dl.php after installing php5-cli as wrote by you. But after showing that table it hangs. I have changed user name also as said by you.
 

rkkarnani

Well-Known Member
#3
With reference to my earlier thread (http://www.traderji.com/software/32899-qtstalker-ubuntu-linux-its-working.html) I got requests from people to post this... So here goes...

OK...

So, here are the steps:
1. First install UBUNTU (Hardy 8.04) :thumb:
2. Add the following lines to the end of your /etc/apt/sources.list file
Code:
    deb     [url]http://www.zwets.com/debs[/url]    unstable/
    deb-src [url]http://www.zwets.com/debs[/url]    unstable/
3. Then type the following commands in Terminal
Code:
$ sudo apt-get update
$ sudo apt-get install qtstalker libqtstalker0 qtstalker-quote-plugins build-essential
This will get Qtstalker installed (latest version 0.36), and you'll be up and running in no time...

4. Now in the terminal do
Code:
$ sudo apt-get install php5-cli
This will installed php5-cli which required for bhavcopy downloads...

5. Now in put the attached php file in your home directory, and create a new folder called bhavcopy in your home directory. Our EOD quotes will get downloaded in this folder. In the attached php file replace "USERNAME" with your Linux username.

6. Now go to your home directory in terminal and issue the command
Code:
$ php dl.php 2007
This will download all bhavcopy data files since 1st Jan 2007 till today.
It will take some time, so please be patient
You can replace 2007 with any year of your choice... I have tested Historical Data since 1996 and it works gr8 :thumb:

7. Now open QtStalker
Click on "Tools" then "Load Quotes"
Choose Quote Type as CSV

8. In the window that opens click on new rule
Type the new rule name as bhavcopy

9. In the windows that opens choose Symbol,Date:YYYYMMDD,Open,High,Low,Close,Volume exactly in this order from top to down...

10. Apply that and click ok...

11. Now click on the input button that says 0 Files (or maybe n Files)
12. Select the data files from the directory /home/YOURUSERNAME/bhavcopy
13. Set the date range (dl.php always downoads files from 1st Jan of a given year) and Click OK.
14. This would download and sync the data files with QtStalker
15. After this just enjoy the software :)


To keep yourself updated, load quotes every day...
1. Download quotes by giving the command
Code:
 $ php dl.php 2009
2. After the download finishes, open QtStalker. Click Tools -> Load Quotes
3. Select CSV
4. And then import the files in the exactly same way as described above (11. to 14.)

Hope this clears many doubts...
If you have questions please do ask...





Note:
Attached is the dl.zip containing dl.php file.
Extract and put the file in your home directory.
Really really hard work for helping others!!!!
 
#4
Dear Mr Ghosh, Thanks for the excellent step by step guidance. I have a question for you. I have installed Ubuntu 10.04 (64 bit) and my qtstalker version is 0.32. The deb file in the link mentioned at the beginning is written for 32 bit version. I am therefore unable to upload qtstalker 0.36 version. However, I have done the step by step procedure as explained in your post. I issued the command $ php dl.php 2010 in the terminal and after more than an hour and half it completed the process, but there was no data in my bhavcopy folder. It was empty. what could have gone wrong. will it work only in 0.36 version.
 
#5
Sir,
I had Qtstalker-0.36 working but it got corrupted and I uninstalled it using apt-get purge. I reinstalled it per your instructions and the installation seemed to go fine. Now, when I try to launch the program "nothing" happens. Being new to linux I have no idea where to look nor what to look for. Can you guide me in the right direction? I am using Ubuntu 11.04 Thanks
 
Last edited:
#6
With reference to my earlier thread (http://www.traderji.com/software/32899-qtstalker-ubuntu-linux-its-working.html) I got requests from people to post this... So here goes...

OK...

So, here are the steps:
1. First install UBUNTU (Hardy 8.04) :thumb:
2. Add the following lines to the end of your /etc/apt/sources.list file
Code:
    deb     [url]http://www.zwets.com/debs[/url]    unstable/
    deb-src [url]http://www.zwets.com/debs[/url]    unstable/
3. Then type the following commands in Terminal
Code:
$ sudo apt-get update
$ sudo apt-get install qtstalker libqtstalker0 qtstalker-quote-plugins build-essential
This will get Qtstalker installed (latest version 0.36), and you'll be up and running in no time...

4. Now in the terminal do
Code:
$ sudo apt-get install php5-cli
This will installed php5-cli which required for bhavcopy downloads...

5. Now in put the attached php file in your home directory, and create a new folder called bhavcopy in your home directory. Our EOD quotes will get downloaded in this folder. In the attached php file replace "USERNAME" with your Linux username.

6. Now go to your home directory in terminal and issue the command
Code:
$ php dl.php 2007
This will download all bhavcopy data files since 1st Jan 2007 till today.
It will take some time, so please be patient
You can replace 2007 with any year of your choice... I have tested Historical Data since 1996 and it works gr8 :thumb:

7. Now open QtStalker
Click on "Tools" then "Load Quotes"
Choose Quote Type as CSV

8. In the window that opens click on new rule
Type the new rule name as bhavcopy

9. In the windows that opens choose Symbol,Date:YYYYMMDD,Open,High,Low,Close,Volume exactly in this order from top to down...

10. Apply that and click ok...

11. Now click on the input button that says 0 Files (or maybe n Files)
12. Select the data files from the directory /home/YOURUSERNAME/bhavcopy
13. Set the date range (dl.php always downoads files from 1st Jan of a given year) and Click OK.
14. This would download and sync the data files with QtStalker
15. After this just enjoy the software :)


To keep yourself updated, load quotes every day...
1. Download quotes by giving the command
Code:
 $ php dl.php 2009
2. After the download finishes, open QtStalker. Click Tools -> Load Quotes
3. Select CSV
4. And then import the files in the exactly same way as described above (11. to 14.)

Hope this clears many doubts...
If you have questions please do ask...





Note:
Attached is the dl.zip containing dl.php file.
Extract and put the file in your home directory.
No attachment dl.zip
 
#7
With reference to my earlier thread (http://www.traderji.com/software/32899-qtstalker-ubuntu-linux-its-working.html) I got requests from people to post this... So here goes...

OK...

So, here are the steps:
1. First install UBUNTU (Hardy 8.04) :thumb:
2. Add the following lines to the end of your /etc/apt/sources.list file
Code:
    deb     [url]http://www.zwets.com/debs[/url]    unstable/
    deb-src [url]http://www.zwets.com/debs[/url]    unstable/
3. Then type the following commands in Terminal
Code:
$ sudo apt-get update
$ sudo apt-get install qtstalker libqtstalker0 qtstalker-quote-plugins build-essential
This will get Qtstalker installed (latest version 0.36), and you'll be up and running in no time...

4. Now in the terminal do
Code:
$ sudo apt-get install php5-cli
This will installed php5-cli which required for bhavcopy downloads...

5. Now in put the attached php file in your home directory, and create a new folder called bhavcopy in your home directory. Our EOD quotes will get downloaded in this folder. In the attached php file replace "USERNAME" with your Linux username.

6. Now go to your home directory in terminal and issue the command
Code:
$ php dl.php 2007
This will download all bhavcopy data files since 1st Jan 2007 till today.
It will take some time, so please be patient
You can replace 2007 with any year of your choice... I have tested Historical Data since 1996 and it works gr8 :thumb:

7. Now open QtStalker
Click on "Tools" then "Load Quotes"
Choose Quote Type as CSV

8. In the window that opens click on new rule
Type the new rule name as bhavcopy

9. In the windows that opens choose Symbol,Date:YYYYMMDD,Open,High,Low,Close,Volume exactly in this order from top to down...

10. Apply that and click ok...

11. Now click on the input button that says 0 Files (or maybe n Files)
12. Select the data files from the directory /home/YOURUSERNAME/bhavcopy
13. Set the date range (dl.php always downoads files from 1st Jan of a given year) and Click OK.
14. This would download and sync the data files with QtStalker
15. After this just enjoy the software :)


To keep yourself updated, load quotes every day...
1. Download quotes by giving the command
Code:
 $ php dl.php 2009
2. After the download finishes, open QtStalker. Click Tools -> Load Quotes
3. Select CSV
4. And then import the files in the exactly same way as described above (11. to 14.)

Hope this clears many doubts...
If you have questions please do ask...





Note:
Attached is the dl.zip containing dl.php file.
Extract and put the file in your home directory.
Attached file di.zip is missing. Kindly reload this file please.
 

PUCHU_2500

Well-Known Member
#9

Similar threads