Loading…
Public trading strategy

Iran peace deal looming — ride the relief rally in Asian tech stocks

Created

Thesis

The Middle East war has been dragging down global tech supply chains and energy prices, but a sudden peace breakthrough changes the outlook overnight. South Korean chip giants are highly sensitive to global shipping and energy costs, so the prospect of peace triggered an immediate surge. With the deal expected to be finalized in the coming days, the momentum in these battered semiconductor stocks likely has room to run as investors rush to buy the dip.

Strategy approach

Build a rule-based strategy that enters long EWY on H4 when the price gaps up more than 2% at the open and RSI(14) is between 50 and 70, with a 10-day max hold and a 2.5% trailing stop.

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: RSI/ADX/ATR Crossover Long (EWY@4h) (6 conditions)
  • Entry: RSI/ADX/ATR Crossover Long (KWEB@4h) (6 conditions)
  • Entry: RSI/ADX/ATR Crossover Long (SSNLF@4h) (6 conditions)
  • Exit: Take Profit at 10.0% (1 condition)
  • Exit: TP: Near Resistance[1] (EWY@4h) (1 condition)
  • Exit: TP: Near Resistance[1] (KWEB@4h) (1 condition)
  • Exit: TP: Near Resistance[1] (SSNLF@4h) (1 condition)
  • Exit: SL: Below Support[1] (EWY@4h) (1 condition)
  • Exit: SL: Below Support[1] (KWEB@4h) (1 condition)
  • Exit: SL: Below Support[1] (SSNLF@4h) (1 condition)

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "EWY",
      "timeframe": "4h"
    },
    {
      "symbol": "KWEB",
      "timeframe": "4h"
    },
    {
      "symbol": "SSNLF",
      "timeframe": "4h"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "field": "close",
            "type": "price"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 50
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "4h"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "4h"
            },
            "ratio": 382,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "atr",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_ewy",
      "name": "RSI/ADX/ATR Crossover Long (EWY@4h)",
      "priority": 1,
      "trade_symbol": "EWY"
    },
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "field": "close",
            "type": "price"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 50
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "4h"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "4h"
            },
            "ratio": 382,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "atr",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_kweb",
      "name": "RSI/ADX/ATR Crossover Long (KWEB@4h)",
      "priority": 2,
      "trade_symbol": "KWEB"
    },
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "field": "close",
            "type": "price"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 50
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "4h"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "4h"
            },
            "ratio": 382,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "atr",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_ssnlf",
      "name": "RSI/ADX/ATR Crossover Long (SSNLF@4h)",
      "priority": 3,
      "trade_symbol": "SSNLF"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1",
      "name": "Take Profit at 10.0%",
      "priority": 1,
      "purpose": "signal"
    },
    {
      "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@4h)",
      "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@4h)",
      "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@4h)",
      "priority": 99,
      "purpose": "take_profit",
      "target_symbol": "SSNLF"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_ewy",
      "name": "SL: Below Support[1] (EWY@4h)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "EWY"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_kweb",
      "name": "SL: Below Support[1] (KWEB@4h)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "KWEB"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_ssnlf",
      "name": "SL: Below Support[1] (SSNLF@4h)",
      "priority": 102,
      "purpose": "stop_loss",
      "target_symbol": "SSNLF"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2,
      "support_stop_rank": 1,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "4h",
  "version": 1
}

Indicator configuration

{
  "indicators": [
    {
      "name": "rsi",
      "period": 14
    },
    {
      "name": "adx",
      "period": 14
    },
    {
      "name": "atr",
      "period": 14
    },
    {
      "name": "rsi",
      "period": 14
    },
    {
      "name": "adx",
      "period": 14
    },
    {
      "name": "atr",
      "period": 14
    },
    {
      "name": "rsi",
      "period": 14
    },
    {
      "name": "adx",
      "period": 14
    },
    {
      "name": "atr",
      "period": 14
    }
  ]
}

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "EWY",
      "timeframe": "4h"
    },
    {
      "symbol": "KWEB",
      "timeframe": "4h"
    },
    {
      "symbol": "SSNLF",
      "timeframe": "4h"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "field": "close",
            "type": "price"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 50
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "4h"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "4h"
            },
            "ratio": 382,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EWY",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "atr",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_ewy",
      "name": "RSI/ADX/ATR Crossover Long (EWY@4h)",
      "priority": 1,
      "trade_symbol": "EWY"
    },
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "field": "close",
            "type": "price"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 50
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "4h"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "4h"
            },
            "ratio": 382,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "KWEB",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "atr",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_kweb",
      "name": "RSI/ADX/ATR Crossover Long (KWEB@4h)",
      "priority": 2,
      "trade_symbol": "KWEB"
    },
    {
      "conditions": [
        {
          "left": {
            "field": "open",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "field": "close",
            "type": "price"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 50
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "4h"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "4h"
            },
            "ratio": 382,
            "type": "fibonacci_retracement"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SSNLF",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "atr",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_ssnlf",
      "name": "RSI/ADX/ATR Crossover Long (SSNLF@4h)",
      "priority": 3,
      "trade_symbol": "SSNLF"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1",
      "name": "Take Profit at 10.0%",
      "priority": 1,
      "purpose": "signal"
    },
    {
      "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@4h)",
      "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@4h)",
      "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@4h)",
      "priority": 99,
      "purpose": "take_profit",
      "target_symbol": "SSNLF"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_ewy",
      "name": "SL: Below Support[1] (EWY@4h)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "EWY"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_kweb",
      "name": "SL: Below Support[1] (KWEB@4h)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "KWEB"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_ssnlf",
      "name": "SL: Below Support[1] (SSNLF@4h)",
      "priority": 102,
      "purpose": "stop_loss",
      "target_symbol": "SSNLF"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2,
      "support_stop_rank": 1,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "4h",
  "version": 1
}

Strategy instructions

Trading agent generated from recommendation idea 'Iran peace deal looming — ride the relief rally in Asian tech stocks'. Thesis: The Middle East war has been dragging down global tech supply chains and energy prices, but a sudden peace breakthrough changes the outlook overnight. South Korean chip giants are highly sensitive to global shipping and energy costs, so the prospect of peace triggered an immediate surge. With the deal expected to be finalized in the coming days, the momentum in these battered semiconductor stocks likely has room to run as investors rush to buy the dip.

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