PureBytes Links
Trading Reference Links
|
--- In amibroker@xxxxxxxxxxxxxxx, "Chuck" <cstangor232@xxxx> wrote:
>
> I'd like to read data from an external data file into my charts.
Chuck,
I use the following code. It may work for you.
//##### Include File #####\\
//##### Zacks Earnings Date #####\\
//##### 9/24/05 #####\\
//##### Data must be downloaded from Zacks #####\\
//##### and placed in a .csv file for access #####\\
FileString = Null;
EarningsDate = "N/A";
fh = fopen("C:\\Program Files\\AmiBroker\\My Misc Files\\Zacks
Earnings Dates.csv","r");
if (fh)
{//1
while(!feof(fh))
{//2
FileString = fgets(fh);
if (StrExtract(FileString,0) == Name())
{//3
EarningsDate = StrLeft(StrExtract(FileString,1),8);
}//3
}//2
fclose(fh);
}//1
I also import numerical data using dummy tickers from a .csv file
maintained in Excel. Ii is imported using File/Import ASCII.
Regards,
Tony
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/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:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|