Download MetaTrader 5

MQL4 and MetaTrader 4 - page 431

To post a new topic, please log in or register
As the current version of MT4 does not support backtesting with real tick data, I am looking for a software that enables MT4 to do this. I am aware of the Tick Data Suite (http://eareview.net/tick-data-suite) and I am ready to buy it, but I would like to first compare this software with its...
Of course not I hear you cry!!!! So have any of you found a solution to this? I am using Dukascopy data, downloaded via birts eareview, which gives me a better modelling result. I backtest my ea to get the optimized settings, and then use these settings for the ea on my live mt4 account. If a I run...
Hi, I would want to know, if it's possible to call dynamically variables. For example: I create 3 variabless: string Var1,var2,var3 And I call them in a loop like this: for(i=1;i<4;i++) { print(var+i); } When I compile, i have an error:" var+i didn't declare". Do you have solution please?...
Nice to meet you. I am a software engineer. I resigned recently, and I have no job now. Fortunately I found MQL. It's quite cool tool and very useful programminglanguage.(But I'm not familiar with it) Now I'm focusing on some other trade project for commercial use. It will use indicator to show some...
EDIT:Whilst it seems to me that this Normalization used to be a problem, theexperimental test indicators and scripts below have convinced me that this isnot (or is no longer) a problem (at least with the latest MT4 and with mybroker). The thread remains primarily for the indicator/EA below, which...
In watching some MT4 related videos online it seems that there is a way to visually see MTFs while backtesting. The approach explained is to: 1. make sure offline data is available for both timeframes 2. start the backtest (M5) and press pause 3. File-open offline - select larget timeframe data...
Using MQ4 Build 509 If I directly subtract two time values mq4 gives 0, but if stored in intermediate variables the result is correct.  (probably something to do with the  way mq4 implements the syntactic sugar to make the TIME longs look like doubles??) Run following script for demo... int start()...
Is their a link or anything that can show me how to download an indicator onto my MT4 broker? Not been able to figure it out. Thanks
Does the strategy tester record in the final trade-by-trade results whether an order was closed by a margin call? In the tester results, I have seen order types buy, sell, close, s/l, t/p, and close at stop. But, I have not seen a margin call order type in the results, but that doesn't mean that...
Good Day... Is there a way on how to count how many lines are there in a text file? for example the text file contains... EURUSD GBPUSD EURJPY USDCHF after reading the text file using FileOpen it should return 4 as it contains only 4 symbols or 4 lines... Thank you very much...
  iHigh value (4)
Im confused. I wrote something in loop script and encountered a wired thing. if(iHigh(NULL,0,xi) == levelnum) {ZV = true;} it does not work. first check: if(1.32 == 1.32){ZV = true;} It works. if(1.32 == levelnum){ZV = true;} it works. if(iHigh(NULL,0,xi) == levelnum){ZV = true;} It does...
Hi, when MT4 or the internet connection were closed, we have gaps in the .hst files. When MT4 or the internet connection open again, my indicator encounters these gaps. What can I do in the indicator source code, to make MT4 fill these gaps? At the moment my only workaround is to reload the...
I have been coding a function to display previous trades on a chart,  in the same way that dragging a previous trade to a chart does. I want to keep my function versatile so I am making it configurable while at the same time making the defaults match what MT4 shows by default, so some of my function...
Can anyone explain to me why this happens? double result = 15/100;Print("15/100 = " + result);Console: 2013.09.17 15:01:25    Test EURUSD,Daily: 15/100 = 0.00000000
  Back test (7)
I am new to all this how do you back test an EA ?
Hello can .. can you tell me if there is something that I think MetaTrader 4 trade redirect to a website as a graphic? all par minutes is `updated? or what was earned today?
  MessageBox() (9)
I need some help. Somehow I can't display one simple message box.  if((Open[0] <  (sum/MA_Period) && Low[0] > (sum/MA_Period))  || (Open[0] > (sum/MA_Period) && Low[0] < (sum/MA_Period))){       MessageBox("Pass Average", "Windown Tittle") The rest of the moving average file is kept the same. Is it...
Hi, I know the question has been asked few times but I cannot get the same amount as OrderProfit() by doing this (when this is a profitable position > 0) profit = MathAbs(price - OrderOpenPrice ()) * OrderLots () * MarketInfo (Symbol (), MODE_TICKVALUE) / Point;profit += OrderSwap () +...
  Droid Maxx (1)
Hello All just bought the new Droid Maxx and installed MetaTrader 4, and received the following message "Device is not Supported" it looks like Samsung is not the only phone having support issues. Any thoughts out there?
  EMA Color (4)
Why does the EMA in color have the line breaks? How can i have it all continuous like the one i have in ThinkorSwim? Also how can i change the line style and width at the same time? It seems with alot of these indicators you can only change one or the other. Please and thankyou.
I ran into something of a bug while writing some code to round spread data to the nearest multiple of my choice. See below: //Given that (in the variable declaration)://extern double DMultiple4 = 2;if(SignalID == 4){   RefreshRates();   D = ((Ask-Bid)*100000); Print("DMultiple4 is "+DMultiple4);...
Good Day... Is there any possibility to recover spreads from previous bars? Thank you very much..
Hello Does anyone know when it will be MetaTrader on Windows Phone? Boss
Hello, I'm sure the fault is with me, but I was searching for the answer to this - seemingly simple - question for some days now and I still don't get it. I thought maybe you could show me a solution: Let's assume we want to open a single trade position. Given are the following parameters (important...
Hello, Is there any way of placing orders asynchronously in MQL4? (that is, at any time other than a new tick notification in start() function) What I'm trying to do is to place a buy stop and/or sell stop orders within 2 pips of the price just before a news release. I don't want the order to be...
  double order (9)
While testing my EA on a demo account, I noticed that I got an order executed twice in the same second. Although I have a check before using OrderSend to make sure that I do not currently have an order open. What would you suggest I do to prevent this?    total=OrdersTotal();      if(total<1)...
I was wondering if someone cold tell me how would program the following I want the ea to scan back the bars atleast a set value but lot more then a set value to see if there equal to or more of pips of a set value.
Hello. I am developing an EA that must work in more than one chart window due to that some part of the program analyzes the trend in one time frame and other part of the program does the same but in other timeframe. The aim is to avoid contradictory trades, because may be that in a 5 minute frame...
How to code to get MIN and MAX openprice of all "Open Trade" Hi guys, I would like ask if anyone know how to code the function to get the MIN and MAX open price of all ongoing running trade of Symbol(), assume I got no magic number. E.g I got 4 trades of EUR USD running 4 open trades 1.3040, 1.3077,...