Basic GridManager Library – library for MetaTrader 5

Basic GridManager Library - library for MetaTrader 5
The library contains basic public methods to manage grids: public:                      GridManager(ENUM_GRID_DIRECTION direction, double grid_initial_lot_size, int grid_gap_points, double grid_profit_percent);                     ~GridManager() {};    void              SetGridMagicNumber(ulong magic);    void              SetGridMaxDD(double max_dd_percent);    void              SetGridMultiplier(double lot_multiplier);    void              Start(void);    void              Update(void);    void              CloseGrid();    double            GridPnL();    int               CountPositions(); In above code: MaxDD stands for “maximum allowed drawdown”. This value is disabled by

Developing a multi-currency Expert Advisor — source codes from a series of articles – library for MetaTrader 5

Developing a multi-currency Expert Advisor — source codes from a series of articles - library for MetaTrader 5
This series of articles is in the process of being written. As we move forward, source codes from new articles will be added to this library. It is recommended to review the code in the order of publication of articles in order to better monitor the development and changes made. At this stage, the general

Class For Working With Databases In A Simplified Manner – library for MetaTrader 5

Class For Working With Databases In A Simplified Manner - library for MetaTrader 5
Having desired to work with SQLite database for the purpose of storing my statistical generated from simulations, i noticed very early that it seems very challenging and time consuming to work with database built in functions. I then decided to create a simplified class and functions to make my work easy. To use the class

Local Timezones and Local Session Hours – library for MetaTrader 5

Local Timezones and Local Session Hours - library for MetaTrader 5
Hello, traders. This library has all the functions to get the current local time in a specific or all Forex markets. You can convert the local times between time zones or to your broker’s server time. You can also trade in specific sessions by setting the session start and end times for each session, separately.

Take Profit based on current profit – library for MetaTrader 4

Minimum Profit
Introduction Many Expert Advisors (EAs) tend to close orders at the take profit level, considering the pip distance from the purchase price. However, the code used by EA NextBot is based mainly on the current profit . This approach allows you to easily manage the take profit with multiple open positions, monitoring the total current profit based

Log4mql – library for MetaTrader 4

Log4mql
Log4mql is an MQL4 (MetaQuotes MetaTrader 4 Language) library for flexible logging to files and the terminal console. It is modeled after the Log4j Java library. Documentation (GitHub):  Usage in your Code: CLog4mql::getInstance().error(__FILE__, __LINE__, “Something unexpected happen”); or (for more frequent usage) CLog4mql* logger = CLog4mql::getInstance(); logger.error(__FILE__, __LINE__, “Something unexpected happen”); logger.info(__FILE__, __LINE__, “Calcumation done”);

MiniVirtualAccount – library for MetaTrader 4

MiniVirtualAccount - library for MetaTrader 4
Author: Russell At times one wants to see how an EA is performing without the clutter from other EA’s you’re running. MiniVirtualAccount (MVA) monitors data in your EA. Like EA Balance, EA equity, EA profit, etc. Full List: MVA_BALANCE MVA_PROFIT MVA_MARGIN MVA_FREEMARGIN MVA_EQUITY MVA_TOTAL_SELL MVA_TOTAL_BUY MVA_LOT_PROFIT Example code: #include <MVA_v1.0.3.mqh> extern string General = “—————“;

ZI_File_Functions_Full_Lib – library for MetaTrader 4

ZI_File_Functions_Full_Lib - library for MetaTrader 4
Author: These libraries were created in a close co-operation with Ilnur. Without his knowledge of WinAPI they would not appear soon. The package contains: 1. Four libraries. 2. One header file for all libraries. 3. Header file of the functions of the “kernel32.dll” system library. 4. The archive with everything listed above arranged by the