Quick post, Metaquotes has rolled out their latest MT4 build 500. Significant thing to note is that it appears to be a mandatory update the moment your selected broker decides to roll it out to clients, i.e. completely bypassing the liveupdate.exe in the root folder. The most glaring intro to this is a pop-up window you’ll … Continue reading
Some background on short circuit evaluation (skip this if you already know what it is): Examine this if statement with a logical OR operator: If there is short circuit evaluation(“SCE”), as long as the leftmost condition fulfills, the entire if OR statement fulfills and passes control to the next line. If there is no SCE, … Continue reading
MT4 build 482, a jump from 451, has been released on 2013-03-09. http://forum.mql4.com/54431 A key feature is item 2: Terminal: Increased the number of allowed parallel trading operations for MQL4 programs – up to 8 parallel trade requests are allowed now. This ensures uninterrupted simultaneous trading of several scripts or Expert Advisors – it means … Continue reading
I spent the better part of yesterday figuring out where I might have accidentally written an infinite loop. Reason being that the moment I started my backtest, MT4 would crash upon accessing the EA. It seemed the most plausible explanation and I went about combing through every new line. What I couldn’t rationalise was that … Continue reading
This is a very simple trade management EA that will close all your Open Orders (or both Open and Pending Orders) when your drawdown against balance exceeds a set percentage limit. E.g. Balance = $10,000 and “DrawdownPercent” is set at 2.0, if floating P&L is greater than -$200.00, all Orders will be closed. A simple … Continue reading