[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EquisMetaStock Group] Re: Sum of Volume



PureBytes Links

Trading Reference Links

Try something like this.


pds: =20;
upday:=if(c>Ref(c,-1),V,0);
dnday:=if(c<Ref(c,-1,V,0);

upvol:=sum(upday,pds);
dnvol:=sum(dnday,pds);


The above defines an upday as today's close above yesterday's.  If you 
define it as today's close above today's open, then change to
upday:=if(c>o,V,0);   etc.

This should do it for you.


Tom

----- Original Message ----- 
From: "c_cruizer" <no_reply@xxxxxxxxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Sunday, January 30, 2005 8:19 PM
Subject: [EquisMetaStock Group] Re: Sum of Volume


>
>
> Thanks Preston, but that also is not what I'm trying to do. The
> challenge is to sum up the values during a period of time for those
> values that only occur on a closing up tick (or down tick).
>
> I don't know if this will show correctly, but this is what I'm trying
> to do.
>
> day 1 - 7                                     total
> upvol    79       88      41    50        258  up
> downvol      94  55      42       191  down
>                                              449
>
>
> day 2 - 8
>
> upvol         88      41    50        179  up
> downvol      94  55      42            86     277  down
>                                              456
>
> upvol plot day 7 = 258
> upvol plot day 8 = 179
>
> I would then either plot the upvol or use it in other formulas.
>
> In the Perl programming language, it's not too difficult to write.
> But the MetaStock language isn't as flexable. (At least not for me.)
>
> --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx> wrote:
>>
>> Would this help?
>>
>> {RSI Volume}
>> pds:=Input("periods",1,500,5);
>> RSI(VOLUME,pds)
>>
>> Preston
>>
>>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
> 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/