USD/JPY Strategy

USD/JPY Strategy

The Basis of The Strategy

The US Dollar Japanese Yen currency pair is the first non-forex pair that I am tradin live. As for my other strategies, this algorithmic trading strategy utilizes the Dark Venus Expert Advisor, which is a free trading strategy in Metatrader 4 and 5. The strategy operates specifically on the 1-hour timeframe, executing both long and short trades.

Positions are only opened when the 1h bar closes above the bollinger band, see figure 1. The settings for the Bollinger bands are period 65, standard deviation 2.4. Unlike my other trading strategies, this strategy does not make us of a time filter and trades both in the long as well as in the short direction.

Take profit and stop loss are determined at 200 and 800 ticks respectively. The backtesting data proves that this should be an optimal profit/loss ratio for a relatively stable return over time.

Figure 1. Single trade is opened when both the price closes above the upper BB and the time filter conditions are met. In the figure, two trades are opened shortly after each other.

Backtesting Results and Statistics

Figure 2 is generated based on a 0.01 lot size, taking into account a starting capital of 10,000 USD. Over the entire 10 years, the automated trading strategy is performing quite consistent. There are periods of consecutive winners, and periods of consolidation where no real gains are made.

Table 1 presents the backtesting results observed over the past 10 years, providing a comprehensive overview of the strategy's performance. The strategy is characterized by a relatively high win rate, largely due to its approach of employing a smaller take profit while simultaneously utilizing a larger stop loss. The Sharpe ratio stands at a positive 2.00. Notably, the average trade duration is the highest of all my strategies. Typically, fast trades are more profitable and this is an area which can be looked at to improve this strategy even further.

Table 1. Backtesting Statistics
Net P/L (EUR) Trades Total Win % Sharpe Ratio Max Drawdown (%) Avg. Trade Duration (hh:mm)
296 1102 83.39% 2.00 0.41% 15:19

Figure 2. Equity curve and account margin plotted from 1/1/2015 to 1/1/2025

Boosting The Return

Since I'll be running multiple algorithms simultaneously and I want to protect my account from large losses, I aim for a maximum drawdown of 20% over 10 year backtesting period. This should provide enough risk management that it will not blow up the account when running other strategies at the same time. For this strategy, I've set the risk percentage to 5% in the expert advisor (which does not match with the actual risk), enabling dynamic lot sizing over the backtest period. The results are shown in Figure 3.

The backtesting results in Table 2 show a compound annual growth rate (CAGR) of 14.55% and a maximum drawdown of 17.6%. Personally, this trade-off is better than investing in the stock market. Let’s find out of these backtesting results match with the actual performance!

Table 2. Boosted Backtesting Statistics
Net P/L (EUR) Trades Total Win % Sharpe Ratio Max Drawdown (%) Avg. Trade Duration (hh:mm) CAGR
29346 1102 83.39% 1.80 17.8% 15:19 14.55%

Figure 3. Equity curve and account margin plotted from 1/1/2015 to 1/1/2025 for the boosted results with a max drawdown of 18.6%.

Running the Strategy Live

Unlike common practice typically observed in algorithmic trading, I did not conduct a traditional out-of-sample test prior to implementing my trading strategy. Instead, I have backtested the strategy across a comprehensive time period of 10 years, during which it has consistently yielded a steady return each year, with an average of over 110 trades executed annually.

Given these favorable results, I made the decision to subsequently test the strategy using a small lot size of 0.01 over the course of the first 6 months, effectively acting as my out-of-sample test. After the conclusion of these 6 months, I will thoroughly review the performance metrics to ensure that the backtesting results align closely with the actual performance observed in the market, thereby allowing me to confirm that this strategy indeed possesses a tangible edge.

Interested to see how my automated trading systems are doing? Check out my blog by clicking the botton below!