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 | CIniFile class | MetaTrader Tool

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

Image for CIniFile class

    This class will help you if you need to use the Windows *.ini files. It has a standard interface with simple methods.

    Using the library:

    Classic MACD strategy made fully automatic – the MACD Expert Advisor for MT4 handles it all. Check it out.

    1. Copy the IniFile.mqh file to the MQ5\Include\ folder.
    2. Declare the CIniFil class instance in the code (don't forget to add the #include <IniFile.mqh> directive).
    3. Call its Init method with file name as parameter.
    4. Call methods for reading/writeing/checking/deleting the data.
    5. If you need to work with data arrays, declare a CArrayString class instance.

    A simple example of use of the library is contained in Test_CIniFile.mq5.

    Good luck and all the best!

    Level up your trading with professional RobotFX expert advisors and indicators. Visit www.robotfx.org for proven MT4/MT5 tools.

    213

    Best MetaTrader Indicators + Profitable Expert Advisors