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

RE: [amibroker] Future Date numbers



PureBytes Links

Trading Reference Links

Yes a, I had hoped for a neater solution, I already have about 1000 lines
(not counting the 500 or so in the include file) and was hoping to not
create too many more. 
Dingo, it may be worth me brushing up on the scripts, but been a while since
had to use them. 

Cheers,
Graham
http://groups.msn.com/asxsharetrading
http://groups.msn.com/fmsaustralia 

-----Original Message-----
From: aequalsz [mailto:aequalsz@xxxxxxxxx] 
Sent: Saturday, 6 December 2003 9:04 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Future Date numbers


Could you simply parse the Datenum() number into it's respective parts, ie
day, month, and year.  Then examine the offset number and compare it 
(via if statements) against a table of days versus the months... (30 days
hath September, April, June, and November, etc.) and then determine how many
offset delta months and offset delta days the offset is composed of.
Lastly, just add the delta months and delta days to the original.  That
couldn't be too hard could it?  (I know it's a very brute force approach.)
Anyway that's how I would probably do it if no other way was readily
available.

a
 


------------------------ 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/ 


------------------------ 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/