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: [email protected] [mailto:[email protected]] On Behalf
Of ta
Sent: Monday, November 02, 2009 2:58 PM
To: [email protected]
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;



Reply via email to