<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Reading Metastock files</title>
	<atom:link href="http://themech.net/2008/08/reading-metastock-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://themech.net/2008/08/reading-metastock-files/</link>
	<description>Python, software development, stock exchange, C#</description>
	<lastBuildDate>Fri, 20 Jan 2012 10:33:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: mech</title>
		<link>http://themech.net/2008/08/reading-metastock-files/comment-page-1/#comment-41879</link>
		<dc:creator>mech</dc:creator>
		<pubDate>Tue, 27 Sep 2011 09:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=10#comment-41879</guid>
		<description>There is a great open source tool written in C++ that reads Metastock files: https://github.com/rudimeier/atem. It&#039;s very nicely written and has a lot of comments in the code, you can learn a lot from it.</description>
		<content:encoded><![CDATA[<p>There is a great open source tool written in C++ that reads Metastock files: <a href="https://github.com/rudimeier/atem" rel="nofollow">https://github.com/rudimeier/atem</a>. It&#8217;s very nicely written and has a lot of comments in the code, you can learn a lot from it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guru</title>
		<link>http://themech.net/2008/08/reading-metastock-files/comment-page-1/#comment-40365</link>
		<dc:creator>Guru</dc:creator>
		<pubDate>Thu, 15 Sep 2011 01:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=10#comment-40365</guid>
		<description>Any idea how to convert ascii tick information into Metastock 10 format?

I am looking to load real time tick information into Metastock. Any help is appreciated.</description>
		<content:encoded><![CDATA[<p>Any idea how to convert ascii tick information into Metastock 10 format?</p>
<p>I am looking to load real time tick information into Metastock. Any help is appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepesh</title>
		<link>http://themech.net/2008/08/reading-metastock-files/comment-page-1/#comment-35617</link>
		<dc:creator>Deepesh</dc:creator>
		<pubDate>Wed, 27 Jul 2011 12:59:08 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=10#comment-35617</guid>
		<description>Hello,

Did any one was able to get data from master.dat using c#? I am facing many issues and struggling to get the get data. Please let us know if anyone was able to do this?

Thanks,</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Did any one was able to get data from master.dat using c#? I am facing many issues and struggling to get the get data. Please let us know if anyone was able to do this?</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: massimo</title>
		<link>http://themech.net/2008/08/reading-metastock-files/comment-page-1/#comment-16171</link>
		<dc:creator>massimo</dc:creator>
		<pubDate>Tue, 07 Dec 2010 11:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=10#comment-16171</guid>
		<description>hi all,
thank you for your work, it is very useful for many people. I downloaded the compiled utility ms_convert.exe and compared its output with that of Metastock Downloader noting some differences.
It seems ms_convert rounds the numbers to the second decimal, and put 1 instead of 0 for empty fields. Are you awar e of that? Do you have a newer routine or some code that bypass the problem? I can send the compared files if you are interested in... many thanks</description>
		<content:encoded><![CDATA[<p>hi all,<br />
thank you for your work, it is very useful for many people. I downloaded the compiled utility ms_convert.exe and compared its output with that of Metastock Downloader noting some differences.<br />
It seems ms_convert rounds the numbers to the second decimal, and put 1 instead of 0 for empty fields. Are you awar e of that? Do you have a newer routine or some code that bypass the problem? I can send the compared files if you are interested in&#8230; many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacek Marchwicki</title>
		<link>http://themech.net/2008/08/reading-metastock-files/comment-page-1/#comment-9667</link>
		<dc:creator>Jacek Marchwicki</dc:creator>
		<pubDate>Tue, 27 Jul 2010 16:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=10#comment-9667</guid>
		<description>I had to do following changes because python reads one more line from some files:
--- a/metastock/files.py
+++ b/metastock/files.py
@@ -43,9 +43,10 @@ class DataFileInfo(object):
         file_handle = open(filename, &#039;r&#039;)
         lines = file_handle.read().split()
         file_handle.close()
-        assert(len(lines) == self.num_fields)
+        assert(len(lines) &gt; self.num_fields)^M
         self.columns = []
-        for line in lines:
+        for position in range(self.num_fields):^M
+            line = lines[position]^M
             match = self.reg.search(line)
             colname = match.groups()[0]
             self.columns.append(colname)</description>
		<content:encoded><![CDATA[<p>I had to do following changes because python reads one more line from some files:<br />
&#8212; a/metastock/files.py<br />
+++ b/metastock/files.py<br />
@@ -43,9 +43,10 @@ class DataFileInfo(object):<br />
         file_handle = open(filename, &#8216;r&#8217;)<br />
         lines = file_handle.read().split()<br />
         file_handle.close()<br />
-        assert(len(lines) == self.num_fields)<br />
+        assert(len(lines) &gt; self.num_fields)^M<br />
         self.columns = []<br />
-        for line in lines:<br />
+        for position in range(self.num_fields):^M<br />
+            line = lines[position]^M<br />
             match = self.reg.search(line)<br />
             colname = match.groups()[0]<br />
             self.columns.append(colname)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samri</title>
		<link>http://themech.net/2008/08/reading-metastock-files/comment-page-1/#comment-9069</link>
		<dc:creator>Samri</dc:creator>
		<pubDate>Thu, 24 Jun 2010 19:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=10#comment-9069</guid>
		<description>Hello, mech.
I&#039;ve just downloaded your source code from github. It&#039;s producing an error but no sweat, I&#039;ll go through the python code and see what&#039;s going wrong.
Meanwhile, I do want to thank you, and ask Narendra if he would be kind enough to post his source code for writing operations. I got the .exe off the kakup website but can&#039;t find an address for him there (didn&#039;t want to use the contact-at address in case it goes to the wrong person).</description>
		<content:encoded><![CDATA[<p>Hello, mech.<br />
I&#8217;ve just downloaded your source code from github. It&#8217;s producing an error but no sweat, I&#8217;ll go through the python code and see what&#8217;s going wrong.<br />
Meanwhile, I do want to thank you, and ask Narendra if he would be kind enough to post his source code for writing operations. I got the .exe off the kakup website but can&#8217;t find an address for him there (didn&#8217;t want to use the contact-at address in case it goes to the wrong person).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mech</title>
		<link>http://themech.net/2008/08/reading-metastock-files/comment-page-1/#comment-8905</link>
		<dc:creator>mech</dc:creator>
		<pubDate>Mon, 14 Jun 2010 17:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=10#comment-8905</guid>
		<description>Gabriel,
narendra (you can read his comment above) created a tool that reads XMASTER files and does many other things. I suggest contacting him or checking his website (http://www.kakup.com/)</description>
		<content:encoded><![CDATA[<p>Gabriel,<br />
narendra (you can read his comment above) created a tool that reads XMASTER files and does many other things. I suggest contacting him or checking his website (<a href="http://www.kakup.com/" rel="nofollow">http://www.kakup.com/</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://themech.net/2008/08/reading-metastock-files/comment-page-1/#comment-8810</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Mon, 07 Jun 2010 19:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=10#comment-8810</guid>
		<description>Hi, I used it but only could read the sysmbols that are in master data. there are many on XMASTER. how can I extract the ohter symbols ? is it possible ? tks regards</description>
		<content:encoded><![CDATA[<p>Hi, I used it but only could read the sysmbols that are in master data. there are many on XMASTER. how can I extract the ohter symbols ? is it possible ? tks regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mech</title>
		<link>http://themech.net/2008/08/reading-metastock-files/comment-page-1/#comment-7535</link>
		<dc:creator>mech</dc:creator>
		<pubDate>Mon, 01 Mar 2010 20:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=10#comment-7535</guid>
		<description>narendra,
This blog entry is quite old. I just needed to read the Metastock quotations and convert it to other format. As there was very little information on the web about Metastock file format and MBF, I thought I would share this knowledge. 
As you&#039;ve noticed, it&#039;s just a starting point for reading metastock files, there are a lot of topics not covered here.

I&#039;m impressed with the functionality you&#039;ve added and I&#039;m interested to see the details :) I&#039;m also glad you want to share this with others. The best way I think is to put your source code on some public source code hosting server (like github). If you would simply like to update my project on github, I can grant to you the necessary privileges.</description>
		<content:encoded><![CDATA[<p>narendra,<br />
This blog entry is quite old. I just needed to read the Metastock quotations and convert it to other format. As there was very little information on the web about Metastock file format and MBF, I thought I would share this knowledge.<br />
As you&#8217;ve noticed, it&#8217;s just a starting point for reading metastock files, there are a lot of topics not covered here.</p>
<p>I&#8217;m impressed with the functionality you&#8217;ve added and I&#8217;m interested to see the details :) I&#8217;m also glad you want to share this with others. The best way I think is to put your source code on some public source code hosting server (like github). If you would simply like to update my project on github, I can grant to you the necessary privileges.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: narendra</title>
		<link>http://themech.net/2008/08/reading-metastock-files/comment-page-1/#comment-7345</link>
		<dc:creator>narendra</dc:creator>
		<pubDate>Fri, 19 Feb 2010 11:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=10#comment-7345</guid>
		<description>Not sure whether this is still active or not.

Just wanted to update on same topic that recently, I used some of your code to perform read and write operations on latest metastock format files.

developed in python, I used mbs2Ieee, float2date function of yours and developed reverse functions. Implemented writing and merging functionality as well. Its working fine.

I looked at your repository, not sure why the activity stopped. if anybody interested in extending it, i&#039;m ready to give my code.

My code performs read, write, merge oprations on Master, EMaster, XMaster and data files (DAT, MWD).

If anybody interested, mail to narendra.kamma at gmail dot com</description>
		<content:encoded><![CDATA[<p>Not sure whether this is still active or not.</p>
<p>Just wanted to update on same topic that recently, I used some of your code to perform read and write operations on latest metastock format files.</p>
<p>developed in python, I used mbs2Ieee, float2date function of yours and developed reverse functions. Implemented writing and merging functionality as well. Its working fine.</p>
<p>I looked at your repository, not sure why the activity stopped. if anybody interested in extending it, i&#8217;m ready to give my code.</p>
<p>My code performs read, write, merge oprations on Master, EMaster, XMaster and data files (DAT, MWD).</p>
<p>If anybody interested, mail to narendra.kamma at gmail dot com</p>
]]></content:encoded>
	</item>
</channel>
</rss>

