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 4 Libraries | Library of functions for working with INI-files. | MQL5 Code

Fresh MQL5 code release – perfect for enhancing your MT4/MT5 strategies.

Image for Library of functions for working with INI-files.

Library of functions for working with INI-files. Includes five functions for reading values from an INI-file:
- ReadIniArrayInt();
- ReadIniBool();
- ReadIniDouble();
- ReadIniInteger();
- ReadIniString();
and five functions for writing the values to an INI-file:
- WriteIniArrayInt();
- WriteIniBool();
- WriteIniDouble();
- WriteIniInteger();
- WriteIniString().
Thus, there are five pairs of functions to read/write the values of 'integer array', 'boolean', 'double', 'integer' and 'string' types.

Each of these functions takes the main parameters:
- FileName - full file name;
- SectionName - section name;
- KeyName - parameter name.

Uses the WinAPI functions from the kernel32.dll module:
- GetPrivateProfileStringA();
- WritePrivateProfileStringA().

Protect profits effectively with the smart Trailing Stop Expert Advisor. Advanced trailing options for MT4/MT5. See it in action.

Complement community code with advanced automation from RobotFX.

7067

Best MetaTrader Indicators + Profitable Expert Advisors