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

Re: [amibroker] How do I write to an external file?



PureBytes Links

Trading Reference Links

Howard,

I belive that Salil has written freeware plugin for that.
It is available from files area in the amibroker-dll group
(http://www.egroups.com/messages/amibroker-dll)


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Howard Bandy" <howardbandy@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Cc: <howardbandy@xxxxxxxxx>
Sent: Saturday, October 18, 2003 10:44 PM
Subject: [amibroker] How do I write to an external file?


> Greetings --
> 
> I would like to set up some tests within afl and write selected information
> from selected tests to an ASCII file.  What is the best way to do this?  Are
> there native afl functions or 3rd party plugin dlls?
> 
> I've searched help files and archives but haven't found much that was
> helpful.
> 
> Simple pseudocode (hopefully self explanatory) example:
> 
> // desired functionality
> 
> Filename = "C:\AmiBrokerTests\October18Runs.csv";
> FileOpen (Filename, Mode = append);
> 
> Done = 0;
> For (i=0; Done==0; i++)
> {
> .....
> metric = a + b;
> if (metric >= 100)
> {
> append (Filename, "test number: " + I + " metric: " +
> metric);
> }
> if (sometest)
> {
> Done = 1;
> FileClose (Filename);
> }
> }
> 
> // end of code
> 
> Thanks,
> Howard
> 
> 
> 
> 
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
> 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/