logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
ThrushCreek  
#1 Posted : Monday, March 24, 2008 10:41:55 AM(UTC)
ThrushCreek

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/28/2004(UTC)
Posts: 9
Location: Boise ID

when running the MSFL_UpdateSecurity function I receive an error:

-100: MSFL_ERR_INVALID_FUNCTION_CALL

The MSFL DLL is not initialized correctly to perform the request function call.

Refer to the “Initialization” section (page 86) for details on initializing the

MSFL DLL.

The initialization works for reading data. Is there something extra that needs to be done when modifying a security? I am trying change security names from Quotecenter format to Reuters.



wabbit  
#2 Posted : Monday, March 24, 2008 6:03:44 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
I will take a guess and suggest the invalid function call is because you only have the READ version of the MDK, not the READ/WRITE version which would be required to update securities? Equis were very careful to whom the R/W version was distributed, and unless specifically requested and paid for through their licencing policy, most users will only have the READ version of the MDK. If you have the R/W version, then check the results of the record locking to ensure the required record locking is Full or Write; if PRevent Write then you will not be able to amend the record, but I would think the error message would be different?

Hope this helps.


wabbit [:D]
Branden Russell  
#3 Posted : Tuesday, March 25, 2008 7:56:27 AM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

Correct, you'll get that message when you try to use a write method (such as update) if you haven't initialized the read/write version (meaning you have the read only version). With the read only version, you can't make any changes at all to the security. You're only able to read the information from the security.

Wabbit is also correct about we almost never sell the read/write version and then only in special circumstances.
ThrushCreek  
#4 Posted : Thursday, March 27, 2008 2:39:19 PM(UTC)
ThrushCreek

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/28/2004(UTC)
Posts: 9
Location: Boise ID

Thanks,

That is the problem. I made an attempt to get the write version and was turned down even with agreeing to sign any agreement they wanted that stipulated it was for personal use only.

I don't understand their reluctance to give me write capabilities and it leaves me with a resentment towards Metastock.

Branden Russell  
#5 Posted : Thursday, March 27, 2008 2:54:16 PM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

I understand your resentment and frustration. We used to sell both versions to anyone. However, due to the small number of people that actually need the read/write version and the big problem of it getting pirated a lot, it was decided to rarely, if ever, sell it. There may have also been other factors, I'm not sure since I wasn't involved in the decision, but that's about what it seemed to me.
ThrushCreek  
#6 Posted : Thursday, March 27, 2008 3:46:48 PM(UTC)
ThrushCreek

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/28/2004(UTC)
Posts: 9
Location: Boise ID

thanks for the explanation.

I will see if I can come up with some other approach short of manually going through folder by folder, but that may be the only way.

Branden Russell  
#7 Posted : Thursday, March 27, 2008 3:54:07 PM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

What is it that you're trying to accomplish? Maybe someone here on the forum can suggest a way to do it.
ThrushCreek  
#8 Posted : Thursday, March 27, 2008 4:59:35 PM(UTC)
ThrushCreek

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/28/2004(UTC)
Posts: 9
Location: Boise ID

Convert security files created for QC for use with the Reuters data feed. I need to remove the us; or ca; from the symbol name and change the number of zeros in the volume data. One example is I have set up my own files for the IBD 197 groups. I have done it once and don't particularly want to do it again.
Branden Russell  
#9 Posted : Friday, March 28, 2008 7:29:18 AM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

I'm sorry, you did mention that in your first post. I think I've written a utility that'll do that for you. I at least tried to set time to do that a while back. Let me look for the utility in a little bit and I'll see if I can find it for you. If not, maybe I can find some spare time this weekend to write you one.
Branden Russell  
#10 Posted : Friday, March 28, 2008 7:30:38 AM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

If I do have a utility that does the symbol change, I know it doesn't change any of the data. What needs to change with the zeros in the volume?
Justin  
#11 Posted : Friday, March 28, 2008 9:12:32 AM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

Reuters DataLink data collected via the DownLoader (not Data on Demand) truncates the last 2 digits from the volume, whereas data collected from QuoteCenter does not.
Branden Russell  
#12 Posted : Friday, March 28, 2008 9:41:57 AM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

I'm sorry, it's a very busy day today here at work. I'll have to see if I have some free time over the weekend to write you a utility. It doesn't look like I can find one.
stocktrader8  
#13 Posted : Friday, March 28, 2008 2:58:36 PM(UTC)
stocktrader8

Rank: Member

Groups: Registered, Registered Users
Joined: 3/28/2008(UTC)
Posts: 10

