Hi,

I am using the following code to select assetlist based on Algo selection. I can't seem to find out why it is not working - can anybody see anything obvious? I am using VBC++:



while (algo(loop((char*)"ADPS", (char*)"Biotechnology", (char*)"DVS"))) {
if (Algo == (char*)"ADPS") {
int HLIMIT = 2;
assetList((char*)"ADPS");
}
else if (Algo == (char*)"Biotechnology") {
int HLIMIT = 4;
assetList((char*)"Biotechnology");
}
else if (Algo == (char*)"DVS") {
int HLIMIT = 3;
assetList((char*)"DVS");
}
while (stock = (loop(Assets)))
{
asset(stock);
string algo = Algo;

algomain(stock, HLIMIT);
}

}