無料でロボットをダウンロードする方法を見る
Twitter上で私たちを見つけてください。
私たちのファンページに参加してください
興味深いスクリプト?
それではリンクにそれを投稿してください。-
他の人にそれを評価してもらいます
記事を気に入りましたか?MetaTrader 5ターミナルの中でそれを試してみてください。
ライブラリ

Http Client - MetaTrader 4のためのライブラリ

ビュー:
17586
評価:
(18)
パブリッシュ済み:
2008.09.27 09:22
アップデート済み:
2014.04.21 14:53
http51-noRT.zip (26.61 KB)
http51.zip (5.01 KB)
このコードに基づいたロボットまたはインジケーターが必要なら、フリーランスでご注文ください フリーランスに移動

http51.mqh

#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) {...}

sample_http51.mq4

#property copyright "JavaDev"
#property link      "mailto:javadev@rambler.ru"

#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)
   addParam("Bid",Bid,params);
   addParam("Ask",Ask,params);
   // TODO .... any other parameters

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

   //Send Request 
   //string res = httpGET("http://127.0.0.1/test?"+ req, status);
   string res = httpPOST("http://127.0.0.1/test", req, status);
   
   Print("HTTP:",status[0]," ", res);
    
   return(0);
  }
//+------------------------------------------------------------------+

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

MetaQuotes Ltdによってロシア語から翻訳されました。
元のコード: https://www.mql5.com/ru/code/8435

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.