Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Bibliothèque

MD5 Hash - bibliothèque pour MetaTrader 5

Vues:
7204
Note:
(39)
Publié:
2013.03.01 13:38
Mise à jour:
2016.11.22 07:32
\MQL5\Include\
md5hash.mqh (8.04 KB) afficher
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

128-byte algorithm of hashing developed by a professor Ronald Linn Rivest from Massachusetts Institute of Technology (MIT) in 1991.

The example of using

#include <MD5Hash.mqh>

CMD5Hash  md5;

string str="Now it is easy to control MQL5 data integrity!";
uchar bytes[]; StringToCharArray(str, bytes, 0, StringLen(str)); // transferred string to the byte array // without the last one\0
Print(md5.Hash(bytes, ArraySize(bytes))); // print MD5-hash 
---------------------------------------------------------------------
The result:
c25688ecc77d8141b2f85320809e2a35

As an array we can pass the data read from FileReadArray file, etc.

It will be useful

  • to check data integrity when reading Internet files.
  • to compare files.
  • for hashing personal data and sending to the Internet.
  • for personal data storage in an encrypted type.

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/1553

EMAPredictive3 EMAPredictive3

The Moving Average drawn on the basis of the EMA algorithm. A linear interpolation of two different period EMA is used

EMAAngle EMAAngle

An interesting trend indicator drawn on the basis of the simple Moving Average

CMIDI CMIDI

The class to play music using the MIDI device

i-Friday_Sig i-Friday_Sig

Signals of entries and exits on the system "Friday effect"