Loading…
Public trading strategy

The European Central Bank is hiking rates in a crisis — long the U.S. Dollar as

Created

Thesis

When a major central bank like the ECB raises interest rates during a period of economic weakness, it signals that they are worried about inflation getting out of control. This kind of uncertainty in Europe tends to drive global investors to move their money into U.S. assets, which are seen as safer. As money flows into dollars and U.S. bonds, the dollar gains strength. A simpler way to play this trend is to bet on the U.S. dollar gaining value against the Euro.

Strategy approach

Build a long strategy for the US Dollar Index (DXY) using the ETF UUP on a H4 timeframe. Enter long when the 9-period EMA crosses above the 21-period EMA and the MACD line crosses above the signal line. Use a 2% profit target and a 1% stop loss.

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: EMA/MACD Crossover Long (UUP@4h) (4 conditions)
  • Entry: EMA/MACD Crossover Long (EUR@4h) (4 conditions)
  • Exit: TP: Near Resistance[1] (UUP@4h) (1 condition)
  • Exit: TP: Near Resistance[1] (EUR@4h) (1 condition)
  • Exit: SL: Below Support[2] (UUP@4h) (1 condition)
  • Exit: SL: Below Support[2] (EUR@4h) (1 condition)

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "UUP",
      "timeframe": "4h"
    },
    {
      "symbol": "EUR",
      "timeframe": "4h"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 9
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "field": "line",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "field": "signal",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_uup",
      "name": "EMA/MACD Crossover Long (UUP@4h)",
      "priority": 1,
      "trade_symbol": "UUP"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 9
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "field": "line",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "field": "signal",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_eur",
      "name": "EMA/MACD Crossover Long (EUR@4h)",
      "priority": 2,
      "trade_symbol": "EUR"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_uup",
      "name": "TP: Near Resistance[1] (UUP@4h)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "UUP"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_eur",
      "name": "TP: Near Resistance[1] (EUR@4h)",
      "priority": 98,
      "purpose": "take_profit",
      "target_symbol": "EUR"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_uup",
      "name": "SL: Below Support[2] (UUP@4h)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "UUP"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_eur",
      "name": "SL: Below Support[2] (EUR@4h)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "EUR"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2,
      "stop_loss_percent": 1,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "4h",
  "version": 1
}

Indicator configuration

{
  "indicators": [
    {
      "name": "ema",
      "period": 9
    },
    {
      "name": "ema",
      "period": 21
    },
    {
      "fast": 12,
      "name": "macd",
      "signal": 9,
      "slow": 26
    },
    {
      "name": "ema",
      "period": 9
    },
    {
      "name": "ema",
      "period": 21
    },
    {
      "fast": 12,
      "name": "macd",
      "signal": 9,
      "slow": 26
    }
  ]
}

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "UUP",
      "timeframe": "4h"
    },
    {
      "symbol": "EUR",
      "timeframe": "4h"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 9
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "field": "line",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "field": "signal",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "UUP",
              "timeframe": "4h"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_uup",
      "name": "EMA/MACD Crossover Long (UUP@4h)",
      "priority": 1,
      "trade_symbol": "UUP"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 9
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "field": "line",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "field": "signal",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "EUR",
              "timeframe": "4h"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_eur",
      "name": "EMA/MACD Crossover Long (EUR@4h)",
      "priority": 2,
      "trade_symbol": "EUR"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_uup",
      "name": "TP: Near Resistance[1] (UUP@4h)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "UUP"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_eur",
      "name": "TP: Near Resistance[1] (EUR@4h)",
      "priority": 98,
      "purpose": "take_profit",
      "target_symbol": "EUR"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_uup",
      "name": "SL: Below Support[2] (UUP@4h)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "UUP"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_eur",
      "name": "SL: Below Support[2] (EUR@4h)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "EUR"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2,
      "stop_loss_percent": 1,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "4h",
  "version": 1
}

Strategy instructions

Trading agent generated from recommendation idea 'The European Central Bank is hiking rates in a crisis — long the U.S. Dollar as global money seeks safety'. Thesis: When a major central bank like the ECB raises interest rates during a period of economic weakness, it signals that they are worried about inflation getting out of control. This kind of uncertainty in Europe tends to drive global investors to move their money into U.S. assets, which are seen as safer. As money flows into dollars and U.S. bonds, the dollar gains strength. A simpler way to play this trend is to bet on the U.S. dollar gaining value against the Euro.

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