거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
라이브러리

SHA256, SHA384 and SHA512 + HMAC - MetaTrader 4용 라이브러리

조회수:
9756
평가:
(15)
게시됨:
2018.06.14 13:02
\MQL4\Include\
SHA256.mqh (15.71 KB) 조회
SHA384.mqh (18.43 KB) 조회
SHA512.mqh (18.52 KB) 조회
\MQL4\Experts\
SHA_HMAC.mq4 (1.85 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

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.

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));
  }
Martingale VI Hybrid Martingale VI Hybrid

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

Average Volume per Hour Average Volume per Hour

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

s-Downloader (SingleTF) s-Downloader (SingleTF)

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

CSeries Class CSeries Class

A low latency container for working with ticks