Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2014.02.12 14:44
Libraries

HTTP requests for new MQL4 (tested in build 600) - library for MetaTrader 4

| English Español Português 日本語 Deutsch

Views:
7706
Rating:
votes: 15
\MQL4\Include\
mq4-http.mqh (2.65 KB)view

Description:

This is a simple MQL4 wrapper that uses Windows native wininet.dll. It allows you to send HTTP requests (currently supported only GET method) to a remote destination and read the body response from MQL that was compiled in build 600 and newer (not in a strict mode).

For latest version, issues tracker and contribution please refer to project's Github repository.

Example:

#include <mql4-mysql.mqh>

int start () {

  string myIP = httpGET("http://icanhazip.com/");

  Print("My machine's IP is ", myIP);

  return(0);
}

Source:

Source is distributed at Github repository. Any contribution is highly appreciated.

Credits:

This library was based on following great resources:

- HTTP Wininet sample: http://codebase.mql4.com/en/code/10644

- EasyXML parser: https://www.mql5.com/en/code/1998

HashMap implementation HashMap implementation

An implementation of a HashMap in MQL4

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.

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.

Turtle Trader Turtle Trader

Good For EURUSD. Start by Money $300.