Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 6/23/2006(UTC) Posts: 2
|
I'm familiar with the usage of the ref function as described in the manual e.g. ref (close,-12).
However, I've encounterted this in Metastock's Bollinger expert: ref(c>bbandtop(),-1).
Can anyone explain in English terms what it means? I'm guessing it checks if c>bbandtop in the previous period, but I'm not sure.
Thanks!
|
|
|
|
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)
|
Owen
Your guess is correct. Both "C" and "BBBandTop()" are enclosed by Ref(,-1) so both expressions relate to the previous bar.
Roy
MetaStock Tips & Tools
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 6/23/2006(UTC) Posts: 2
|
|
|
|
|
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.