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

[amibroker] Re: Data import automation - Is this doable ?



PureBytes Links

Trading Reference Links

Tomasz,

Excellent solution !  I guess this serves my requirement exactly as I 
wanted.  So it is as simple as ===>

-----------
try
{
    AmiBroker.Import( 0, filename, "prnn.format" );
}
catch( e )
{
   return false;
}
AmiBroker.RefreshAll();
return true;
-----------

Regards,
- Salil V Gangal

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Hello,
> 
> Yes it IS doable. Check NEWSLETTERS 
> http://www.amibroker.com/newsletter
> 
> especially 
> http://www.amibroker.com/newsletter/02-2001.html
> 
> It describes how to write a simple (few lines) script
> that allows to import automatically, using AMiBroker's 
> OLE interface.
> 
> There is a single function "Import" that just imports ASCII files.
> 
> BTW: AmiBroker's OLE interface is the workhorse of 
> many 3rd party tools released recently, unfortunatelly
> general public never really noticed / used the interface directly.
> (it is not complicated at all)
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "salil_gangal" <salil_gangal@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, August 01, 2003 6:43 PM
> Subject: [amibroker] Data import automation - Is this doable ?
> 
> 
> > Friends,
> > 
> > Here is the background.
> > 
> > 1) I have a 'database' sourced from external source.
> > 
> > 2) I need to import *just* 1 security based on an ASCII file,
> >    which *does not* exist in the external source.  The format
> >    for record in the ASCII file is ===>
> >        mm/dd/yyyy,Open,High,Low,Close
> > 
> > 3) The sequence of *manual* operation I perform goes something 
like
> >    a) I update the ASCII file (in step 2)
> >    b) I invoke AmiBroker
> >    c) I click thru the menu 'File Import_ASCII'
> >    d) I type-in the name of the file (in step 2)
> >    e) I click 'Open' to start import
> > 
> > The whole manual operation goes absolutely fine !
> > 
> > Now what I want to do is to automate steps c), d) and e) above.
> > 
> > Is this doable.  Any inputs about how to do it ?
> > 
> > Regards,
> > - Salil V Gangal
> > 
> > 
> > 
> > 
> > 
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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 ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/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/