Mira cómo descargar robots gratis
¡Búscanos en Twitter!
Pon "Me gusta" y sigue las noticias
¿Es interesante este script?
Deje un enlace a él, ¡qué los demás también lo valoren!
¿Le ha gustado el script?
Evalúe su trabajo en el terminal MetaTrader 5
Librerías

HashMap implementation - librería para MetaTrader 4

Visualizaciones:
20228
Ranking:
(27)
Publicado:
2014.02.11 15:34
Actualizado:
2016.11.22 07:32
\MQL4\Include\
hash.mqh (20.7 KB) ver
¿Necesita un robot o indicador basado en este código? Solicítelo en la bolsa freelance Pasar a la bolsa
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.