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

[amibroker] Re: EOD-Array importing into AmiBroker???



PureBytes Links

Trading Reference Links


OK. I understand how it works.
But I don't understand why doesn't exist (or I don't know perhaps 
exists) any way importing an EOD_array or Current-price_array?
AmiBroker is able to import by ONE OLE-calling
-a File and
-one piece of O,H,L,C values. (very slow)
(-and here would be good to import a whole Array or whole List or a 
MemoryStream.)

My question: 
-How could I import quickest myArray or myList or myMemoryStream 
directly from myProgram into AmiBroker? There is a way?
Why am I force to write myFile.txt before? It's unneccessary.

--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> If these are in txt files, can you just use the ascii importer to 
get
> eh data into the database?
> 
> 
> On Wed, 26 Jan 2005 10:18:19 -0000, zoli_j <novizoli@xxxx> wrote:
> > 
> > 
> > -once I write myFile.txt from myArray
> > -second AMIBROKER reads myFile.txt
> > -third AmiBroker reads/writes AmiBroker DB files.
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "zoli_j" <novizoli@xxxx> wrote:
> > >
> > > Hi support and group,
> > >
> > > I have lot of EOD-Arrays and I would like to import these into
> > > AmiBroker.
> > > At the moment I know two possibilities to do this:
> > >
> > > 1.) OLE Calling from File
> > > "Import(Type : number, FileName : string, [optional] 
DefFileName :
> > > string ) : long "
> > > But in this case I must write myArray onto winchester and these
> > > Quotations will be imported from winchester. And I think in this
> > case
> > > Winchester are overloaded. Cause
> > > -once I write myFile.txt from myArray
> > > -second I read myFile.txt
> > > -third AmiBroker reads/writes AmiBroker DB files.
> > > It works but I believe writting to myFile.txt is really
> > unneccessary.
> > >
> > > 2.) Through Object OLE Calling
> > > "               stock = AmiBroker.Stocks.Add( fields[ 0 ] );
> > >
> > >                 /* notify the user */
> > >                 WScript.Echo( "Importing " + fields[ 0 ] );
> > >
> > >                 /* parse the date from the text file */
> > >                 date = new Date( fields[ 2 ] );
> > >
> > >                 /* add a new quotation */
> > >                 quote = stock.Quotations.Add( date.getVarDate
() );
> > >
> > >                 /* put data into it */
> > >                 quote.High  = parseFloat( fields[ 3 ] );
> > >                 quote.Low   = parseFloat( fields[ 4 ] );
> > >                 quote.Close = quote.Open = parseFloat( fields[
> > > 5 ] );
> > >                 quote.Volume = parseInt( fields[ 6 ] );
> > > "
> > > It's really slow cause I can import one times ONLY ONE PIECE OF
> > Open,
> > > High, Low or Close prices.
> > >
> > > My question:
> > > There is any other way to importing a whole Array or whole List 
or
> > a
> > > MemoryStream(which is myFile.txt) into AmiBroker?
> > >
> > > BR Zoli.
> > 
> > ------------------------ Yahoo! Groups Sponsor -------------------
-~--> 
> > In low income neighborhoods, 84% do not own computers.
> > At Network for Good, help bridge the Digital Divide!
> > http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
> > ------------------------------------------------------------------
--~->
> > 
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> > 
> > Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> 
> 
> -- 
> Cheers
> Graham
> http://e-wire.net.au/~eb_kavan/





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/