Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Libraries

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

Views:
17815
Rating:
(23)
Published:
2014.02.12 14:44
Updated:
2016.11.22 07:32
\MQL4\Include\
mq4-http.mqh (2.65 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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.