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
0
votes
2 answers

How to get a trading account's history from any [ MetaTrader Server ] without using a [ MetaTrader Terminal ]?

Is there any way to get history for trading account from any MT server in C# without MT terminal? What we have: Server IP address Login (account number) Password
SYL
  • 337
  • 4
  • 16
0
votes
1 answer

MT4 Manager API => .Net ClrWrapper

I am using mtmanapi.dll with a .Net CLR wrapper I am getting correct Ask and Bid values for symbols without any special characters in the Symbol name - ( e.g. EURUSD, GBPUSD and so on ), but if symbols have some special character in it ( e.g.…
Dharmesh
  • 11
  • 2
  • 6
0
votes
2 answers

How to repair an Error 4059 on calling the OrderModify() function | MQL4?

My EA comes up with an error code of 4059which meansthat the OrderModify() function is apparently not allowed in (back) testing. Is there any way in which this could be allowed at all? All I'm wanting to do is change the position to breakeven, when…
user6216142
0
votes
2 answers

Needing some assistance with EA

I'm trying to code this logic: if no open orders and buy logic ( DayOpen - 10 * Point )then buy if bought Sell when the one (and the only one) bought order reaches Take Profit price. Here's what I have so far: double DayOpen = iOpen( NULL,…
0
votes
2 answers

How to make a Demo-version of an [EA] work on a MetaTrader live-account?

I have an ExpertAdvisor ( EA ), named Hedging Recovery EA, it works correctly on my demo MetaTrader account, now I'm about to create an account with a 5 USD deposit and about to deposit +1000 USD on it, but I'm not sure, if the EA will work,…
0
votes
1 answer

How to count how many bars back the moving average crossed last?

I am writing an MQL4 Custom Indicator that would tell how many bars ago a particular set of moving averages crossed. To be specific, I want the output to show me that "The 20 period MA( .. PRICE_OPEN ) is below MA( .. PRICE_CLOSE ) for the past 10…
mmdel
  • 1,279
  • 4
  • 21
  • 30
0
votes
1 answer

Get count and volume candle in OnCalculate

I would like to know how to pick up the candle volume and a "counter" the candle in question. When I caught the tick_volume[rates_total] is different with the volume presented to me when I use the indicator "Volume". Am I doing something wrong?
Matheus Velloso
  • 175
  • 1
  • 9
0
votes
1 answer

MT4 cannot open file error 4103 when running an EA in Strategy Tester

I wrote an EA using an indicator which reads in a configuration file. This configuration file is put in the folder MQL4\Files. When I run the EA with the live chart, it works well. But when I tried to test this EA using the strategy tester, it…
Carter
  • 1,563
  • 8
  • 23
  • 32
0
votes
1 answer

Is it possible to change a value of a Lot-size field input in a One-Click-Trading window with Expert Advisor code?

As the title states is it possible to change the lot size in one click trading window via expert advisor? Regards, AK
ak7483
  • 187
  • 1
  • 14
0
votes
1 answer

How to read candle data from a MetaTrader4 Terminal ( MT4 ) from vb.net in realtime

I try to read data from MetaTrader 4 with my app ( on vb.net ) I catch data with DDE but it is only bid, ask, high, low. So I must try another way. I want to read realtime data for finished candles ( M5 and M15 etc. ) How can I read realtime candle…
Pisagor
  • 147
  • 1
  • 2
  • 16
0
votes
1 answer

How to access array with boolean operation inside iteration in MQL4?

I'm able to get the value of Moving Average from Shift 1 to Shift n (n = amount of bars) and shows their value with Alert every 5 minute bar, but when I added the 'if (Direction == "Up")' and so on, the code shows last shift value only and hit…
0
votes
1 answer

MQL4: Global trend/variable or text files for Single trade per signal/event

On each new bar/tick, my variable is re-initialed, I am trying to execute a trade once per signal, the problem is that once TP is achieved, if same trends continues, it triggers another trade. I am thinking to store variable in Text file. So just…
user1582596
  • 503
  • 2
  • 5
  • 16
0
votes
1 answer

How to access the second if statement

I am totally drain out as the second if statement couldn't be executed. My original idea was when volatility is in a range of 90 - 110, the program will send one and only one order. And it will wait and see till the volatility reaches in a range of…
0
votes
1 answer

Cannot get MT4 indicator to work using prebuilt library

I'm using the code from this article https://www.mql5.com/en/articles/159 to calculate when a new bar opens but it's not displaying the historical data for the indicator. I have modified the TimeCurrent() to iTime( _Symbol, _Period, shift ) so as to…
Andrew
  • 626
  • 6
  • 16
0
votes
1 answer

MultiTimeFrame Indicator BackTesting mql4

before posting any code I would like to understand if it is possible to backtest a Custom Indicator, for a MetaTrader4 Terminal, based on a multi time frame strategy. I have looked on mql5 forum, but I could not find any clear indications or…
fabio.geraci
  • 305
  • 2
  • 5
  • 18