Forex Automaton
Business & Economy: Finance and Investment / Forex Automaton
Forex Automaton is a site dedicated to automated forex trading system development.
We post original research on financial forecasting,
third party market news, forex reports, economic calendars, real-time charts.
http://forexautomaton.com
Forex Automaton. Automated forex trading system development.
Published: November 21st, 2008 @ 08:17 AMWelcome
Look at the market action through cold and alien eyes that know no fear or greed -- the eyes of Forex Automaton™ .
What are the goals of the project?
Our primary goal is to create a public information service providing financial markets forecasts, based on our proprietary forecasting tools: an automated trading system -- a Forex Automaton™. Our secondary goal is to quantify and monitor the very existence of sustainable opportunities for arbitrage profit-making. Or simply put, to monitor the degree to which these markets are more predictable than a "fair game" -- to a trader without access to insider information.
Minimizing the "benefit of hindsight" in trading system testing
Once you know something, such as the past history, pretending that you do not is very difficult. The ways a trader can delude him-/herself while backtesting a trading system vary in degree of subtlety. A crude one is to develop a set of trading rules by observing the past history of the market, and apply the algorithm on paper to the same past history. A more subtle one has to do with the choice of adjustable parameters. It is common to abstract the algorithm, and split it into the "artificial intelligence" (AI) core, capable of "learning", and adjustable parameters which may control the learning process, the application of its effects, or both. A developer would then prevent the AI from learning the future, and run a trading simulation program on historical data, having the AI algorithm fixed, for a range of parameter values and then pick the value that gives the best result. By not letting the AI learn the future, the developer reduces the level of self-delusion somewhat. The best simulated performance would still incorporate "the benefit of hindsight" albeit in a refined way -- through the choice of the adjustable parameters. While the AI did not learn from the future directly, its way of learning would incorporate the benefit of hindsight, and the results might contain a survivorship bias of sorts. The result? In case of a poor AI, the result will be a trading strategy with a hidden "peso problem".
Below I demonstrate the quality of the Forex Automaton™ AI directly, by removing the selection step and thus the survivorship bias it brings in. I look simultaneously at the entire range of possible "ways of learning", refusing to reject any, even if there are a priori reasons to do so, no matter how convincing they might be. Nor do I reject any of the possible money management styles, for the same reasons.

