Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
I've read a lot about re-quotes and failed orders with different brokers, but I'm wondering how these are handled by EAs in MT4... if a price quote is outside the specified slippage will it just keep trying until it gets the price it wants, or will the trade be abandoned? What if the order is rejected for some server glitch or other... does MT4 keep trying to get the order accepted?
Many EAs rely on being able to place, modify or close a position when the proper time comes, and it seems to me it would be a disaster if it just bails out under error conditions. I'm just wondering if some EA guru could explain just how these situations get handled...
I feel the trade will just be abandoned... I am not sure if "looping" helps in this case... But, even you try to loop it... The next question is to loop for how many tries... Don't forget the time is clicking and the next tick is coming too... Perhaps, if it failed, then just wait for the next trade... Don't forget, there is always the next chance to make profits!
__________________ ** Whatever the mind can conceive and believe, it can achieve.
I feel the trade will just be abandoned... I am not sure if "looping" helps in this case... But, even you try to loop it... The next question is to loop for how many tries... Don't forget the time is clicking and the next tick is coming too... Perhaps, if it failed, then just wait for the next trade... Don't forget, there is always the next chance to make profits!
It is quite simple - you can acces errors with GetLastError() function, check it's code and make a choice what to do (eg, try to send order again, or mabye call RefreshRates before you send order again), You can also use while loop - so the ea will try to place the order until it will place it on the server, of course you can make maxretries param to avoid metatrader crash.
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................ http://www.fxservice.eu/
........................................
It is quite simple - you can acces errors with GetLastError() function, check it's code and make a choice what to do (eg, try to send order again, or mabye call RefreshRates before you send order again), You can also use while loop - so the ea will try to place the order until it will place it on the server, of course you can make maxretries param to avoid metatrader crash.
Brilliant!
__________________ ** Whatever the mind can conceive and believe, it can achieve.
I have been running every demo I have in MT4 and they are all crashing. What is this error and what do I need to do to prevent it?
There has been a critical error
Time : 2008.02.21 22:31
Program : Client Terminal
Version : 4.00 (build: 211, 15 Oct 2007)
Owner : AleccohFx (AleccohFx)
OS : Windows XP Professional 5.1 Service Pack 2 (Build 2600)
Processors : 2, type 586, level 15
Memory : 1039532/595384 kb
Exception : C0000005
Address : 004614F7
Access Type : read
Access Addr : B27FCE51
I see the dll now. Its a skin for creating an ubuntu theme. How do you reccomend wiping its path? Can I just delete that dll or will it leave traces everywhere and cause more problems?
Last edited by mezarashii; 02-22-2008 at 03:17 AM.
I see the dll now. Its a skin for creating an ubuntu theme. How do you reccomend wiping its path? Can I just delete that dll or will it leave traces everywhere and cause more problems?
I've see you edited our post.
First, eBoostr, I ´d never tested it but prefer to say memory tweaks like this one needs to come from Microsoft.
It´s not like the defragmenter or the firewall that has been made by a third party company.
Vista have this feature by default, maybe you should need to wait SP3 coming in a few months.
About UxTheme.dll, if you have installed some theme that does not come with XP, tUxTheme.dll needs to be patched to allow that.
I didn´t have good results by doing this until I decided to spend a full week learning about this.
Some themes works pretty well but others could cause problems.
To fix the problem te better way is just run full FSC and voila. A new system born.
I find the best way to handle these types of errors is to intrinsically code the retry into the EA logic, by this I mean instead of looping around a million times just check the number of open trades on the next tick (call to start), if the trade did not process for some reason there will be no open trades and it's time to try again. If you have trade signals which only last one tick, your probably going to have other problems.