Thanks for that Radar. It does work now, in theory. But when I try to use it on a live strategy I am now getting this while Train'ing:
dt-e9-htc-15min-b compiling.................
Train: dt-e9-htc-15min-b 2008..2014
Error 060 - out of memory: TR 93.1 MB (73.2 MB total)
Cancelled
I think the while(asset(loop( logic must be more memory-friendly than a for loop. Here is the code I'm trying to use in the run() function:
int assetCount = 2;
const char *assets[2];
assets[0] = "EURUSD";
assets[1] = "NZDUSD";
int i;
for(i=0; i<assetCount; i++)
{
asset(assets[i]);
...