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

RE: [amibroker] Date difference



PureBytes Links

Trading Reference Links

MC > -----Original Message-----
MC > From: Anthony Faragasso [mailto:ajf1111@xxxxxxxx]
MC > Sent: Wednesday, October 15, 2003 11:04 PM
MC > To: amibroker@xxxxxxxxxxxxxxx
MC > Subject: Re: [amibroker] Date difference
MC >
MC >
MC > Marek,
MC >
MC > Something like this ?
MC >
MC > startdate=ValueWhen(DateNum()==1010102,Cum(1));
MC > enddate=ValueWhen(DateNum()==1011231 ,Cum(1));
MC > Daysbetween=enddate-startdate;
MC > Filter=1;
MC > AddColumn(Daysbetween,"",1);

thx Anthony, but this very interesting code calculates bars (= trading
days), not calendar days between two dates. I already know how to do it.
Expect the result in the nearest future (as a part of something bigger!!!)

Thanks,
Marek Chlopek


------------------------ 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/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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