Trading help, book reviews, risk management, and interviews.


The contents of this blog do not constitute investment advice. Trading CFDs and Forex can be very risky and you can lose much more than your initial deposit. Seek professional advice before making any trades.

Expert Advisors

MQL4 helper functions for calculating bar sizes

Here are some more MQL4 helper functions for MetaTrader. You can use them in your expert advisors and custom indicators. The three functions will allow you to quickly get the size of the upper and lower wicks of the candle stick, and also the size of the candle stick body. To use them you will also need some of the code I gave you in my simple [...]

Simple MetaTrader MQL4 helper functions

Here are some simple functions that you can use in your forex expert advisors and custom indicators written in MQL4 for MetaTrader. If you split out commonly used functionality into separate functions with logical names (as I’ve done here) then you should find that your MQL4 code becomes more readable. If you use these functions in your [...]

Disadvantages of expert advisors

Following on from my advantages of expert advisors post here are some disadvantages of trying to write and use expert advisors. Curve fitting Because it is easy to backtest expert advisors many times with different parameters it is very easy for them to suffer from curve fitting. Curve fitting means that the EAs are highly optimised for [...]

The Expert Advisor advantage

Fatal error: Uncaught Error: Call to undefined function split() in /homepages/35/d22620101/htdocs/trading/wp-content/themes/news-magazine-theme-640mod/functions.php:518 Stack trace: #0 /homepages/35/d22620101/htdocs/trading/wp-content/themes/news-magazine-theme-640mod/functions.php(500): nmt640_get_cache_filename('http://www.trad...', 125, NULL, 1, 85) #1 /homepages/35/d22620101/htdocs/trading/wp-content/themes/news-magazine-theme-640mod/functions.php(480): get_cached_image_path('http://www.trad...', 125, NULL, 1, 85) #2 /homepages/35/d22620101/htdocs/trading/wp-content/themes/news-magazine-theme-640mod/archive.php(44): cache_and_get_image_url(210, 125, NULL, 1, 85) #3 /homepages/35/d22620101/htdocs/trading/wp-includes/template-loader.php(74): include('/homepages/35/d...') #4 /homepages/35/d22620101/htdocs/trading/wp-blog-header.php(19): require_once('/homepages/35/d...') #5 /homepages/35/d22620101/htdocs/trading/index.php(17): require('/homepages/35/d...') #6 {main} thrown in /homepages/35/d22620101/htdocs/trading/wp-content/themes/news-magazine-theme-640mod/functions.php on line 518