Download MetaTrader 5

MQL4 and MetaTrader 4 - page 531

To post a new topic, please log in or register
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?
Patrik Polak
Hi, I'm a forex trader and EA programmer (for MT4). I focus on trading and the creating of EA for more than 5 years.  The biggest problem of all traders is insufficient testing EA in history of the markets. Therefore, most strategies is not profitable.  If you are testing your strategy (expert...
Hello guys,  I'm looking for a code which can display 3 moving horizontal lines on chart window 1)Lowest Price of the day(red) 2)Highest Price of the day(red) 3)Average price of 1 & 2(green)   Thanks in advance... cheers  Happy trading 
Hello, i´ve just to install Mt4, but when i add custom indicators, these are not visible or not useful. I have added like guide instruction says.   (Inside metatrader4 folder, experts and indicators) (while Mt4 is closed) Not the first time that i use Mt4, but i don´t know what´s the problem. I hope...
from an MQL4-program can I write data to a file, call another program written in another language that reads the data from the file, analyzes it, writes the result to another file returnls to the calling MQL4 program open the result-file from MQL4 and read the data continue within MQL4 to find...
hello, I manage to gain in three month time 265000 pips with 92% winning orders over more than 3000 transactions and last Monday I gain 500%. It's hard for me to work manualy and is even more hard to write a script in metaEditor, please someone help me and give me a script and directions how to use...
why the trade arrow sometimes surrounded by a shadowed circle like above ?   Thank you for explanation 
One of my friend send it to me for back test I has tested and found a good back test result form this ea. But while I am trying to start trading found its not working more then 24hrs I observed it but this ea didn't executed any order. Any help from this ea will be appreciated. main source file...
Hi, I coded a DLL in Visual C++ and placed it into experts\libraries directory. Now I want to code an EA in MT4, but the following code gives me an Error: [CODE]  #import “TestDLL.dll”    int Sum(int a, int b); #import  [/CODE] The error: 'import' - double quotes needed I already googled, but didn't...
Hi Guys, So is that possible to use the SMTP from Google's servers? and if that is possible,could anyone kindly let me know how. Which should be the configuration? So far, I've tried smtp.gmail.com:587 , with my User Name and Password, but withno success. thanks a lot,