거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
5060
평가:
(27)
게시됨:
2017.11.20 10:10
업데이트됨:
2017.12.01 11:38
\MQL5\Scripts\
dict3.mq5 (3.48 KB) 조회
\MQL5\Include\
Dictionary.mqh (15.03 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

An implementation of the dictionary (associative array) data structure in MQL5, based on CArrayObj and CList.


Hash Function

FNV-1a


Usage

Primitives:

CDictionary *dict=new CDictionary();
//setting
dict.Set<string>("costarring","liquid");
dict.Set<double>("liquid",0.1);

//getting - variant 1
string variant1 = dict.Get<string>("costarring");
Print(variant1);

//getting - variant 2
double variant2 = 0;
dict.Get<double>("liquid",variant2);
Print(variant2);

It can also store pointers to objects (but not objects or structures):

dict.Set<CObject*>("object",new CObject());


Collision Handling

  1. Each entry would have its own hash.
  2. If two or more entries share the same hash, entries are compared by key and typename. This makes it possible to store multiple entries with the same key (but different type).
  3. When using Set<T>, if there is already an existing entry with the same key and type, the passed value would be treated as a replacement of an existing entry (not a new one). This also applies to pointers.
Resistance & Support Resistance & Support

The indicator of support and resistance lines calculated based on the iFractals (Fractals) indicator values.

MACD Stochastic MACD Stochastic

The trading system is based on iMACD (Moving Average Convergence/Divergence, MACD) and iStochastic (Stochastic Oscillator)

PS Magicas - Three moving averages PS Magicas - Three moving averages

PS Magicas - Three moving averages that give target and possible entries.

LeadLagRelationshipTester LeadLagRelationshipTester

Script for checking the LeadLagRelationship indicator (https://www.mql5.com/en/market/product/26229)