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

CHashArrayStringString - MetaTrader 5용 라이브러리

조회수:
3916
평가:
(48)
게시됨:
2015.01.28 15:48
업데이트됨:
2016.11.22 07:32
\MQL5\Scripts\ \MQL5\Include\
hasharray.mqh (5.08 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

An include file contains a set of classes demonstrating one of methods of organizing lines hash array with a string key.

An example of usage:

#include <HashArray.mqh>

void OnStart()
  {
   CHashArrayStringString Hash;
   Hash.Put("k1", "v1");
   Hash.Put("k2", "v2");

   Hash["k3"] = "v3";
   Hash["k2"] = "vv2";

   string t1 = Hash["k1"].value;
   string t2 = Hash["k2"].value;
   string t3 = Hash["k3"].value;

   Alert("k1=",t1);
   Alert("k2=",t2);
   Alert("k3=",t3);
  }


The result:


Performance test:

An include file contains a set of classes demonstrating one of methods of organizing lines hash array with a string key.

#include <HashArray.mqh>
void OnStart()
{
   CHashArrayStringString Hash();
   uint StartTime=GetTickCount();
   for(int n=0; n<10000; n++)
   {
      Hash["key"+IntegerToString(n)] = "trash";
   }
   uint timeTotal = GetTickCount() - StartTime;
   Alert("add 10k elements in ", IntegerToString(timeTotal), " ms");
   
}
add 10k elements in 31 ms

add 10k elements in 31 ms

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/7047

dt_FFT dt_FFT

Library of fast Fourier transformation functions (FFT).

FileUnlimited FileUnlimited

Library for working with files using WinAPI without location limitations.

Indicator Arrows II Indicator Arrows II

Plots up/down buffer arrows in chart window.

Class for set and check your trading time Class for set and check your trading time

CTimeControl class for include to your EA for easy setting and checking your own trading time.