This is because "strings" are elusive animals (constants?):-)

This works:

char* myAsset[16]; myAsset =strcpy(myAsset,Asset);
char* myAlgo[16]; myAlgo = strcpy(myAlgo,Algo);
....
if( !strcmp(myAsset,TradeAsset) && !strcmp(myAlgo,TradeAlgo))


Dalla's suggestion also works.

Last edited by Zheka; 01/30/18 10:22.