Iran ceasefire collapses, investors flee to cash — short Bitcoin on risk-off mom
Created
Thesis
With the Strait of Hormuz closed and US-Iran hostilities escalating, investors are rushing to safe havens like the US Dollar while dumping riskier assets. Bitcoin has been sliding toward $61,000 as the flight-to-cash accelerates. When geopolitical shocks hit and the dollar strengthens, crypto typically faces sustained selling pressure because investors deleverage and move to liquidity. This dynamic should continue to weigh on Bitcoin until there is a de-escalation in tensions.
Strategy approach
Build a rule-based strategy that enters short BTCUSD on H4 when BTC makes a 10-day low and DXY makes a 10-day high on the same session. Exit if BTC rebounds 4% off the entry price or after a 10-day max hold, whichever comes first. Secondary confirmation: VIX > 20 at entry.
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: DONCHIAN/RSI/EMA/MACD Signal Long (BTC@4h) (5 conditions)
- Entry: DONCHIAN/RSI/EMA/MACD Signal Long (ETH@4h) (5 conditions)
- Entry: DONCHIAN/RSI Signal Long (BTC@4h) (2 conditions)
- Entry: DONCHIAN/RSI Signal Long (ETH@4h) (2 conditions)
- Entry: RSI/EMA Signal Long (BTC@4h) (2 conditions)
- Entry: RSI/EMA Signal Long (ETH@4h) (2 conditions)
- Exit: TP: Position Exit Rule (BTC@4h) (1 condition)
- Exit: TP: Position Exit Rule (ETH@4h) (1 condition)
- Exit: SL: Position Exit Rule (BTC@4h) (1 condition)
- Exit: SL: Position Exit Rule (ETH@4h) (1 condition)
- Exit: Stop Loss at 4.0% (1 condition)
- Exit: Take Profit at 8.0% (1 condition)
Shared strategy rules
Rule configuration
{
"data_dependencies": [
{
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
{
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 45
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "ema",
"period": 21
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_btc",
"name": "DONCHIAN/RSI/EMA/MACD Signal Long (BTC@4h)",
"priority": 1,
"trade_symbol": "CRYPTO:BTC"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 45
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "ema",
"period": 21
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_eth",
"name": "DONCHIAN/RSI/EMA/MACD Signal Long (ETH@4h)",
"priority": 2,
"trade_symbol": "CRYPTO:ETH"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 45
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_btc",
"name": "DONCHIAN/RSI Signal Long (BTC@4h)",
"priority": 2,
"trade_symbol": "CRYPTO:BTC"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 45
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_eth",
"name": "DONCHIAN/RSI Signal Long (ETH@4h)",
"priority": 3,
"trade_symbol": "CRYPTO:ETH"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 50
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "ema",
"period": 21
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_btc",
"name": "RSI/EMA Signal Long (BTC@4h)",
"priority": 2,
"trade_symbol": "CRYPTO:BTC"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 50
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "ema",
"period": 21
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_eth",
"name": "RSI/EMA Signal Long (ETH@4h)",
"priority": 3,
"trade_symbol": "CRYPTO:ETH"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
}
],
"enabled": true,
"id": "exit_1_btc",
"name": "TP: Position Exit Rule (BTC@4h)",
"priority": 96,
"purpose": "take_profit",
"target_symbol": "CRYPTO:BTC"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
}
],
"enabled": true,
"id": "exit_1_eth",
"name": "TP: Position Exit Rule (ETH@4h)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "CRYPTO:ETH"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"field": "upper",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
}
],
"enabled": true,
"id": "exit_2_btc",
"name": "SL: Position Exit Rule (BTC@4h)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "CRYPTO:BTC"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"field": "upper",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
}
],
"enabled": true,
"id": "exit_2_eth",
"name": "SL: Position Exit Rule (ETH@4h)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "CRYPTO:ETH"
},
{
"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": 100,
"purpose": "stop_loss"
},
{
"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_4",
"name": "Take Profit at 8.0%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"risk_percent": 2.5980333333333334,
"stop_loss_percent": 4,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "4h",
"version": 1
}Indicator configuration
{
"indicators": [
{
"name": "ema",
"period": 21
},
{
"name": "donchian",
"period": 10
},
{
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
{
"name": "rsi",
"period": 14
},
{
"name": "ema",
"period": 21
},
{
"name": "donchian",
"period": 10
},
{
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
{
"name": "rsi",
"period": 14
}
]
}Parsed strategy
{
"data_dependencies": [
{
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
{
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 45
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "ema",
"period": 21
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_btc",
"name": "DONCHIAN/RSI/EMA/MACD Signal Long (BTC@4h)",
"priority": 1,
"trade_symbol": "CRYPTO:BTC"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 45
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "ema",
"period": 21
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_eth",
"name": "DONCHIAN/RSI/EMA/MACD Signal Long (ETH@4h)",
"priority": 2,
"trade_symbol": "CRYPTO:ETH"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 45
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_btc",
"name": "DONCHIAN/RSI Signal Long (BTC@4h)",
"priority": 2,
"trade_symbol": "CRYPTO:BTC"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 45
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_eth",
"name": "DONCHIAN/RSI Signal Long (ETH@4h)",
"priority": 3,
"trade_symbol": "CRYPTO:ETH"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 50
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"indicator": {
"name": "ema",
"period": 21
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_btc",
"name": "RSI/EMA Signal Long (BTC@4h)",
"priority": 2,
"trade_symbol": "CRYPTO:BTC"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 50
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"indicator": {
"name": "ema",
"period": 21
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_eth",
"name": "RSI/EMA Signal Long (ETH@4h)",
"priority": 3,
"trade_symbol": "CRYPTO:ETH"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
}
],
"enabled": true,
"id": "exit_1_btc",
"name": "TP: Position Exit Rule (BTC@4h)",
"priority": 96,
"purpose": "take_profit",
"target_symbol": "CRYPTO:BTC"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
}
],
"enabled": true,
"id": "exit_1_eth",
"name": "TP: Position Exit Rule (ETH@4h)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "CRYPTO:ETH"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:BTC",
"timeframe": "4h"
},
"field": "upper",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
}
],
"enabled": true,
"id": "exit_2_btc",
"name": "SL: Position Exit Rule (BTC@4h)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "CRYPTO:BTC"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "CRYPTO:ETH",
"timeframe": "4h"
},
"field": "upper",
"indicator": {
"name": "donchian",
"period": 10
},
"type": "indicator"
}
}
],
"enabled": true,
"id": "exit_2_eth",
"name": "SL: Position Exit Rule (ETH@4h)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "CRYPTO:ETH"
},
{
"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": 100,
"purpose": "stop_loss"
},
{
"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_4",
"name": "Take Profit at 8.0%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"risk_percent": 2.5980333333333334,
"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 ceasefire collapses, investors flee to cash — short Bitcoin on risk-off momentum'. Thesis: With the Strait of Hormuz closed and US-Iran hostilities escalating, investors are rushing to safe havens like the US Dollar while dumping riskier assets. Bitcoin has been sliding toward $61,000 as the flight-to-cash accelerates. When geopolitical shocks hit and the dollar strengthens, crypto typically faces sustained selling pressure because investors deleverage and move to liquidity. This dynamic should continue to weigh on Bitcoin until there is a de-escalation in tensions.
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