Download MetaTrader 5

MQL4 and MetaTrader 4 - page 523

To post a new topic, please log in or register
I am trying to chart economic data from economic calendar. Read for someone ho said to integrate this XML in the indicator. http://www.forexfactory.com/ffcal_week_this.xml How is this? Thanks Trader201
  Please help ! (1)
Greetings. I have hade no problems with it in years. Using windows 7. Today I want to open it and all of a suden it is not working. It says because of a problem the program was halted. Windows will shut down the program and let you now, if there will be a solution. - or something like that in my...
I need an expert which after touching the TP immediately open a new order in that direction  and  lot can be changeable.
hi i wanted to ask about angled lines, because i cannot get value of 2nd point from such line. When i use "Trend by Angle" properties window then i see that there is are two point values listed: first value i can read with ObjectGet(name,OBJPROP_PRICE1), but when i try ObjectGet(name,OBJPROP_PRICE2)...
I was trying out Optimization on many different EAs. And I have found that the Strategy Tester has some limitation. What happens here is because how MT4 is used ( because it is designed that way to function ) , Step 1: we open up the ST,select the EA,select the Symbol,select the Model decide about...
i am new to the programming code,i need a EA that can read the file generated from excel and executed order based on the file. i had read "file function" https://docs.mql4.com/files/FileOpen, so i believe it is possible that EA can read csv.file, which is a file tha excel can convert,then execute...
Recently got a new computer running Windows 8.  I can no long access the MT4 log files, which are stored as 64-bit "Compatibility Files" by MT4.  Win 8 File Explorer does not seem to have a means of accessing 64-bit compatibility files.  Under Win7, there is a pull-down from the MT4 path to the...
I only use open of bar not every tick on m15 and above...is it worth the time and effort to get tick data for 99% modelling quality? Some trades do close for a few pips but always on a new bar and not within a bar. I thought tick data was primarily for EA's that could close intrabar, thus need the...
I found the Expert Advisor, expert.wav doesn't work, there's no sound at all when my EA opens/closes a trade. Please kindly advise if this is a in-build alert function?? Or it needs to be build in the EA in order for this to work?
OK, prob the most frequently asked question and one that causes the most confusion! I believe that when we download data from the history center (meta quotes), this data is in GMT+1 & GMT+2 time with auto adjustment for daylight savings. Is this correct and if I back test over say 10 years, finding...
  Some mql4 coding problems (21   1 2 3)
Hi mql4 coders  i m trying to build an indicator that that changes colors when certain conditions are met.Below are fragment of codes that i write to implement it .     if(CloseM)   {          SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,3,Red);     } else {    if(CloseN)           {...
we can get a chart for some symbol, xauusd for example, on MT4. On this chart we can see many K lines, ups and downs, and when we put mouse on certain K line, the information of this K line will be shown, including the time when this K line was born. my question is as below: this time is very...
There is an expert advisor that closes all open positions when raggiungiunge $ 1,250 of value in the portfolio. thanks
Is this data available, I have downloaded all timeframes multiple times in mt4 but cannot get data before then, is this normal? Alpari UK is the broker I am using.
Is there any way to have multiple newlines within a string? string sqlQuery = "Line 1Line 2Line 3            ";  That gives an error.
Hello. How can I change all price range of all price windows in Mt4 at ones? I mean: let say I have 4 price windows openes, in 1 day range all of them. Let say I wan to change all of them to 1 hour, at ones, and not one by one Thank you for your help trader201
Hello, I use EMA 288. when the price moves upward of EMA288 place buy order at the same time place sell order when price moves downwards to EMA288. I use additional filter MACD above 0 for buy and below 0 for sell. The problom i need to solve is: sometime the price moves upwards to EMA288,but...
Dear all,  my EA frequently reports "OrderSend Error 130" during backtest. The code snippnet is as follow: a double slprice=NormalizeDouble(High[iHighest(sym,240,MODE_HIGH,10,1)]+40*Point,Digits-1);    ret=OrderSend(sym,OP_SELL,LotsOptimized(),Bid,3,slprice,0,"",MAGICMA,0,Red);    return;in the...
Hi, i created a simple indicator based on Stoch, but it gives me different results for the same time frame when being switched to M5 or M15. has anyone got same problem?  many thanks just 
New article The ZigZag Indicator: Fresh Approach and New Solutions is published at mql5.com: The article examines the possibility of creating an advanced ZigZag indicator. The idea of identifying nodes is based on the use of the Envelopes indicator. We assume that we can find a...
please can someone show me how to get pivot indicator lines that can automatically changed on my  chart, if the next day begins but will still keep the pivot lines of the previous days.
Hello everyone,   I am new to this forum so please bear with me if this is a real stupid question.   Basically I am trying to compile a EA within Metaeditor. However, it doesn't seem to be working, it says it is compiling and there is 0 errors and 0 warnings. It has been compiling for about 24...
Greetings, I wrote an EA that supposed to help 'dismember' losing trades that got 'too fat' ,bearing heavy loss. I do that by comparing to another 'profitable' trade, and when I gain enough with the 'profitable' trade, I releases 1 part of the losing trade against the money in the  'profitable'...
pls help i am not good at i am very new for this subject. what is magic number ??? how can i find some sources for this subject ? how calculate magic number ? 
Isn't it possible to for an EA to write to a file during a backtest? EDIT: Nvm, just found out it goes to tester/files :P 
  BACKTESTING (10)
I wonder if anyone can help me with a backtesting problem. It is well recognised that backtesting using the MT4 strategy tester requires 'better' historic data than that which your broker provides. A Google search shows several articles giving advice on how to improve the data within MT4. Most...
//+------------------------------------------------------------------+//|                                                    NSNDAlert.mq4 |//|                      Copyright © 2011, MetaQuotes Software Corp. |//|                                        http://www.metaquotes.net...
Hello everyone, first, please excuse me for my bad english. I try to compile a simple indicator/EA, a blank script template from wizard. If i press on "compile", the program shows "Compiling 'test.mq4'..." and nothing happens, even after minutes. If i quit the editor, the program ask, if i want to...
Hi everyone.Sorry if there is already a post about this, but I could not find.Trailing stops are only active if Metatrader is on. But I normally place my trades in the morning before going to work and I would like to my trailing stops to remain active. How can I do it?