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

Notification

Icon
Error

Options
Go to last post Go to first unread
Capablanca  
#1 Posted : Saturday, October 29, 2005 4:56:52 PM(UTC)
Capablanca

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 10/25/2005(UTC)
Posts: 7

I am only starting to realize how much more the Metastock language can be extended if only more dll files were available. The thing is even with the free ones out there, it's hard for a beginner to figure out how to use them and appreciate the possibilites they provide. In this regard the forum.dll being developed is a great boon. Moreover aside from providing added capabilities, those capabilites are documented! I read there are other Metastock .dll files out there and the gv.dll has been included in the downloads section. I want to know though how am I supposed to use it? What are the functions I can call, what can I use them for, and how do I use them? Is there anywhere I can get instructions on how to use it? Also there are commercial plugins available that come with dll files. Are these documented dll files tools with useful functions that can be used outside of the prepackaged systems or are they a black box and limited to the systems they come with? Which packages give added functionality for the creative developer and which don't?
mstt  
#2 Posted : Saturday, October 29, 2005 5:49:53 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Capablanca There is no for formal user guide for GlobalVar.dll (GV.dll). The dll has just three functions - Clear, SetVar and GetVar. When stored in MetaStock as GlobalVar.dll the syntax for each function is as follows. ExtFml("GlobalVar.Clear") Clears all global variables, and seldom if ever used. ExtFml("GlobalVar.SetVar","Global Variable Name",Expression) Stores data array for expression. This can be a price, MS variable or MS expression etc. ExtFml("GlobalVar.GetVar","Global Variable Name") Retrieves a previously stored global variable. When the dll is stored as GV.dll the syntax is the same but requires less space. ExtFml("GV.Clear") ExtFml("GV.SetVar","Global Variable Name",Expression) ExtFml("GV.GetVar","Global Variable Name") The best examples of usage can be found in the Trade Equity GV formula family. http://www.metastocktips.co.nz/te_formulas.html Hope this helps. mstt (Roy)
Capablanca  
#3 Posted : Saturday, October 29, 2005 8:10:56 PM(UTC)
Capablanca

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 10/25/2005(UTC)
Posts: 7

That's amongt the most impressive Metastock codes I've seen there! Still at a glance I cannot see why the GV.dll is necessary, I'm guessing the advantage is that one can store the variables in a .dll file instead of calling them from an indicator but I guess I'll have to use it to actually understand its finer points. Thank you for the info.
mstt  
#4 Posted : Saturday, October 29, 2005 11:11:41 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Capablanca One reason for using the dll for TE is that it speeds up execution of the explorations by a factor of from 3 to 5. But you're right, the same result can be accomplished without it. GV just makes some things easier and other things possible. Another use for GV might be to create 100 variables, say, that could be used by several explorations. Space then becomes a bigger problem than the number of variables a single formula can create. Yet another use I've put it to is as an accumulator across an exploration - a running total of advances and declines can be generated within the exploration rather than needing to sum the exploration report in Excel or elsewhere. This same principle can be applied (with some restrictions) to generate a portfolio equity-curve from a Trade Equity exploration. In fact the global variables to do just that are already imbedded in the TE GV LE #1 exploration (column A). Roy MSTT
Patrick  
#5 Posted : Sunday, October 30, 2005 5:08:22 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Thanks Capablanca for the compliment ... I hope there will be more and more function made for metastock through dll's ... Currently I believe only a handfull of plug ins have dll functions and most if not all of them do NOT have a manual to explain to use them. The only package that comes to mind right now is the power pivot plug in, which is used in most of Henry's formulae in theformulae collection ... Most plugins though are simply MFL formula ... As far as other dll I did see a random.dll somewhere, forgot where ( Maybe Jose's Website ), but I'm creating a Random function for the ForumDll as well. Also there is a stop loss dll, forgot what it is called but it's there http://www.tradernexus.com
Users browsing this topic
Guest (Hidden)
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.