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

Installing modules in heroku

I'm trying to use heroku for a telegram bot with Python. Everything is going fine except I can't install MetaTrader5 module. when I type git push heroku master command, the answer in PowerShell is: Enumerating objects: 59, done. Counting objects:…
ARASH
  • 23
  • 1
  • 3
1
vote
1 answer

Modify Pending Order at Mql4

I am trying to figure out an EA which updates its pending orders if current price pass the SL level of pending order both for buy and sell orders. As you can see below pic current price is below the SL point of pending orders. Therefore I want to…
Syildiz
  • 69
  • 2
  • 11
1
vote
1 answer

Showing Macd for MQL5 Expert Advisor

I have a few experiences to develop on MT4/MQL4. Now I try to move to MQL5, but I bumped into the problem at first step. I just want to show the latest MacD and signal for every timeframe. However It doesn't show the values. Where is…
whitebear
  • 11,200
  • 24
  • 114
  • 237
1
vote
1 answer

MQL4 increase the width of the COG

Here is the code: #property indicator_chart_window #property indicator_buffers 5 #property indicator_color1 RoyalBlue #property indicator_color2 LimeGreen #property indicator_color3 LimeGreen #property indicator_color4 Goldenrod #property…
Otávio Barreto
  • 1,536
  • 3
  • 16
  • 35
1
vote
0 answers

Strategy Tester - Stop Loss is triggering before to reach the value stated

I´m trying to code a simple program to perform a stop loss and take profit operation through MT´s Strategy Tester without success. I´m using the MT 5.0, build 2085, and tried all kind of codes from Internet, including the ones written based on the…
1
vote
0 answers

How to get line coordinates on chart in MQL5?

I want to get coordinates of begin and end of a trendline(or other type of lines) that user draw on a chart. I use OnChartEvent callback function. This function called when user do some changes on chart, like draw a trendline. When user draw a line,…
Mehrdad
  • 11
  • 3
1
vote
0 answers

ADX calculation in MetaTrader

I'm trying to figure out how ADX is calculated in MetaTrader. I have studied the documentation and ADX.mq4 code but am still getting some wrong results. I'm experimenting with monthly data to see the calculation from the first bars of history. Using…
yaugenka
  • 2,602
  • 2
  • 22
  • 41
1
vote
1 answer

Which event is called first? OnTick() or OnTimer()?

If I am processing OnTick events as well as OnTimer events, is there a preference in the queue? When calculating time sensitive algorithms in seconds, I am wondering whether it is easier to write a whole EA inside OnTimer to avoid event handling…
user8616658
1
vote
2 answers

How do I minimize list of charts with scrypt for mql5?

There is few charts opened in terminal, for example: AUDCAD, DKKSEK, AUDJPY, EURZAR, USDCZK, USDCHF. And there is array of target charts: DKKSEK, EURZAR, USDCHF. How do I minimize all charts windows except chart windows of target charts?
mr_blond
  • 1,586
  • 2
  • 20
  • 52
1
vote
1 answer

MQL4 (Metatrader 4 prog language) OrderSend() , take profit and stop loss variables

if (Ask > highest_price) { double takeprofit=NormalizeDouble(Bid+15*Point,Digits); double stoploss=NormalizeDouble(Bid-5*Point,Digits); int ticket=OrderSend(Symbol(),OP_BUY,0.1, Ask,0,stoploss,takeprofit,"My order",0,0,clrGreen); } Currently…
Stephanos B.
  • 340
  • 3
  • 15
1
vote
0 answers

open application silently in the background using Shellexecute

I have tried the following: #import "shell32.dll" int ShellExecuteW(int hwnd,string operation,string file,string parameters,string directory,int showCmd); #import string strParameters = "/c python c:\\createFiles.py "; int result =…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
1
vote
0 answers

How to scrape every tick data from IQO binary traderoom using python or mql5?

Here have a look at the image: As you can see that in the image I have marked the TickData and the respective Time. I am willing to scrape it and use it in the MT5 software or anywhere in real time. I am trying to get the live values from the…
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
1
vote
1 answer

No solutions found in MT StrategyTester optimization mode when using INIT_FAILED or INIT_PARAMTERS_INCORRECT

I'm trying to optimize my current EA that contains approximately 40 different inputs with MetaTrader genetic algorithm. The inputs have constraints such as I1 < I2 < I3, I24 > 0, ... For total of about 20 constraints. I tried to filter the solutions…
Fr4nz
  • 1,616
  • 6
  • 24
  • 33
1
vote
1 answer

Change request.comment-value?

I use different kinds of stop losses and would like to be notified (SendNotification()) about which kind of stop loss was hit upon trade exit. Let's say I entered a trade by... request.action = TRADE_ACTION_DEAL; request.symbol =…
Pingui
  • 1,312
  • 4
  • 15
  • 28
1
vote
1 answer

How to insert an alert into an MQL4 indicator-code?

I have a free MQL4 indicator that displays the most important resistance a support based on the timeframe. It's a fantastic indicator, but I need an implementation with a message and a sound alert when a support or resistance is touched. How can I…
user5351312