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.


Pros & Cons
| Pros | Cons |
| Uses dual MACD confirmation for added signal reliability | Requires trending conditions; may lag in ranging markets |
| Incorporates dynamic breakeven using ATR | OSMA exit signals may slightly delay exits during fast reversals |
| Clear stop-loss and take-profit rules | Does not filter news or volatility shocks |
| Backtested over 10 years on USD/JPY | Optimized 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
| Pair | Timeframe | Period | Model | SL/TP (Pips) | Net Result |
|---|---|---|---|---|---|
| USD/JPY | H1 | 2015–2025 | MetaTrader 5 Real Tick (hedged) | 70 / 35 (Long), 95 / 180 (Short) | Profitable |
Download complete backtest reports and equity curves below.



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




0 Comments