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

RE: [amibroker] Date for last avilable data



PureBytes Links

Trading Reference Links



The following code correctly identifies the the beginning and ending data dates for the active symbols. It uses the same beginning and ending date for all other sysmbols. Do you know why? TIA

 

FirstDataDate = BeginValue( DateTime() );
LastDataDate =
EndValue( DateTime() );
_TRACE(Name() + " FirstDataDate: " + WriteVal( FirstDataDate , formatDateTime ) + " LastDataDate: " + WriteVal( LastDataDate, formatDateTime ));

AddColumn(FirstDataDate, "FirstDataDate", formatDateTime );
AddColumn(LastDataDate, "LastDataDate", formatDateTime );

Filter =
1;

 

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of ta
Sent: Monday, November 02, 2009 2:58 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Date for last avilable data

 

 

I am trying to run an explore to find the first and last dates that I have data for all the symbols in my eod database. I have struggled with it quite a bit. How would you suggest I should go about solving this problem. TIA

 

d = DateNum();
LastDataDate = ValueWhen(LastValue(BarIndex()), d);

AddColumn(LastDataDate, "LastDataDate", formatDateTime );

Filter = 1;



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___