PureBytes Links
Trading Reference Links
|
Because it's a string and AddColumn only works with arrays.
You are stuck with the numeric output. I don't know if you can add
string data to the number. I think not.
--
Terry
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of dweilmuenster95125
Sent: Saturday, November 11, 2006 10:43
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] DateTime() in Exploration Column
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
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
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
|