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

2008.09.27 09:22

Http Client - library for MetaTrader 4

| English 日本語 Русский 中文 Español Deutsch Português

votes: 14 (26.61 KB) (5.01 KB)


#import "http51.dll"

string httpGET    (string URL, int  status []);
string httpDELETE (string URL, int  status []);
string httpPUT    (string URL, string RequestBody, int  status []);
string httpPOST   (string URL, string RequestBody, int  status []);
string httpTRACE  (string URL, string RequestBody, int  status []);

string URLEncode(string toCode) {...}
string ArrayEncode(string &array[][]) {...}
void   addParam(string key, string val, string&array[][]) {...}
string hex(int i) {...}


#property copyright "JavaDev"
#property link      ""

#include <http51.mqh>

int start()
   string params [0,2];
   //params[?,0] = Key
   //params[?,1] = Value

   ArrayResize( params, 0); // Flush old data
   int status[1];           // HTTP Status code
   // Setup parameters addParam(Key,Value,paramArray)
   // TODO .... any other parameters

   //create URLEncoded string from parameters array
   string req = ArrayEncode(params);

   //Send Request 
   //string res = httpGET(""+ req, status);
   string res = httpPOST("", req, status);
   Print("HTTP:",status[0]," ", res);

http51.dll req MSVCR71.dll (Runtime Library) in system path or use dll from

Translated from Russian by MetaQuotes Software Corp.
Original code:

Decema Decema

Indicator Decema.

Mouteki-Demark trend new Mouteki-Demark trend new

Another Demark indicator.

Idicator of Resistance Line Idicator of Resistance Line

It draws the resistance line basing on two last upper fractals.

Indicator of Support Line Indicator of Support Line

It draws the support line basing on two last lower fractals.