MQL4 and MetaTrader 4 - page 1612

[Deleted]
  Time Digits  (4)
Working on a Market Hours Indicator and run into a simple but annoying problem.Example... New York time is 12:05 however when displaying on the chart, 12:5 is displayed. How does one make sure hours, minutes and seconds always display with 2 Digits.12:05:05 Thanks!
[Deleted]
I wrote an EA that works fine in backtest with one broker but failed with otherbroker. The failure is not because of different result of trading, since the differencewas minimal, except one. The other broker always has my trade stop-out. Funny thingis, i wasn't supposed to loose that much. There's...
[Deleted]
I just mentioned that EA's that were submitted to championship are still not removedfrom the website. Everybody who submitted their EA can login on the ATC 2007 site and see all filesin your profile It looks like Metaquotes is breaking their own rules: VI. Experts' Codes Safety and Non-Disclosure...
[Deleted]
Hi, I'm trying to undestand the x1,x2,x3,x4 y1,y2,y3,y4 and z1,z2,z3,z4 inputs. These values are supposed to be applied do the indicators in the expert. AC,RSIand CCI indicators. with the standard values, the expert only opens BUY positions, and to manage toopen SELL positions I have to lower all...
Hello I have a code which puts up some vertical lines on the turning points in a chart. It works good in all time framesexcept in the H1. I just can’t understand why, any ideas please. Thanks
We continuously work on improving the MQL4.community website to make it even moreuser-friendly: The visitors of our website have long been enjoying "similar topics" that choose the nearest message “on the fly”, which allows them to locate replies to the broached subjectsassociatively. To...
[Deleted]
H1 Chart Cannot Move Back 4 Me Plz Help Plz Help It's Stopped on Year 2004
In the OrderClose function you are able to define a lot size, then you would hopeto only partially close the orders as it works for manual orders. But it doesn't work. The order is closed only if the lot size is the total lot size(then why to have this extra parameter) So the solution is usually...
[Deleted]
Hello, I'm trying to read values from a indicator, I need the current value and the "Current-1"value. I dont really understant the syntax of the command, let say iRSI(NULL,0,14,PRICE_CLOSE,0) is the value from the current tick? and to read the "current -1" isiRSI(NULL, 0,14,PRICE_CLOSE,1) ? I've...
[Deleted]
Hi, I have to add a trigger on a relationship from business. I can do it with the Businessmodule of Ematrix. Can anybody help me to do the same through an MQL query?
Hi All, I've created this post because I need programming help with my EAs. I think I've created a couple profitable ones, but they quickly tank because of overtrading. Usually the first trade of the day is profitable, but because conditions of the EA are still there, it opens more trades until...
For several days now my Strategy Tester does not work in MetaTrader. I have researchedthe problem and it seems that the data from the server is the problem so I havedownloaded the history again and I get the same problems. The statements beloware from the Strategy Tester's journal. Also when I look...
[Deleted]
I'm working on this code fasterMANow = iMA(NULL, 0, 8, 0, 1, PRICE_CLOSE, 0); fasterMAPrevious = iMA(NULL, 0, 8, 0, 1, PRICE_CLOSE, 1); fasterMAafter = iMA(NULL, 0, 8, 0, 1, PRICE_CLOSE, -1); slowerMAnow = iMA(NULL, 0, 21, 0, 1, PRICE_CLOSE, 0); slowerMAprevious = iMA(NULL, 0, 21, 0, 1, PRICE_CLOSE
[Deleted]
Hopefully, someone might be able to help me with this. I'm trying the determine the index of the next available (blank) location in oneof the buffers (ExtMap_Indicator) created for me automatically in a custom indicator.The first time the start() function is called, the value returned by...
Hello With MQL4, I have always the same problem in general. Take a look at the followingcode: int start() {//---- if(AccountEquity()>2000) ShowMessageBox();//---- return(0); } void ShowMessageBox(){ Messagebox("This is the Messagebox"); } Problem is, as soon as the Equity is over 2000, the...
Elite E Services requires MQL programmers who are reliable, honest, prompt, andtransparent. We have a team of programmers but are always short it seems, we sometimeshave more projects than we can handle. We have a steady demand for EA programmingand the occasional request for more complex...
[Deleted]
I am trying to write an EA that uses OrdersHistoryTotal and OrdersTotal...problemis, both of these keep returning 0 even though I am running these on the live mini-lotaccount I have been using for over 5 months. I can see the order history in theAccount History tab, but I get nothing in the EA. I...
[Deleted]
  is it possible?  (1)
Hi fellows, Is it possible for a broker to incapacitate or frustrate the activities of an EAinstalled on its platform by a client? if yes, how? thanks.
I see a lot of mathematicians, programmers and just people who are into AutoTrading on this forum. I would like to know your opinion on the following question. The Expert Advisor that Stinger and I received in the Strategy Tester during 2 months did not make a single losing trade, hence, it obtained
What is the difference in pips  between SL/TP and current price? Can I changeit?
[Deleted]
Hi, Can you please show me the conceptual errors in the code below. My aim was to trytwo long patterns on a ADX, Stochastic and SAR basis. The matter is that - although the compilation returns no errors - no orders areprocessed/sent. Many Thanks in advice. SimonTrader P.S: MyADX_Celeste means ADX...
[Deleted]
Hello all, Is it possible to use another computer language with MQL4? Something like using a DLL? Thks Paulo
[Deleted]
Hello, I have been trading per 6 years. I want to learn how to programm my own strategiesand make them EA's, where should i start? Thanks HAD
[Deleted]
Hi Folks I keep getting a 4051 error saying the OrderClose syntax is wrong. Can somebodyhelp me out? What would be the syntax to get this script working properly? invalid ticket for OrderClose function Error No4051 with Close SELL1...
[Deleted]
Hi, I want to use custom indicator values for an expert advisor, I've tested andknow how to get the values in a simple chart with two indicators, but what shouldI use for the EA? I mean, should i use Visual Mode and drop there the indicator that set the globalvariables? or whot?
Hello, if you let a EA Script run in visualmode, which functions did you use forlive visualisation values from Variables. I have test that its possible with Comment(), but Alert() or Print() are not showeddirectly, just in the log files. How do you make it selfs, did you use object for that :-) ?
[Deleted]
Hello, I have an indicator that needs to display about 30 data streams. I've gotten aroundthe 8 buffer limit by creating 5 indicators that each display a different numberof data streams. However, now I'd like to write something that will collect these individual indicatorsand make one "indicator"...
[Deleted]
  Sound loop  (1)
Is there a way to loop a sound till user do something?, I mean a sound loop untilluser click ok, if there is a way to know if alert window is open it could be donewith that, but i could find any info.
[Deleted]
Hi, When I open a new M1 chart (with no history yet on disk), by pressing pageup I canretrieve some rate history from the broker. According the history center, about32768 bars can be downloaded this way. Where does this limit come from? I think this method of retrieving is different from downloading...
[Deleted]
HOW TO GET THE SYMBOL OIL PRICE IN MT4 ?