Download MetaTrader 5

[iCustom] Error message when file does not exist

To add comments, please log in or register
BurkhardWille
185
BurkhardWille  

Hi,

is there a way to get a return value (other than 0, 0 could be a value of the indicator), if the file does not exist, if I call the file with iCustom?

double val=iCustom(NULL,0,"SampleInddoesnotexist",13,1,0);


Warm Regards

Burkhard

Mladen Rakic
71102
Mladen Rakic  
BurkhardWille:

Hi,

is there a way to get a return value (other than 0, 0 could be a value of the indicator), if the file does not exist, if I call the file with iCustom?


Warm Regards

Burkhard

Check for ERR_INDICATOR_CANNOT_LOAD  error (code 4072 - using the GetLastError() function)
whroeder1
17122
whroeder1  
Look at _LastError. Probably

4072

ERR_INDICATOR_CANNOT_LOAD

Cannot load custom indicator

BurkhardWille
185
BurkhardWille  
Works great. Thank you very much!
To add comments, please log in or register