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)
|
Hayseed, well right now the function simply sums all the close values in the selected folder and divides it by the number of securities in that folder ...
Patrick :mrgreen:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey patrick.... neat..... you have accomplished something i've been studying on for quite some time, the custom index plots the same irregardless of the base securitys last date.....
the index plot is shifted back in time perfectly....
apply the index to a security thats current and to another one that you've erased the last 6 months data and you'll see what i mean.... a useful application in security/index lead/lag relationships.....h
|
|
|
|
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)
|
As posted somewhere else, this is too much work and it is no fun for me so this is the last time I make a dll compatible with a prior version ...
If you have MetaStock 8.0 and want to use the custom index function, download this file ...
Patrick :mrgreen:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
What about v6.5?!!! :P :P :P
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
P, I'm hearing you, but not understanding you. Break it down into Simplese so that I can understand it...
I have it plotting a consistent indicator regardless of whatever security I'm working with... that's good. However, I have no idea about where the value is coming from; for example- using this formula in the indicator builder:
[code:1:75927f1a81]a:=ExtFml("ForumDll.CustomIndex", "C:\\MetaStock Data\\My Trades\ est2");
a;[/code:1:75927f1a81]
All data used contains current closes as of 9/9/5.
If \\\ est2 contains 2 stocks: e.g., APD (close=42.68) and AAPL (close=51.31), then the average close of these 2 stocks should be 46.995. Instead, the CustomIndex function is returning 24.64.
If \\\ est2 contains 1 stock: e.g., GS (close=116.17), then the average close of this 1 stock should be 116.17. Instead, the CustomIndex function is returning 195.10.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Also, I would it be easy to add just a plain summation feature? For example, ExtFml( "ForumDll.CustomIndex", "Path", Method), where if method=1, then sum and method=2, then average.
|
|
|
|
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)
|
G I will check it as soon as I get my [censored]sorted out here ... I'm still dealing with the 9.0 and 8.0 version deal ... Though I might have found an easy way to deal with it in the future ... Thanks for testing it and letting me know the errors you found.
ForumDll.CustomIndex", "Path", Method), where if method=1, then sum and method=2, then average.[/quote wrote:
This should be easy as well as allowing a few data array choices such as close,open, volume etc ...
Patrick :mrgreen
|
|
|
|
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)
|
Found the problem I need to add some start date and end date constraints ....
I will post something else later ...
Patrick :mrgreen:
|
|
|
|
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.