Questions tagged [mt4]

MetaTrader 4 is a software platform for manual and automatic trading, including free clients (end-user terminals) for Windows, iPhone, and Android, as well as server-side modules for processing trade transactions, storing and distributing history of quotes, proxy-servers, and administration tools (for brokers).

MetaTrader 4 is a widespread online trading platform designed to provide brokerage services to customers in FOREX Majors, Metals, Commodities, CFD, Indices, Futures and recently even BTC cryptocurrency markets.

The MetaTrader Terminal 4 natively supports a built-in programming language MQL4 and other DLL #import-s, which together allows users to extend the standard functionality with custom scripts, expert advisers (trading robots) and technical indicators.

MetaTrader server-side functionality is also extensible with their proprietary MetaTrader 4 API.

MetaQuotes head of sales, Anthony Papaevagorou, has announced that MetaQuotes no longer intends to issue upgrades to the MetaTrader 4 (MT4) [reported on 2016-11-15]

225 questions
0
votes
1 answer

MQL4 How can I return the current profit on an open order based on the order comment

I'm trying to return the current profit on an open order based on the order comment. Right now, my code below but is getting the profit of all open orders as opposed to just the order with a specific comment. So, what I want to return is the profit…
Dr.Prog
  • 229
  • 3
  • 13
0
votes
0 answers

How to fix Error 130 on MT4 Expert Advisor Short trades?

I am trying to get this code to trade short. It trades long but give MT4 Error 130 invalid stop loss and is not going short. What do I change so this code goes short? Code: string symbol = "EURUSD"; // symbol double volume = .01; …
Roboman Robo
  • 599
  • 2
  • 5
  • 16
0
votes
1 answer

HTTP Apis for MT4

I'm exploring options to create RESTful APIs for MT4 without setting up EA. As an example, http://mt4.mtapi.be/index.html - is just what I want to create. However, the problem is that I'm not entirely sure if its possible to do so without setting up…
Han
  • 575
  • 8
  • 21
0
votes
0 answers

How to connect MT4 account with quickfixj app?

Hello Guys I have built quickfix app with the help of [https://medium.com/@onrkrdmn.socialmedia/quickfixj-exersise-hello-world-fd14590d8a4b] this documentation link. Now I'm trying to build a connection with mt4 account using this code. But I dont't…
0
votes
0 answers

Python swig MT4 error argument 2 of type MTAPI_NOTIFY_FUNC

Please help. Here's my error: the function in PumpingSwitch with the name 'pfnFunc' the type for the parameter void (int): with in another name procedure that have 1 parameter int Additional information for the paramter: typedef in the header…
0
votes
0 answers

Alert in MQL by some conditions

I need a piece of code or an indicator in mql that checks several conditions at any tick and alerts me with a sound if they are met. The conditions are as follows: First, if at that moment there are less than 20 seconds left until the end of the…
0
votes
0 answers

MQL4 Partial Close orders and add a trailing stop

I've coded an algorithm that can enter multiple trades based on several signals from different indicators. I am now trying to figure out how to close half of my open positions (partial close) when they've reached a target profit range and then add a…
0
votes
3 answers

Is there a way in mql4 to get prices second by second?

I am a beginner in mql4 and I'm trying something out. I need to calculate the speed rate of price changes from one second to another. Either on mql4 or pine script. Is there a way to achieve that?
Dandi
  • 1
0
votes
2 answers

iCustom function mql4

I have an mt4 indicator that shows values in the data window that I want to access. I only have the ex4 file and not the source code file mq4, Is it possible for me to access those data values using the mql4 iCustom function, and use them in a…
Robert H.
  • 3
  • 3
0
votes
0 answers

How can I send meta trader 4 data to my website?

As there is a integration module available for mt5 in python through which we can access mt5 data , but how can we achieve the same goal in mt4. I need to get data like positions , trading symbols , orders etc. but cannot find a way to do so. I am…
0
votes
1 answer

How to convert the OBJ_TREND time1 and price1 into the available coordinates OBJ_BUTTON

How to convert the OBJ_TREND time1 and price1 into the available coordinates OBJ_BUTTON OBJPROP_ XDISTANCE,OBJPROP_ YDISTANCE
0
votes
0 answers

Metatrader 4 commission and spread

my question is because of mt4 doesn't introduce commission on the strategy tester when I do my backtest, but there is an option to change spreads according to your needs , is it safe to just add spreads and commission to the spread value an…
user3741124
  • 111
  • 2
  • 2
  • 9
0
votes
0 answers

I want to control 2 instances of a backtesting software simultaneously

Im using soft4fx, to backtest currency and indices. Ive renamed the back test software so i can run 2 instances in 2 separate mt4 instances(crashes if you don't do this) any how I want to have a controller that will allow me to simultaneously…
0
votes
0 answers

How to create a bot that will take trading operation signals from private telegram groups and open positions on my mt4 in real time

Idea: I would like to program a bot that interfaces with telegram groups to collect operational trading signals (entry point, stop loss, take profit...) and then go and input them within my mt4 trading platform by opening, following, modifying and…
0
votes
0 answers

Cancel OrderSend after 5 sec of no response? MT4

Currently I'm sending orders with a slippage as parameter, but when there is news or high volatility the advisor is not respecting it. Also in my strategy there I modify the SL in a certain point, and with the high volatility, again, it took a…