Loading…
Public trading strategy

The yen has crashed to its worst week in months, pushing the exchange rate dange

Created

Thesis

The yen has crashed to its worst week in months, pushing the exchange rate dangerously close to the 165 level. Japan's finance minister just warned they are ready to take 'decisive action' in currency markets, which historically means a surprise direct intervention to buy yen and crush the dollar. Meanwhile, major US banks are flexing their financial strength with big dividend hikes, which underscores the massive interest rate gap between the US and Japan that drove this trade in the first place. When a central bank verbally warns the market and the currency is stretched to extreme weekly lows, it creates an asymmetric setup to bet on a sudden yen bounce as traders lock in profits before the government steps in.

Markets and timeframes

Entry and exit at a glance

These are the named rules in the shared configuration. Review the full conditions below before using a strategy.

  • Entry: Overbought RSI/MACD/ADX Crossover Short - HEWJ Confirmed (UUP@1d) (5 conditions)
  • Entry: Overbought RSI/MACD/ADX Crossover Short - UUP Confirmed (HEWJ@1d) (4 conditions)
  • Exit: Position Exit Rule (UUP@1d) (2 conditions)
  • Exit: Position Exit Rule (HEWJ@1d) (2 conditions)
  • Exit: Invalidation: Resistance Reclaim (UUP@1d) (1 condition)
  • Exit: Invalidation: Resistance Reclaim (HEWJ@1d) (1 condition)
  • Exit: TP: Fib Extension 127.2% (UUP@1d) (1 condition)
  • Exit: TP: Fib Extension 127.2% (HEWJ@1d) (1 condition)
  • Exit: Stop Loss at 2.0% (1 condition)
  • Exit: Take Profit at 4.0% (1 condition)

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "STOCK:UUP",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:HEWJ",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 75
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "line",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_below",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "signal",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 25
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        }
      ],
      "direction": "short",
      "enabled": true,
      "id": "entry_1_uup_confirmed",
      "name": "Overbought RSI/MACD/ADX Crossover Short - HEWJ Confirmed (UUP@1d)",
      "priority": 1,
      "trade_symbol": "STOCK:UUP"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 75
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "field": "line",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_below",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "field": "signal",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 25
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        }
      ],
      "direction": "short",
      "enabled": true,
      "id": "entry_1_hewj_confirmed",
      "name": "Overbought RSI/MACD/ADX Crossover Short - UUP Confirmed (HEWJ@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:HEWJ"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 40
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 40
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_uup",
      "name": "Position Exit Rule (UUP@1d)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "STOCK:UUP"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 40
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 40
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_hewj",
      "name": "Position Exit Rule (HEWJ@1d)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "STOCK:HEWJ"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_uup",
      "name": "Invalidation: Resistance Reclaim (UUP@1d)",
      "priority": 96,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:UUP"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_hewj",
      "name": "Invalidation: Resistance Reclaim (HEWJ@1d)",
      "priority": 97,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:HEWJ"
    },
    {
      "applies_to": "short",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "ratio": 1272,
            "type": "fibonacci_extension"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_uup",
      "name": "TP: Fib Extension 127.2% (UUP@1d)",
      "priority": 100,
      "purpose": "take_profit",
      "target_symbol": "STOCK:UUP"
    },
    {
      "applies_to": "short",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "ratio": 1272,
            "type": "fibonacci_extension"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_hewj",
      "name": "TP: Fib Extension 127.2% (HEWJ@1d)",
      "priority": 101,
      "purpose": "take_profit",
      "target_symbol": "STOCK:HEWJ"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -2
          }
        }
      ],
      "enabled": true,
      "id": "exit_4",
      "name": "Stop Loss at 2.0%",
      "priority": 100,
      "purpose": "stop_loss"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 4
          }
        }
      ],
      "enabled": true,
      "id": "exit_5",
      "name": "Take Profit at 4.0%",
      "priority": 100,
      "purpose": "take_profit"
    }
  ],
  "position_sizing": {
    "max_position_percent": 20,
    "method": {
      "fib_stop_ratio": 1272,
      "risk_percent": 2,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 2
}

Indicator configuration

{
  "indicators": [
    {
      "name": "rsi",
      "period": 14
    },
    {
      "fast": 12,
      "name": "macd",
      "signal": 9,
      "slow": 26
    },
    {
      "name": "adx",
      "period": 14
    },
    {
      "name": "rsi",
      "period": 14
    },
    {
      "fast": 12,
      "name": "macd",
      "signal": 9,
      "slow": 26
    },
    {
      "name": "adx",
      "period": 14
    },
    {
      "name": "rsi",
      "period": 14
    },
    {
      "fast": 12,
      "name": "macd",
      "signal": 9,
      "slow": 26
    },
    {
      "name": "adx",
      "period": 14
    },
    {
      "name": "rsi",
      "period": 14
    },
    {
      "fast": 12,
      "name": "macd",
      "signal": 9,
      "slow": 26
    },
    {
      "name": "adx",
      "period": 14
    },
    {
      "name": "rsi",
      "period": 14
    },
    {
      "fast": 12,
      "name": "macd",
      "signal": 9,
      "slow": 26
    },
    {
      "name": "adx",
      "period": 14
    }
  ]
}

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "STOCK:UUP",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:HEWJ",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 75
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "line",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_below",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "signal",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 25
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        }
      ],
      "direction": "short",
      "enabled": true,
      "id": "entry_1_uup_confirmed",
      "name": "Overbought RSI/MACD/ADX Crossover Short - HEWJ Confirmed (UUP@1d)",
      "priority": 1,
      "trade_symbol": "STOCK:UUP"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 75
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "field": "line",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_below",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "field": "signal",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 25
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        }
      ],
      "direction": "short",
      "enabled": true,
      "id": "entry_1_hewj_confirmed",
      "name": "Overbought RSI/MACD/ADX Crossover Short - UUP Confirmed (HEWJ@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:HEWJ"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 40
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 40
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_uup",
      "name": "Position Exit Rule (UUP@1d)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "STOCK:UUP"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 40
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 40
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_hewj",
      "name": "Position Exit Rule (HEWJ@1d)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "STOCK:HEWJ"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_uup",
      "name": "Invalidation: Resistance Reclaim (UUP@1d)",
      "priority": 96,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:UUP"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_hewj",
      "name": "Invalidation: Resistance Reclaim (HEWJ@1d)",
      "priority": 97,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:HEWJ"
    },
    {
      "applies_to": "short",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:UUP",
              "timeframe": "1d"
            },
            "ratio": 1272,
            "type": "fibonacci_extension"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_uup",
      "name": "TP: Fib Extension 127.2% (UUP@1d)",
      "priority": 100,
      "purpose": "take_profit",
      "target_symbol": "STOCK:UUP"
    },
    {
      "applies_to": "short",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:HEWJ",
              "timeframe": "1d"
            },
            "ratio": 1272,
            "type": "fibonacci_extension"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_hewj",
      "name": "TP: Fib Extension 127.2% (HEWJ@1d)",
      "priority": 101,
      "purpose": "take_profit",
      "target_symbol": "STOCK:HEWJ"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -2
          }
        }
      ],
      "enabled": true,
      "id": "exit_4",
      "name": "Stop Loss at 2.0%",
      "priority": 100,
      "purpose": "stop_loss"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 4
          }
        }
      ],
      "enabled": true,
      "id": "exit_5",
      "name": "Take Profit at 4.0%",
      "priority": 100,
      "purpose": "take_profit"
    }
  ],
  "position_sizing": {
    "max_position_percent": 20,
    "method": {
      "fib_stop_ratio": 1272,
      "risk_percent": 2,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 2
}

Strategy instructions

Trading agent generated from recommendation idea 'The yen has crashed to its worst week in months, pushing the exchange rate dangerously close to the 165 level. Japan's finance minister just warned they are ready to take 'decisive action' in currency markets, which historically means a surprise direct in'. Thesis: The yen has crashed to its worst week in months, pushing the exchange rate dangerously close to the 165 level. Japan's finance minister just warned they are ready to take 'decisive action' in currency markets, which historically means a surprise direct intervention to buy yen and crush the dollar. Meanwhile, major US banks are flexing their financial strength with big dividend hikes, which underscores the massive interest rate gap between the US and Japan that drove this trade in the first place. When a central bank verbally warns the market and the currency is stretched to extreme weekly lows, it creates an asymmetric setup to bet on a sudden yen bounce as traders lock in profits before the government steps in.

Performance

No trade count, win rate, or realized P&L figures are provided in this public preview. The thesis and shared rules do not establish a performance record.

What this public preview can establish

  • The thesis and strategy approach describe a market view. They do not show whether an entry or exit condition is currently met.
  • Technical strategy fields are shared above. Inspect the actual conditions and check when they were evaluated before relying on them.
  • No trade count, win rate, or P&L figure is published in this preview. It cannot establish a performance record.

Explore

How CommonQuant researches and tests strategies · Public paper-trading record and its limits · Discover public strategies