Questions tagged [mt4]

MetaTrader 4 is a software platform for manual and automatic trading, including free clients (end-user terminals) for Windows, iPhone, and Android, as well as server-side modules for processing trade transactions, storing and distributing history of quotes, proxy-servers, and administration tools (for brokers).

MetaTrader 4 is a widespread online trading platform designed to provide brokerage services to customers in FOREX Majors, Metals, Commodities, CFD, Indices, Futures and recently even BTC cryptocurrency markets.

The MetaTrader Terminal 4 natively supports a built-in programming language MQL4 and other DLL #import-s, which together allows users to extend the standard functionality with custom scripts, expert advisers (trading robots) and technical indicators.

MetaTrader server-side functionality is also extensible with their proprietary MetaTrader 4 API.

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

225 questions
0
votes
1 answer

MetaTrader 4: Is it possible to run a script (*.ex4) from Windows' command line?

I would like to know if there is a way to run a MetaTrader 4 script from outside MetaTrader. I think it could be an option like terminal.exe /run myScript.ex4 I need to run it every N seconds from VBA Excel code. No problem about running a piece of…
Richard Steele
  • 95
  • 1
  • 10
0
votes
1 answer

How to make a DLL for MT4 (using Linux)?

I'm using Linux (Ubuntu) 64bit system and need to make a DLL for MetaTrader4. I did read lots of things I found about it, but it is very chaotic and confusing. There are many DLLs which are not acceptable for MT4. So far it seems that I need: a…
ZsG
  • 73
  • 1
  • 8
0
votes
0 answers

FileWrite on MQL5 VPS

I have an mt4 account hosted on a VPS of mql5 community. I have it setup such that it'll write the history of trades on a csv every OnDeInit() [FileWrite function used]. While the Home Computer is on, it will monitor the trades. The VPS EA will also…
0
votes
0 answers

C++: Error LNK2019 when building DLL from standard libraries

I try to build a DLL to allow my MT4 ( a well-known FX e-trading platform ) to also communicate with my server via Sockets ( see the code below, it works in the console program ) using Visual Studio 2017 and have encountered LNK2019 error. From what…
Ben KWAN
  • 1
  • 1
0
votes
2 answers

MQL4: OrderModify() always gets 130 response

I want my EA to modify an order automatically, to put a StopLoss once in a profit state, but why it always error? I already get the minimum point level as well, but it did not give me any luck. Here is the vars double _stopLevelTimes = 1.5; …
user7857373
0
votes
0 answers

Failed to instantiate manager instance

I am using this library to develop a asp.net web api for MetaTrader4, but failed to instantiate. Here is My trial: [Route("users/")] public IList GetAllUsers() { IList users; using (var metatrader = new ClrWrapper(new…
Jacky Lau
  • 665
  • 5
  • 21
0
votes
1 answer

time specific code in MT4

In MT4 custom indicator/EA, how do I work with time please? E.g every day 08:05, I would like to check the High/Low of this 5min bar. I don't know how to work with this 5 minute period only. Many thanks Vic
Victor
  • 659
  • 3
  • 8
  • 19
0
votes
1 answer

iCustom() buffer - how to get values from Custom Indicator buffers in MT4?

I am trying to write an EA that will place a BUY, when the Custom Indicator shows an arrow { sell or buy }. I am using an iCustom() to do that, but I am struggling with comparing values. Here is my code: void OnTick() { //--- double…
Mathunya
  • 59
  • 1
  • 6
0
votes
1 answer

How to delete a built-in indicator ( NOT an iCustom() one ) entirely from MT4 platform?

I wonder how do I permanently delete indicator from MT4 software? Indicator, in my case Average True Range, is the original one and NOT a custom. I would like to delete it from menu, so entirely from the MetaTrader Terminal 4 software and not only…
Johan
  • 9
  • 1
0
votes
1 answer

Custom data sources, how to fill the market data into the MT4 server?

I have custom data sources, but I do not know how to fill the market data into the MT4 server. So how do I insert new market data to MetaTrader 4 server? I got the DataReed API (read function) in the document, but in my mind it's used for MT4 to…
dxhame
  • 3
  • 1
0
votes
1 answer

Automated trading using MT4 webclient

Is it possible to use the MT4 webclient for automated trading? I.e. Can expert advisors be developed and executed in the MT4 webclient?
Oblomov
  • 8,953
  • 22
  • 60
  • 106
0
votes
3 answers

Alpha 32bit (Bitmap Object) in MT4

I am researching about Bitmap object that how I can use Bitmap Objects with Alpha 32bit file, but have found nothing. I already asked in few forums still nothing there about this Bitmap Alpha 32bit file. Just my purpose how I can use my alpha image?…
Max-Enrik
  • 61
  • 13
0
votes
0 answers

Why is the form freezing, when loaded from static method in MetaTrader Terminal 4?

I have the following class in .NET DLL, that exports a function Initialize(): public class Class1 { public static Indicator a = null; private static int k = 0; [DllExport( "Add", CallingConvention = CallingConvention.StdCall…
esalem
  • 19
  • 1
0
votes
1 answer

MT4 - PERIOD 's

I use below code for #1 screenshot. int _objfnd = ObjectFind( name ); if ( _objfnd == -1 ) { ObjectCreate ( _vlineName, OBJ_VLINE, 0, Time[i], 0 ); ... } and I use below code for #2 screenshot. int _objfnd = ObjectFind( name ); if (…
Max-Enrik
  • 61
  • 13
0
votes
1 answer

Sending a notification only once and not on every tick

How would I enable my EA to send a notification only once to my iPhone when the else if (ClosePosition == false) condition returns true (in other words, when my EA fails to close an EA-opened position). At the moment, it pings on every tick. The…
user6216142