Download MetaTrader 5

MQL4 and MetaTrader 4 - page 192

To post a new topic, please log in or register
hi, i build this expert but it can't place orders ,Is there a mistake void OnTick()  {  double vpoint  = MarketInfo("EURUSD",MODE_POINT);  double SL=50*vpoint;  double TP=100*vpoint; int total=OrdersTotal();  for(int pos=0;pos<total;pos++)   if(OrderSelect(pos,SELECT_BY_POS...
Guys, simple question: what data feed format does MT4 use? I want to get some external chart data. Thanks in advance!
Hi everyone I am new to trading and while using the demo i stepped away from my desk and when I came back one of my trades had closed I noticed this was in the Comment section "so: 100.0%/2849.3/2850.0" , so basically i want to know if this is an error or did i do something that i am not aware of...
Hi is it possible to have 3 metatrader platforms open at the same time?
Hi, can anyone help .....to recover master password to a meta trader 4 demo account.....thx
Hey guys, I seem to be having a problem. I have written the code needed to select the last pending order that has opened, upon opening I use PlaySound(). Now, it seems to keep selecting that order every new candle and playing the sound. Is there any filter that I can use to make the EA select it...
Hello All, I am an expert MT4 programmer. I have coded many EAs and indicators. I have used lot techniques and but every EA I have written makes money in some situation and in other situtions it fails badly. I don't wish to brag about my backtesting as it is very easy to bloat up the numbers. I...
Using windows 8.1 to install software on my home personal computer, I get a window that pops up " please specify the proxy server options"  this is looking for a server ip address along with a login and password. when I cancel, it stops the Mt4 install. 
Hi, I have a problem with indicator called 'HAS55'. When I put it on the chart it keeps producing messages in the 'experts' tab, almost every second there are few messages. Is that normal? Does it slow down MT4? I've tried to compile mq4 code, but there are some warnings: 'improper enumerator...
I am building a new indicator using the OnCalculate function for the first time. As I'm going through the logic in my brain, I can't get past the problem of what to do if I have multiple For loops that depend on prev_calculated settings when a recall occurs in the middle of a For loop. For example,...
This has happeneda couple of times now. My EAs have a few string input parameters. The values ofthose strings are sometimes empty after restarting the terminal. There is nowarning or anything like that. The strings are suddenly just empty. But itdoesn’t happen every time. I’m runningbuild 840 on a...
While logged in to mql4.com, is there a way that I can search the mql4 codebase for an specific type of EA, like "ATR trailing stop EA", without having to go page by page and use a control f function with a section of the text "ATR trailing stop EA" in the control f window? Thank you. 
Hi  please can anybody  help me to write an indicator On EMA3-yellow-,EMA13-green-,EMA55-red-;whenever the  green EMA crosses the red EMA from the top downwards after the close of current candle,a SELL Red arrows  will trigal SELL SIGNAL. While whenever the green EMA crosses the red EMA from the...
I was wondering if anyone could give some bread crumbs....?   I want to pass data from excel to meta trader 4 application.  I know excel VBA can pass to other applications thru the API.  But, I don't know if meta trader4 is supported.  Also want to pass from Meta Trader4 to Excel and visa vera....
Hello guys, whick IDE do you use? I use regular metaeditor with MT4, it looks more comfortable than Scintilla (SciTE) because of a large number of reasons. But SciTE has a very convenient opportunity to press "View -> Fold margin" and some part of text becomes hide/expanded if pressing + or - sign....
Hey guys,  I am very new to MQL so please don't go hard on me. I started developing a project that trades when I flip a coin. Essentially, when It lands on head it should buy and when it lands on tails it should sell. The problem is when I back-test the code, it only buys and dosen't sell.
I need to insert this function (extern double BandsDeviations = 2.0) but I have a big problem ... I know nothing about programming, I hope some expert can help me Thank You PS: sorry for my bad English   #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1  Red...
Hi all, i only want a line of close price H1 in timeframe M5. I am using this code but.... i dont understand where i am failing: int start()  {   int counted_bars=IndicatorCounted();   if(counted_bars>0)      counted_bars--;   int limit=Bars-counted_bars;   for(int i=limit;i>=0;i--)     {       int...
I throw a lot of info on the chart in my EAs and would like to organize that a little better. To separate values I now go about it as follows: string text;text=StringConcatenate("tic= ",tic,"    tac= ",tac,"    toe= ",toe);Comment(text); I basically thow in a bunch of spaces. This has the...
Hey guys, I want to store the current Bid value in an external file so that I can use this information on another account. I thought about using the FileWrite function. But I really don't understand how to do that. This file should also be refreshed with every tick. Does anyone no how to do that? Or...
Hello i have been struggling with arrays, in this case i need to look to rsi in bar number 5,6 or 7 but it does a array out of rage, can you figure out what am i doing wrong, Thanks. Here is  the code --------  double RSI[]; extern int RSIPer = 14;//RSI Period extern int Limite_Der_a_Izq_Inicial= 0;...
  round number (5)
Hi all, could you indicate a system to round the number 5142.37 to 5150 ? Thank you!  
Does anybody know how to cancel an open order during a closed market(at MT4 ? Thank you.
  need help with loop (13   1 2)
Can somebody help me with loop    
Hello,   i need a function to read/write text file outside mt4 folders    waiting for help thanks, 
Hello, in my EA I create a txt file in "File" directory. Now I want to execute this file for showing it in Notepad... can someone tell me how to do it? I searched a lot but didn't find anything about this. Thanks a lot Massy
Greetings Everyone, The Metatrader 4 was working perfectly until yesterday, i got this error message "Conexion failed" right down the window. I tried to reinstall it and create a new demo account, I tried to stop my antivirus but still not working, Btw my internet connection is very good.   Any one...
Hi all, Can you do it? class a {};class b : public a {  b(int i):this("explicit call")    {   }  b(string s)   {    str=s;   } }    
The following data is part of my 'log' file and represents data from a custom indicator. In this case the variable is on the 1 minute chart, last value (i.e. 0 )and 5 periods At 1 second past 15 minutes the variable changes (as expected) and remains the same throughout the fifteenth minute (as...
Hello, I wont to close an expert from the init() function in certain conditions. Is there a command, which can do it? It must be simple but I cannot figure out. Thank you!