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

Notification

Icon
Error

Options
Go to last post Go to first unread
Willie  
#1 Posted : Tuesday, February 7, 2006 1:42:21 AM(UTC)
Willie

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/3/2005(UTC)
Posts: 5
Location: Atlanta

I'm slightly confused on this one. On page 81 of the Formula Prime, the last two sentences state: BarSince(C>40) [color=blue:27ce01d883]This returns the number of periods that have passed since the closing price was greater than 40. If this is currently true, it will return a 0.[/color] My question is, does it return an INTEGER (number of periods that have passed) or does it return a BOOLEAN (If this is currently true, it will return a 0). Willie
weird  
#2 Posted : Tuesday, February 7, 2006 3:09:08 AM(UTC)
weird

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 8/3/2005(UTC)
Posts: 40

Hi Willie, it is the integer value of the number of bars, and as stated if it is currently true on that bar, then the value will be 0, as the event is 0 bars away. regards Dave
hayseed  
#3 Posted : Tuesday, February 7, 2006 3:17:38 AM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey willie.... i'm not lookin at the primer now but "barssince(c>40)" will return the number of days since the security closed above 40 bucks providing its less than 40 today.... so 'adbe' would list 2 and 'adsk' would be 3 , 'amat' would be 1348 and so on.... that will be for securites that are today below 40...... for securities that are above 40 today it will list '0'.... it seems odd till you study on it abit...... or at least it did to me.....h
Willie  
#4 Posted : Wednesday, February 8, 2006 12:53:37 AM(UTC)
Willie

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/3/2005(UTC)
Posts: 5
Location: Atlanta

Thanks. It makes sense now. Willie
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.