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

Notification

Icon
Error

2 Pages<12
Options
Go to last post Go to first unread
Patrick  
#21 Posted : Saturday, September 10, 2005 3:27:42 AM(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)
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:
hayseed  
#22 Posted : Saturday, September 10, 2005 4:25:18 AM(UTC)
hayseed

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
Patrick  
#23 Posted : Sunday, September 11, 2005 3:55:00 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)
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:
StorkBite  
#24 Posted : Sunday, September 11, 2005 6:31:28 PM(UTC)
StorkBite

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
StorkBite  
#25 Posted : Sunday, September 11, 2005 11:20:00 PM(UTC)
StorkBite

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.
StorkBite  
#26 Posted : Sunday, September 11, 2005 11:25:31 PM(UTC)
StorkBite

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.
Patrick  
#27 Posted : Monday, September 12, 2005 12:38:58 AM(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)
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
Patrick  
#28 Posted : Monday, September 12, 2005 5:51:40 AM(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)
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)
Similar Topics
Custom Index Function (MetaStock Developer's Kit (MDK) Assistance)
by Patrick 11/30/2005 3:58:31 PM(UTC)
Custom Index Function - Take 2 (cont) ... (MetaStock Developer's Kit (MDK) Assistance)
by hayseed 9/14/2005 3:01:45 AM(UTC)
Continued interest in custom index function [RESOLVED] (Formula Assistance)
by cancerman 8/26/2005 2:43:26 AM(UTC)
2 Pages<12
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.