Hello all,
I am a forex trader, and a coder too. I am having a hard time to try to have a way to do the following but too busy with many other tasks...
I need a way to upload a file from MQL4\Files (or sub folder of this) at certain time interval to a web space but not to use DLL or SendFTP. There are 2 parts of the coding: Client side, and Server side.
(1) Client side: an Expert Adviser running in MT4 or MT5 platform. This must use WebRequest with Post method.
(2) Server side: a PHP file that can receive communication from the EA to do the uploading to the right location on the server.
Update: I have been able to create an .html file (Upload.html) on client's computer and upload.php on sever to do the uploading. You can try it here:
http://iamintofx.com/Upload.html
What I don't know yet is to construct "headers" string and "data" array in WebRequest() function as below (so that we have the correct request message sent to server):
| int WebRequest( const string method, // HTTP method const string url, // URL const string headers, // headers int timeout, // timeout const char &data[], // the array of the HTTP message body char &result[], // an array containing server response data string &result_headers // headers of server response ); |
Thank you
類似した注文
Hello, I am interested in developing a professional MT5 Expert Advisor similar in functionality and technical sophistication to your reference product, Institutional SMC Robot: https://www.mql5.com/en/market/product/187011 I want to develop my own independent EA based on advanced Smart Money Concepts (SMC), with a strong focus on institutional price action, liquidity and market structure. The key functionalities I
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical
Hi, I need NinjaTrader 8 Strategy Analyzer backtests on two of my strategies, each over 1 year AND 3 years of data. Please quote the full job. Common settings: NT8 Strategy Analyzer, MCL (Micro WTI Crude Oil) continuous front-month contract (MCL ##-##), 5-minute bars, 1yr + 3yr of the most recent data, $2.50 round-turn commission per contract. Deliverables per run: full Strategy Analyzer summary (net profit, profit