Questions tagged [metatrader5]

MT5 Client Terminal trading platform and MT5 Server are parts of the Client/Server infrastructure for Brokers to provide brokerage services for clients, who can access and trade on Forex, CFD, Commodities, Futures, DeFi and equity markets. Both manual ( discretionary ) and algorithmic trading styles are supported on MT5 Client Terminal, mobile-based and web-based trading with also built-in and/or 3rd party assisted back-testing analyses tooling available.

MetaTrader 5, also known as MT5, was launched as a new product-line, after well known MetaTrader 4 platform has reached a phase of core-platform re-engineering.

MT5 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, often branded under their respective names, the MT4/5-Terminal software to their clients.

The software consists of both a client and server components. The server-side, multi-host components are run by the broker, typically as a colocated infrastructure as close as possible to their FX-market liquidity provider DataCenter, 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) in favour of further promoting only the MetaTrader 5 (MT5) as the MetaQuotes' sole, flag-ship product [ reported on 2016-11-15 ]

287 questions
0
votes
2 answers

How to get a trading account's history from any [ MetaTrader Server ] without using a [ MetaTrader Terminal ]?

Is there any way to get history for trading account from any MT server in C# without MT terminal? What we have: Server IP address Login (account number) Password
SYL
  • 337
  • 4
  • 16
0
votes
2 answers

How to make a Demo-version of an [EA] work on a MetaTrader live-account?

I have an ExpertAdvisor ( EA ), named Hedging Recovery EA, it works correctly on my demo MetaTrader account, now I'm about to create an account with a 5 USD deposit and about to deposit +1000 USD on it, but I'm not sure, if the EA will work,…
0
votes
1 answer

Get count and volume candle in OnCalculate

I would like to know how to pick up the candle volume and a "counter" the candle in question. When I caught the tick_volume[rates_total] is different with the volume presented to me when I use the indicator "Volume". Am I doing something wrong?
Matheus Velloso
  • 175
  • 1
  • 9
0
votes
1 answer

OnTesterInit works too long

When running an optimization on Metrader 5 I get the following error message : OnTesterInit works too long... This error occurs 5 times and is then followed the following : OnTesterInit works too long. Tester cannot be initialized. There are…
Freek Nortier
  • 780
  • 1
  • 13
  • 27
0
votes
1 answer

How to draw a trend line on the chart?

I want to draw a trend line on the chart in MQL5. I tried it with this method: ChartIndicatorAdd(0,0,handle); However, it did not work and getting below error:- runtime error (4107)
Martin Koner
  • 3
  • 1
  • 2
0
votes
1 answer

Metatrader5 prevent autotrade

I would like to prevent MetaTrader5 to be generating autotrades on my Demo Account at "MetaQuotes", i.e. for hedging reasons, I'd like to have multiple Buy and Sell Positions open. My problem is that sell positions are being closed when I open buy…
Michael
  • 445
  • 4
  • 16
0
votes
2 answers

MQL5: how do I automatically delete all un-triggered pending orders before placing new orders?

I am working on a Project that requires me to place a BUYSTOP and a SELLSTOP pair of orders and then on the next bar if those orders are not triggered, then delete them and place fresh ones. Here is my code: if(logic == true && OrdersTotal() == 0) …
mmdel
  • 1,279
  • 4
  • 21
  • 30
0
votes
1 answer

Metatrader 5 datafeeder

I try to write my own datafeeder for Metatrader 5 using Gateway API. I compiled Gateway API examples, but when I try to run them, my Metatrader test server says: "datafeeder status - offline". It just couldn't see my datafeeder. Does anybody have…
0
votes
1 answer

How to calculate the swap (rollover) in mt5 in term of account currency

Backgound: using mt5 "swap" (rollover) price is defined in points (0.00001/0.001) - 5-digit broker account currency: USD The question is: how to calculate the "swap value" in terms of acc. currency in mt5. With other words, how many cents i will…
cajwine
  • 3,100
  • 1
  • 20
  • 41
0
votes
2 answers

How to export currency exchange from metatrader?

I'm lookin for a solution, how to export currency exchange from metatrader (4 or 5) to web (json, csv, xml...) I saw that it is possible export to excel file.
jasne
  • 53
  • 1
  • 11
0
votes
1 answer

MQL4 - find the exact price and time for 2 MA crossover

I am trying to write MQL4 code to find the exact price and time for all the 2 MA (50 and 100) earlier crossovers that has already taken place in my MT4 charts. Would appreciate any pointers. Thanks,
XMarshall
  • 953
  • 3
  • 11
  • 23
-1
votes
1 answer

Trying to get historical data from MT5 of several assets

I´m learning python. I tried to get historical data of multiple stocks from MT5 however the stocks ' arrays have diferent lengths and I do not know how to solve it. error: ValueError: Length of values (71) does not match length of index (100) from…
-1
votes
2 answers

Automatically obtaining market data from MetaTrader 5 using MatLab

I'm looking for a way to automatically run a script on MatLab which outputs price data from MetaTrader 5. Can anybody provide me a link to someone who has done this before or the best way to go about doing it? I've researched online and could not…
BWinter
  • 33
  • 7
-1
votes
1 answer

MetaTrader Terminal [ History Center ] section: missing data within the platform?

I have recently downloaded MT4 & MT5. In both of these platforms where the historical data section should be ( in the dropdown of the tools section ), it is missing in both and I cannot seem to find a way to access this function. It just doesn't…
joncreek
  • 11
  • 1
-2
votes
1 answer

How do I find the lowest value in the past 50 candles on mql5?

I would like to find out the lowest traded price in the past 50 candles. I've used the following code. double Lowest_Low = iLowest(_Symbol,PERIOD_CURRENT,MODE_LOW,50,0); I've tried using -50, but it does not give me the lowest price on the chart.
1 2 3
19
20