Download Automaticaly file

MQL5 Experten

Auftrag beendet

Ausführungszeit 1 Tag
Bewertung des Kunden
Alain Is very professional data scientist, I full recommend, this is the man!
Bewertung des Entwicklers
Interesting job and very nice customer. Recommended.

Spezifikation

Hi,


   I have an EA that is feed with a file wich need to be extracted from internet every day from a web site. To do this mannualy I need to click on a button in this site and the file is downloaded (picture bellow), but I would like to do this automatically, Using WebRequest() The file must be downloaded on actual date of the form to "File" folder and then unziped there overwirting the older file.

http://www.b3.com.br/pt_br/market-data-e-indices/servicos-de-dados/market-data/consultas/mercado-a-vista/opcoes/posicoes-em-aberto/


You can use the code bellow as example, it works but the date of the form is fixed, you need put always the actual date

Use Chrome to inspect, the execution and debug what happens



oid OnStart() 
  { 
   string cookie=NULL,headers; 
   char   post[],result[]; 
   string url="http://www.b3.com.br/lumis/portal/file/fileDownload.jsp?fileId=8AE490C96A051101016A0596E52F6182"; 
//--- para trabalhar com o servidor é necessário adicionar a URL "https://finance.yahoo.com" 
//--- na lista de URLs permitidas (menu Principal->Ferramentas->Opções, guia "Experts"): 
//--- redefinimos o código do último erro 
   ResetLastError(); 
//--- download da página html do Yahoo Finance 
   int res=WebRequest("GET",url,cookie,NULL,500,post,0,result,headers); 
   if(res==-1) 
     { 
      Print("Erro no WebRequest. Código de erro =",GetLastError()); 
      //--- é possível que a URL não esteja na lista, exibimos uma mensagem sobre a necessidade de adicioná-la 
      MessageBox("É necessário adicionar um endereço '"+url+"' à lista de URL permitidas na guia 'Experts'","Erro",MB_ICONINFORMATION); 
     } 
   else 
     { 
      if(res==200) 
        { 
         //--- download bem-sucedido 
         PrintFormat("O arquivo foi baixado com sucesso, tamanho %d bytes.",ArraySize(result)); 
         //PrintFormat("Cabeçalhos do servidor: %s",headers); 
         //--- salvamos os dados em um arquivo 
         int filehandle=FileOpen("url.zip",FILE_WRITE|FILE_BIN); 
         if(filehandle!=INVALID_HANDLE) 
           { 
            //--- armazenamos o conteúdo do array result[] no arquivo 
            FileWriteArray(filehandle,result,0,ArraySize(result)); 
            //--- fechamos o arquivo 
            FileClose(filehandle); 
           } 
         else 
            Print("Erro em FileOpen. Código de erro =",GetLastError()); 
        } 
      else 
         PrintFormat("Erro de download '%s', código %d",url,res); 
     } 
  }


Bewerbungen

1
Entwickler 1
Bewertung
(277)
Projekte
334
55%
Schlichtung
14
36% / 29%
Frist nicht eingehalten
1
0%
Frei
2
Entwickler 2
Bewertung
(94)
Projekte
148
59%
Schlichtung
16
38% / 13%
Frist nicht eingehalten
25
17%
Frei
Veröffentlicht: 1 Beispiel
3
Entwickler 3
Bewertung
(144)
Projekte
285
42%
Schlichtung
19
63% / 5%
Frist nicht eingehalten
29
10%
Frei
Veröffentlicht: 2 Beispiele
4
Entwickler 4
Bewertung
(23)
Projekte
25
12%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
8
32%
Frei
5
Entwickler 5
Bewertung
(215)
Projekte
302
79%
Schlichtung
4
25% / 0%
Frist nicht eingehalten
62
21%
Frei
Veröffentlicht: 7 Beispiele
Ähnliche Aufträge
The detailed specification of the trading strategy is attached. The key here is thet the EA needs to be simple to use yet effective. The indicators DO NOT have buffers that can be used for EAs
Broker is Blackwell Global. I run a MAM account and have been using a bot that uses 0.02 lots per £100 with only 1.5% risk per trade but the bot has been unprofitable. The more lots per £100 the better, but risk of roughly 1%-2% + fees of 4 pence per 0.01 lots should be considered. The more trades the system does the better, as this is a MAM account - HFT would be perfect but any strategy is okay. Any forex pair is
I am looking for an experienced MQL5 developer to build a fully automated trading bot (Expert Advisor) for MetaTrader 5 . The bot will focus on trend-following scalping and must be designed to trade XAUUSD and BTC on the M1 timeframe . The objective is to create a stable and efficient EA that can open multiple trades per day while managing risk using proper stop-loss, take-profit, and trailing stop mechanisms
I am looking for MQL5 Programmer who can convert a trading view indicator into MT5 Prop firm EA. The EA should follow all trading rules of a prop firm and able to pass evaluations. The EA should be able to generate profits in funded account also. There must be dashboard that should all parameters like Account size, daily drawdown, target profit, session name, etc. Please contact me for more details
I am looking for an experienced MT4 (MQL4) developer to build a Harmonic Pattern Indicator with a PRZ (Potential Reversal Zone) detection system , similar to advanced harmonic scanners. Kindly apply if you can handle this project. Note: I don't want unprofessional developer
hello, i want a convertion of this trading view indicator FVG (NEPHEW_SAM_) to mql5 to be add later to an expert advisor. i want to access this data, gap data printed on current timeframe and multi timeframe that i choose (current, timeF1, timeF2, timeF3, timeF4)(gap time, gap value, top gap value, low gap value, gap type bull / bear, gap type iFVG or FVG). a function that check if the price is checking the gap at
I have developed a ready-made quantitative trading system for MetaTrader 5. The system uses an ensemble of machine learning models (XGBoost, LightGBM, Random Forest) combined with a market regime filter based on a Hidden Markov Model. Core features: - Automated trading for XAUUSD - Risk management and dynamic position sizing - Market regime detection (trend / range) - Volatility filter - Telegram monitoring interface
Hello 100 - 200 USD
Programmer Requirement The programmer must have good experience with the following indicators and price action patterns used in this strategy: Bollinger Bands RSI ATR The programmer must also understand and correctly implement the following candlestick patterns: Bullish Engulfing Bullish Pin Bar Bearish Engulfing Bearish Pin Bar The programmer must have experience combining technical indicators with candlestick
EA CONVERTER 30 - 100 USD
I need someone who can create EA CONVERTER that can installed in my phone and convert my EA into mobile bot and should be my app ,and people should be able to use it they're are interested but they should pay for it
I need EA programmer to create me an Ea that trades Gold and Indices it should be mobile bot automation, that can both scalp and swing trades, the bot should use top analysis from D1 then H4 and H1

Projektdetails

Budget
30 - 40 USD