Revisiting the Day Range Strategy. Part 2. |
| Written by Mikhail Kopytine | |||||||||||||||||||||||||
| Tuesday, 06 July 2010 15:02 | |||||||||||||||||||||||||
|
Note added on July 28, 2010: the quantitative results presented in this report have been found to be affected by a bug in the analysis code and are consequently incorrect. This report is kept here for the sake of historical completeness only. This report continues our efforts to document the progress in the Day Range Strategy as the strategy is on its way towards production version. The research version of our system, known as Danica, has demonstrated in the six months of live operation that the high degree of predictability for daily extremes (low and high) is a reality, not a backtesting artefact. The Day Range Strategy is designed to benefit from the high stability of forecasts for daily extremes while minimizing the exposure to the forecast of daily close, by placing a protective stop and a profit target. The logic of the Day Range trading system is explained in detail in the previous post on the subject (Part 1 of this report). In short,
The requirement of same predicted direction for the upcoming day's low and high will be referred to as L0 trigger. In the back-testing simulations, we optimize the system by tweaking the parameter responsible for the prediction algorithm, nicknamed Fred. Every step of the back-testing run tests applicability of (then) past data for the (then) future, as at every step of the way the system can only access what is the "past" at that step. The key good news of Part 1 was that by moving Fred away from the value which maximizes the correlation between predicted and real logarithmic returns (as measured by the Pearson correlation coefficient) towards lower values of Fred, one obtains much better profitability. This post, Part 2 on the subject, brings you the details on what exactly happens. Three different Fred values are picked to run the backtesting simulations and the results are compared. The data for the 14 most popular forex pairs cover the time interval from 2002/08/20 through 2010/06/10. 1.1 1.2
Fig.1. Probability distribution of net profit/loss as a fraction of quote. 1.1: tails are included. 1.2: central part of the distribution. This type of variable to histogram, profit/loss relative to price, illustrates some basic features of the profit/loss distribution: the distribution has a two-peak structure and long tails; the tail of profits looks longer than the tail of losses; a loss is a lot more frequent than a profit. By taking frequent small losses and less frequent large gains one can obtain a positive balance. This fact known from the "cut your losses and let your winners run" traders' motto is illustrated here for those with graphical and quantitative inclinations. 2.1 2.2
Fig.2. Probability distribution of net profit/loss as a fraction of the amount placed at risk. 2.1: tails are included. 2.2: central part of the distribution. A realized profit/loss in a trade, relative to the amount at risk on a trade is more interesting. In the perfect world, when you hit the stop-loss, you loss a unit in terms of the variable plotted. That corresponds to the peak at -1. (In this simulation, every day is an entry and the histogram is filled with then-current profit/loss on the position, including spread, even if in the real life you would continue with the position for another day). There is a tail of larger losses due to the way spread is accounted for in the simulation code. A fairly fat real-life spread from a certain non-ECN broker is used. In these series of articles on the patterns of spread variation there a paragraph explaining how their tick data are used to infer spread. (Note that data in Table 1 ignore spread). Importantly, in Fig.2 you see why Fred=10 gives better results: it has a better risk/reward profile, dominating the area of positive returns.
In table 1, key statistics for three versions of Day Range strategy, differing by an algorithmic parameter responsible for forecasting, are presented. Note that the difference in profitability is accomplished despite the similarity of risk: all three versions risk 1% of trading capital per trade. Since the location of the stop loss is set by the previous day's extreme (low or high for the long or short trade respectively) and varies, the position amount also has to vary to ensure fixed degree of risk. From Table 1, I conclude that the main factor responsible for the higher profitability of Fred=10 is the following: among the events that have passed the L0 trigger, Fred=10 delivers a higher percentage of trade ideas passing the risk/reward quality cut. This percentage is roughly twice as high as in two other cases. This is consistent with the message of Fig.2. A disturbing aspect of these data is the relatively thin margin by which the system would be able to beat the spreads: the 0.00025 number (average profit per trade as a fraction of quote) has to be compared with spread which in the same units would, for the 10 most liquid pairs with a broker such as Oanda, vary from 0.00008 (EUR/USD) to 0.00017 (EUR/AUD, EUR/CHF, USD/CHF) with EUR/GBP, EUR/JPY, GBP/USD, USD/JPY in between. In other words, a retail trader operating the system would have to share roughly half the profit with her broker. For a large scale (institutional) operator, the spread may be lower but slippage would have to be taken into account and the picture could be comparable at the end of the day. Nevertheless, the time stability of this strategy (analyzed in Part 1 of this report) is impressive and this is for now the main factor making it attractive. The potential of making the strategy more profitable by assigning more intelligent weights (capital allocation) to the trades (as was demonstrated for example in this report) remains completely untapped. |
|||||||||||||||||||||||||
| Last Updated ( Tuesday, 17 August 2010 14:36 ) | |||||||||||||||||||||||||