bucket
bucket
bucket
Added topic How-to use CSortetedMap<int,int>.CopyTo() to an array of CKeyValuePair<int,int>
I use Standard Library Generic Data Collection CSortedMap. To get the values out of the object I like to use CopyTo with an array of CKeyValuePair. //+------------------------------------------------------------------+ //|
bucket
Published code CSV file reader for MQL5
This class was developed to exchange data between MetaTrader 5 and CSV files. It converts the strings read from the CSV file to double and integer values depending of the type of the columns. Two producers of CSV files are most important for me. The most important producer are spreadsheet programs, i.e. LibreCalc. Manually entered CSV are the other kind of CSV files I had in mind. Be aware that this class do not use the standard library FileCsv.mqh etc. Instead it works with text files. It splits text lines into fields. Maximum speed and low memory usage were no development goals. This class may not be suited for large datasets or time critical operations. I would not use CSV files if speed was my main goal.
bucket
Added topic Does MT5 deliver option values for CFD on options at some brokers?
I trade CFD on index options on MT5 build 1940. The real option ODAX contract would be to big for my account. I assume some of the fields relevant for options will never be filled. But I am interested if it is my broker not maintaining the info for
bucket
Added topic What is wrong with my RegEx?
I start to use the RegEx library https://www.mql5.com/en/code/15242 and get memory leaks and errors in the debbuger. I do not see the difference of my first try ex02(). I copied from Test.mqh Example1_1(). Example1_1() works fine. enum enum_example
bucket
Added topic Handling of WinAPI strings in MQL5 with MQL Standard Library
To get back a string or a list of strings from a Windows API functions , you pass in a pointer to a buffer. I like to use the wide character functions like GetPrivateProfileSectionNamesW(), see
bucket
Added topic How to make Indicator containing spread?
I have a account at a market maker. The spread sometimes widens extremely. So I like to program an indicator to show the spread. I adopted the excellent „Clock_v1_3” indicator from „Jerome  to show the current spread besides the different time
bucket
Added topic Could a class call a system function when it has a member function with equal name?
I like to create a file handling class. It would be nice if some member functions could have the same names like the normal file handling functions, i.e. FileWrite, FileRead. But a class would always call the member functions with that name and it
bucket
Added topic Is it possible to convert a simple structure to an uchar array?
I am using MQL4 v.840. I made a simple struct (without stings, without dynamic arrays). I can write this structure to a file with FileWriteStruct(). This implies the content of the struct is converted to a sequence of uchar. I it be possible to
bucket
Added topic MQL4 Object definition with initialization possible?
P { margin-bottom: 0.21cm; } I am using MT 4 Version 4.00 Build 840. I programmed a class with 2 different constructors in its own file. The default constructor (without parameters ) is private and the public constructor (with parameters) is public
bucket
Registered at MQL5.community