I would like to create several synthetic assets, say, a Dollar index, Euro index, etc - and do so as:
assetAdd("USD");
var prc;
while(asset(of("EUR/USD", "GBP/USD", "AUD/USD")) {
prc+=priceC();
}
asset("USD");
priceSet(0, prc, prc,prc,prc);
This - as is - doesn't work, as Zorro requires some valid price history for "USD" (zero-length files or using #USD are not useful).
So, 2 questions:
1) is there a way to create such 'assets' on the fly without having to pre-generate some dummy t6 files? (and if not at the moment - can such a way be provided)
2) how to avoid such synthetic 'assets' being 'subscribed to' by Zorro in Live trading?
Thank you.