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

run MetaTrader 5 on server (for python)

I can’t seem to find a solution on how to run MetaTrader 5 on a server like replit.io or etc. The code works on local desktop, but I believe the code on the server can’t initialize mt5. is there a solution for this? running a virtual machine is one…
1
vote
2 answers

Metatrader 5 login() broken after update?

We developed some moths ago a bunch of python scripts that use Metatrader 5 library (5.0.34). Since client's update 5.00 (the lib requires a running client), previously working login() function seems broken: SEVERE LOGIN FAIL error code: (-2,…
Shine
  • 3,788
  • 1
  • 36
  • 59
1
vote
0 answers

package Metatrader in RStudio

I am trying to install a package Metatrader in RStudio. After the command R CMD INSTALL --build MetaTrader recieve: Warning: invalid package 'MetaTrader' Error: ERROR: No packages specified How to install Metatrader in RStudio?
Andrew Tim
  • 111
  • 3
1
vote
1 answer

How to create MqlTick List, Stack or Queue in MQL5?

I want to create a Stack, Queue or List of MqlTick instances. The following code: #include CQueue myQueue; Produces these errors: '' - objects are passed by reference only ICollection.mqh 14 18 'm_array' - objects are…
Trayan Momkov
  • 842
  • 1
  • 7
  • 18
1
vote
0 answers

Converting a Heikin Ashi related PineScript to MQL5

The pinescript code is like the following ha = heikinashi(tickerid) ha_close = security(ha, res, close[1]) ma = ema(ha_close[1], 30) I'm trying to use the above code in MetaTrader5. So I tried the following, [ Using https://www.mql5.com/en/code/33…
Bucky
  • 1,116
  • 2
  • 18
  • 34
1
vote
2 answers

SetText in Pyqt5

I am developing an application in pyqt5 and I ran into one problem. There is a script that receives data, and in pyqt5 in the line "main_text.setText (str (TEXT))" I output them, and in the format "str" ​ But the script itself receives and outputs…
xxxHEKETOSxxx
  • 57
  • 1
  • 9
1
vote
1 answer

iCustom function problem MQL5 not returning values

I'm not able to get the values ​​of the vwap indicator, does anyone know why? h_vwap = iCustom(Symbol(), Period(), "VWAP_Simple 2.00","Close price", "Daily", "Tick volume");
Demas Triz
  • 27
  • 3
1
vote
2 answers

How to install Windows Python package/library on linux and use it

I want to install package MetaTrader5 on my Linux [Fedora], but this package is supported only for Windows. And my question is: Is it possible to install Windows Python packages on Linux? and after installation import in my python file? My Solution…
renta
  • 11
  • 4
1
vote
0 answers

MetaTrader 5 Web API

I was trying to implement the command to get the Chart data using PHP, below is the code:
Ray A
  • 1,283
  • 2
  • 10
  • 22
1
vote
1 answer

console output using shellexecuteW

I'm using ShellExecuteW from shell32.dll: int value= ShellExecuteW(0, "open", "C:\test.bat", strParameters, "", 1); The batch file runs a java app which seems to open but returns an error and quickly the console window closes. I want to capture the…
1
vote
1 answer

MQL5 error [4805] - Error applying an indicator to chart

I'm facing a strange error if I try to run my code: The creation of iRSI has failed: RSI_handle_38 = -1 Runtime error = 4805 tester stopped because OnInit returns non-zero code 1 The error [4805] is described in MQL5 docs like…
Marek Tesař
  • 117
  • 9
1
vote
1 answer

Latest Pricing of Asset is not the same value as tradingview

from datetime import datetime import MetaTrader5 as mt5 import requests import datetime as dt import numpy as np import json from statistics import mean import pandas as pd import pytz import os import time import math #Im living in…
Andy Quek
  • 51
  • 5
1
vote
0 answers

How to determine if price returned to a certain region of values or not on a specific timeframe

My code below draws a rectangle based on certain conditions. I want to add another condition for drawing the rectangle. The rectangle is drawn from the open to the high of a bullish candle with index (i+1) as shown in the code. How can I tell if…
NSSwift
  • 395
  • 1
  • 12
1
vote
1 answer

MetaTrader Terminal 4: debugging an expert advisor on historical data

I have a MetaTrader Terminal 4 logged into a demo account. I have written and compiled my first Expert Advisor. I am able to debug it on a live chart, so working fine. I would like to debug it though on historical data. In the MetaEditor the…
mHelpMe
  • 6,336
  • 24
  • 75
  • 150
1
vote
1 answer

Metatrader5 - Python Integration - symbol_total() returns None

I'm trying to get the number of symbols of metatrader5 and I'm getting an error TypeError: '>' not supported between instances of 'NoneType' and 'int' Link to the documentation:…