I've been using the following library to read/write Metastock data:
http://www.trading-tools.com/metalib.htm

It works very well - I use it in Visual Basic (which is impossible in the MDK too)

John.

Branden Russell  
#14 Posted : Friday, March 28, 2008 3:14:56 PM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

stocktrader8 wrote:
I've been using the following library to read/write Metastock data:link removed
It works very well - I use it in Visual Basic (which is impossible in the MDK too)

John.

That is incorrect. The MDK will work just fine with VB. VB is not capable of compiling a Win32 DLL, so it is not able to build an MSX DLL. You can use VB to write an MSFL program though, since it can compile an .exe. You can use many languages with the MDK, they just have to compile a Win32 DLL if you wish to write an MSX DLL with it.
ThrushCreek  
#15 Posted : Friday, March 28, 2008 3:33:35 PM(UTC)
ThrushCreek

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/28/2004(UTC)
Posts: 9
Location: Boise ID

Thanks John,

I was just going to ask about that. I ran across it while searching for alternative approaches. I have downloaded the trial version and it looks pretty straight forward. It costs about what I paid for the mdk and the write functions aren't disabled!!

I was also considering working on the metastock files directly. the master, emaster, and fx.dat.

Mike

stocktrader8  
#16 Posted : Friday, March 28, 2008 3:54:18 PM(UTC)
stocktrader8

Rank: Member

Groups: Registered, Registered Users
Joined: 3/28/2008(UTC)
Posts: 10

Please note: this post has been edited by the EIOC forum administrator. The original message/information was restored.

In my internet search travels I've found the following resources on the metastock file format:

Metastock v6.52 format (2000 securities per folder)
http://www.purebytes.com/archives/metastock/2001/msg04890.html

Description of the old 255 securities per folder format and C file headers:
http://tinyurl.com/2wytyu

http://sourceforge.net/projects/meta-all

Here are some modules for reading/writing in Perl:
http://www.geniustrader.org/

In Java:
http://sourceforge.net/projects/javastock/

Another free library in development here:
http://sourceforge.net/projects/mstockfl/
(includes a PDF file describing the format)

Another free one here:
http://sourceforge.net/projects/ezmetastocklib/

Two sets of descriptions of the Metastock file format here:
http://www.wotsit.org/list.asp?al=M

Branden Russell  
#17 Posted : Monday, March 31, 2008 3:32:50 PM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

This might help you out with some of what you're trying to do. If you provide it a CSV file with the symbol to change and the symbol to change it to, it'll go through the folders and change all the symbols it finds. It's not quite what you're after, but will do some of the job.
File Attachment(s):
MS Symbol Changer.exe (196kb) downloaded 0 time(s).
ThrushCreek  
#18 Posted : Monday, March 31, 2008 3:44:53 PM(UTC)
ThrushCreek

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/28/2004(UTC)
Posts: 9
Location: Boise ID

Thanks Branden but that still looks like too much work.

I was able to update the symbols by working directly on the Master file. It was a bit of a workout but I can now work directly on the emaster, master and data files.

However, after changing the symbols to Reuters compatibility, when I run the downloader to update my security data I get an Invalid date error. Is it possible that Quotecenter downloads a different date structure or some such thing?

I am still curious about why Equis does not release the write functions. Metastock is prirated and they don't stop selling Metastock.

Thanks

Branden Russell  
#19 Posted : Monday, March 31, 2008 3:57:49 PM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

The idea is that you're not supposed to work directly with those files. I think it's in the license agreement that you agreed to that you won't do that. I cannot support you with doing so. Generally, when you're reverse engineering things, you're doing so illegally. I'll answer the question, since you do have the MDK and the question is a valid MDK question that if you read the manual, you could find out. No, the date structure is identical between vendors. Again, I'm not sure to the exact reason why we stopped selling the read/write version of the MDK. Pirating was just a guess. Most people, if they use MSFL at all, only use it to read some extra data for their MSX DLL. Not a reason in itself not to sell the read/write version, just a bit of justification.
ThrushCreek  
#20 Posted : Monday, March 31, 2008 11:32:23 PM(UTC)
ThrushCreek

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/28/2004(UTC)
Posts: 9
Location: Boise ID

Sorry, the date problem had to do with the Canadian securities. They are not as straight forward as the us securities which just need the us; removed. The Canadian need a .TO appended and in some cases even the symbol is slightly different. I also notice that Reuters data link is case sensitive for the downloader but not for Metastock. This is just an fyi as it doesn't have much to do with the mdk.
Users browsing this topic
Guest (Hidden)
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.