Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Libraries | INI File

A library to provide simple storage mechanism for expert advisors and indicators.

Library Functions

//--- If the key is not found, the returned value is NULL.  bool  GetIniKey          (string fileName, string section, string key, T &ReturnedValue)    //--- add new or update an existing key.  bool  SetIniKey          (string fileName, string section, string key, T value)    int   GetIniSectionNames (string fileName, string &names[])  int   GetIniKeyNames     (string fileName, string section, string &names[])    bool  IniSectionExists   (string fileName, string section);  bool  IniKeyExists       (string fileName, string section, string key);    bool  DeleteIniSection   (string fileName, string section);  bool  DeleteIniKey       (string fileName, string section, string key);  

MetaTrader Experts, Indicators, Scripts and Libraries

Sample File

'D:\my_orders.ini'

[EURUSD]  orders=4  lots=1.26  time=2018.05.20 21:10:21  comment=sell market  with_trend=false  [USDJPY]  orders=6  lots=3.12  time=2018.05.18 02:46:03  comment=buy market  with_trend=true  
20842

Best MetaTrader Indicators + Profitable Expert Advisors