당사 팬 페이지에 가입하십시오
- 조회수:
- 11517
- 평가:
- 게시됨:
- 2018.06.14 13:02
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
Many developers need these functions, while working with different kinds of external APIs, like Bitcoin and altcoin exchanges where it is often necessary to send data with the confirmation of parameters validity through HMAC-SHA512, HMAC-SHA384 and HMAC-SHA256.
The MQL5 version of SHA512 library can be found here: https://www.mql5.com/en/code/18158. Besides SHA512, added SHA256 and SHA384 support in form of separate libraries.
- The SHA512 class was ported from http://www.zedwood.com/article/cpp-sha512-function
- The SHA384 class was ported from http://www.zedwood.com/article/cpp-sha384-function
- The SHA256 class was ported from http://www.zedwood.com/article/cpp-sha256-function
HMAC functions were ported from https://en.wikipedia.org/wiki/Hash-based_message_authentication_code
Use example (tested on http://www.freeformatter.com/hmac-generator.html)
#include <SHA256.mqh> #include <SHA384.mqh> #include <SHA512.mqh> input string phrase = "The quick brown fox jumps over the lazy dog"; input string phrase_key = "ABCDEFG"; void Start() { SHA256 hash256; Print("SHA256:",hash256.hmac(phrase,phrase_key)); SHA384 hash384; Print("SHA384:",hash384.hmac(phrase,phrase_key)); SHA512 hash512; Print("SHA512:",hash512.hmac(phrase,phrase_key)); }

A martingale strategy, an old EA that was rebuilt to be efficient.

Calculate the average volume per hour in a 1 hour chart.

The script downloads the historical quotes data of the current chart symbol and timeframe.

A low latency container for working with ticks