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

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



PureBytes Links

Trading Reference Links


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 --------------------~--> 
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/