Download MetaTrader 5

MQL4 and MetaTrader 4 - page 131

To post a new topic, please log in or register
Hi there, I've found that backtesting can require huge data sets and my C drive ran out of space. I bought an external hard drive thinking I could install MT4 on it, as well as download the data sets to it, and that this would be the best way to strategy test with Birt's Tick Data Suite. After...
Hi Guys Is there any way that I can check the value of a variable while I am working on my code - like some kind of keystroke (Ctr+Alt+something) that will display the variables value...??? It would be quite handy... I usually simply display the variable in a "comment" and then run the EA to see...
Have my own EA which I have running on the Major charts including the USDJPY.   My EA creates a log file which writes loads of data but I can't fathom out why every time a USDJPY order is initiated I appear to get 2 orders generated (with same S/L & T/P and consecutive TICKET numbers). The scenario...
Hi, Does anyone here tried to create a function that returns an array? Instead of creating a function that returns ticket number, open price for a specific logic, store all of the necessary data on array returned to a function. Thanks.
Hello,   I have problem with my EA which Im trying to create. Look like that this ea's open position well but unfortunately it closes position in way which I cant understand. I would like to close long position when +DI is below the ADX and I want to close short when -DI is smaller than ADX. Below...
I would like to send user id and password to a website and validate it, and in response I would like to get user account no to validate in the code.   string str="Login="+login+"&Password="+password;    //--- Create the body of the POST request for authorization    ArrayResize(data...
I've searched everywhere for an explanation for that, last week my windows 10 had an update, and the next day all my metatraders 4( version 988) had problems. I can't add custom indicators, or test any expert advisor. It was everyting perfect since my windows updated I'm running Windows 10 Home 32...
Hi everybody, This is my first post here and would like to ask for help as I'm new to the metatrader (but not for programming) I downloaded MT4 and when try to get MQ4 through the platform it is opening MQ5? Could you advice please. Thanks in advance 
I tried to test AUDUSD with Heikinashi for last 1 year data at 4h/daily, but buying and selling timings were not at right timings and did not match with Heikinashi color changes. The same for other EA such as  MACD. Please advise how I can solve this issue (have looked up several sites, but did not...
Hi, Generally for using custom indicator buffer, we need to declare it at first in following way. #property indicator_buffers 3 But in my indicator this number of buffer is not fixed, it calculated with Chart High price & Low price / scale unit. to decide how many buffer it will required to plot...
Hi all I'm running the attached code through strategy tester. Works well in visual mode. Just as nice in non-visual mode. But try and run an optimization test and it doesn't take a trade.  Any chance someone can tell me why?  I do note most my other codes work fine. I do have a few variants of this...
Hi coders, is it somehow possible to delete the text in an OBJ_EDIT when clicking on it? I want to avoid a label as a description for that edit box and so I want to place the description right inside the edit box which should disappear when I click on it. I tried it this way but it doesn't work:...
I want to change the style of the two extreme levels (Overbought, Oversold) in Solid Style. How can I do it?
hi, this is my first program. I want to make a order on Gold symbol by using OrderSend() function on mt4. I try but when i running on my test. It's always show me EURUSD symbol on my teminal not Gold symbol. I hope there's someone show me how to i can make order with gold when i compile my demo code...
First post here - so my apologies if this has been covered. Is it possible to back-test an mql4 script on previous period of time? Is there a way to configure a server to use old chart info? I'm building a algorithm that moves on major news and executing at the right pace is very important. I'd like...
thanks metaquotes. i am new here. however, i would like to know if an android laptop (e.g lenovo is acceptable for trading as other laptops e.g windows. thanks. Obiajulu
Hello there, How can i pass a value (a variable) from the EA to other classes, even when class A (for example) will also initialise class B? I created a function in a class to display Print or not based on an extern variable set in the EA. While using the function in the EA is a simple exercise of...
New article Cross-Platform Expert Advisor: Introduction has been published: This article details a method by which cross-platform expert advisors can be developed faster and easier. The proposed method consolidates the features shared by both versions into a single class, and splits the...
Hi, is there a function to get the information about the account type? I have to know, if the account is a demo or a live account.   Thx. 
what is this?? I have logs in metatrader that are gygabytes of data!! http://screencast.com/t/NH2DaG7rM8R
Hello there I just tried to download the Metatrader 4 and I cant install the program  It keeps asking me for Proxy Server login and password even before It finishes downloading
Hi, first time to write and hope someone could help me. I have been using MT4 3 years and now trying to use its Strategy Tester (ST) function. In my MT4 build988, there are only menu boxes of indicator, pair and time (H1, H4, Daily etc) (may not be exact as I am using in Japanese). By looking...
  Ciclo while help me! (11   1 2)
hello everybody, I'm trying to learn while loop and in this my code I would like the RSI, when it comes to 70/30, must await the descent / ascent to 50 then give me back the Buffer / Cue Ball. i--; It is correct for the increase of a future candle? The code does not give me errors but does not work,...
Hi all,  English is not my native language, but i try to explain what i want to say ...  I do strategy test on M15 and i want to get price on other timeframe. ex: H4, D1....  iclose, iopen, ihigh and ilow are always 0 on other timeframe...Why?  there is a problem during 2007~2014 only, but it will...
I am new to using ea's and I would like to know how to load an ea in two different brokers at once?
New article Graphical Interfaces VIII: The Tree View Element (Chapter 2) has been published: The previous chapter VIII on graphical interfaces has focused on the elements of static and drop-down calendar. The second chapter will be dedicated to an equally complex element — a tree view, that is...
Hello guys! I was wondering if there is a way to check the same condition with a different variable. For example: I want to buy when Open[1] is lower than a certain price and  Close[1] is higher than the same price. Lets say the price is 1.2500 I know how to write this condition, but what if i want...
I've been Googling for a while, but can't turn anything up. Is there a way to retrieve the currently active profile name in code? lastprofile.ini contains, unsurprisingly, the last profile name, not the current one. Thanks
Hi all,  My EA strategy's adapts according to various market setting which are represented by X that can take the Value of -2,-1,0,1,2. In order for the EA to be more user friendly I would like to display on the Chart the Value of X.  I used the following code:    ObjectCreate("XValue", OBJ_LABEL, 0...