Basic GridManager Library – library 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 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 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 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.

Class CalcFrac – Number of bars before and after the current High / Low (calculated fractal) – library MetaTrader 5

Class CalcFrac - Number of bars before and after the current High / Low (calculated fractal) - library for MetaTrader 5
Calculates fractals and lets you specify the number of bars separately before and after the current High / Low (fractal).Functions: //+——————————————————————+ //| calculate lower fractals                                         | //+——————————————————————+ bool CalcFrac :: is_lower_fr(int number_of_bars) //+——————————————————————+ //| calculate upper fractals                                         | //+——————————————————————+ bool CalcFrac :: is_upper_fr(int number_of_bars) Sample: Indicator : FractalsPeriod Class CalcFrac – Number of bars before and after

MovingAverages – library MetaTrader 5

MovingAverages - library for MetaTrader 5
The MovingAverages library is a part of Standard package of MetaTrader 5 client terminal. The library contains functions for calculation of different types of moving averages. Totally, there are 8 functions that can be divided into 2 groups of functions of the same type, each containing 4 of them. The first group contains functions that

ErrorDescription – library MetaTrader 5

ErrorDescription - library for MetaTrader 5
The library contains the following functions: TradeServerReturnCodeDescription – returns description of trade server return codes; ErrorDescription – returns description of runtime errors. //+——————————————————————+ //|                                             ErrorDescription.mqh | //|                        Copyright 2010, MetaQuotes Software Corp. | //|                                               | //+——————————————————————+ #property copyright “2010, MetaQuotes Software Corp.” #property link      “” #property version   “1.00” //+——————————————————————+ //| returns trade server return code description                     |

AdoSuite v 1.0 – library MetaTrader 5

AdoSuite v 1.0 - library for MetaTrader 5
When it comes to processing of large data amounts, it is not very rational to use files. For this purpose database management systems (DBMS) have been developed. There are already some solutions written in mql4 for interacting with different DBMS’es, and now I want to share my library written in mql5. It allows you to:

XmlParser – library MetaTrader 5

XmlParser - library for MetaTrader 5
The CXmlElement class provides the following opportunities for working with XML documents. It allows you to create DOM-model (objects tree) from the XML-document (or from its single element); It allows you to read, modify, create and delete the nested elements and text; It allows you to save the object model to XML. Class interface: class

The CGV class for working with global variables – library MetaTrader 5

The CGV class for working with global variables - library for MetaTrader 5
The CGV class simplifies the work with global variables of MetaTrader 5 client terminal. Class methods: GlobalVariableSet GlobalVariableTemp GlobalVariableCheck GlobalVariableGet GlobalVariableDel GlobalVariablesFlush The CGV class for working with global variables – library MetaTrader 5