Many thanks. It is clear one should use the on-line (and uptodate) AFL reference vs the 4.70 help file reference. The 4.80 must have all the AFL reserved commands in it now, including the DateTimeToStr one. Scrolling thru the 266 Functions is mind boggling.
Ken -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Janeczko Sent: Friday, April 14, 2006 4:00 PM To: [email protected] Subject: Re: [amibroker] Display Date of First Bar Hello, There is quicker and faster method: dt = DateTime(); FirstDateStr = DateTimeToStr( dt[ 0 ] ); Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "Ken Close" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, April 14, 2006 9:51 PM Subject: RE: [amibroker] Display Date of First Bar > So sweet. Worked perfectly. > > Many thanks, > > Ken > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf > Of cstrader232 > Sent: Friday, April 14, 2006 2:08 PM > To: [email protected] > Subject: Re: [amibroker] Display Date of First Bar > > Ken. Try something like this: > > MonthWanted = ValueWhen(Cum(1)-1 ==0, Month()); > > DayWanted = ValueWhen(Cum(1)-1 ==0, Day()); > > YearWanted = ValueWhen(Cum(1)-1 ==0, Year()); > > Datewanted = NumToStr(Monthwanted,1.0) +"-"+ NumToStr(DayWanted,1.0) +"-"+ > NumToStr(Yearwanted,4.0,0); > > > > > > ----- Original Message ----- > From: "Ken Close" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Friday, April 14, 2006 1:40 PM > Subject: [amibroker] Display Date of First Bar > > >>I want to run an explore on a watchlist of funds. The lengths of the data >> series vary for each fund. I would like to display a column showing the >> date of the first day of data for the fund. I have tried several >> combinations of BeginValue(BarIndex()) equal to things like cum(1)-1 and >> cannot get anything to work. I guess I need to display the date when >> cum(1)-1 == 0, but how to do it and have it appear in mm/dd/yyyy format? >> >> Any suggestions? >> >> Thanks, >> >> Ken >> >> -- >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.1.385 / Virus Database: 268.4.1/311 - Release Date: 4/13/2006 >> >> >> >> >> Please note that this group is for discussion between users only. >> >> To get support from AmiBroker please send an e-mail directly to >> SUPPORT {at} amibroker.com >> >> For other support material please check also: >> http://www.amibroker.com/support.html >> >> >> Yahoo! Groups Links >> >> >> >> >> >> > > > > Please note that this group is for discussion between users only. > > To get support from AmiBroker please send an e-mail directly to > SUPPORT {at} amibroker.com > > For other support material please check also: > http://www.amibroker.com/support.html > > > Yahoo! Groups Links > > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.4.1/311 - Release Date: 4/13/2006 > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.4.1/311 - Release Date: 4/13/2006 > > > > > Please note that this group is for discussion between users only. > > To get support from AmiBroker please send an e-mail directly to > SUPPORT {at} amibroker.com > > For other support material please check also: > http://www.amibroker.com/support.html > > > Yahoo! Groups Links > > > > > > > Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/311 - Release Date: 4/13/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/311 - Release Date: 4/13/2006 ------------------------ Yahoo! Groups Sponsor --------------------~--> GFT Forex Trading Accounts As low as $250 with up to 400:1 Leverage. Free Demo. http://us.click.yahoo.com/lpv1TA/jlQNAA/U1CZAA/GHeqlB/TM --------------------------------------------------------------------~-> Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
