Additional menu

USD/JPY Swing Trading MACD Strategy with Precision Entry and Exit Signals

MACD Strategies | 1 comment

USD/JPY Swing Trading MACD Strategy with Precision Entry and Exit Signals

This strategy has been converted into an automated trading robot for MetaTrader 5.

 Instead of manually following the rules, you can test how the robot executes this strategy in real market conditions using a demo account. If it fits your trading style, you can unlock the full version for live use.

Quick Overview: Strategy Specs

Currency Pair:USD/JPY
Timeframe:Hourly (H1)
Strategy Type:Swing Trading with MACD & OSMA
Indicators:MACD, OSMA, ATR, HMA
Stop Loss:70 pips (long), 95 pips (short)
Take Profit:35 pips (long), 180 pips (short)
Break-Even Rule:Moves SL to breakeven after 20 pips for long / 2x ATR for short
Entry Condition:MACD crossover confirmation
Exit Condition:OSMA crossover plus price-weighted HMA confirmation
Robot Included:Yes, the MT5 EA version is available
Backtest Period:May 2015 – May 2025

Strategy Description

This swing trading MACD strategy is designed to capture medium-term price waves in the USD/JPY pair. It runs on the 1-hour chart and combines MACD and OSMA indicators to pinpoint high-probability entries and precise exits.

At its core, the system waits for momentum to shift, as confirmed by the MACD crossing the zero line, and then validates the move with another MACD calculation between the fast and slow settings. Exits occur when the underlying momentum (OSMA) fades, and price breaks its recent weighted low or high, measured against a Hull Moving Average.

The strategy is fully automated and has defined risk parameters, making it suitable for both manual discretionary traders and EA users.

Indicators Used in This Strategy

  • MACD (13, 95, 166): Used to detect zero-line crossovers signaling major momentum shifts.
  • MACD (3, 10, 16) vs. MACD (24, 52, 9): Compares fast and slower MACD signals to confirm trend alignment.
  • OSMA (3, 10, 16): Tracks changes in MACD slopes and is used as the main exit signal.
  • HMA (90): Smooth average confirms if price is making new momentum lows or highs before exit.
  • ATR(130): Used to set the breakeven level on short trades dynamically.

Entry & Exit Rules

Long Entry:

  • MACD (13, 95, 166) crosses above 0 (primary upward momentum signal)
  • MACD (3,10,16). main ≥ MACD (24,52,9). signal (fast MACD confirms trend strength)
  • No opposite short entries or long exits occur at the same time

Short Entry:

  • MACD (13, 95, 166) crosses below 0 (major downward signal)
  • MACD (3,10,16).main ≤ MACD (24,52,9).signal (fast to slow MACD turns bearish)
  • No opposite long entries or short exits trigger

Long Exit:

  • OSMA (3,10,16) crosses below 0 (momentum ends)
  • Weighted low over 40 bars crosses below HMA(90) (confirming weakening move)

Short Exit:

  • OSMA (3,10,16) crosses above 0 (momentum shift up)
  • Weighted high over 40 bars crosses above HMA(90) (upward breakout reversing the trend)

Related: GBP/USD H1 Swing Trading MACD Strategy with ADX & SuperTrend

Chart Example

Below is an example of a recent long trade entry and exit from the USD/JPY hourly chart. You’ll see how the MACD signals lined up to generate the entry and how the OSMA and price patterns confirmed the exit.

USD/JPY Swing Trading MACD Strategy with Precision Entry and Exit Signals - Buy Setup Example
USD/JPY Swing Trading MACD Strategy with Precision Entry and Exit Signals – Buy Setup Example
USD/JPY Swing Trading MACD Strategy with Precision Entry and Exit Signals - Sell Setup Example
USD/JPY Swing Trading MACD Strategy with Precision Entry and Exit Signals – Sell Setup Example

Pros & Cons

ProsCons
Uses dual MACD confirmation for added signal reliabilityRequires trending conditions; may lag in ranging markets
Incorporates dynamic breakeven using ATROSMA exit signals may slightly delay exits during fast reversals
Clear stop-loss and take-profit rulesDoes not filter news or volatility shocks
Backtested over 10 years on USD/JPYOptimized for a single pair and timeframe

Final Thoughts & Trader Tips

This strategy is excellent for traders who prefer slower-paced trading that capitalizes on market momentum. Because it’s built around MACD confirmation, you’re less likely to fall for false breakouts. However, constantly monitor news around the USD or JPY, especially key economic events, to avoid unexpected volatility.

Tip: Avoid trading this setup during the Tokyo lunch-hour lull or immediately before major US data releases. These periods often bring false signals.

MT5 EA Version Now Available

The MT5 Expert Advisor version of this USD/JPY MACD swing strategy includes:

  • Auto execution of long and short entries
  • Built-in MACD, OSMA, and HMA logic
  • Breakeven and risk management settings
  • Works out of the box on the H1 USD/JPY chart

Backtest Summary

PairTimeframePeriodModelSL/TP (Pips)Net Result
USD/JPYH12015–2025MetaTrader 5 Real Tick (hedged)70 / 35 (Long), 95 / 180 (Short)Profitable

Download complete backtest reports and equity curves below.

10-Year Equity Curve
10-Year Equity Curve – USD/JPY Swing Trading MACD Strategy with Precision Entry and Exit Signals
10-Year Equity Curve
10-Year Equity Curve – USD/JPY Swing Trading MACD Strategy with Precision Entry and Exit Signals
backtest result
10-Year Equity Curve – USD/JPY Swing Trading MACD Strategy with Precision Entry and Exit Signals

Download the EA Now

You can get the MT5 Expert Advisor version of this strategy.
Click here to download – Instant access, no subscription, no hidden charges

This includes:

  • 1-year license for 1 demo and 1 live account
  • Works with MetaTrader 5
  • Fully automated version of the strategy

Want to Try This Strategy as a Robot?

Start with a limited demo test for this exact strategy, then unlock the full version for live use when you are ready.

  • Free test: Demo only, limited time, one strategy at a time
  • Full version: 1 demo + 1 live account
  • Delivery: Within 12 hours

⚠️ This is not financial advice. Bots are tools, not guarantees. Test responsibly.


💼 Want Lifetime Access to Every Bot?

Get all current and future robots in the shop — plus 5 exclusive premium bots not sold separately.

About the Author

Hi, I'm Alex Oke and I’m a forex trader, software developer, and strategy tester. I love creating and refining trading strategies to navigate the forex market effectively.
Comments
0 Comments
Submit a Comment

Your email address will not be published. Required fields are marked *