Download MetaTrader 5

MQL4 and MetaTrader 4 - page 352

To post a new topic, please log in or register
  datafeed (3)
developing MQL4, can someone tell me how metatrader datafeed is organised? e.g. if I signup for a demo account with ETX I need to download MT4. if I signup for a demo account with vantage I need to download MT4. can I install MT4  once and then select my datafeed? how do I know what datafeeds are...
New article Building a Social Technology Startup, Part II: Programming an MQL5 REST Client has been published: In the previous part of this article, we presented the architecture of a so-called Social Decision Support System. On the one hand, this system consists of a MetaTrader 5 terminal sending...
Hi, Does anyone know how to call the 3_Level_ZZ_Semafor indicator using the iCustom function with all the default parameters? Its giving me the error message that it has the wrong parameter count. iCustom(NULL,0,"3_Level_ZZ_Semafor" ,true,false,false,false,false,false ,false,false,false,false,false...
This indicator crashes whenever the variable History is larger than the number of bars I have in data history. int start()  {   //******** TEMPLATE INDICADOR **********/   int i, counted_bars=IndicatorCounted();   i = Bars - counted_bars - 1;   if (i > History - 1)      i = History - 1;...
Tradeing
Hello, why does iBandsOnArray(williams,BBPeriode,BBPeriode,BBDeviation,BBShift,MODE_MAIN,0) give me the correct value from current bar, but when i try to get the last closed bar value with writing a 1 to the index shift parameter iBandsOnArray(williams,BBPeriode,BBPeriode,BBDeviation,BBShift...
When I drag it to the chart it does everything it is supposed to do except execute buy on the chart.  Live trading is checked.  Script is attached.  Please advise, thanks.
  GET 5 DECIMAL (7)
Very good,  Again I start learning to program in MQL.  Now what I want is to calculate the average high and low price.  First in a separate window, and 5 decimal places in the result.  The problem is I know I have to use "DoubleToString". But I put it all the way and got the error....
I am having problems with storing data in arrays in an EA. i think i've done everything OK, but it is obvious i haven't and i can't see where the problem is. I hope anyone sees what i am doing wrong:...
Hello I'd love if MT4 brokers would be able to offer Micro CFDs on the indexes just like FXCM has lately added:   http://www.dailyforex.com/forex-figures/forex-brokers-2/micro-cfds-offered-fxcm/1449   Is there any chance that it will happen? Thank you 
This indicator does nothing but illustrate my problem: //+------------------------------------------------------------------+//|                                                          Why.mq4 |//+------------------------------------------------------------------+#property version   "1.00"#property...
Hi Everyone! I need some help wih a free EA, it needs a little modification, so if anyone could be so kind to help me out, please let me know. I have attached the free EA here. Modifcitations the EA needs: - Do not close any open orders before the SL or TP value is hit. - Do not open new order on a...
Hello, I'm sad that the date input box does not allow me to copy and paste a date & time and modify it slightly like I was able to. I'm now obliged to retype all the date by hand, can't you make the copy and paste work otherwise it has become very unproductive for me. Thanks. 
I'm wanting to delete 3 orders and replace them if the below is true... I'm doing something wrong though as it is not deleting all 3 open pending orders and replacing them all with new "NewBuyOrder"... Can anyone help? Thanks!      for(PositionIndex1 = TotalNumberOfOrders1 - 1; PositionIndex1 >= 0 ;...
Good all,       Plz i want to add breakeven and breakeven gain to this ea ,that is if it goes to a certain pips it should move the stop to breakeven plus certain pips            and i don't want the EA to place an immediately i attache it to the chart, that is the EA should wait for the next signal...
I have an indicator which looks at 15 different pairs at the same time to find a trend. It works perfectly on H1 timeframe, however on any other timeframe it is blank.I suppose it is because there is no historical data on that pair downloaded. But why it doesnt automatically download it from the...
Hy! Is there some way for the MT4 to play a sound when an order closes?
Hi there, I run an EA in ST ok.  It reads dates and times from a file in tester\files. If I run the EA in debug mode, FileOpen() returns -1.  It appears when using debug mode the EA looks for the file in MQL4\files because trying to open that file in debug mode displays a blank screen with a message...
I have the .ex4 file for the test, but not sure how to open it. I double clicked it,no response from the MT4 terminal. I tried to open it in MT4 ea windows, but no response. How can I open it?
hello there,  I'm building my ea with a mql programmer. I'm a programmer also, but I know vanilla javascript, not mql. Things are not going the way i expected, the ea was made but it works in a certain way, that according with the mql programmer, is an issue with the mql4 language itself, how the...
I'm having an issue with a for statement, constantly returning 0, even though it shouldn't (by my expectation).  Any help would be appreciated.  I can post entire code if it's not enough to assume everything is correct except something here (for statement checks a variable (min) versus an array's...
Is there a script , when you mouse over on bar, it will show the bar max spread ? Like in MetaTrader 5 in the data window thanks
Hi, I apologise in advance if this topic has been covered already, however, I have three computers all with Windows 7. When I install MT4, the data folder appears in a subdirectory of a the terminal with a long name under user data, which I believe is correct. But when I install in my main computer,...
Hello, I try to write the data of the lower bollinger band and the date(time) for an amount of candles into a *.txt file. I don't know why there's an error that says: array out of range in 'save file 3.mq4' (32,19) Thanks for any inspirations. Greez Dan   
Hello! I'm having struggles with my EA.  Right now, it runs the code each tick, not every bar. With doing so, I get ALOT of orders in the same place, effectivly draining my account balance in the backtesting. Here is a picture for demonstration.    As you can see in the picture above, it opens up...
Hello Expert, I'm very new at programming.  The following code I copied from the mt4 tutorial.  It helped find the lowest/highest of the day before.  How can I find the "close" value of that "lowest or highest" candle from the day before?  I tried iclose, but nothing come out correctly.  Thank you...
I am trying to create a basic hello world dll using codeblocks and metatrader4 and trying to do it in a striped version. my compile .dll and .def are in the same dir as the .mq4 file. in file test.mq4 #property link "https://www.mql5.com"#property version "1.00"#property strict#import "C...
Tradeing
Hello, is it possible to get in a EA programm the value of a indicator which is "Apply to: Previous Indicator's Data"?
On time frames like hour 4 the last open bar time is 16:00 right before market closes at 17:00. Then when it reopens the first bar starts at 16:00 again. On m1 timeframe chart says market closed at 17:00 and reopened at 17:00. Are these bars cut off or something on hour 4 chart? So the price...
Hello I do all the instructions that one can read 1) delete all hst files  2) change max bars in history to 9999999999 3) and import  M1 Data  4) convert with period_converter but after an exit and work next day all data has disappeared and I have to do all instructions again. Grrrr ! What is the...
If you run the following you get back a time that is not on par with hour timeframe. int n=iBarShift(NULL,PERIOD_M1,iTime(NULL,PERIOD_H1,2))-60;Print(iTime(NULL,PERIOD_M1,n));//Returned value equals something like 23:03 Also in chart, If you count 60 bars with crosshair(click and drag) from an hour...