Join our fan page
Hash functions library - library for MetaTrader 5
- Views:
- 4715
- Rating:
- Published:
- 2011.01.27 13:00
- Updated:
- 2016.11.22 07:32
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
General purpose hash functions:
- adler32
- CRC-32 (fast, table implementation)
- MaHash8v64 (fast, table implementation)
All three functions are adapted for MQL5 Unicode strings. The results has been verified with Fsum Frontend 1.5.5.1.
Radix Conversion:
- from decimal (ulong) to Base radix
- inverse transformation
The radix conversion is based on the following sequence of chars: 10 [0..9] + 26 [A..Z] + 26 [a..z] + 33 [А..Я] + 33 [а..я]. The "0-9" digits and "A-Z" english letters are used up to base 36.
The possible practical use of the other radix may be the compact form of string representation of a number in names of graphic objects. For example, 64-bit number generally has the following number of chars:
- decimal: 20 chars (ULONG_MAX)
- hexadecimal: 16 chars
- base 36: 11 chars
- base 128: 10 chars
the optimal is the base 36 radix.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/277
This Expert Advisor performs the synchronization of charts.
Export Indicator's ValuesThis script exports indicator's values to CSV file.
The Expert Advisor uses the Moving Average and Stochastic indicators.
Nonparametric Zig Zag, A-la Clyde Lee PatternsNonparametric ZigZag, based on the "a-la Clyde Lee Patterns".