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
1 answer

Future Bollinger Bands predictions and drawing Indicator with MQL5

I tried the following code, iin the custom indicator of the bollingerband Where I want to forecast or predict the future one bollinger. See the code: #property copyright "2009-2017, MetaQuotes Software Corp." #property link …
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

zero is omitted while converting integer to string MQL5

See the following code I tried: MqlDateTime time; TimeToStruct(TimeCurrent(),time); string currenttime=IntegerToString(time.year)+"-0"+ IntegerToString(time.mon)+"-"+ IntegerToString(time.day)+ " "+ …
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

Wrong values received by MQL5 iCustom function

I am trying to call the MQL4 indicator with MQL5 using iCustom() . int test = iCustom(_Symbol,_Period,"ADXmagic.ex4"); I have copies the two buffers with number 0 and in the a and b of double type. CopyBuffer(test,0,0,5,a); …
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

How to skip some input parameters' set in MT4 StrategyTester optimization mode, if constraints were not met?

I've 3 different input parameters : P1 [1..10], P2 [1..10] and P3 [3..10]. The constraints are the following : P1 < P2 < P3. Some potential solutions should be discarded right away when the constraints are not respected. For instance when P1 = 2, P2…
Fr4nz
  • 1,616
  • 6
  • 24
  • 33
0
votes
1 answer

Not able to return the value through indicator MQL5

Here is the indicator which is returning the time remaining for the new bar: #property indicator_chart_window #property strict #property indicator_buffers 1 //---- input parameters input color Clock_Color = clrWhite; input ENUM_BASE_CORNER Corner =…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

Not able to read a file into structure MQL5 MT5

I am trying to read a file into structure, but failed as there was a compilation error. See what I tried: struct file_row_struct { datetime file_time; string file_range_green; string file_range_red; double file_dist_green_red; …
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

OPencl returned zeros in the buffer

This is my kernel: const string cl_src = //" #pragma OPENCL EXTENSION cl_khr_fp64 : enable \r\n" "__kernel void CalculateSimpleMA( \r\n" "int…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

Color getting overlapped in the indicator MQL5

I am trying to paint the portions of the graph with Bollinger Bands. But while coloring the graph bands some portions are appearing to be colored with 2 colors or overlapped with colors, See the following image: See the portion marked with yellow…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
0 answers

How to call the .cpp file in MQL5?

I am trying to call the DLL file so that I can use the function from the dll. But I failed. See the error I came across: #import "BPNN1.dll" string Train( double &inpTrain[], // Input training data (1D array carrying 2D data, old first) …
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

predicting fractal before appearing on graph MQL5

I am trying to predict the fractal values before they appear on the chart so that I can apply other algorithms. I have tried the following but is of no use as it is giving the false positive to me.: int fractalStore; int OnInit() { fractalStore…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

Array access is invalid in MQL5 error

I am trying to access the arrays, delivered via a call-signature into the system invoked OnCalculation() event-handler. This the way it is written: int OnCalculate(const int rates_total, const int …
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

Indicator Chart maximum and minimum price MQL5

I am trying to get the values of the indicator windows, The Highest Y-axis and the lowest Y-Axis. Here is the code that I have tried: #include #property indicator_separate_window #property indicator_buffers 6 #property…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

Using OpenCL in MQL5 - in a Custom Indicator code:

I am trying to modify an indicator file using the OpenCL library. But I couldn't understand how I can make that possible. I tried to read and understand the Documentation but could not. Here is my code: #include #property…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

Getting the Max and min price range for a chart ADX using MQL5

I have tried the following: adx_output = iADX(_Symbol,TimePeriod,Candles_for_adx); Print(ChartGetDouble(0,CHART_PRICE_MAX,2)); Print(ChartGetDouble(0,CHART_PRICE_MIN,2)); Print(ChartGetDouble(0,CHART_POINTS_PER_BAR,2)); But the above code gives…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
0
votes
1 answer

Is there any function for testing Candle Bar closed in MQL5?

I have tried the following code in MQL5 but getting errors. This code was I guess from MQL4. Code: int OnInit() { // if you don't want to execute on the first tick IsBarClosed(-1,false); return(1); if(!IsBarClosed(0,true)) // true/false here…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139