Archives

EA development

This category contains 8 posts

Do mql4 AND and OR operators have short circuit evaluation?

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 »

Failure is as important as success (and possibly more so)

Keeping things trading related, many a times you will come across in a forum, or a publication, or been advocated to by another person, a technical system where a whole bunch of charts are shown how a setup is ideal for predicting the following profitable price movement. A highly compelling story of its success is painted by … Continue reading »

Spread widening during news and low-liquidity periods

Here’s some simple plots of the EURGBP spread during the course of a day. Initially tried to use Excel but R handles it much faster and leaner. You can evidently see the spikes during news releases and a general increase as the liquidity drops during the Asian hours. 2012-10-07, 2012-10-14, 2012-10-21 are Sundays. Green line … Continue reading »

MetaEditor ‘corrupt’ compile

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 »

Drawdown Percent Close EA

This is a very simple trade management EA that will close all your Open trades (or Open AND Pending Trades) when your drawdown percentage exceeds a set limit. E.g. Balance = $10,000, if “DrawdownPercent” is set at 20.00, if Equity falls below $8,000, all Open Orders will be closed I wrote it because a myfxbook … Continue reading »

Pages

Posts

Risk Disclaimer

No statement, comment or graphic on this website, or any correspondence arising from the raidenworks.com domain shall be considered an inducement to trade or invest in anything. Any past performance shown is not indicative of future results.

Trading in the financial markets is one of the riskiest and hardest forms of making a livelihood. The possibility exists that you could sustain a substantial loss of funds. You should not invest money that you cannot afford to lose. You should carefully consider whether it is suitable for you.

Follow

Get every new post delivered to your Inbox.