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 … Read more

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                     | … Read more

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 … Read more

Free Fuzzy Logic Library functions – library MetaTrader 5

Free Fuzzy Logic Library functions - library for MetaTrader 5
The Fuzzy Logic – is a modern science, used in many fields, for example, it has military applications. Now it’s available for the traders. Why Fuzzy Logic? There are some systems, easily can be solved by human, but it’s difficult to program these systems. In such cases Fuzzy Logic can help. It’s very close to … Read more

Working with sockets in MQL5 – library MetaTrader 5

Scheme of the interaction with MetaTrader 5 client terminal
This example will show you how to implement the realtime ticks transfer from MetaTrader 5 client terminal to external server application. The TCP protocol is used, it allows to transfer the data not only locally, but globally all over the Internet. The Winsock2 library (ws2_32.dll) is used for working with sockets. The direct calls of … Read more

Functions to simplify work with orders – library MetaTrader 5

Functions to simplify work with orders - library for MetaTrader 5
This is a class that will allow to open, close and modify your position by placing orders with really simple commands and configuration: Buy(), Sell(), Close(), Modify(). It has never been so easy! 🙂  Sample: #include <K_Orders.mqh> input int TP = 70; input int SL = 20; input double Lots=0.2; Order order; //+——————————————————————+ //| Script … Read more