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
0
votes
2 answers

What is the function of the Name attribute of ReportGroupRequest in ReportsRequest method

The ReportsRequest method is documented as "Request list of closed positions for provided list of logins" it takes 2 arguments , a ReportGroupRequest Object and a list of logins. I understand what the From and To properties are of the…
0
votes
2 answers

MQL4 Not enough memory for history data

I have problem with getting time values for bar in higher timeframes. I'm testing my expert advisor in tester and when I try to use function iTime() with a PERIOD_D1 parameter I always receive a value of 1970.01.01 00:00:00. Also GetLastError()…
pankis
  • 13
  • 1
  • 4
0
votes
2 answers

Building Electron MEAN stack APP which gets data from local MetaTrader 4 Terminal

I'm building desktop MEAN ( MongoDB Express Angular NodeJS ) stack app, but I need to have an access to real time ( update on detected change ) currency exchange rates. In Excel, I can get a rate from MT4 easily with just 1 line code inside a cell,…
Georgi Antonov
  • 1,581
  • 21
  • 40
0
votes
0 answers

How to load a winform into Metatrader 4 Terminal graph via a .DLL file

I want to use a winform inside MT4, which I know is possible. Metatrader4 has its own c++ flavored language, which can import .DLL-s, but we can only use stdcall CallingConvention. I am using C# in Visual Studio 2015 to create the .DLL My approach…
Dale Woods
  • 784
  • 1
  • 13
  • 31
0
votes
1 answer

Where does MQL4 / MQL5 implementation of originally C++ AVL Tree Parent node exhibit an issue?

I dont know where I am having an issue, but I am getting a strange error in my AVL implementation, translated into MQL4/MQL5 language. In failed case, I am getting into either recursively pointing to same node problem or a detached node without…
VyshuRam
  • 93
  • 1
  • 10
0
votes
2 answers

Why is an information in my printf() function incorrect in MQL4?

My print formatting is giving me random answers, despite my coding being correct. I'm trying to display the candle bar lengths of the previous two candle bars prior to a trade entry. Here is the coding I've used. PCL1 & PCL2 are the relevant field…
user6216142
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
2 answers

Where to fetch REAL- TIME economic data announcements for use in algorithmic trading?

I'm looking to fetch values of macro- economic announcement data (e.g. interest rate announcements, unemployment figures, consumer price index figures etc.) as soon as/ as near to the time the figures are released from the original source to be used…
p.luck
  • 646
  • 2
  • 9
  • 34
0
votes
1 answer

How to use MetaTrader4.Manager.Wrapper to listening the event of TradeAdded/TradeClosed/TradeDeleted

I wand to listening the event of TradeAdded/TradeClosed/TradeDeleted ,that's my code: public partial class Demo : Form { public static ConnectionParameters conParam = new ConnectionParameters(); public static ClrWrapper mt; private…
Mumu
  • 11
  • 3
0
votes
1 answer

Is there a way to use Metatrader4 C++ version dll with C# to connect to live server

My application is based on asp.net mvc , c# and my client want to connect this application with MT4 server.There is server api https://support.metaquotes.net/ru/docs/mt4/api/server_api which is in c++.This api help to login at MT4.My application is…
0
votes
1 answer

Calling OrderOpenPrice() in OrderSelect() causes crash MT4 (on W7)

The next function closes orders in my EA. It works fine while the 3rd if(...)-code-block is quoted-out. When it is activated in the function, MT4 stops and W7 pops up with a message saying there's a problem with the program (MT4). Defining the…
0
votes
1 answer

MT4 Trade Panel Lot Step

I need to write "Decrease & Increase" function code for "LOT_MINUS_LABEL". int OnInit() { ObjectCreate ( 0, "LOT_MINUS_LABEL", OBJ_LABEL, 0, 0, 0 ); } int OnChartEvent() { MarketInfo(Symbol, MODE_LOTSTEP); }
Max-Enrik
  • 61
  • 13
0
votes
2 answers

Email Notification when Expert Advisor fails to close a trading position

I'm trying to develop a piece of MQL4 code which sends you a notification when an position opened by an Expert Advisor fails to close/liquidate when the conditions specified by the Expert Advisor are met. Here is what I have so far.The…
user6216142
0
votes
1 answer

MQL4: Read single value from CSV

I'm trying to fetch one value from the data source website Quandlto be used within a MetaTrader4 script. The data source site provides a method to export data via API formats including .csv, .json or .xml. I have chosen the .csv format, which the…
p.luck
  • 646
  • 2
  • 9
  • 34
0
votes
1 answer

MQL4: Execute function if x is more than y

Using MQL4, how can I execute a BUY order (seen below)if one variable x has a value of 1and another variable y has a value of 3? I need it to work like this: Variable x = 1 Variable y = 3 So if x is MORE THAN y, execute this script: extern int…
p.luck
  • 646
  • 2
  • 9
  • 34