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

Working inside the channel – indicator MetaTrader 4

Working inside the channel - indicator for MetaTrader 4
The system applies the internal channel from High and Low. It has been developed as early as 2001 and proven to be quite efficient. I work in both directions simultaneously with no additions. However, the choice is yours. If you have any questions, feel free to contact me. Dots – entering the market by orders. … 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

CFastFile – class for working with uchar array as a virtual file – library MetaTrader 5

CFastFile - class for working with uchar array as a virtual file - library for MetaTrader 5
The CFastFile eliminates the need for an intermediate writing of data to the physical file on disk. It provides the significant acceleration when working with data. It has functions, similar to standard FileWriteXXX/FileReadXXX functions. It means that you can easily migrate from the use of the physical files to the fast work with the “virtual” … Read more

TimeSeries – Function Library for Working with Time Series – library MetaTrader 5

TimeSeries - Function Library for Working with Time Series - library for MetaTrader 5
Function Library for Working with Time Series The following equivalents of MQL4 functions are available: iTime, iOpen, iHigh, iLow, iClose, iHighest, iLowest and iBarshift. Short invocation version is available for all functions (with the current chart’s symbol and period). iHighest and iLowest are available in 2 versions: “from bar X to bar Y” and “from … Read more

String – Library of functions for working with strings – library MetaTrader 5

String - Library of functions for working with strings - library for MetaTrader 5
Library of functions for working with strings. The following functions are available: StringToArray (3 overloads): extracting of the same type elements from the string into an array of a necessary type (the StringSplit analog); StringToPeriod and PeriodToString: conversion of time frame names in tabulation at ENUM_TIMEFRAMES and back. The library will refill as often as required. Title: … Read more

A class for working with free form buttons – library MetaTrader 5

A class for working with free form buttons - library for MetaTrader 5
This class is designed for creating interactive buttons with various states on a price chart. It has been developed for a competition arranged by generous TheXpert. Thank you. A demonstration of the CBtn class Class methods Create(long chart_id,int sub_wnd,string name,int x,int y,int dx,int dy) – create a button with parameters: Window identifier Subwindow number Button … Read more

Library of functions for working with INI-files. – library MetaTrader 4

Library of functions for working with INI-files. - library for MetaTrader 4
Library of functions for working with INI-files. Includes five functions for reading values from an INI-file:      – ReadIniArrayInt();      – ReadIniBool();      – ReadIniDouble();      – ReadIniInteger();      – ReadIniString(); and five functions for writing the values to an INI-file:      – WriteIniArrayInt();      – WriteIniBool();      – WriteIniDouble();      – WriteIniInteger();      – … Read more

Three scripts for working with horizontal levels – script MetaTrader 4

Three scripts for working with horizontal levels - script for MetaTrader 4
It is often necessary to know the distance in points between two levels of a chart. For example, in order to find out the exact current distance between today’s High and Low. To avoid calculating it manually, the following can be done: using the Lines_Create script create 2 horizontal lines on the chart (it creates … Read more