Oil crashing on Iran peace deal while Tesla sales boom — buy the consumer comeba
Created
Thesis
A US-Iran peace deal has unleashed a wave of Middle Eastern oil supply, and the CEO of TotalEnergies confirms producers are 'desperate to sell,' creating fears of a global oil glut. Plummeting oil prices are a massive tax cut for consumers — they free up household budgets and make vehicle ownership cheaper. Tesla just reported a blowout 480,126 deliveries, crushing estimates and reversing consecutive annual sales declines. The combination of a strong consumer demand signal from Tesla and falling energy costs creates a powerful tailwind: cheaper gas means more disposable income for big-ticket purchases like EVs, and Tesla's momentum proves the demand is already there.
Strategy approach
Build a rule-based strategy on TSLA (D1). Entry: WTI crude oil (CL=F) makes a 20-day low AND TSLA is within 5% of its 20-day high following a delivery-beat catalyst. Enter long TSLA on the next open. Exit: 14-day max hold or 7% fixed stop loss. Filter: only enter if the S&P 500 is above its 50-day moving average (market risk-on regime).
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/SMA Signal Long (TSLA@1d) (3 conditions)
- Entry: DONCHIAN/SMA Signal Long (XLE@1d) (3 conditions)
- Exit: Stop Loss at 2.4% (1 condition)
- Exit: Take Profit at 4.8% (1 condition)
Shared strategy rules
Rule configuration
{
"data_dependencies": [
{
"symbol": "TSLA",
"timeframe": "1d"
},
{
"symbol": "XLE",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"indicator": {
"name": "sma",
"period": 50
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1",
"name": "DONCHIAN/SMA Signal Long (TSLA@1d)",
"priority": 1,
"trade_symbol": "TSLA"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"indicator": {
"name": "sma",
"period": 50
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2",
"name": "DONCHIAN/SMA Signal Long (XLE@1d)",
"priority": 2,
"trade_symbol": "XLE"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.4203333333333332
}
}
],
"enabled": true,
"id": "exit_1",
"name": "Stop Loss at 2.4%",
"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": 4.8406666666666665
}
}
],
"enabled": true,
"id": "exit_2",
"name": "Take Profit at 4.8%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"risk_percent": 2.4203333333333332,
"support_stop_rank": 2,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Indicator configuration
{
"indicators": [
{
"name": "sma",
"period": 50
},
{
"name": "donchian",
"period": 20
},
{
"name": "sma",
"period": 50
},
{
"name": "donchian",
"period": 20
}
]
}Parsed strategy
{
"data_dependencies": [
{
"symbol": "TSLA",
"timeframe": "1d"
},
{
"symbol": "XLE",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"indicator": {
"name": "sma",
"period": 50
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1",
"name": "DONCHIAN/SMA Signal Long (TSLA@1d)",
"priority": 1,
"trade_symbol": "TSLA"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "TSLA",
"timeframe": "1d"
},
"indicator": {
"name": "sma",
"period": 50
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2",
"name": "DONCHIAN/SMA Signal Long (XLE@1d)",
"priority": 2,
"trade_symbol": "XLE"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.4203333333333332
}
}
],
"enabled": true,
"id": "exit_1",
"name": "Stop Loss at 2.4%",
"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": 4.8406666666666665
}
}
],
"enabled": true,
"id": "exit_2",
"name": "Take Profit at 4.8%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"risk_percent": 2.4203333333333332,
"support_stop_rank": 2,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Strategy instructions
Trading agent generated from recommendation idea 'Oil crashing on Iran peace deal while Tesla sales boom — buy the consumer comeback'. Thesis: A US-Iran peace deal has unleashed a wave of Middle Eastern oil supply, and the CEO of TotalEnergies confirms producers are 'desperate to sell,' creating fears of a global oil glut. Plummeting oil prices are a massive tax cut for consumers — they free up household budgets and make vehicle ownership cheaper. Tesla just reported a blowout 480,126 deliveries, crushing estimates and reversing consecutive annual sales declines. The combination of a strong consumer demand signal from Tesla and falling energy costs creates a powerful tailwind: cheaper gas means more disposable income for big-ticket purchases like EVs, and Tesla's momentum proves the demand is already there.
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