Loading…
Public trading strategy

Iran peace deal hopes send Korean stocks surging — ride the chip rally with EWY

Created

Thesis

The sudden de-escalation in the Middle East removes a major overhang for global tech supply chains. South Korea's massive semiconductor sector, which is highly sensitive to global trade disruptions, just saw an enormous single-day pop. When a whole market rallies this sharply on structural news, institutional money often continues to flow in for days as portfolios re-adjust. Buying a broad South Korea fund lets you capture this relief rally safely.

Strategy approach

Build a rule-based long strategy on EWY (iShares MSCI South Korea ETF) using the daily timeframe. Entry conditions: price gaps up > 1.5% on the open and the day's volume exceeds the 20-day average volume. Exit conditions: a 5% trailing stop, or if the price closes below the 10-day exponential moving average, with a maximum holding period of 15 trading days.

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: OBV/SMA Signal Long (EWY@1d) (5 conditions)
  • Entry: OBV/SMA Signal Long (KWEB@1d) (5 conditions)
  • Entry: OBV/SMA Signal Long (SSNLF@1d) (5 conditions)
  • Exit: Take Profit at 15.0% (EWY@1d) (2 conditions)
  • Exit: Take Profit at 15.0% (KWEB@1d) (2 conditions)
  • Exit: Take Profit at 15.0% (SSNLF@1d) (2 conditions)
  • Exit: TP: Near Resistance[1] (EWY@1d) (1 condition)
  • Exit: TP: Near Resistance[1] (KWEB@1d) (1 condition)
  • Exit: TP: Near Resistance[1] (SSNLF@1d) (1 condition)
  • Exit: SL: Below Support[2] (EWY@1d) (1 condition)
  • Exit: SL: Below Support[2] (KWEB@1d) (1 condition)
  • Exit: SL: Below Support[2] (SSNLF@1d) (1 condition)

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "EWY",
      "timeframe": "1d"
    },
    {
      "symbol": "KWEB",
      "timeframe": "1d"
    },
    {
      "symbol": "SSNLF",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 1.015
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "obv"
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_ewy",
      "name": "OBV/SMA Signal Long (EWY@1d)",
      "priority": 1,
      "trade_symbol": "EWY"
    },
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 1.015
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "obv"
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_kweb",
      "name": "OBV/SMA Signal Long (KWEB@1d)",
      "priority": 2,
      "trade_symbol": "KWEB"
    },
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 1.015
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "obv"
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_ssnlf",
      "name": "OBV/SMA Signal Long (SSNLF@1d)",
      "priority": 3,
      "trade_symbol": "SSNLF"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 10
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 15
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_ewy",
      "name": "Take Profit at 15.0% (EWY@1d)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "EWY"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 10
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 15
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_kweb",
      "name": "Take Profit at 15.0% (KWEB@1d)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "KWEB"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 10
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 15
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_ssnlf",
      "name": "Take Profit at 15.0% (SSNLF@1d)",
      "priority": 3,
      "purpose": "signal",
      "target_symbol": "SSNLF"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_ewy",
      "name": "TP: Near Resistance[1] (EWY@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "EWY"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_kweb",
      "name": "TP: Near Resistance[1] (KWEB@1d)",
      "priority": 98,
      "purpose": "take_profit",
      "target_symbol": "KWEB"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_ssnlf",
      "name": "TP: Near Resistance[1] (SSNLF@1d)",
      "priority": 99,
      "purpose": "take_profit",
      "target_symbol": "SSNLF"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_ewy",
      "name": "SL: Below Support[2] (EWY@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "EWY"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_kweb",
      "name": "SL: Below Support[2] (KWEB@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "KWEB"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_ssnlf",
      "name": "SL: Below Support[2] (SSNLF@1d)",
      "priority": 102,
      "purpose": "stop_loss",
      "target_symbol": "SSNLF"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2,
      "stop_loss_percent": 5,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 1
}

Indicator configuration

{
  "indicators": [
    {
      "name": "obv"
    },
    {
      "name": "sma",
      "period": 20
    },
    {
      "name": "ema",
      "period": 10
    },
    {
      "name": "obv"
    },
    {
      "name": "sma",
      "period": 20
    },
    {
      "name": "ema",
      "period": 10
    },
    {
      "name": "obv"
    },
    {
      "name": "sma",
      "period": 20
    },
    {
      "name": "ema",
      "period": 10
    }
  ]
}

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "EWY",
      "timeframe": "1d"
    },
    {
      "symbol": "KWEB",
      "timeframe": "1d"
    },
    {
      "symbol": "SSNLF",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 1.015
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "obv"
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_ewy",
      "name": "OBV/SMA Signal Long (EWY@1d)",
      "priority": 1,
      "trade_symbol": "EWY"
    },
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 1.015
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "obv"
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_kweb",
      "name": "OBV/SMA Signal Long (KWEB@1d)",
      "priority": 2,
      "trade_symbol": "KWEB"
    },
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 1.015
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "obv"
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "1d"
            },
            "ratio": 618,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_ssnlf",
      "name": "OBV/SMA Signal Long (SSNLF@1d)",
      "priority": 3,
      "trade_symbol": "SSNLF"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 10
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 15
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_ewy",
      "name": "Take Profit at 15.0% (EWY@1d)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "EWY"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 10
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 15
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_kweb",
      "name": "Take Profit at 15.0% (KWEB@1d)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "KWEB"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 10
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 15
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_ssnlf",
      "name": "Take Profit at 15.0% (SSNLF@1d)",
      "priority": 3,
      "purpose": "signal",
      "target_symbol": "SSNLF"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_ewy",
      "name": "TP: Near Resistance[1] (EWY@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "EWY"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_kweb",
      "name": "TP: Near Resistance[1] (KWEB@1d)",
      "priority": 98,
      "purpose": "take_profit",
      "target_symbol": "KWEB"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_ssnlf",
      "name": "TP: Near Resistance[1] (SSNLF@1d)",
      "priority": 99,
      "purpose": "take_profit",
      "target_symbol": "SSNLF"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_ewy",
      "name": "SL: Below Support[2] (EWY@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "EWY"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_kweb",
      "name": "SL: Below Support[2] (KWEB@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "KWEB"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_ssnlf",
      "name": "SL: Below Support[2] (SSNLF@1d)",
      "priority": 102,
      "purpose": "stop_loss",
      "target_symbol": "SSNLF"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2,
      "stop_loss_percent": 5,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 1
}

Strategy instructions

Trading agent generated from recommendation idea 'Iran peace deal hopes send Korean stocks surging — ride the chip rally with EWY'. Thesis: The sudden de-escalation in the Middle East removes a major overhang for global tech supply chains. South Korea's massive semiconductor sector, which is highly sensitive to global trade disruptions, just saw an enormous single-day pop. When a whole market rallies this sharply on structural news, institutional money often continues to flow in for days as portfolios re-adjust. Buying a broad South Korea fund lets you capture this relief rally safely.

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