Optimizing the forex trading system parameters: USD/CHF

User Rating: / 0
PoorBest
Written by Forex Automaton
Friday, 29 May 2009 16:59

After some important changes to the trading system optimization methodology, I continue with USD/CHF on the day scale -- this currency pair has not been analyzed in this context before.

The basic framework remains the same: a run of the program included simulations of trading histories of 13,398 independent "virtual traders" (forex robots), each of them being an incarnation of the same algorithm, differing by the setting of the adjustable knobs. This report uses the USD/CHF day scale data covering the time interval from August 20, 2002 to March 23, 2009, with the actual trading starting in March 2006 (when the initial "training" of the system was completed). The key concepts of conditional projection distributions and profile histograms have been explained before.

What is the best stop-loss to use?

What is the best stop-loss parameter to use in forex? The answer depends on the time scale of trading, since so does the the distribution of returns. The distribution of returns gets broader with time scale; in the random walk problem, your expected root-mean-square departure from the origin grows with time as a square root. For this reason, my stop-loss parameter is not expressed in pips or dollars. Instead, it is a fraction of the root-mean-square of the series of linear returns (price differences) in the nearest subset of the price series.

Previously, the algorithm was seen to generate larger values of the arithmetic mean return with tighter stop-loss -- but only up to a certain point, the dependence was not monotonic. On the basis of the low draw-down criterion, the conclusion was that more generous values of stop-loss would be preferable. With the new information on the biased nature of the arithmetic mean, when applied to returns, there is less self-contradiction in the data: the tight stop-loss is not advisable even on the basis of Fig.1 alone. Fig.2, showing dependence of the RMS of the logarithmic annualized return distribution (a newly introduced quantity) on the stop-loss placement, demonstrates that tight stop-loss placement leads to bumpier rides in returns.

Both figures look very much like their counterparts in the similar USD/CAD analysis.

The entry and exit threshold parameters have been explained elsewhere. In Figures 4 and 5 I present minimum-bias (no particular selection applied to the set of traders) data for the entry and exit parameters, respectively. As far as the entry parameter is concerned, the dependence indicates that the optimum may be outside the range of the parameters considered. In the range considered, the data favor conservative entry (high threshold). This is similar to conclusion of the USD/CAD analysis.

Speaking of the exit parameter, the shape seems to favor the values on the left (but not extreme left) of the range. This is in contrast with many other cases where no clear preference could be inferred for the exit sensitivity parameter. It's interesting that a conservative entry and low-threshold exit are indicated for USD/CAD.

Optimizing the forecasting parameter

From the data so far, it looks like with a cut on any single parameter, one is doomed to more or less negative returns. This may come as a surprise to some, but the effect of the combined (simultaneous) cut on each of the parameters inspected so far is going to be far more powerful.

The forecasting quality parameter is euphemistically called Fred to avoid disclosing its nature. The combined effect of the best stop-loss, entry and exit parameters, shown in Fig.5, bottom (to compare with Fig.5, top with no such selection) is seen to put the return in a largely positive territory. The shape looks very different from USD/CAD, with a different overall trend and favorable areas in the middle and on the left of the Fred range.

Previously in these reports, Sharpe ratio was used to add risk considerations to those of return while searching for the optimum. As already noted, Sharpe ratio as used in the "old approach" reports contains biased quantities and is avoided in the "new" approach. A possible replacement is a difference of two logarithmic quantities, the mean of the monthly annualized logarithmic returns and the RMS of the series of such returns. This is the quantity "LOG SHARPE" plotted in Fig.6. As you see from Fig.5 and Fig.6 combined, the introduction of the second moment quantity (RMS), a measure of the risk, does not change the conclusion: the values in the range 17-23 for the forecasting parameter are still to be preferred.

Summary

With this input, the preferred ranges of the trading system parameters are given in the Table.

 Forecasting parameter, Fred between 17 and 23 2.06667, 2.53333, 3. 0.006 0.002, 0.003, 0.004, 0.005

Bookmark with:

Last Updated ( Monday, 04 January 2010 12:34 )