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

isNewBar() not producing the right time Stochastic value onTick MQL5

Check this program I am trying to get the values of the Stochastic #include CisNewBar current_chart; // instance of the CisNewBar class: // detect new tick candlestick void OnTick() { …
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

After changing time frame the graph is not plotted MQL5

Have a look at the code: input ENUM_TIMEFRAMES TimePeriod = PERIOD_M1; // Set the timeframe for the stochastic. void OnInit() { int stochastic_output = iStochastic(_Symbol,TimePeriod,5,3,3,MODE_SMA,STO_LOWHIGH);//initialize the value for…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

Print CArray in series instead of new line

I am trying to print the CArrayDouble type of array in series. But instead it is printing line by line. This is not the case with normal array. See below: double KArray[]; ArrayPrint(KArray); 43.95604 13.97849 9.67742 10.71429 23.07692 But when…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

MQL5 does not allowing the Dynamic Array to store value

I am trying to play with the storage of the MQL 5 Array. When I am not using any ArrayResize(), I am getting error: double d []; d[0] = 1; for (int i = 0; i< ArraySize(d); i++) { Print(d[i]); The error is as follows: 2018.03.26…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
2 answers

Getting garbage values from iStochastic function MQL5

Here is the code and the output of the Strategy Tester: void OnInit() { double K[],D[]; int s = iStochastic(_Symbol,PERIOD_M1,5,3,3,MODE_SMA,STO_LOWHIGH); ArraySetAsSeries(K,true); CopyBuffer(s,0,0,15,K); for (int i=0; i<…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

MQL5 error instead of printing the values

I am trying the following code: void OnInit() { int i = 0; string d[]; while(i < 2) { ArraySetAsSeries(d,true); for (int j=0; j<5; j++) { if(MathMod(j,2)==0 && i==0) d[j] =…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

MQL5 Remove or Reduce dot size of trend line

I trying to plot a trend line object on the graph. But I am disturbed by the dots that are appearing on the trend lines. Here is the code: bool TrendCreate(const long chart_ID=0, // chart's ID const string …
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

Simplest way to plot a vertical line on Indicator windows using Expert Advisor MQL5

I am trying to plot a vertical line on the indicator window with its values. I came across OBJ_VLINE while reading the documentation. But the example is too hard to understand. I have plotted the adx on the chart using the following expert: input…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

How do I get Volume data on Expert adviser?

How do I get Volume data on Expert Adviser? (not Indicator) I know that way to get Volume on Indicator. So I want to bring Volume data to Expert Adviser. How do I do it?
KiYugadgeter
  • 3,796
  • 7
  • 34
  • 74
0
votes
1 answer

How to make a MetaTrader4 Terminal to export to CSV in realtime?

I just finished building my algorithm but now I need to export data from the MetaTrader terminal every minute to a CSV file that my algorithm can read and run predictions on. There are multiple ways online to export MetaTrader data to a CSV file in…
NOIX
  • 23
  • 7
0
votes
4 answers

How to close all trades in an MQL5 code ( script, EA )?

Struggling in writing a CLOSE ALL TRADES code in MQL5 as part of my Expert Advisor. Code or any idea about closing all trades in MQL5 will be very helpful. As I am new to EA writing, please be little easy in writing.
piyush
  • 418
  • 1
  • 4
  • 13
0
votes
1 answer

How to make a MetaTrader 5 Terminal script to POST an EURUSD BID rate to my nodejs server on port 443?

Basically I want my local MetaTrader 5 Terminal to do POST-requests everytime an EUR/USD pair's BID-rate changes. And I'm going to console.log it in my nodejs server: const express = require('express'); const app = express(); const http =…
Georgi Antonov
  • 1,581
  • 21
  • 40
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
2 answers

How can i send HTTP requests and recieve responses using a DLL?

i am a metatrader developer. it has it's own script language which is similar to C in syntax. one of it's most advantages is that it let you include some dll and use it's functions. now, i want to send and receive HTTP requests. which DLL should i…
Alexar
  • 1,858
  • 5
  • 24
  • 34
0
votes
1 answer

Alternative to MQL5

I am starting with Expert Advisors on MetaTrader Terminal software and I have many algorithms to use with it. These algorithms were developed in MATLAB using its powerfull built in functions ( e.g. svd, pinv, fft ). To test my algorithms I have…
ViniciusArruda
  • 970
  • 12
  • 27