Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Libraries

Hash functions library - library for MetaTrader 5

Views:
4715
Rating:
(29)
Published:
2011.01.27 13:00
Updated:
2016.11.22 07:32
\MQL5\Include\
MQL5 Freelance 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

Synchronized Charts Synchronized Charts

This Expert Advisor performs the synchronization of charts.

Export Indicator's Values Export Indicator's Values

This script exports indicator's values to CSV file.

A la "Bobsley" Expert Advisor A la "Bobsley" Expert Advisor

The Expert Advisor uses the Moving Average and Stochastic indicators.

Nonparametric Zig Zag, A-la Clyde Lee Patterns Nonparametric Zig Zag, A-la Clyde Lee Patterns

Nonparametric ZigZag, based on the "a-la Clyde Lee Patterns".