You can insert this line for Copper in AssetsFix.dta:
Copper 3.1380 0.00200 0.0000 0.0000 0.0010 0.07486 5.000 100.0
The next Zorro version, with the workaround, will be released in a few days.
jcl, thanks for your response, I finally got it working while trying to code your suggestion, I didn't understand what you mean by 'waiting a few bars before exiting' since when suscribing the asset and using NumYears=-1 there aren't any bars, what I tried was using another asset like EUR/USD for having bars but to no avail.
Today I tried again with this script
#define ADD_ASSET "Copper"
//int i;
function run()
{
// if (is(INITRUN))
// i = 0;
// NumYears = -1;
// string name = ADD_ASSET;
// asset(name);
// loadHistory(name,1);
// msg("%d",i);
// i += 1;
// if (i == 7){
// msg("hola");
//
// quit("Done!");
// }
static int i;
if (is(INITRUN)){
i =0;
NumYears = -1;
loadHistory("Copper",1);
msg("primero");
}
if (i < 4){
msg("%d",i);
NumYears = -1;
loadHistory("Copper",1);
}
NumYears = 6;
i = i + 1;
if (i==7)
quit("Done!");
}
and Assets.dta was set with
Copper 3.4000 2.0000 0.0000 0.0000 0.0100 0.10000 5.000 1.0
Is this ok? I see that the lot size is 100 times smaller than yours, is this because of the lot size changes of FXCM in january for CFDs?
Anyway, I trust you
and I will use your values for my tests.