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

Notification

Icon
Error

Options
Go to last post Go to first unread
ThomasVN  
#1 Posted : Monday, June 27, 2011 3:35:49 PM(UTC)
ThomasVN

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/23/2011(UTC)
Posts: 2

Hi guys

I'm doing some benchmarking on a selected group of stocks, but it seems that the more stocks I add to the formula the less data my indicator outputs.

This is my current formula:

secVal1 := (
If(Security("ONLINE:DK;CAR.B", C) >= Mov(Security("ONLINE:DK;CAR.B", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;CHRH", C) >= Mov(Security("ONLINE:DK;CHRH", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;NON.B", C) >= Mov(Security("ONLINE:DK;NON.B", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;COL.B", C) >= Mov(Security("ONLINE:DK;COL.B", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;NDN", C) >= Mov(Security("ONLINE:DK;NDN", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;DDB", C) >= Mov(Security("ONLINE:DK;DDB", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;DSV", C) >= Mov(Security("ONLINE:DK;DSV", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;FLS", C) >= Mov(Security("ONLINE:DK;FLS", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;GN", C) >= Mov(Security("ONLINE:DK;GN", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;LUN", C) >= Mov(Security("ONLINE:DK;LUN", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;NKT", C) >= Mov(Security("ONLINE:DK;NKT", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;NON.B", C) >= Mov(Security("ONLINE:DK;NON.B", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;NZYM.B", C) >= Mov(Security("ONLINE:DK;NZYM.B", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;PNDORA", C) >= Mov(Security("ONLINE:DK;PNDORA", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;SSH", C) >= Mov(Security("ONLINE:DK;SSH", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;TEL.B", C) >= Mov(Security("ONLINE:DK;TEL.B", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;TOP", C) >= Mov(Security("ONLINE:DK;TOP", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;TRYG", C) >= Mov(Security("ONLINE:DK;TRYG", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;VWS", C) >= Mov(Security("ONLINE:DK;VWS", C), MALength, S), 1, 0)
+ If(Security("ONLINE:DK;OTI", C) >= Mov(Security("ONLINE:DK;OTI", C), MALength, S), 1, 0));

It only calculates data from march this year, even though all the stocks in the calculation have much more data. Is there some kind of limit on how much data Metastock can hadle?

I want to do this calculation on about 100 stocks at once. Is this aproach the wrong way maybe?

Cheers!
/Thomas
MS Support  
#2 Posted : Wednesday, July 6, 2011 11:33:22 AM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
Actually, DK;CHRH only has data back to June 3, 2010 and DK;PNDORA only goes back to October 5, 2010. Those are the reason your formula does not plot as much as far back as you expected

Also, please note that custom indicators have a limit of about 2450 characters.
ThomasVN  
#3 Posted : Wednesday, July 6, 2011 2:27:05 PM(UTC)
ThomasVN

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/23/2011(UTC)
Posts: 2

Hey MS Support

Thanks, I missed that DK;CHRH didnt have enough data. That solved my problem.
The 2450 character limit, that's in the indicator editor, right?

/Thomas
MS Support  
#4 Posted : Monday, July 18, 2011 3:35:38 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
yes, that is the limit for the indicator builder. the other formula tools only allow about 1250 characters per formula
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.