Fig.1:Return vs risk for paper trading in real AUD/JPY and simulated reference random walk markets. Vertical axis: annualized return, calculated as an average of independent monthly statistics, 1=100% per annum. Horizontal axis: standard deviation (RMS) of such annualized return from the same monthly statistics, same unit. Each point represents an instance of a trading system, a simulated trader; points differ by trading strategy which is subject to optimization. Black points: trading 4 fantasy markets with volatility of AUD/JPY, random by construction (no predictability or patterns). Red points: real AUD/JPY. Not all outcomes are included: in some cases, the trading did not last even a month therefore no RMS could be calculated -- there would be no other month of trading performance to compare with. In such cases the system is programmed to record a zero RMS, and such outcomes did not make it into the figure. The only other requirement is that of excluding the mean annualized returns above 5 (500%) and RMS above 20 -- happy as I am to include higher returns, they would make the picture difficult to analyze visually.
Back-testing a forex trading system
While it is true that past performance does not indicate the future, the only reliable information we have is about the past. A few important things make a difference between unbiased trading-system testing and self-delusion. Here I summarize my current understanding.
Historical LIBOR charts archive
There is quite a shortage of good historical LIBOR interest rates data charts with a selection of currencies and maturities on the net. ForexAutomaton.com has a new section for just that: find historical LIBOR charts sorted by currency, loan duration and year on our site. These are essentially graphical "dumps" of our SQL database, based on the official BBA LIBOR archive. Use the Filter feature of the list to find the data you need.
USD LIBOR rates: technical predictability overview
This article begins a series of analysis reports investigating a degree of predictability in the LIBOR rates, a popular capital cost indicator. The analysis is based on historical LIBOR interest rate data released by the British Bankers Association. I continue with the same technique proved useful in the predictability analysis of forex exchange rates, as our interest in the interest rates in general is in part provoked by the results of the latter analysis, namely:
- sometimes, one forex exchage rate can "show the way" to a number of others, or in other words, foretell (in a probabilistic or statistical sense) their movement.
- when that happens, it is usually the exchange rate with a large interest rate differential showing the way to the ones with lower interest rate differentials.
Fig.1: LIBOR heartbeat: autocorrelation in logarithmic returns of historical USD LIBOR rates, s/n-o/n duration, shown against the backdrop of statistical noise (red). The noise is obtained from martingale simulations based on the recorded LIBOR volatility for the period under study (2002-2008). The noise is presented as mean plus-minus 1 RMS, where RMS characterizes the distribution of the correlation value obtained for each particular bin by analyzing 20 independent simulated pairs of uncorrelated time series. The LIBOR shows strong regular structure with a period of 10 business days (two weeks). Time lag is measured in days. The familiar jump-the-gun pattern (strong negative signal around zero time lag) seen sometimes in forex, is also visible here. This is the level of predictability one can only dream of in forex exchange rates, yet it is the interest rates that drive forex. Is LIBOR always that predictable?
Obviously, when exploring these "loopholes" or market inefficiencies for wealth generation, an algorithmic trader or a forex trading system (an automated decision making algorithm such as the one being built here on Forex Automaton™ site) must be mindful of the picture of LIBOR rates and its evolution, albeit in a somewhat different context than a long-term money manager. Being able to predict events, even in a weak statistical sense, is even better than merely following. Besides being useful via their implications for forex forecasting, LIBORs form an underlying indicator for derivatives of their own. LIBOR futures contracts and options on such contracts are traded on the CME. How does the predictability of LIBORs compare with that of currencies? Which one, LIBOR or forex, is more attractive to trade? Answering these questions, or providing a technical analysis framework to approach the answers, while leaving the fundamentals and event-driven trends aside, this series of articles about correlation features in LIBORs will serve as a useful compliment to our set of forex correlation analysis notes. I start this new series of articles with the all-important US Dollar LIBOR.
CAD LIBOR technical predictability overview
Like the previous LIBOR predictability overviews, this document begins with historical LIBOR charts for the Canadian Dollar, continues with volatility analysis, and culminates with autocorrelations and correlations of logarithmic returns for various CAD LIBOR terms. 1-week LIBOR shows wave-like correlation pattern with a period of about 30 days on top of a positive autocorrelation. As the loan duration gets longer, the wave disappers and a more uniform positive autocorrelation emerges for the range of time lags of up to 70 days. That gets reduced to a 2-3 days wide peak around zero time lag for 12-month LIBOR. Cross-correlations between different LIBOR terms show srong predictability of the shorter range LIBOR on the basis of longer range. Motivation for this type of study has been outlined in the USD LIBOR analysis.
EUR/CHF and EUR/USD follower-leader effect: USD interest rate drop could have killed the effect
This is a follow-up report on the leader-follower correlation between EUR/USD and CHF/EUR. I say CHF/EUR and not EUR/CHF because the correlation between EUR/USD and EUR/CHF is negative; it is CHF/EUR who is found to follow behind EUR/USD with about an hour lag. To those who are new to this site: the blog focuses on applying quantitative analysis to forex in search for patterns which can be utilized for trading short range, the minimal time scale being one hour. These are postulated not to exist in efficient markets, and as usual, measuring the non-existent and writing about it is a lot of fun, just like doing the "impossible" by beating the markets. This article about EUR/CHF and EUR/USD, discussing the time evolution and time stability of the effect, also extends the time span of the observation up to the fourth quarter of 2008.
AUD LIBOR technical predictability overview
Like the previous LIBOR predictability overviews, this document begins with historical LIBOR charts for the Australian Dollar, continues with volatility analysis, and culminates with autocorrelations and correlations of various LIBOR terms. You will see that predictable patterns in AUD LIBORs are quite unique. Autocorrelations of short-term LIBORs show oscillations with about 7-8 day pediod, similar to USD but localized in the short range lags. For 3-month, 6-month and 12-month terms, broad (a few days) correlation peaks around 0 time lag are seen. For 3-month and 6-month LIBORs, the correlation is seen to be overall positive for the range of lags up to 70 or 80 days.
CHF/JPY and EUR/USD leader-follower history
This is a follow-up report on the leader-follower correlation between CHF/JPY and EUR/USD. To those who are new to this site: the blog focuses on applying quantitative analysis to forex in search for patterns which can be utilized for trading short range, the minimal time scale being one hour. These are postulated not to exist in efficient markets, and those who approach the market with that assumption, will find that the ugly asymmetric reality of forex holds little respect for that beautiful theory. The initial review of such forex inefficiencies, broad but superficial as it was, did reveal a number of specific effects to talk about. These became "acting characters" for the sequel stories, presenting in-depth studies, and tracing the characters' destinies. This article about CHF/JPY and EUR/USD, discussing the time evolution and time stability of the effect, is one of such stories. It appears that the predictability "loophole" such as this has been alive as recently as third quarter of 2008.
Subscribe to Snofs
or subscribe via email: