Loading…
Public trading strategy

Iran peace deal reopening oil routes — ride the wave in emerging market stocks

Created

Thesis

The US-Iran peace deal is reopening the Strait of Hormuz, which means oil can flow freely again and gas prices should come down. When energy gets cheaper, developing economies get a huge boost because they are the most sensitive to fuel costs. Bloomberg reports that emerging-market stocks just touched record highs on this exact news. Since the deal is just taking effect, the momentum in these markets likely has room to run as lower oil prices ripple through the global economy over the coming weeks.

Strategy approach

Build a rule-based strategy that enters long EEM on H4 when RSI(14) > 55 and price is within 2% of its 20-day high. Exit on a 4% trailing stop or if the price drops below the 10-day SMA, whichever comes first. Max hold 15 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: RSI/ROC/ATR Signal Long (EEM@4h) (3 conditions)
  • Entry: RSI/ROC/ATR Signal Long (VWO@4h) (3 conditions)
  • Entry: RSI/ROC Signal Long (EEM@4h) (2 conditions)
  • Entry: RSI/ROC Signal Long (VWO@4h) (2 conditions)
  • Exit: Position Exit Rule (EEM@4h) (1 condition)
  • Exit: Position Exit Rule (VWO@4h) (1 condition)
  • Exit: SL: Below Support[1] (EEM@4h) (1 condition)
  • Exit: SL: Below Support[1] (VWO@4h) (1 condition)
  • Exit: Stop Loss at 4.0% (1 condition)
  • Exit: Take Profit at 10.0% (1 condition)

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "EEM",
      "timeframe": "4h"
    },
    {
      "symbol": "VWO",
      "timeframe": "4h"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "EEM",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 55
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EEM",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "roc",
              "period": 20
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": -2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EEM",
              "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_eem",
      "name": "RSI/ROC/ATR Signal Long (EEM@4h)",
      "priority": 1,
      "trade_symbol": "EEM"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "VWO",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 55
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "VWO",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "roc",
              "period": 20
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": -2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "VWO",
              "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_vwo",
      "name": "RSI/ROC/ATR Signal Long (VWO@4h)",
      "priority": 2,
      "trade_symbol": "VWO"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "EEM",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 55
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EEM",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "roc",
              "period": 20
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": -2
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_eem",
      "name": "RSI/ROC Signal Long (EEM@4h)",
      "priority": 2,
      "trade_symbol": "EEM"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "VWO",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 55
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "VWO",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "roc",
              "period": 20
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": -2
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_vwo",
      "name": "RSI/ROC Signal Long (VWO@4h)",
      "priority": 3,
      "trade_symbol": "VWO"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "EEM",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "sma",
              "period": 10
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_eem",
      "name": "Position Exit Rule (EEM@4h)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "EEM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "VWO",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "sma",
              "period": 10
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_vwo",
      "name": "Position Exit Rule (VWO@4h)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "VWO"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_eem",
      "name": "SL: Below Support[1] (EEM@4h)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "EEM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_vwo",
      "name": "SL: Below Support[1] (VWO@4h)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "VWO"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -4
          }
        }
      ],
      "enabled": true,
      "id": "exit_3",
      "name": "Stop Loss at 4.0%",
      "priority": 10,
      "purpose": "stop_loss"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_4",
      "name": "Take Profit at 10.0%",
      "priority": 11,
      "purpose": "take_profit"
    }
  ],
  "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": "sma",
      "period": 10
    },
    {
      "name": "roc",
      "period": 20
    },
    {
      "name": "atr",
      "period": 14
    },
    {
      "name": "rsi",
      "period": 14
    },
    {
      "name": "sma",
      "period": 10
    },
    {
      "name": "roc",
      "period": 20
    },
    {
      "name": "atr",
      "period": 14
    }
  ]
}

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "EEM",
      "timeframe": "4h"
    },
    {
      "symbol": "VWO",
      "timeframe": "4h"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "EEM",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 55
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EEM",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "roc",
              "period": 20
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": -2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EEM",
              "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_eem",
      "name": "RSI/ROC/ATR Signal Long (EEM@4h)",
      "priority": 1,
      "trade_symbol": "EEM"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "VWO",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 55
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "VWO",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "roc",
              "period": 20
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": -2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "VWO",
              "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_vwo",
      "name": "RSI/ROC/ATR Signal Long (VWO@4h)",
      "priority": 2,
      "trade_symbol": "VWO"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "EEM",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 55
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "EEM",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "roc",
              "period": 20
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": -2
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_eem",
      "name": "RSI/ROC Signal Long (EEM@4h)",
      "priority": 2,
      "trade_symbol": "EEM"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "VWO",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 55
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "VWO",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "roc",
              "period": 20
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": -2
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_vwo",
      "name": "RSI/ROC Signal Long (VWO@4h)",
      "priority": 3,
      "trade_symbol": "VWO"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "EEM",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "sma",
              "period": 10
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_eem",
      "name": "Position Exit Rule (EEM@4h)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "EEM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "VWO",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "sma",
              "period": 10
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_vwo",
      "name": "Position Exit Rule (VWO@4h)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "VWO"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_eem",
      "name": "SL: Below Support[1] (EEM@4h)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "EEM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_vwo",
      "name": "SL: Below Support[1] (VWO@4h)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "VWO"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -4
          }
        }
      ],
      "enabled": true,
      "id": "exit_3",
      "name": "Stop Loss at 4.0%",
      "priority": 10,
      "purpose": "stop_loss"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_4",
      "name": "Take Profit at 10.0%",
      "priority": 11,
      "purpose": "take_profit"
    }
  ],
  "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 reopening oil routes — ride the wave in emerging market stocks'. Thesis: The US-Iran peace deal is reopening the Strait of Hormuz, which means oil can flow freely again and gas prices should come down. When energy gets cheaper, developing economies get a huge boost because they are the most sensitive to fuel costs. Bloomberg reports that emerging-market stocks just touched record highs on this exact news. Since the deal is just taking effect, the momentum in these markets likely has room to run as lower oil prices ripple through the global economy over the coming weeks.

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