Join our fan page
- Views:
- 20721
- Rating:
- Published:
- 2014.02.11 15:34
- Updated:
- 2016.11.22 07:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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:
Version
125Below 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](https://c.mql5.com/i/code/indicator.png)
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](https://c.mql5.com/i/code/indicator.png)
With this indicator you can follow the evolution of account profit.
![HTTP requests for new MQL4 (tested in build 600)](https://c.mql5.com/i/code/library.png)
Simple library that allows sending requests via HTTP protocol from new MQL4
![OpenAlert v1.0](https://c.mql5.com/i/code/script.png)
Someone needed a quick way to open the Alert window again, after they had closed it. Place this script in your \experts\scripts folder.