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

Notification

Icon
Error

Options
Go to last post Go to first unread
kalyan  
#1 Posted : Sunday, December 26, 2010 7:40:33 AM(UTC)
kalyan

Rank: Member

Groups: Registered, Registered Users
Joined: 12/21/2009(UTC)
Posts: 10

Hi, I am using the CUM function to count back the no. of instances ie it is like this, i use 60 minute charts. cum( if(hour()=10.30 , 1,0)) It does not work and I get zero as the answer, any reason for this behaviour? Your help is most welcome Thanks -kalyan
mstt  
#2 Posted : Sunday, December 26, 2010 10:23:14 AM(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)

Hi Kalyan

Hour() returns an integer (never a fraction) so your If() condition is never TRUE. On hourly charts "Hour()=10 AND Minute()=30" would never be TRUE either.

Roy

kalyan  
#3 Posted : Monday, December 27, 2010 12:29:06 AM(UTC)
kalyan

Rank: Member

Groups: Registered, Registered Users
Joined: 12/21/2009(UTC)
Posts: 10

Roy, Thanks a million. It works. Thanks -kalyan
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.