I currently hardcoded my multi-asset strategy like this:
while (asset(loop("AAPL", "MSFT", GOOG")))
{
strategy....
}
What's the best way to get a user-defined list of assets from a control panel(), so I can change the asset list on the fly?
Do I simply make a string array from the panel inputs, then use a for loop like this?
void run()
{
get panel asset entries into MyAssets[N] array;
for (i=0; MyAssets[i]; i++)
{
asset(MyAssets[i]);
strategy..
}
}