mql4

Troubles with zmq_bind() in ZeroMQ binding for MQL4 language

时光毁灭记忆、已成空白 提交于 2019-12-03 21:27:33
I am working on MT4 and used wrapper mql4zmq.dll as given in link https://github.com/AustenConrad/mql4zmq As I have followed all instruction and successfully loaded DLL as well as lib file at specific locations from pre-compiled. But it can not bind or connect with socket through zmq_connect(,) or zmq_bind(,) . Please some one help me to solve this problem. I am posting my code here // Include the libzmq.dll abstraction wrapper. #include <mql4zmq.mqh> //+------------------------------------------------------------------+ //| variable definitions | //+-------------------------------------------

How can I write mql4 code (EA) that marks the listed candle patterns with rectangles

混江龙づ霸主 提交于 2019-12-03 11:45:12
问题 I am quite new to writing mql4 code and would be grateful if I could get some help drawing rectangles when the following candlestick patterns occur: FIG1: Run code snippet <blockquote class="imgur-embed-pub" lang="en" data-id="a/fRoPzsm"><a href="//imgur.com/a/fRoPzsm">Demand Zone 1</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script> FIG2: Run code snippet <blockquote class="imgur-embed-pub" lang="en" data-id="a/4E8KE1R" data-context="false"><a href="/

Writing an expert adviser in [ MQL4 ]

一曲冷凌霜 提交于 2019-12-01 09:18:30
问题 So if I wanted an EA in MQL4 that took the open price and when current price was 10 pips below the open it places a buy order and when it was 10 pips above the open it sold. Only one order at a time and the open changed daily. Q1: How could that run unstopped? Q2: Would that even be profitable? I know this is simple for some people to write but for me it's depressing. 回答1: A1: the simplest part ... The MQL4 Expert Advisor type-of-code's execution can be principally run unstopped, supposing

How to compile an MQL4 file with a command-line tool?

核能气质少年 提交于 2019-11-29 15:32:39
问题 Now I am compiling my MetaTrader .mq4 files to .ex4 files with MetaEditor . But my .mq4 files are generated by a Java-process, and I would like to automate the compilation process. Is there a command-line compiler tool I could call programmatically? 回答1: Yes, there is an executable in the install directory of the terminal. It is called metalang.exe. 回答2: To compile a source code file from a command line, you can use MetaEditor for that. For example: metaeditor.exe /compile:"C:\Program Files

How to send a POST with a JSON in a WebRequest() call using MQL4?

♀尐吖头ヾ 提交于 2019-11-29 07:51:07
I would like to send a POST from MQL4 -script, using a JSON-format to a Node-server. I've tried the webRequest() standard function in MQL4 , based on the following documentation, but it did NOT success. From MQL4 Documentation: Sending simple requests of type "key=value" using the header `Content-Type: application/x-www-form-urlencoded`. int WebRequest( const string method, // HTTP method const string url, // URL const string cookie, // cookie const string referer, // referer int timeout, // timeout const char &data[], // the array of the HTTP message body int data_size, // data[] array size

Asynchronous web requests for MetaTrader [closed]

陌路散爱 提交于 2019-11-29 00:05:19
I am trying to see whether it is feasible to build a custom indicator for MetaTrader that can make asynchronous internet requests, in order to post data to a server with a PHP interface. These requests might take some time for the webserver to process, so I am worried that they will block the indicator from continuously updating new tick data if they are performed in a synchronous manner. Are there any asynchronous libraries available for MT4? Yes, there are MT4 can directly use ready-made bindings for great platform-to-platform & process-to-process messaging library, be it ZeroMQ or nanomsg .

How do I get market data with MQL4?

僤鯓⒐⒋嵵緔 提交于 2019-11-28 14:49:35
I am using metatrader4 and I can get any information 'but' the market data from btc-e http://docs.mql4.com/constants/environment_state/marketinfoconstants I.E. double pending = MarketInfo(Symbol(),MODE_PENDING); MessageBox( DoubleToStr(pending) ); just like the market data on the right hand side of this chart https://bitcoinwisdom.com/markets/btce/ltcusd , all the pending buy/sell orders, same market and everything. How do I dump the pending volume using MQL4? First, let's start with the < code >-snippet mis-concept As seen in the provided < code >-snippet, there is a principal error/mis

How to send a POST with a JSON in a WebRequest() call using MQL4?

萝らか妹 提交于 2019-11-27 18:51:19
问题 I would like to send a POST from MQL4 -script, using a JSON-format to a Node-server. I've tried the webRequest() standard function in MQL4 , based on the following documentation, but it did NOT success. From MQL4 Documentation: Sending simple requests of type "key=value" using the header `Content-Type: application/x-www-form-urlencoded`. int WebRequest( const string method, // HTTP method const string url, // URL const string cookie, // cookie const string referer, // referer int timeout, //

Asynchronous web requests for MetaTrader [closed]

冷暖自知 提交于 2019-11-27 15:13:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am trying to see whether it is feasible to build a custom indicator for MetaTrader that can make asynchronous internet requests, in order to post data to a server with a PHP interface. These requests might take some time for the webserver to process, so I am worried that they will block the indicator from

How do I get market data with MQL4?

这一生的挚爱 提交于 2019-11-27 08:53:23
问题 I am using metatrader4 and I can get any information 'but' the market data from btc-e http://docs.mql4.com/constants/environment_state/marketinfoconstants I.E. double pending = MarketInfo(Symbol(),MODE_PENDING); MessageBox( DoubleToStr(pending) ); just like the market data on the right hand side of this chart https://bitcoinwisdom.com/markets/btce/ltcusd , all the pending buy/sell orders, same market and everything. How do I dump the pending volume using MQL4? 回答1: First, let's start with the