Traderji.com - Discussion forum for Stocks Commodities & Forex

EOD Download/ Convert from NSE and BSE

Discuss EOD Download/ Convert from NSE and BSE at the Software within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Originally Posted by Debraj Hi Pankaj, For some reason NSE data of 2006_03_6 got downloaded ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > TOOLS & RESOURCES > Software

Notices

Software Charting, trading & technical analysis software, trading system development and backtesting.


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #81  
Old 3rd April 2006, 08:12 PM
Member
 
Join Date: Mar 2005
Location: India
Posts: 1,805
Thanks: 104
Thanked 115 Times in 73 Posts
pkjha30 has a spectacular aura aboutpkjha30 has a spectacular aura about
Reputation: 186
Default Re: EOD Download/ Convert from NSE and BSE

Quote:
Originally Posted by Debraj
Hi Pankaj,

For some reason NSE data of 2006_03_6 got downloaded and converted today. When I tried Satya's DataExtractor, the download and conversion were OK.

There are a couple of minor issues. I shall post them, if necessary, after trying out the next version.

Warm regards,

Debraj
Hi Debraj
Just saw your message. I downloaded today's file and it was ok with the old program.May be Some date setting /format problem.

I am on to new version. Before release I will try to check if I could replicate your problem. Before downloading any file do check the listed urls in the queue If not in proper format do tell me.It can be removed and then you can try again putting the url in queue.

As I am working on the exchange of bhav copies <per> and <o/i> is not included since I have written a routine for one to one translation of header. Will it cause any problem.

Editing of settings related files will be now done within the programme itself. Holiday will be in the format suggested by murthy. That part is over.

Thanks
Pankaj
Reply With Quote
Sponsored Links
  #82  
Old 3rd April 2006, 11:10 PM
Member
 
Join Date: Aug 2004
Posts: 120
Thanks: 0
Thanked 2 Times in 2 Posts
Debraj is on a distinguished road
Reputation: 22
Default Re: EOD Download/ Convert from NSE and BSE

Hi Pankaj,

After clicking Add URL the file name in the Download status window is cm6MAR2006BHAV.csv. The File URL Path Download Queue is http://www.nseindia.com/content/hist...AR2006BHAV.csv. Date is 03/06/2006.

You are right in tracing the cause of today's download trouble to "date setting /format problem". I think the problem is being caused by the date format in the download screen. It is in Indian, ie, DDMMYYYY format. According to it, today is 4 Apr 2006(03/04/2006). But the dropdown calendar is in MMDDYYYY format. So the software is interpreting 03/04/2006 as 4 Mar 2006. This being a Saturday, the software is downloading next available day's data - that of Monday 6 Mar.

Whether your routine for "one to one translation of header" would cause any problem would become clear only after trying out the new version.

Warm regards,

Debraj
Reply With Quote
  #83  
Old 4th April 2006, 06:58 PM
rpc rpc is offline
Member
 
Join Date: Aug 2005
Posts: 355
Thanks: 3
Thanked 0 Times in 0 Posts
rpc is on a distinguished road
Reputation: 21
Default Re: EOD Download/ Convert from NSE and BSE

Hi Mr Jha
I have downloaded your EOD Downloader.It is quite commendable
that you are making available for FREE such a nice software.
I used it to convert *.csv files from NSE but I found the
converted *.txt file had blank line as first line.I have deleted
following two lines from application.ini

sHeaderRecordNseD=<name>,<date>,<open>,<high>,<low >,<close>,<volume>
sHeaderRecordNseU=<name>,<date>,<open>,<high>,<low >,<close>,<volume>

Checking or unchecking of "No Header Line" makes no difference
Pls advice how can I make the blank line go.

Secondly I would like to suggest when files are converted the source
files are removed and copied to Oldfiles directory.Can you
provide an option so that such files are not removed.

Thirdly is it possible to include downloading of sensex and nifty ?

rpc
Reply With Quote
  #84  
Old 4th April 2006, 08:57 PM
Member
 
Join Date: Mar 2005
Location: India
Posts: 1,805
Thanks: 104
Thanked 115 Times in 73 Posts
pkjha30 has a spectacular aura aboutpkjha30 has a spectacular aura about
Reputation: 186
Default Re: EOD Download/ Convert from NSE and BSE

Quote:
Originally Posted by rpc
Hi Mr Jha
I have downloaded your EOD Downloader.It is quite commendable
that you are making available for FREE such a nice software.
I used it to convert *.csv files from NSE but I found the
converted *.txt file had blank line as first line.I have deleted
following two lines from application.ini

