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

Notification

Icon
Error

Options
Go to last post Go to first unread
metaken  
#1 Posted : Tuesday, March 3, 2009 7:59:38 AM(UTC)
metaken

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/3/2009(UTC)
Posts: 2

when I use the return of Barssince as the period input parameter of Sum function, it promt me a error like that: --> This variable or expression must contain only constant data.

I don't know why.......

the code example:

x1:=Barssince(C>O);
Sum(C=L,x1)>0

error occur....

thx a lot!!

metaken
minnamor  
#2 Posted : Tuesday, March 3, 2009 8:56:46 AM(UTC)
minnamor

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 126
Location: Italy

Use the sum function distributed with the free ASI ddl
joetrade69  
#3 Posted : Friday, March 13, 2009 4:10:30 PM(UTC)
joetrade69

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 121

You can often get around this message using the following logic where the number of periods is entered:

lastvalue(x1 +Prev -Prev)
mstt  
#4 Posted : Sunday, March 15, 2009 2:55:39 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)

The Sum function from this sites Forum DLL will also work with variable data.

Roy

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.