Questions tagged [metatrader4]

MetaTrader 4 is an electronic client/server trading platform widely used by online retail foreign exchange speculative traders. Anthony Papaevagorou, head of sales at MetaQuotes, has announced MetaQuotes no longer intends to issue upgrades to the MetaTrader 4 (MT4) [ recently reported on 2016-11-15 ]

MetaTrader 4, also known as MT4, is an electronic trading platform widely used by online retail foreign exchange speculative traders. It was developed by MetaQuotes Software and released in 2005. The software is licensed to foreign exchange brokers who provide the software to their clients.

The software consists of both a client and server component. The server component is run by the broker and the client software is provided to the brokers customers, which use it to see live streaming prices, charts and to place orders as well as manage their account.

MetaQuotes head of sales, Anthony Papaevagorou, has announced MetaQuotes no longer intends to issue upgrades to the MetaTrader 4 (MT4) [ reported on 2016-11-15 ]

437 questions
2
votes
2 answers

MT4 Time based entry signal in MetaTrader4

Does anyone have any example code for how to generate a time of day based entry signal in Metatrader 4? e.g. at a particular hour and minute of each day
acheo
  • 3,106
  • 2
  • 32
  • 57
2
votes
2 answers

MQL4 Indicator passing signal to EA

the problem is, I want to open order when my indicator gives signal. How can I do that? I have been trying to do with iCustom() but it is not satisfying. I tried to use GlobalVariableSet() in indicator and GlobalVariableGet() method in EA but it is…
Ergin Ersoy
  • 890
  • 8
  • 28
2
votes
3 answers

Simple example of MetaTrader custom indicator written in C++?

Due to differences in technical indicator calculations between my testing platform and MT4 I have decided to try and bring the open source TA-LIB API into MetaTrader via a custom indicator DLL compatible with MetaTrader. I know that to make…
antfx
  • 3,205
  • 3
  • 35
  • 45
2
votes
3 answers

How to export an MT4 chart data to a CSV-file via script?

This mql4 script is not exporting to CSV-file when attached to a chart. Why? static datetime check; //+------------------------------------------------------------------+ //| scripts/Export.mq4 pre Build 562- | //| …
ssn
  • 439
  • 5
  • 14
2
votes
4 answers

Import historical Metatrader CSV data to Python with Pandas library (date/time parsing)

I have some CSV data like 2011.12.08,22:45,1.33434,1.33465,1.33415,1.33419,265 2011.12.08,23:00,1.33419,1.33542,1.33419,1.33472,391 2011.12.08,23:15,1.33470,1.33483,1.33383,1.33411,420 2011.12.08,23:30,1.33413,1.33451,1.33389,1.33400,285 coming…
Femto Trader
  • 1,932
  • 2
  • 20
  • 25
1
vote
2 answers

Script/Code to add/modify user accounts in Metatrader Manager

I've been working with MT4 client app during several years, until there, everything is ok. Now i need to work with "Metatrader Manager"; i need to manage user accounts, thousands of them, so i need to program some code to do it since it's impossible…
Alberto Martín
  • 439
  • 13
  • 26
1
vote
2 answers

Metatrader 4 control via tcp/ip

Here Malte talking about MT4 Server API. Could anybody tell me some simple "how to"? where to get the DLL, install and run it inside the mt4 terminal any known "protocol commands" via the API (as Malte told, it is undocumented) So, i don't want…
clt60
  • 62,119
  • 17
  • 107
  • 194
1
vote
2 answers

Weekly profit per symbol

I have created a function to calculate my weekly profit and loss. It worked as per below and I would to break it down to have the only per symbols/pairs. I have been stucked on this aggregation. Any hints are appreciated. string…
mraniki
  • 21
  • 1
  • 6
1
vote
0 answers

C++ - How to listen to a server sent event (SEE)?

I am trying to listen to a server sent event (SEE) in C++/MQL4 natively. Basically, through a web hook data is sent, then on the desktop I'm willing to listen to the new incoming information from the…
Hamza L.
  • 1,783
  • 4
  • 25
  • 47
1
vote
1 answer

run MetaTrader 5 on server (for python)

I can’t seem to find a solution on how to run MetaTrader 5 on a server like replit.io or etc. The code works on local desktop, but I believe the code on the server can’t initialize mt5. is there a solution for this? running a virtual machine is one…
1
vote
0 answers

How to fix Close[1] & Close[2]

I have a problem with my EA trades, now I will show you the code with a screenshot of a trade (it happens often) I see that I was definitely wrong for how the entry below must read I put an image where it explains what I have in mind void…
1
vote
1 answer

question about Drawing arrows using iBarshift

I am trying to draw Arrows Based on another indicator's signal from higher timeframe, but the problem i am facing is that it draws the arrow on multiple candles For example : If I check the arrow visibility on W1 timeframe and have the my indicator…
Sam
  • 161
  • 1
  • 11
1
vote
2 answers

Efficiently reading csv file in MQL4?

I placed "AAPL.csv" into the MetaTrader terminal folder's Files subfolder (MQL4/Files) to be accessible by the EA. The structure of this csv is as follows: Date,Open,High,Low,Close,Adj…
lazarea
  • 1,129
  • 14
  • 43
1
vote
0 answers

How could I get values of indicators used in a chart in MetaTrader 4?

I need to get the opened indicators values (a bunch of this) from a current chart of MetaTrader 4 (by using mql4), and export this values on python (by using ZeroMQ library), in order to create a dictionary of this values and using it for other…
1
vote
1 answer

Why MQL4 Backtest RSI values do not match with RSI on chart?

I have a simple backtest of below EA: void OnTick() { double rsi = iRSI( Symbol(), PERIOD_M5, 14, PRICE_CLOSE, 0 ); int day = TimeDay( TimeCurrent() ); int hour = TimeHour( TimeCurrent() ); int min …
dvn0zzz
  • 337
  • 3
  • 13