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

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

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                     |

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