PureBytes Links
Trading Reference Links
|
Pablo, try this:
---8<-------------------------
{Normalized OBV-type indicator}
{ http://users.bigpond.com/prominex/pegasus.htm }
pds:=
Input("normalizing periods (1=none)",1,2520,1);
x:=If(C<Ref(C,-1),-V,If(C>Ref(C,-1),V,0));
xnorm:=(x-LLV(x,pds))/(HHV(x,pds)-LLV(x,pds)
+.000001)*100;
xnorm:=If(pds=1,x,xnorm);
avg:=Cum(xnorm)/(Cum(1)-pds);
avg;xnorm
---8<-------------------------
jose '-)
--- In Metastockusers@xxxxxxxxxxxxxxx, "Pablo Paolucci" <micro@xxxx>
wrote:
> Hi,
>
> the idea of the formula its to calculate the positive volume and the
> negative volume tick by tick, comparing the current valur to the
> previous.
>
> So, if the current its bigger or equal to the previus,
> its + or if its lower or equal its -
>
> Now i have problems to make the calculations use a single day
> (including the previous close), in a manner that will give a
> single value per day to make an oscilator.
>
> Any suggestions?
>
> so far the formulas im using are:
>
> v-
>
> If(C<=Ref(C,-1),-V,0)
>
> v+
>
> If(C>=Ref(C,-1),+V,0)
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
<*> To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|