void main()
{
int N = assetList("AssetsZ8");
while(--N >= 0)
{
string URL = strf("https://www.google.com/finance/historical?q=%s&startdate=01-Jan-2000&output=csv",Assets[N]);
string Content = http_transfer(URL,0);
if(!Content) continue;
file_write("History\\history.csv",Content,0);
dataNew(1,0,7);
if(!dataParse(1,"%d-%b-%y,f3,f1,f2,f4,f6","History\\history.csv"))
continue;
printf(" %s",Assets[N]);
dataSave(1,strf("History\\%s.t6",Assets[N]));
}
}