PureBytes Links
Trading Reference Links
|
All off-the-cuff stuff, but try the following
----8<----
nn := Input("Number of days",1,9999,100);
mm := Inputs("Plot ups (1) or downs (0)",0,1,1);
UPS := Sum(C>Ref(C,-1),nn);
DOWNS := Sum(C<Ref(C,-1),nn);
UPS*mm+DOWNS*(1-mm)
----8<----
Regards
MG Ferreira
TsaTsa EOD Programmer and trading model builder
http://www.ferra4models.com
http://fun.ferra4models.com
--- In equismetastock@xxxxxxxxxxxxxxx, "cbfrish" <cbfrish@xxxx> wrote:
> I think this is probably a simple matter for you super-programers,
> and may even already exist, but it would take me days, if not
> weeks, so I'm asking for help.
>
> I'd like to be able to determine the number of times an issue
> closed up (i.e. C>O) over a given period of time (say 10 days
> or 120 days). The user would have the option to put in the
> desired time period and the formula would return the number
> of "DaysUP".
>
> Would anyone be willing to write the formula or help point me
> in the right direction?
>
> I'd also like to do "DaysDOWN", which I guess would just be C<O.
>
> Thanks in advance.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/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/
|