Rank: Member
Groups: Registered, Registered Users Joined: 10/22/2007(UTC) Posts: 14
|
How can I vary the number of days the OBV() indicator is calculated on?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/6/2010(UTC) Posts: 113 Location: London
|
The Metastock manual gives a way to calculate OBV (thought it might help you):
( If( C > Ref( C, -1), 1, If( C < Ref( C, -1 ), -1, 0 ) ) * VOLUME ) PREV
Be careful though, PREV tends to be slow.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 10/22/2007(UTC) Posts: 14
|
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 6/10/2013(UTC) Posts: 2
|
Hi, Is there a way to compare OBV from today versus a previous period ( one month, two month) in the system scan. I tried using OBV(C) > OBV(c-20) but that threw an error in the function.
|
|
|
|
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)
|
Check out the Ref() function in the User Manual. The correct syntax is...
OBV(C) > Ref(OBV(C),-20);
Roy
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 6/10/2013(UTC) Posts: 2
|
Thanks, I think I had syntax error before.
|
|
|
|
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.