sHeaderRecordNseD=<name>,<date>,<open>,<high>,<low >,<close>,<volume>
sHeaderRecordNseU=<name>,<date>,<open>,<high>,<low >,<close>,<volume>

Checking or unchecking of "No Header Line" makes no difference
Pls advice how can I make the blank line go.

Secondly I would like to suggest when files are converted the source
files are removed and copied to Oldfiles directory.Can you
provide an option so that such files are not removed.

Thirdly is it possible to include downloading of sensex and nifty ?

rpc
Hi rpc

in next versionfirst problem is sorted out. But not yet uploaded as testing is going on on two systems.

Normally when you update a file it wil take all the files visible in the input box and convert.So I thought once the major download is complete daily updation can be done and files which are moved out of equities folder will not again get conveted while saving the original files for future use in this or some other software. With your idea I have to keep track of the files converted,possible, but might lead to unexpected problem.Removing duplicates will be one such issue. Sorting converted file will be another. Text files are easy to read with other available softwares but difficult to sort and find duplicates. It consumes a lot of resources which would make it slower. In any case this problem will come ,once the file becomes too large. I am onto that.

I will certainly give your idea a thought.Perhaps an option to put files in your favourite folder instead of default would be on way to work. What do you think?

Yes it is possible to download nifty and sensex.I didnot give it much effort though worked on that. One such request is listed in my task list. I will see if I can include that before next release.

Regards
Pankaj

Last edited by pkjha30; 5th April 2006 at 01:03 AM.
Reply With Quote
  #85  
Old 4th April 2006, 10:36 PM
Member
 
Join Date: Sep 2005
Location: hyderaabd
Posts: 759
Thanks: 19
Thanked 24 Times in 10 Posts
murthymsr will become famous soon enough
Reputation: 51
Default Re: EOD Download/ Convert from NSE and BSE

Hi pankaj,

quote:
......... Yes it is possible to download nifty and sensex.I didnot give it much effort though worked on that. One such request is their listed in my task list. I will see if I can include that before next release. .........
:unquote

it's a very good idea. You may think of including the various other indices like junior nifty, midcap, and the sectorial indices of BSE/NSE depending on the availability at the source chosen by you.

Thanks for your time.
murthymsr
Reply With Quote
  #86  
Old 5th April 2006, 08:38 PM
rpc rpc is offline
Member
 
Join Date: Aug 2005
Posts: 355
Thanks: 3
Thanked 0 Times in 0 Posts
rpc is on a distinguished road
Reputation: 21
Default Re: EOD Download/ Convert from NSE and BSE

Hi Mr Jha
Thanks for the reply.Pls don't bother to provide option for not removing files if it involves a lot of work.We are quite content with what you have provided.You have provided a great software.
Keep it up !
rpc
Reply With Quote
  #87  
Old 9th April 2006, 01:02 PM
Member
 
Join Date: Sep 2005
Location: hyderaabd
Posts: 759
Thanks: 19
Thanked 24 Times in 10 Posts
murthymsr will become famous soon enough
Reputation: 51
Default Re: EOD Download/ Convert from NSE and BSE

hi pankaj,

sorry for using your thread for some clarification on data format.

i refer to the bhav copy of NSE and not PR.ZIP file.
the format of timestamp column is slightly confusing.

as i understand, the column represents

1) the datepart is with the leading zeros suppressed.

2) in the year part, sometimes the century is shown and some other times not shown. ( i couldn't understand the logic though)

3) to ascertain the data format, i viewed the file in windows notepad, wordpad, excel and other non-windows notepads.

i request, pankaj, satya, joy_mitali and others to record their observations on the data format. this will help be to overcome some of the problems presently faced with my stock screener software.

thanks in advance.

murthymsr

Last edited by murthymsr; 9th April 2006 at 01:53 PM.
Reply With Quote
  #88  
Old 9th April 2006, 06:13 PM
Member
 
Join Date: Mar 2005
Location: India
Posts: 1,805
Thanks: 104
Thanked 115 Times in 73 Posts
pkjha30 has a spectacular aura aboutpkjha30 has a spectacular aura about
Reputation: 186
Default Re: EOD Download/ Convert from NSE and BSE

Quote:
Originally Posted by murthymsr
hi pankaj,

sorry for using your thread for some clarification on data format.

i refer to the bhav copy of NSE and not PR.ZIP file.
the format of timestamp column is slightly confusing.

as i understand, the column represents

1) the datepart is with the leading zeros suppressed.

