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

How to export to a CSV file from an Existent MT4 Indicator code

I would like to export the results to a CSV file. This is the iExposure Indicator (iExposure.mq4) from MT4. Currently there is now way that I know how to export the values to CSV This is the code i tried to use which could export to CSV. int h1; h1…
user3882389
  • 56
  • 2
  • 11
0
votes
1 answer

MT4 plugin is correct to use c++-cli

I am just wondering is it ok to use c++/CLI to interract with the MT4ServerAPI istead of native c++? Does it cause any problem to use c++/cli? I know it is working just fine but I get some warnings about .NET is not recommended to use with MT4. Why…
CompuPlanet
  • 151
  • 1
  • 11
0
votes
1 answer

MySQL insert error 1064

I am trying to insert some data from MT4 via libmysql.dll using an mysql wrapper. I have successfully managed to create and select a database, create a table, and even retrieve entries from a table (which were entered into a table from mysql…
user3180258
  • 97
  • 13
0
votes
1 answer

How to resolve split directory name issue in ShellExecuteW

I am coding in Metatrader and using ShellExecuteW to open a local browser with a html file that is written within Metatrader. All works perfectly except when the directory that a user has his Metatrader platform installed in is a split name…
Brooky
  • 11
  • 1
  • 1
0
votes
2 answers

How to connect to Mysql from C# as MT4 dll?

I am new to C#. I want to connect to Mysql Database from MT4 using DLL. I found how to create MT4 dll using C# here : http://vb6-to-csharp.blogspot.com/2012/04/code-to-export-c-dll-to-metatrader.html , and how to connect to Mysql database using C#…
user2758001
  • 109
  • 4
  • 11
0
votes
3 answers

MT4 - Mysql connection via PHP

I need to get/send data from MT4 from/to Mysql database. I used "libmysql.dll" or mysql_wrapper (also based on libmysql.dll), but it seems not stable. I think may be i can use PHP as server (creating TCP/IP socket at a specified port) and MT4…
user2758001
  • 109
  • 4
  • 11
0
votes
1 answer

MQL4 - Multidimensional Array as Parameter in Function where is inserted a one-dimensional array

I supposed it would be much easier, but I cant use a two-dimensional array as parameter in a simple mql4 function and insert elements in it. I don't know where the problem is. I have a function declared like this: void insert_array_in_multi(double…
Alberto Martín
  • 439
  • 13
  • 26
-1
votes
1 answer

Delete a file inside a folder on Common Metatrader Folder with MQL4

I have an EA that accesses a file inside a folder called "MyFolder" in FILE_COMMON folder (\Terminal\Common\Files) and extracts information from it. Then I simply want to delete that file. I tried this and many other combinations without…
ZeCarlos
  • 1
  • 1
-1
votes
1 answer

Fibonacci retracement (line missing)

I have mql4 programming code of MT4 terminal's tool of Fibonacci Retracement. It automatically draws accurate % lines on chart regardless of type of financial instrument. The problem with the first code, which I am entirely copy pasting below, is…
Puppy00
  • 1
  • 1
-1
votes
1 answer

After rounduing float variable, there still be number `0.80000001`

I ma using MT4 but it might be the general question of floating number. I am using NormalizeDouble function which rounds the digit of numbers like this. double x = 1.33242 y = NormalizeDouble(x,2) // y is 1.33 However in some case. Even after…
whitebear
  • 11,200
  • 24
  • 114
  • 237
-1
votes
2 answers

How to automatically calculate fibonnacci levels from yesterday/prev day in MQL4?

how do I calculate the fibo levels from yesterday/previous day. This is how far I am currently: int shift = iBarShift( NULL, PERIOD_D1, Time[0] ) + 1; // yesterday HiPrice = iHigh( NULL, PERIOD_D1, shift); LoPrice = iLow ( …
Salexes
  • 187
  • 1
  • 2
  • 20
-2
votes
1 answer

Can someone provide the REST api or powershell script for the MT4 Manager API account creation, deposit/withdrawals?

Please provide the REST api for MT4 Manager API or the powershell example.
Sprograms
  • 85
  • 1
  • 1
  • 8
-2
votes
1 answer

Convert PHP Code Block (fsockopen, fputs, feof, fgets) into C#

I need someone to convert this php code block into equivalent C#. We are working on MT4 to register user via asp.net web application. We have been given the php version of the site to post the user information. every things is setup accordingly.…
Khalil
  • 119
  • 1
  • 14
-3
votes
2 answers

Is there a way to programmatically avoid EA trading under major FOREX news?

May I know is there a way to programmatically detect major FOREX news and avoid trading in those time frame?
william007
  • 17,375
  • 25
  • 118
  • 194
1 2 3
14
15