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

HashMap implementation - MetaTrader 4용 라이브러리

조회수:
20635
평가:
(27)
게시됨:
2014.02.11 15:34
업데이트됨:
2016.11.22 07:32
\MQL4\Include\
hash.mqh (20.7 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
Description:

This is a HashMap implementation. This allows something like arrays but with string indexes. It maps strings to Objects. The Objects must be a subclass of the HashValue class provided.

The Hash by default will 'adopt' the value objects. In which case it will free the memory when they are no longer in the hash. This can be disabled in the constructor.

The Codebase version might not be the most recent. The latest version can be found here.

Documentation:

Hash class

HashLoop class

Version

125


Below is an example, and it is also used in my JSON Parser class, to represent JSON Objects.

    
    Hash *h = new Hash();

    // Store values
    h.hPutInt("low",0);
    h.hPutInt("high",1);

    // Get values
    int high = h.gGetInt("high");
 
    // Loop
    HashLoop *l ;
    for( l = new HashLoop(h) ; l.hasNext() ; l.next()) {

        string key = l.key();

        int j = l.valInt();

        Print(key," = ",j);

    }
    delete l;

    delete h;


RosePipsIndicator RosePipsIndicator

This indicator will calculate pips wins and losses for any pair with a parsar and doji star trading strategy. You can see pip targets and losses and see if you can find a winning pair with this. 5MIN charts are the best on current settings.

DF-ProfitMonitor DF-ProfitMonitor

With this indicator you can follow the evolution of account profit.

HTTP requests for new MQL4 (tested in build 600) HTTP requests for new MQL4 (tested in build 600)

Simple library that allows sending requests via HTTP protocol from new MQL4

OpenAlert v1.0 OpenAlert v1.0

Someone needed a quick way to open the Alert window again, after they had closed it. Place this script in your \experts\scripts folder.