2) in the year part, sometimes the century is shown and some other times not shown. ( i couldn't understand the logic though)

3) to ascertain the data format, i viewed the file in windows notepad, wordpad, excel and other non-windows notepads.

i request, pankaj, satya, joy_mitali and others to record their observations on the data format. this will help be to overcome some of the problems presently faced with my stock screener software.

thanks in advance.

murthymsr
Hi Murthy d
Date is always a problem for those who venture to make programme especially in vb6
There are different ways to represent dates > Two major format are european system(dd/mm/yyyy), american system(mm/dd/yyyy).
So if you tell 911 in america it would mean 11 sept but in europe it would mean 9 Nov.

Due to this lack of uniformity processing is a porblem.

So let us see this problem from a different perspective.
Internal processing in vb6 is done in mmddyyyy format
External display is in system locale or user defined format

When you accept the date it will be correctly interpreted if variable is defined as date. For external representation use of Format commad is required.

If external representation is assigned to string then in conversion process vb will incorrectly interprete the date .
Now nse data is given in dd-mmm-yyyy format. In notepad and word you will see it displayed as given since it will be in text format(string data) In excel it will be represented in your system locale format or user defined format as the variable is date type.

If your system format is ddmmyy leading zero in year will be suppressed. if it is dmyy the leading zeros in date month and year will be suppressed.

options is to check the format of your system or user defined format and then take the string and appropriately format and assign it to date variable which will then correctly interpret it.
API calls for this purpose are

Option Explicit

Public Const DATE_LONGDATE As Long = &H2
Public Const DATE_SHORTDATE As Long = &H1
Public Const LOCALE_SLANGUAGE As Long = &H2 'localized name of language
Public Const LOCALE_SSHORTDATE As Long = &H1F 'short date format string
Public Const LOCALE_SLONGDATE As Long = &H20 'long date format string

Public Declare Function GetThreadLocale Lib "kernel32" () As Long

Public Declare Function GetSystemDefaultLCID Lib "kernel32" () As Long
Public Declare Function GetUserDefaultLCID Lib "kernel32" () As Long


Public Declare Function GetLocaleInfo Lib "kernel32" _
Alias "GetLocaleInfoA" _
(ByVal Locale As Long, _
ByVal LCType As Long, _
ByVal lpLCData As String, _
ByVal cchData As Long) As Long

Public Declare Function EnumDateFormats Lib "kernel32" _
Alias "EnumDateFormatsA" _
(ByVal lpDateFmtEnumProc As Long, _
ByVal Locale As Long, _
ByVal dwFlags As Long) As Long

Hope this will help you
Pankaj
Reply With Quote
  #89  
Old 10th April 2006, 02:59 PM
Member
 
Join Date: Mar 2005
Location: India
Posts: 1,805
Thanks: 104
Thanked 115 Times in 73 Posts
pkjha30 has a spectacular aura aboutpkjha30 has a spectacular aura about
Reputation: 186
Default Re: EOD Download/ Convert from NSE and BSE

Hi Debraj and saritguha
I could not pm you as it does not seems to be enabled. If you give email I will send next version before I upload it to the briefcase for others
Pankaj
Reply With Quote
  #90  
Old 10th April 2006, 03:46 PM
Member
 
Join Date: Aug 2004
Posts: 120
Thanks: 0
Thanked 2 Times in 2 Posts
Debraj is on a distinguished road
Reputation: 22
Default Re: EOD Download/ Convert from NSE and BSE

Hi Pankaj,

I have sent my email address to your gmail account.

Can hardly wait to try out the new version.

Warm regards,

Debraj
Reply With Quote
Sponsored Links

Reply

Bookmarks


Advertise Here


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads for: EOD Download/ Convert from NSE and BSE
Thread Thread Starter Forum Replies Last Post
Download EOD & Historical Data From Here .... debdas Data Feeds 139 17th November 2008 07:59 PM
Convert Yahoo .CSV file to Metastock format saritguha MetaStock 14 15th May 2008 08:38 PM
How to get realtime data and convert it to metastock format alexonias Data Feeds 21 15th April 2008 11:48 AM
How to convert NSE indices CSV files to MS format saritguha End of Day 2 21st March 2006 12:34 PM
data download a_n_i_l Software 9 25th May 2005 09:17 AM


All times are GMT +5.5. The time now is 04:49 PM.

Indemnity, Disclaimer & Disclosure Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum Rules Disclaimer & Disclosure and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum.
Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Copyright © 2001 - 2008, Traderji.com All Rights Reserved.

Recommended Websites - www.TradersEdgeIndia.com - www.TradingPicks.com - www.MasterOfTrading.com