Any news or workaround about this? I am experiencing a similar issue with Copper, I tried several times using Download script but nevertheless this is my Assets.dta:
Name Price Spread RollLong/Short PIP PIPCost Margin Lot
AUD/USD 0.90705 0.00024 0.3100 -0.6300 0.0001 0.07182 5.000 1000.0
Copper 0.00000 0.00000 0.0000 0.0000 0.0000 0.00000 0.000 0.0
EUR/CHF 1.21554 0.00025 0.0400 -0.1300 0.0001 0.08228 5.000 1000.0
And then when I want to just run this code:
function run(){
BarPeriod = 60*24;
StartDate = 2011;
asset("Copper");
set(PLOTNOW);
vars Prices = series(price());
plot("Price",Prices[0],MAIN,BLACK);
}
prices compiling................
BackTest: prices XAG/USD 2011..2014
Generate Chart - please wait... ok
It says:
Asset Copper not found
No Copper prices
Even though I have copper history from 2011-2014 and tried the workaround that JCL told in the previous message by modifying the download script like this:
#ifdef ADD_ASSET // add single asset
static int i = 0;
name = ADD_ASSET;
asset(name);
loadHistory(name,1);
i = i + 1;
#else
....
#endif
if (i == 7)
quit("Done!")