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

[Metastockusers] Re: First close formula



PureBytes Links

Trading Reference Links

Richard, if you just want the first Close of any chart:
ValueWhen(1,Cum(1)=1,C)

If you'd like all first Close synchronized to a standard date:

---8<--------------------------

StDay:=Input("start Day",1,31,1);
StMnth:=Input("start Month",1,12,1);
StYear:=Input("start Year",1800,2200,2003);

today:=Year()+Month()/12+DayOfMonth()/373;
stInput:=StYear+StMnth/12+StDay/373;
start:=stInput>Ref(today,-1) AND stInput<=today;
FirstClose:=ValueWhen(1,start,C);
FirstClose

---8<--------------------------

jose '-)


--- In Metastockusers@xxxxxxxxxxxxxxx, Richard <web.rd@xxxx> wrote:
> Hello,
>    I've been looking for a couple of days for any tips which could
> help me to find a way to "select" the first close of a security in
> order to create a personal indicator.
>    The matter is that all securities doesn't start at the same time.
>      Any help would be greatly appreciated.
> 
> Richard



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/zMEolB/TM
---------------------------------------------------------------------~->

 
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/