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

[amibroker] DateTime() in Exploration Column



PureBytes Links

Trading Reference Links

Hi,

I'm running the following AFL to Explore the Range of 7/1/2006 
through 7/14/2006 against a single symbol, IBM-5159:

  SetOption("NoDefaultColumns",True);

  Filter = True;

  AddColumn(DateTime(),"Date / Time",formatDateTime);
  AddTextColumn(Name(),"Symbol");
  AddTextColumn(NumToStr(DateTime(),formatDateTime)+"_"+Name(),"Key");


The Exploration output is:

Date / Time	Symbol	        Key	
7/3/2006	IBM-5159	7/14/2006_IBM-5159	
7/5/2006	IBM-5159	7/14/2006_IBM-5159	
7/6/2006	IBM-5159	7/14/2006_IBM-5159	
7/7/2006	IBM-5159	7/14/2006_IBM-5159	
7/10/2006	IBM-5159	7/14/2006_IBM-5159	
7/11/2006	IBM-5159	7/14/2006_IBM-5159	
7/12/2006	IBM-5159	7/14/2006_IBM-5159	
7/13/2006	IBM-5159	7/14/2006_IBM-5159	
7/14/2006	IBM-5159	7/14/2006_IBM-5159	


Why doesn't the DateTime() portion of the "Key" column vary as it 
does in the first column, "Date / Time"?

What alternative should I use to generate a unique key that combines 
date and symbol in an Exploration?


Thanks,
David Weilmuenster
San Jose, CA




Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.11/542 - Release Date: 11/20/2006