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

[amibroker] I try to use Retvrieve from JScript, but I dont success.



PureBytes Links

Trading Reference Links

Hello,

I try to use Retvrieve from JScript, but I dont success.
Here what I have did so far.

Thanks

Tintin92

// JavaScript Document

var oAB = new ActiveXObject("Broker.Application");

var oStocks = oAB.Stocks;

WScript.Echo("Script ready to start" );

oStock = oStocks( 0 );
WScript.Echo("Ticker : "  + oStock.Ticker);
var oQuotations = oStock.Quotations;

for( i = 0; i < oQuotations.Count; i++ )
{
  oQuotation = oQuotations(i);
  WScript.Echo("oQuotation.Close : "  + oQuotation.Close);
}

var aDate = new Array();
var aOpen = new Array();
var aHigh = new Array();
var aLow= new Array();
var aClose= new Array();
var aVolume = new Array();
var aOpenInt = new Array();

var  QuotationsQty = oQuotations.Retrive(-1, aDate, aOpen, aHigh, aLow,
aClose, aVolume, aOpenInt);

for( i = 0; i < QuotationsQty; i++ )
{
  WScript.Echo("Retrive Close : "  + aClose(i))
  ;
}

WScript.Echo("Script finished" );





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

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/