Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,971
Thanks: 94 times Was thanked: 156 time(s) in 151 post(s)
|
Originally Posted by: Perty  There's a pretty good template of code to work from in the MS User Manual for OBV: modify it to suit your needs. If you get stuck, post your best attempt here and someone will assist you to correct it.
Hi Wabbit, Can you post a link to download the MS User Manual.# The one I have only has the formula, no template.
Thanks.
We do have an example indicator called "O.B.V. Good example of if() func"
Code:Cum(
If( C, >, Ref(C,-1), +V,
If( C, <, Ref(C,-1), -V, 0) )
)
Essentially you should be able to replace the two IF conditions C, >, Ref(C,-1) and C, <, Ref(C,-1) with your own criteria, such as using a ROC of the price values you want.
|
 1 user thanked MS Support for this useful post.
|
|