Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1165

To post a new topic, please log in or register
I use daily chart and EMA crossover system. Sometime, after crossover happened andEA open trade, EMA changed route and by the end of the day, the crossover is cancelledout. But I have an open losing trade. I try to make my EA to check EMAs of thebar where it open trade five days afterward. Here's...
I have a problem with the back tester hogging giga bytes of virtual memory. I havenarrowed the cause down to custom indicators being called from experts. If an iCustomcall is made the my EA just starts absorbing virtual memory and MT4 will not releasethe memory until MT4 is shut down. Has anyone...
  EMA on Close (4)
I'm writing an EA based on EMA crossover. I want it to calculate EMA only on today'sclose, so if "buy" or "sell" signal occured, it trades by tomorrow'sopen. Please help. Thank you.
  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!
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...
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...
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...
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...
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...
I am trying to create an expert that imports an external DLL to connect to PostgreSQLor MS SQL Server Express. I found a library from SQLAPI++ that allows one to connect to any database; however,I can't get it to compile for the life of me. Can someone help me with the syntax (its currently more C++...
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...
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,...
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...
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...
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.
What is the difference in pips  between SL/TP and current price? Can I changeit?
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...
Hello all, Is it possible to use another computer language with MQL4? Something like using a DLL? Thks Paulo
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
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...
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 :-) ?
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"...
1...115811591160116111621163116411651166116711681169117011711172...1245