Premium Market Analysis, Trader Education, Software, and Trading Strategies

DLPAL software

Developing Forex Trading Strategies With DLPAL

In this article we include an example of trading strategy development for the GBP/USD forex pair with the use of DLPAL software.

DLPAL identifies trading strategies in historical data by using Occam’s Razor as a guiding principle. In addition, the results of DLPAL are fully deterministic and there is no stochasticity, i.e., each time the program runs with same data and parameters it generates the same exact results. This distinguishes DLPAL from its rivals and has made it the platform of choice of many professional and retail traders around the world who understand the importance of lack of any stochasticity from the results and how the use of Occam’s Razor reduces data-mining bias. Obviously, data-mining bias has many facets and cannot be eliminated completely because that is impossible to do. However, reducing it is the first step towards trading strategy robustness.

Developing strategies for forex trading

At Price Action Lab we in general avoid forex markets because they offer high leverage that that can cause loss of discipline and ruin. However, there are many traders who like forex. DLPAL has the potential of identifying strategies in forex pairs that fulfill user-defines performance parameters and risk/reward constraints.

A trading strategy for the GBP/USD pair was developed in June 2012 with an engine that was a predecessor of DLPAL. For more details click here but the strategy was based on daily data, the in-sample was from 01/04/1999 to 05/31/2010 and the out-of-sample covered the period 06/01/2010 to 06/01/2012. Both long and short trades were generated with 150 pips profit target and stop-loss. Initial capital was $20K per standard lot.

This strategy has remained profitable forward as it is shown below after the Amibroker code was used to test it in the period 06/01/2012 to 03/31/2017.

Based on one standard lot and $20K initial capital, CAGR in the forward period is a little less than 20% and Sharpe is 0.82.

Developing a new GBP/USD strategy

Maybe we were lucky in 2012 and to take this possibility into account we will design a new strategy with DLPAL with same specifications but on slightly different in-sample, as shown below:

Time-frame: Daily 
Forex pair: GBP/USD
In-sample period: 01/02/2001 – 06/01/2012
Out-of-sample period: 06/01/2012 – 03/31/2017
Trade entry: Open of next bar
Position size: One standard lot
Initial capital: $20K
Profit target = stop-loss = 150 pips

The DLPAL workspace is shown below. We are looking for strategies with win rate > 76% with same major feature cluster as in 2012 (has been modified since but the principles remain the same.) Below are the results of the search.

DLPAL found 10 long and 3 short strategies in the in-sample as shown below.

The strategies are combined into a trading systems and the generated Amibroker code is used to backtest the system in the out-of-sample. Below is the equity curve.

The GBP/USD system is profitable in the out-of-sample. CAGR is nearly 16% and Sharpe is 0.92. Below is a table of monthly returns and the results of a Monte Carlo simulation.

Yearly returns fell after 2015 but this is because of special conditions and of the fact that this system was not rebalanced because the objective in this study was to show viability of the process. Normally the search is walked forward every year.

The Monte Carlo simulation shows that the probability of a 50% drawdown is about 5% but this is acceptable in the case of highly leverage systems (in this case about 5:1 based on initial equity)

We have demonstrated the basic process in this article of developing a forex trading system with DLPAL. There is more work to be done to create a final system but this depends on specific objectives.

Disclaimer:  No part of the analysis in this blog constitutes a trade recommendation. The past performance of any trading system or methodology is not necessarily indicative of future results. Read the full disclaimer here.

If you have any questions or comments, happy to connect on Twitter: @priceactionlab

You can download a demo of DLPAL from this link. For more articles about DLPAL and DLPAL PRO click here.

Subscribe via RSS or Email, or follow us on Twitter.


Copyright Notice