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

How can I determine the strength of candlesticks programmatically?

Telling the strength of a candlestick is not straightforward in most cases. How can I combine the length of the upper and lower wicks and the body to wick ratios to arrive at a way of determining the strength of every candlestick type?
iGetIt
  • 695
  • 5
  • 20
2
votes
3 answers

sending order to open a position via MetaTrader5 python module and nothing happens

I followed Metatrader5 python documentation and this answer in stack overflow I try to open a sell position: import MetaTrader5 as mt5 ea_magic_number = 9986989 # if you want to give every bot a unique identifier def get_info(symbol): …
Kave McDaniel
  • 205
  • 4
  • 11
2
votes
1 answer

Logic for real-time Algo trading expert

I have made a trading expert that goes through candlesticks to check if a signal has been found then execute buy , sell orders for i in range (len(df['Open'])) : if some logic : buy or sell Now I want this expert to work on real-time data,…
mr.m
  • 312
  • 4
  • 15
2
votes
3 answers

How Close an MT5 Order from Python?

I'm trying to send orders from a python script to my MT5 terminal via the MT5-python API. I can open a position but how can I close it from Python mt5-API? I open a BUY ticket it like this: import MetaTrader5 as mt5 lot = 0.1 request = { "action":…
Swepy
  • 39
  • 1
  • 4
2
votes
2 answers

Python MetaTrader5 indicators

I'm using Metatrader5 module for python and this is my code ''' #python from datetime import datetime import MetaTrader5 as mt5 # display data on the MetaTrader 5 package print("MetaTrader5 package author: ", mt5.__author__) print("MetaTrader5…
ARASH
  • 23
  • 1
  • 3
2
votes
3 answers

Trying to Install MetaTrader5 with Python3 on a Mac

I am trying to program a Python algorithm that will work with MetaTrader5. MT5 is a trading platform used to trade forex, stocks, etc. When running pip3 install MetaTrader5 I get a command 'clang' failed with exit status…
Rehan Mahmood
  • 97
  • 1
  • 7
2
votes
1 answer

Reading the Lines of CSV file using MQL5

I am trying to read the last line time value from a csv file. Check the following: 2018-07-26 11:04:00 1.17272 1.17275 1.17267 1.17272 2018-07-26 11:05:00 1.17272 1.17273 1.17265 1.17268 2018-07-26 11:06:00 1.17268 1.17273 1.17261 1.17264 The…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
2
votes
1 answer

Access to forward-testing statistics

I'm using the TesterStatistics() function (called from the OnDeinit() function) to export various strategy-testing statistical values: void OnDeinit(const int /*reason*/) { int h = FileOpen("results.txt",…
manlio
  • 18,345
  • 14
  • 76
  • 126
2
votes
1 answer

How to modify a StopLoss of an active trade?

I have trouble with modifying the stoploss of a running trade using MQL5. Selecting the order works out for me. But if I try to access the variables ( for instance OrderTicket() & OrderOpenPrice() ), it always returns 0.00000: 2017.06.01…
Aurus
  • 173
  • 1
  • 5
  • 12
2
votes
1 answer

Variable argument list with different types in MetaTrader5

I have some mql5 code which I want to print debug messages if the DEBUG macro is set. I would like to use a different function (DebugPrint for that matter) for those debug messages. My first attempt was to create a regular function, but variable…
Distjubo
  • 959
  • 6
  • 21
2
votes
1 answer

Opening the Indicator in Multiple Charts

I found an interesting MT4 indicator which shows remaining time of the next bar in the chart. But that works for the particular pairs which I would choose. But I want that program to work/applied on all opened pairs by just applying to any of the…
2
votes
1 answer

How to draw a Filling like a Rectangle, in MQL5?

can anybody suggest a way how to achieve this kind of drawing, as the official mql5 documentation does not point out this. I have done the sample provided herebut it only outputs this result,which is not what I wanted. anybody has any suggestion?
Shaheen Zahedi
  • 1,216
  • 3
  • 15
  • 40
2
votes
2 answers

How to fix serialization problems MQL4?

Today I get problems with serialization in MQL4. I have a method, which I imported from a DLL: In MQL4: void insertQuery( int id, string tableName, double &values[4], long ×[3], …
Alex Fly
  • 96
  • 9
2
votes
1 answer

Automation of Binary Options Trading

Perhaps the easiest way to automate one's Forex trading strategy is to create an automated trading robot (aka expert advisor) using MQL4/5 programming language, that is built into the MetaTrader Terminal platform. A more exotic option is to develop…
2
votes
3 answers

How to disable autotrading globally from MQL4/5 program (EA) without DLLs?

How do I disable autotrading globally in MetaTrader 4/5 from within MQL4/5 code without using DLLs?
Enivid
  • 210
  • 2
  • 9
1 2
3
19 20