How to set EA input varaiables from the *.ini file?

 

Hi,

I would like to automate some MT processing and hence to set the input variables, which are declared as


// myexpert.mq5
extern string HOSTNAME = "172.17.0.1";

from the startup ini file.


I call MT5 via


terminal64.exe /config:C:\mt5\Config\myconf.ini


which should contain something like

myconf.ini

Expert=myexpert
Symbol=EURUSD
HOSTNAME=172.17.0.3


[Experts]
AllowLiveTrading=1
AllowDllImport=1
Enabled=1
HOSTNAME=172.17.0.3


Is there a way to set the variables from the INI file?

Thanks in advance!