Download MetaTrader 5

MQL4 and MetaTrader 4 - page 282

To post a new topic, please log in or register
I want to buy a mt4 server api...how can I buy MT4 710 build api..?then I want to test my API  how can I test..?
Hi guys, I just can´t find why my EA is showing this error when I use the Trailing Stop option. I am attaching here the code where I call the function Trailing Stop and then the function itself After that I am showing the messsages from the Alerts That I have inserted in the code In short, The...
Hello freinds, I need your help. I want the EA to check an operation every two minutes. The simple way is to do:   if (   TimeMinute(TimeCurrent()) != 2  && TimeMinute(TimeCurrent()) != 4  && TimeMinute(TimeCurrent()) != 6  && TimeMinute(TimeCurrent()) != 8  &&          TimeMinute(TimeCurrent()) !=...
Hallo, i tried to get the values of the REI by using iCustom(). But i dont get anything but Zero. double val=iCustom(NULL,0,"RangeExpansionIndex",1,1,0);   What is wrong and can anyone help me? Best Regards Alex 
Hi, My EA always needs to check the last close trade but whenever mt4 is closed and restarted it does not read the last trade. Any ideas how I can code my EA to check the last trades result even when the terminal is restarted?     double profit = 0;    datetime lastCloseTime = 0;    int cnt =...
Hi guys, I would like to know if it is possible to detect chart scroll. Whenever somebody scrolls right/left I would like to redraw my indicator. Any ideas how to do it? Thank you for reply!
I'm looking into developing an EA to trade the DAX or GER30, but when I attempt to run one of my more basic strategies on the DAX in the strategy tester, I find that I can't get it to download any Metaquotes data. I believe its using only the data provided by the broker FXCM. So can anyone confirm...
Hi, I can't figure out how to get the indicator to consider all the candles as opposed to only the ones which have come since i have opened the chart.    I've got pretty simple code for example's sake, just working with the close prices:  Any help really appreciated. Thanks void OnTick()  {//---...
Hello, I was wondering what's the difference between these 2 commands. Thanks for the help
where can i  find the souce code of  iVolume function ?
consegui baixar um indicador no MT4. mas nao consigo abrir o mesmo. qual o procedimento?
 It really isamazing the kitchen that I got from Stilhaus Kitchens. Stilhaus Kitchens Reviews
I wrote this to check if the close price of the last 150 bars were above the moving averege of the last 150 bars. bool ma_buy_2() { int i = 1; int n = 1; double MA_Array[]; double Candle_Array[]; for(i=1; i<150; i++) MA_Array[i] = iMA(Symbol(), Period(), 200, 0, 0, 0, i); for(n=1; n<150; n++)...
  Build 752 (3)
Disappointing the latest version of the terminal, the terminal closes constantly for no reason whatsoever!!!
For currency trading in MT4, we use magic numbers to identify individual trade. For the e-mini S&P trading, can we still use magic number? 
When trying to use the function TesterWithdrawal ( https://www.mql5.com/en/docs/common/testerwithdrawal ) in mql4 I receive the error: "CExpertExecutor::TesterWithdrawal is not implemented yet" I found of this funciont in MQL4 Reference: MQL4 Reference / Common Functions / TesterWithdrawal...
In an Expert Advisor code, I would like to know on which bar of a chart the user clicked. From the example and documentation of OnChartEvent() function, a left click of mouse can be captured as a position (x, y). Is there a way to get the bar time/number on which the user left clicked?
I would like to use these functions, however there is no help i.e. descriptions which probably means that these functions are not implemented.I remember that i saw some help in MQL5 regarding this, but now i cannot even find that.Anybody knows more?
Dear Metaquotes i use this  code to test arraybsearch i feel the result is incorrect int OnInit()   { //---    ArrayResize(array,10);    array[0]=64;    array[1]=128;    array[2]=52;    array[3]=78;    array[4]=30;    array[5]=21;    array[6]=88;    array[7]=977;    array[8]=2110;    array[9]=887;...
The Search did not provide me with any result regarding the subject... The latest version of MT4 for Windows Mobile targets Win. Mob ver. 6.5, not higher. Today's devices using 7.5-8 (!!!) Is there any hope for correct version of MT4 for featured Win. Mob. devices of 21 Century? (I'm not Android...
Hi, i have made an observation. Actually i am doing this observation for 2-3 years on same broker. I thought maybe i am wrong and evaluate things wrong but i am now read to clarify this. I would like to hear opinions from community please.  Problem: There is price difference between...
real headach here Built in indicator like stochastic can be displayed like belowfor(x=0;x<6;x++)    {      if((iStochastic(NULL,TF[x],PercentK,PercentD,Slowing,MODE_SMA,0,MODE_MAIN,0)) >           (iStochastic(NULL,TF[x],PercentK,PercentD,Slowing,MODE_SMA,0,MODE_SIGNAL...
Hi all, I try to code an EA that handle with d'alembert progression (for all that don´t know progression d'alembert: http://www.bettingexpert.com/casino/roulette/strategy/d%E2%80%99alembert-system ) The plan is to start with 0.01 lots and SL 13 pips / TP 14 pips. Each time a trade close with a loss,...
Hi, If I have 2 mt4 terminal instances running on 2 different computer with 2 different locations, is that a normal behavior that if I submit an order at a computer, it will be 'discovered' on the second computer 30-40 seconds later? Is there anything extra from metatrader (or the broker) involved...
  Historical Data Solutions (13   1 2)
With the new builds for MT4, it appears as though the importing of historical data to the History Center is no longer allowed thereby restricting back tests to the use of inadequate data.  What are various solutions to dealing with the problem of inadequate historical data in MT4? 
Tradeing Trader
Hello, i am searching for infos how i can codeing that Metatrader does trade on a binary options broker plattform. When i search in google i just find sites where people want to sell somethink but no tutorial/infos how to codeing it.
Is it possible to get the total profit/loss of the current day so far? If so, can someone point me in the right direction?
I'm trying to modify an order, but I'm getting error 130. I already checked for STOP LEVEL and it is 0 (I'm using Alpari). This is my code:   int digits= MarketInfo(Symbol(),MODE_DIGITS);if(digits == 2|| digits == 3) pipdigits = 0.01;else if(digits==4 || digits==5) pipdigits=0.0001;selltakeprofit =...
Hello,  MetaEditor. List of functions Alt + M It's a shame that the functions are displayed in alphabetical order, not in the order choose in the source code.
Dear all I am new in MQL4 programming and would like to have your help, please. The first thing I want to know is whether my broker can see the detail of my EA if I put it in demo account or even real account to run it? If yes, is there any method to avoid it??? Otherwise, the broker will be the...