PureBytes Links
Trading Reference Links
|
j seed writes:
> Wish I could vouch for the accuracy of the formula but I can't. I do
> think that the use of the "If" statement eliminates the need for
> additional parentheses. Try it both ways and see if it makes a
> difference.
I think he means arithmetically.
> > > > {Time Segmented Volume}
> > > > {TSV..plot with MA of 9}
> > > > (Sum(If( C, >,Ref(C,-1), +V*C-Ref(C,-1),
> > > > If(C,<,Ref(C,-1),-V*C-Ref(C,-1),0)),18{18}))
> >
As written, -V*C-Ref(c, -1) would (in every other system I've seen)
mean:
(-V * C) - Ref(C, -1)
whereas what is probably meant is
-V * (C - Ref(C, -1))
since "*" binds tighter than "-".
|