A little help with a coding error

9 February 2018, 22:18
Alberto Tugnoli

Hi guys, could please someone fix this error.

I am trying to use this code, but it contains an error. It said "Illegal switch expression type"

Could someone please help me fixing this.

Thanks in advance

double iM =MarketInfo(Symbol(),MODE_PROFITCALCMODE);



   case 0:sMarket = "FOREX";break;

   case 1:sMarket = "CFD";break;

   case 2:sMarket = "Futures";break;

   default:sMarket = iM;


Share it with friends: