Loading…
Public trading strategy

Iran peace deal about to be signed — ride the geopolitical relief rally in Bitco

Created

Thesis

When major geopolitical conflicts de-escalate, investors tend to move money out of safe-haven assets and back into riskier investments like cryptocurrencies. The reports of a signed peace deal between the U.S. and Iran are already pushing Bitcoin higher, and the momentum could continue as the agreement is formalized. With the Strait of Hormuz reopening, global markets are breathing a sigh of relief, which historically creates a bullish tailwind for digital assets in the short term.

Strategy approach

Build a rule-based strategy that enters long BTCUSDT on H4 when MACD histogram crosses above zero and the daily ATR(14) is declining (indicating volatility compression post-news). Exit on a 4% trailing stop or after a 14-day max hold.

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: MACD/ATR Crossover Long (BTC@4h) (2 conditions)
  • Entry: MACD/ATR Crossover Long (ETH@4h) (2 conditions)
  • Entry: MACD Crossover Long (BTC@4h) (1 condition)
  • Entry: MACD Crossover Long (ETH@4h) (1 condition)
  • Exit: Take Profit at 14.0% (1 condition)
  • Exit: Take Profit at 4.0% (2 conditions)
  • Exit: Take Profit at 8.0% (1 condition)
  • Exit: Stop Loss at 4.0% (1 condition)

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "BTC",
      "timeframe": "4h"
    },
    {
      "symbol": "BTC",
      "timeframe": "1d"
    },
    {
      "symbol": "ETH",
      "timeframe": "4h"
    },
    {
      "symbol": "ETH",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "BTC",
              "timeframe": "4h"
            },
            "field": "histogram",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "BTC",
              "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_btc",
      "name": "MACD/ATR Crossover Long (BTC@4h)",
      "priority": 1,
      "trade_symbol": "BTC"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "ETH",
              "timeframe": "4h"
            },
            "field": "histogram",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "ETH",
              "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_eth",
      "name": "MACD/ATR Crossover Long (ETH@4h)",
      "priority": 2,
      "trade_symbol": "ETH"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "BTC",
              "timeframe": "4h"
            },
            "field": "histogram",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "type": "constant",
            "value": 0
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_btc",
      "name": "MACD Crossover Long (BTC@4h)",
      "priority": 2,
      "trade_symbol": "BTC"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "ETH",
              "timeframe": "4h"
            },
            "field": "histogram",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "type": "constant",
            "value": 0
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_eth",
      "name": "MACD Crossover Long (ETH@4h)",
      "priority": 3,
      "trade_symbol": "ETH"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 14
          }
        }
      ],
      "enabled": true,
      "id": "exit_1",
      "name": "Take Profit at 14.0%",
      "priority": 1,
      "purpose": "signal"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 4
          }
        },
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": {
            "decreasing": {
              "periods": 2
            }
          },
          "right": {
            "type": "constant",
            "value": 0
          }
        }
      ],
      "enabled": true,
      "id": "exit_2",
      "name": "Take Profit at 4.0%",
      "priority": 10,
      "purpose": "trailing_stop"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 8
          }
        }
      ],
      "enabled": true,
      "id": "exit_3",
      "name": "Take Profit at 8.0%",
      "priority": 11,
      "purpose": "take_profit"
    },
    {
      "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_4",
      "name": "Stop Loss at 4.0%",
      "priority": 10,
      "purpose": "stop_loss"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2,
      "stop_loss_percent": 4,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "4h",
  "version": 1
}

Indicator configuration

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

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "BTC",
      "timeframe": "4h"
    },
    {
      "symbol": "BTC",
      "timeframe": "1d"
    },
    {
      "symbol": "ETH",
      "timeframe": "4h"
    },
    {
      "symbol": "ETH",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "BTC",
              "timeframe": "4h"
            },
            "field": "histogram",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "BTC",
              "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_btc",
      "name": "MACD/ATR Crossover Long (BTC@4h)",
      "priority": 1,
      "trade_symbol": "BTC"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "ETH",
              "timeframe": "4h"
            },
            "field": "histogram",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "ETH",
              "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_eth",
      "name": "MACD/ATR Crossover Long (ETH@4h)",
      "priority": 2,
      "trade_symbol": "ETH"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "BTC",
              "timeframe": "4h"
            },
            "field": "histogram",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "type": "constant",
            "value": 0
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_btc",
      "name": "MACD Crossover Long (BTC@4h)",
      "priority": 2,
      "trade_symbol": "BTC"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "ETH",
              "timeframe": "4h"
            },
            "field": "histogram",
            "indicator": {
              "fast": 12,
              "name": "macd",
              "signal": 9,
              "slow": 26
            },
            "type": "indicator"
          },
          "operator": "crossed_above",
          "right": {
            "type": "constant",
            "value": 0
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_eth",
      "name": "MACD Crossover Long (ETH@4h)",
      "priority": 3,
      "trade_symbol": "ETH"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 14
          }
        }
      ],
      "enabled": true,
      "id": "exit_1",
      "name": "Take Profit at 14.0%",
      "priority": 1,
      "purpose": "signal"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 4
          }
        },
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": {
            "decreasing": {
              "periods": 2
            }
          },
          "right": {
            "type": "constant",
            "value": 0
          }
        }
      ],
      "enabled": true,
      "id": "exit_2",
      "name": "Take Profit at 4.0%",
      "priority": 10,
      "purpose": "trailing_stop"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 8
          }
        }
      ],
      "enabled": true,
      "id": "exit_3",
      "name": "Take Profit at 8.0%",
      "priority": 11,
      "purpose": "take_profit"
    },
    {
      "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_4",
      "name": "Stop Loss at 4.0%",
      "priority": 10,
      "purpose": "stop_loss"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2,
      "stop_loss_percent": 4,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "4h",
  "version": 1
}

Strategy instructions

Trading agent generated from recommendation idea 'Iran peace deal about to be signed — ride the geopolitical relief rally in Bitcoin'. Thesis: When major geopolitical conflicts de-escalate, investors tend to move money out of safe-haven assets and back into riskier investments like cryptocurrencies. The reports of a signed peace deal between the U.S. and Iran are already pushing Bitcoin higher, and the momentum could continue as the agreement is formalized. With the Strait of Hormuz reopening, global markets are breathing a sigh of relief, which historically creates a bullish tailwind for digital assets in the short term.

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