MQl5 work with webrequest

MQL5 Entegrasyon

İş tamamlandı

Tamamlanma süresi: 1 gün
Müşteri tarafından geri bildirim
Very good work. Thank you very much, anytime again.

İş Gereklilikleri

An mql5 program
Every hour (3600 seconds, you should be able to change the seconds) a webrequeset should be issued. THE webrequest has the following structure:



URL : https://golden.maxapex.net/apex/a223983/mql5/create_trades/
Method : POST
Header : Content-Type: application/json
Raw Payload: {"loadid": 1, "column0": "value0", "column1": "value1", "column2": "value2", "column3": "value3", "column4": "value4",
"column5": "value5", "column6": "value6", "column7": "value7", "column8": "value8", "column9": "value9", "column10": "value10", "column11 ": "value11", "column12": "value12", "column13": "value13"}
 The following values ​​should be passed:



XXX

{

   ulong deal_ticket; // Ticket Deals
   ulong order_ticket; // Order ticket for which deal was made
   datetime transaction_time; // Time of transaction
   long deal_type ; // Trade operation type
   long position_ID; // Position identifier
   string deal_description; // Description of the operation
   double-volume; // volume of operation
   string symbol; // Symbol of the deal
   //---
   double swap;
   double fee;
   double sl;
   double tp;
   string comment;
   //
   string mail
   string expert advisor
  
     datetime from_date=TimeCurrent()-3600; // begin
   datetime to_date=TimeCurrent();// End
//--- request the history of deals at the specified interval
   HistorySelect(from_date,to_date);
//--- total number in the deals list
   int deals=HistoryDealsTotal();
   
   for(int i=0;i<deals;i++)
     {
      deal_ticket= HistoryDealGetTicket(i);
      volume= HistoryDealGetDouble(deal_ticket,DEAL_VOLUME);
      transaction_time=(datetime)HistoryDealGetInteger(deal_ticket,DEAL_TIME);
      order_ticket= HistoryDealGetInteger(deal_ticket,DEAL_ORDER);
      deal_type= HistoryDealGetInteger(deal_ticket,DEAL_TYPE);
      symbol= HistoryDealGetString(deal_ticket,DEAL_SYMBOL);
      position_ID= HistoryDealGetInteger(deal_ticket,DEAL_POSITION_ID);
      swap= HistoryDealGetDouble(deal_ticket,DEAL_SWAP);
      fee= HistoryDealGetDouble(deal_ticket,DEAL_FEE);
      sl= HistoryDealGetDouble(deal_ticket,DEAL_SL);
      tp= HistoryDealGetDouble(deal_ticket,DEAL_TP);
      comment= HistoryDealGetString(deal_ticket,DEAL_COMMENT);
mail= 'test@domain.de';
expertadvisor= 'ea1';
       
      
   int res =WebRequest(yyy)
 }
 
  
  }
 
 
 The data should therefore be sent with the webrequet for each trade:
 value0 = deal_ticket
 value1 = Volume
 value2 = Transaction_time
 value3 = order_ticket
 value4 = deal_type
 value5 = symbol
 value6 = position_id
 value7 = swap
 value8 = fee
 value9 = sl
 value10 = tp
 value11 = comments
 value12 = mail
 value13 = expetadvior
 
 

Please provide the Mql5 source code. I actually only need to call function XXX and call web request yyy.

I need the source code


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(33)
Projeler
54
30%
Arabuluculuk
8
0% / 63%
Süresi dolmuş
13
24%
Serbest
2
Geliştirici 2
Derecelendirme
(30)
Projeler
55
22%
Arabuluculuk
12
67% / 8%
Süresi dolmuş
2
4%
Serbest
3
Geliştirici 3
Derecelendirme
(256)
Projeler
415
38%
Arabuluculuk
86
44% / 19%
Süresi dolmuş
70
17%
Meşgul

Proje bilgisi

Bütçe
30 - 75 USD
KDV (19%): 5.7 - 14.25 USD
Toplam: 35.7 - 89.25 USD
Geliştirici için
27 - 67.5 USD
Son teslim tarihi
from 2 to 5 gün