Download MetaTrader 5

MQL4 and MetaTrader 4 - page 351

To post a new topic, please log in or register
Is there a way to get the Data Window to display Custom Indicator values to 5 decimals like the rest of the window?
I am confused about new version of mql4. Can anyone send me some sample indicators (like moving average etc.)? So I will learn by myself. Thank You. Sorry for my poor English.
Hi all, I'm looking for a way to implement the basic HTTP authentication in MQL4 (an expert advisor, an indicator, whatever it is). The idea would be to include the WinHTTP.dll library and use its methods to send an HTTP request for authentication. Unluckily I'm new in such "client-server"...
2014.03.21 09:56:12.927 Memory handler: cannot allocate 2093252608 bytes of memory Please guide me for the right direction. thanks
hello to the experts, is there any program file (a way/ a script/an EA etc.etc.) to limit the open positions in the MT4 platform. the background is: if you use a signal provider with your MT4 directly you don't have a predefined max open positions paramter, which defines the limit thanks in advance
i wirte function BUY SELL with MA7 and MA 21. if MA7 < MA21 ==> sell it worked but when have close ordered. ma7 < ma21 it is continue order i want when MA7 < MA21 ==> sell and it is only a order until MA7 > MA21 who can help me. thanks int CountTrades()  {   int count=0;   int trade;...
Hi, I was wondering if anyone has experienced the same issue as me and possibly found a solution. I am using my own EA which was written a long time ago (using pre-Build 600 Meta Editor) and I was using it successfuly for backtesting and optimization before AND after Build 600 was released. This...
  Sleep code (4)
Hey guys, I am using one EA to open trades and the other EA to close trades. The problem is: if the order is opened and closed on the same bar, I dont want the EA to open it again on the same bar even if the same condition is met. Could help me by telling how it could be done? Thanks
hi guys, Is there any way to select and check total profit / loss of last 3 opened orders ? thanx for your help.
Hi, I tried to convert a MQ4 file to an Excel file manually. So I search the codes in the in the Turtle Trading indicator and this are the results: Go Long: if(((CLOSE > rhigh && i > 0) || (HIGH > rhigh && StrictEntry == true)) && LongInfo[i] == OUT_OF_MARKET) Go Short: if(((CLOSE < rlow && i > 0)...
Greetings again, My recent efforts at scripting EAs has turned to the use of custom indicators. I have used a number of them without any major problem though these have all been vector based indicators. My most recent dabbling have been focused on an EMA crossover indicator which paints an object on...
Hi! The first buy position does not open and throws the error 130. This happens after a few orders. The second order never gives problem (OP_SELLSTOP). I put the code/log for better understanding. My code:         RefreshRates();        Print("Account Balance:...
A difficult question to give a quantifiable answer, but here I go: I understand the difference between char / short / int / long (8bit, 16bit, 32bit, 64bit) but what sort of real-world difference does this actually make? If I'm using a counter that is never realistically going to be more than 10-20....
Hi, I download MT4 terminal from MetaQuotes official site, but the max leverage is 1:100. I need leverage 1:500, so how can I add new leverage item into drop-down list in Open An Account window. Thanks in advance.
Hello, I want to know what is the mql4 compatibility for C language. Can I use headers files, such as dirent.h, into mql4 expert advisors? Is the same compiler? Something similar to GCC. Thank you very much
Hi Guys could you please have a look at the below code and let me know what is the problem? this expert supposed to calculate some information when user drop the Rectangle on the chart! it works fine when i put the Rectangle for the first time but when i put another Rectangle, it doesn't work .......
I have become aware of a litany of problems that have occurred since the introduction of the new MT4 build. My current problems are as follows: 1) I have incurred a problem sending emails. I use Outlook, my ISP is Time Warner. My emails show they are sent but they are NOT being received. I have...
Hello, I have a problem with Strategy Tester (MT4 build 509). It seems to be common because I found couple of threads regarding this issue, but none of them got proper answer. I tried everything except reinstalling MT4, but I would rather not to do it because of new version 600+ I don`t thing it is...
Hi there, I have been using MT4 for quite some while and do also some minor MQL4 programing. This brings me to my question because I have not found anything relevant within the MQL4 community: Is it possible to make a script, where the script searches for graphical objects like rectangles and...
Hello everyone, I know this topic was discussed many times. But all articles I found on that topic were unfortunately too complicated or produce error message because they are too old. Therefore I wasn't able to create a script that does a simple POST/GET request. So, I simply want to send POST and...
Thare are two expert diagrams below. The logics are the same but results are different. and "C" output must be the same but they differ. Is there anyone to explain it? I have real examples about them . The results always differ. 1. EXAMPLE If (condition1) { Open Buy Order } If (condition2) {...
actually i created a indicator which plots histogramm in sub window according to the time taken from the candle open to close. i created this indi for offline charts but the indicator when ploted to offline chart i am getting erroras out of array in experts tab. but when ploted in 4hr chart it works...
  Some help needed (77   1 2 3 4 5 ... 7 8)
I am trying to code an EA based on my own strategy, with the help of code from some other EAs and indis. but now stuck in one thing. (user defined lot sizes for each trade)extern string LotsProgression="0.1;0.1;0.2;0.3;0.4;0.6;0.8;1.1;1.5;2.0;2.7;3.6;4.7;6.2;8.0;10.2;13.0;16.5;20.8;26.3;33.1;41.6;52...
This I read in the reference: string  FileReadString(   int  file_handle,     // File handle   int  length=-1        // Length of the string   );...When reading from a bin-file. the length of a string to read must be specified. When reading from a txt-file the string length is not required, and the...
Hi i have a problem to install any new indicator expert advisor to this new metatrader. Any one know how to install. Before this I only copy and paste to expert/ indicators and it can be use easily but now none of them are functioning if i use this methid. Already try redownload and installed few...
I have been trying to use the FindFirstFile, and FindNextFile, but I cannot seemto get them to work. Does anyone have any sample code to show how to obtain a listof files in a directory? Lance
I was slowly Compiling my EA's into build610 worthy EA's. This part of my code came unstuck where Build590 was fine ( see below switch statement ) The error is : 'MarketInfo' - illegal switch expression ' What I know - I know MarketInfo returns a double value 0, so the statement "case 0 " may...
I need help on how my indicator will display daily profit from monday to friday
Good Afternoon Could someone please tell me why when I want to download data from the records center mt4, I list the errors listed below and how it could solve. In customer support and fxcm alpari give me no solution .. at FXCM 2014.03.15 03:18:33.015 HistoryCenter: can not connect to history...