Ronaldo / Publications
Forum
Any sample MQL5 EA?
Anyone has a sample EA written in MQL5? The 2 samples that come with the download chart on chart and a naked woman is not useful for mere mortal just trying to code a simple EA
how to be informed of lost connection?
Hi I have often experienced lost connection and sometimes metatrader does not get reconnected unless i reset my router. Is there a way to be informed of lost connection by an EA/script and maybe to be alerted after a certain time via email,alerts,etc? if the solution is to do a dll, how can that be
How to code a routine to handle a Trade timeout error?
Anyone know how to handle an order that has been accepted by the server but failed to be executed? The broker's server has actually given the impression that the trade was accepted! 5:10:00 'XXXXXXX': instant order buy 0.10 EURUSD at 1.42253 sl: 1.41553 tp: 1.42953 15:10:00 'XXXXXXX': request was
Rule 2-43 and FIFO - many EA needs to be rewritten
Anyone aware that the new rule 2-43 from NFA concerning the first-in first-out principle of orders processing means that we even have to consider how our same currency pairs orders ought to be closed? for example if you have a series of long orders for eurusd, u can close the first order first
can returning parameter be used in libraries
I tried to use the & to return values in a library and it does not seems to work, but in the program main it is fine eg if this function is in the program main, it works void CalValue(string symbol, int magic, double& value1, double& value2, double& value3 ) but if I place this function in a
How to create a generic function that has variable parameters?
I want to write a function to closeallorders based on a variable parameters input of Symbol and MagicNo eg CloseAllOrders() - close every orders CloseAllOrders(Symbol()) - close orders that are Symbol() CloseAllOrders(MagicNo) - close orders that has MagicNo CloseAllOrders(Symbol(),MagicNo) - close
point ticksize tickvalue
Hi Could someone explain what are these informaiton for and how to use them Point Ticksize (seems like point and ticksize are always the same) tickvalue thks in advance
Multi instandces of MT4 for testing
I understand that to test different strategies and EA, one has to install different instances of MT4 with different folder names. Is there a way to install one instance of MT4 and have it run different EA on different accounts. If not, will this be possible in future releases or are there other
Championship 2008 - server time
can i know what is the server time used for the coming championship, is it GMT 00:00
improving code efficiency by changing && to multiple ifs
Hi i discovered that my code can run a lot faster by changing the && to multiple ifs. But how does one handle multiple ifs when an else is involved eg if (A>B && C>D) { Do_XX; } else { Do_YY; } it is not correct to use if (A>B) { if (C>D) Do_XX; } else { Do_YY; }