Questions tagged [metatrader4]

MetaTrader 4 is an electronic client/server trading platform widely used by online retail foreign exchange speculative traders. Anthony Papaevagorou, head of sales at MetaQuotes, has announced MetaQuotes no longer intends to issue upgrades to the MetaTrader 4 (MT4) [ recently reported on 2016-11-15 ]

MetaTrader 4, also known as MT4, 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 the software to their clients.

The software consists of both a client and server component. The server component is run by the broker 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) [ reported on 2016-11-15 ]

437 questions
2
votes
2 answers

How to create a detailed Report with MQL4?

In MetaTrader Terminal 4, there is an option to create a detailed Report. You get results of your account history in an html-format. I am searching for a function which generates this html-file automatically.
user6266369
  • 183
  • 1
  • 15
2
votes
2 answers

Calculate PipSize for Symbols in MT4

My Question is How can I calculate Pip Size in MT4 (without checking symbol name)? My first Answer is based on checking symbol name: Use the Digits variable for 5 or 4 digits symbols and set PipSize = 0.0001. if Symbols are JPY fractions, use…
MohaMad
  • 2,575
  • 2
  • 14
  • 26
2
votes
2 answers

How to export more than 63 parameters using a FileWrite() function in MQL4?

Below I have the full code that allows me to download the data of one currency pair, the USDJPY #property copyright "" #property link "" #property version "1.00" #property strict datetime…
NOIX
  • 23
  • 7
2
votes
1 answer

How to enter a new order only if / when the first one has been executed (filled)? [MQL5]

I'm kinda of new in MQL5. I have an EA that buys one stock first (let's say PETR4) and then buys another one (let's say ABEV3). The only problem is that I can only order the second one when the first one is executed (not only placed). I used the…
Lucas
  • 41
  • 4
2
votes
3 answers

How to get a variable value from a Custom Indicator in MQL4 in Expert Adviser?

If I have an indicator ( myIndi ) which generates a variable ( Var1 ), how can I access the Var1 from an EA, please? I've tried iCustom() but not getting the results.
stackit
  • 21
  • 1
  • 3
2
votes
1 answer

Is it possible to connect to Metatrader enabled forex without Metatrader client application?

Isn't it possible to connect to various forex brokers, using Metatrader 4/5 Api? And I'm not talking about connecting to Metatrader client application, like this nodejs plugins allows https://github.com/PenguinTraders/MT4-Node.js/tree/master. I'm…
PragmaticEd
  • 505
  • 1
  • 4
  • 14
2
votes
4 answers

How to do a backtesting with tick-level data in MetaTrader Terminal?

Say I have an EA that executes based on tick-level ( Bid, Ask ) information, is there a way to backtest it with tick-level information in MetaTrader Terminal's Strategy Tester? There are two problems: a. it seems MetaTrader only supports 1 min…
william007
  • 17,375
  • 25
  • 118
  • 194
2
votes
3 answers

How to integrate a News-feed indicator for an MT4 StrategyTester backtesting?

I need a news indicator that shows me news starts from 2016, and the impact(big, medium, small), the outcome (positive, negative news). Are they such indicators available? I am aware of FFCal and FFC (https://www.mql5.com/en/code/15931), but seems…
william007
  • 17,375
  • 25
  • 118
  • 194
2
votes
2 answers

How to loop through all Symbols and check the current bar and the previous one's High?

The problem is that when the i in the for loop reaches 15, I get an Array out of range error. What I want to achieve is on every tick to check every Symbol in the MarketWatch and in each Symbol to check the current bar ( PERIOD_M5 ) and the previous…
Expressingx
  • 1,480
  • 1
  • 14
  • 39
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 setup a period of time in an MQL4 source code?

I am using MQL4. Currently, I am using [Expert Advisor]-s in MT4.StrategyTester, and set a period-of-time by the build-in pull-down calendar GUI-elements. What I want to do is to setup a period-of-time straight in an MQL4-source code. If it is…
whitebear
  • 11,200
  • 24
  • 114
  • 237
2
votes
1 answer

How to open multiple OrderSend() in MQL4 Metatrader 4?

I am trying to simultaneously open multiple trades in MQL4 with an ExpertAdvisor or Script. However when I drag the EA to a chart, it only opens one Order, not the the second (or third, fouth, etc) extern double lots = 0.01; extern int takeprofit =…
rainerbrunotte
  • 907
  • 1
  • 17
  • 37
2
votes
1 answer

MQL4: How to fetch an economic calendar's event value?

How can I fetch the latest released value of an economic announcement using MQL4 to be compared with another variable called x? I need to compare the fetched data (variable x) with the manually entered variable y value of 170000. If x > y, a…
p.luck
  • 646
  • 2
  • 9
  • 34
2
votes
3 answers

Find the Lowest Lots - in MQL4 MetaTrader Language

To All Master / Coder I have a question on how to find the Lowest Lots number in MQL4 Here's my starting code : for ( int T = 0; T < OrdersTotal(); T++ ){ if ( OrderSelect( T, SELECT_BY_POS ) == true ){ if ( OrderSymbol() ==…
user3869115
  • 41
  • 1
  • 6
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