Here it is I used the example from knowledge base here .. but application does not produce good result, only some nonsensical number, see below What do I do wrong Example from MQ5 -------> double val=iCustom(NULL,0,"SampleInd",13,1,0); Here I am trybing ------> double