Loading…
Public trading strategy

Iran peace deal opens oil routes — catch the rally in global emerging markets

Created

Thesis

When global oil prices fall, developing economies benefit the most because cheaper energy reduces their manufacturing costs and helps control inflation. The news that shipping traffic is resuming through the Strait of Hormuz instantly removes a massive risk from the global market. With this geopolitical pressure easing, international investors are pouring money back into fast-growing emerging markets to capture their growth potential. Buying a basket of these international stocks positions you to profit as this wave of global optimism continues.

Strategy approach

Create a trend-following strategy that enters long EEM on the daily timeframe when price closes above the 20-day simple moving average and the 14-day RSI is between 50 and 70. Hold for a minimum of 10 days and exit if the price closes below the 20-day SMA.

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: Energy-Discount EM Trend Long (EEM@1d) (5 conditions)
  • Entry: Energy-Discount EM Trend Long (VWO@1d) (5 conditions)
  • Exit: Min 10-Day Hold, Then Exit Below SMA20 (EEM@1d) (2 conditions)
  • Exit: Min 10-Day Hold, Then Exit Below SMA20 (VWO@1d) (2 conditions)
  • Exit: TP: Near Resistance[2] (EEM@1d) (1 condition)
  • Exit: TP: Near Resistance[2] (VWO@1d) (1 condition)
  • Exit: SL: Below Support[1] (EEM@1d) (1 condition)
  • Exit: SL: Below Support[1] (VWO@1d) (1 condition)
  • Exit: SL: Fib Retracement 78.6% (EEM@1d) (1 condition)
  • Exit: SL: Fib Retracement 78.6% (VWO@1d) (1 condition)

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "STOCK:EEM",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:VWO",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:XLE",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 50
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:XLE",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_eem",
      "name": "Energy-Discount EM Trend Long (EEM@1d)",
      "priority": 1,
      "trade_symbol": "STOCK:EEM"
    },
    {
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 50
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:XLE",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_vwo",
      "name": "Energy-Discount EM Trend Long (VWO@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:VWO"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_eem",
      "name": "Min 10-Day Hold, Then Exit Below SMA20 (EEM@1d)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "STOCK:EEM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_vwo",
      "name": "Min 10-Day Hold, Then Exit Below SMA20 (VWO@1d)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "STOCK:VWO"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 2,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_eem",
      "name": "TP: Near Resistance[2] (EEM@1d)",
      "priority": 96,
      "purpose": "take_profit",
      "target_symbol": "STOCK:EEM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 2,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_vwo",
      "name": "TP: Near Resistance[2] (VWO@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "STOCK:VWO"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_eem",
      "name": "SL: Below Support[1] (EEM@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:EEM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_vwo",
      "name": "SL: Below Support[1] (VWO@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:VWO"
    },
    {
      "applies_to": "long",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "ratio": 786,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4_eem",
      "name": "SL: Fib Retracement 78.6% (EEM@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:EEM"
    },
    {
      "applies_to": "long",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "ratio": 786,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4_vwo",
      "name": "SL: Fib Retracement 78.6% (VWO@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:VWO"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "fib_stop_ratio": 786,
      "risk_percent": 2.8022666666666662,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 2
}

Indicator configuration

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

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "STOCK:EEM",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:VWO",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:XLE",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 50
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:XLE",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_eem",
      "name": "Energy-Discount EM Trend Long (EEM@1d)",
      "priority": 1,
      "trade_symbol": "STOCK:EEM"
    },
    {
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 50
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 70
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:XLE",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_vwo",
      "name": "Energy-Discount EM Trend Long (VWO@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:VWO"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_eem",
      "name": "Min 10-Day Hold, Then Exit Below SMA20 (EEM@1d)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "STOCK:EEM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_vwo",
      "name": "Min 10-Day Hold, Then Exit Below SMA20 (VWO@1d)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "STOCK:VWO"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 2,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_eem",
      "name": "TP: Near Resistance[2] (EEM@1d)",
      "priority": 96,
      "purpose": "take_profit",
      "target_symbol": "STOCK:EEM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 2,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_vwo",
      "name": "TP: Near Resistance[2] (VWO@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "STOCK:VWO"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_eem",
      "name": "SL: Below Support[1] (EEM@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:EEM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_vwo",
      "name": "SL: Below Support[1] (VWO@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:VWO"
    },
    {
      "applies_to": "long",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:EEM",
              "timeframe": "1d"
            },
            "ratio": 786,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4_eem",
      "name": "SL: Fib Retracement 78.6% (EEM@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:EEM"
    },
    {
      "applies_to": "long",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:VWO",
              "timeframe": "1d"
            },
            "ratio": 786,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4_vwo",
      "name": "SL: Fib Retracement 78.6% (VWO@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:VWO"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "fib_stop_ratio": 786,
      "risk_percent": 2.8022666666666662,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 2
}

Strategy instructions

Trading agent generated from recommendation idea 'Iran peace deal opens oil routes — catch the rally in global emerging markets'. Thesis: When global oil prices fall, developing economies benefit the most because cheaper energy reduces their manufacturing costs and helps control inflation. The news that shipping traffic is resuming through the Strait of Hormuz instantly removes a massive risk from the global market. With this geopolitical pressure easing, international investors are pouring money back into fast-growing emerging markets to capture their growth potential. Buying a basket of these international stocks positions you to profit as this wave of global optimism continues.

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