[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

Thanks, TJ.


Thomas

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Thomas,
> 
> There is a LoadDatabase function in Broker.Application object
>  that allows you to load any database,
> then call Import and that's all.
> 
> Hope this helps.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "tchan95014" <tchan95014@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Saturday, August 02, 2003 1:54 AM
> Subject: [amibroker] Re: Data import automation - Is this doable ?
> 
> 
> > Hi, TJ,
> > 
> > Is it possible to extend this app a little by specifying which 
> > database to updates so that there is no need to manually switch 
the 
> > database from within AB? 
> > 
> > Thanks for any info.
> > 
> > 
> > Thomas
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxx
.> 
> > wrote:
> > > Yes Salil, it is simple indeed, I told you :-))))
> > > 
> > > Best regards,
> > > Tomasz Janeczko
> > > amibroker.com
> > > ----- Original Message -----
> > > From: "salil_gangal" <salil_gangal@xxxx>
> > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > Sent: Saturday, August 02, 2003 1:37 AM
> > > Subject: [amibroker] Re: Data import automation - Is this doable 
?
> > > 
> > > 
> > > > 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/
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> > > > Send BUG REPORTS to bugs@xxxx
> > > > Send SUGGESTIONS to suggest@xxxx
> > > > -----------------------------------------
> > > > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxx
com
> > > > (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/
> > > >
> > > >
> > > >
> > 
> > 
> > 
> > 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 ---------------------~-->
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/sO0ANB/LIdGAA/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/