Tanker attacks choke off oil supply — momentum play on energy stocks
Created
Thesis
Military tensions in the Strait of Hormuz have escalated to the point where ships are actively being hit and oil loads are visibly dropping, which limits the global oil supply. When supply is artificially restricted by conflict, oil prices naturally rise, directly benefiting the companies that pump and sell oil. Furthermore, the US government floating a new 20% reimbursement charge on ships passing through the waterway cements higher operational costs, adding a structural floor to prices regardless of the underlying demand curve. This combination of physical disruption and geopolitical posturing provides a powerful, immediate catalyst for energy stocks.
Strategy approach
Build a rule-based strategy that enters long XLE on D1 when front-month WTI crude oil futures (CL1) closes higher for 3 consecutive days and is trending above its 20-day high. Exit the position if the active front-month crude contract closes 5% below its own 10-day high. Maintain a maximum trade duration of 21 days.
Markets and timeframes
Latest published rule evaluation
Evaluated . This is a dated rule snapshot, not a live price or trade execution confirmation.
USO · 1d
4 of 4 published entry conditions marked met.
- ROC (3) above 0 — met
- ADX (14) above 20 — met
- Price above EMA (20) — met
- RSI (14) above 50 — met
- Price below Bollinger (20) — far
- RSI (14) below 50 — far
XLE · 1d
3 of 4 published entry conditions marked met.
- ROC (3) above 0 — met
- ADX (14) above 20 — far
- Price above EMA (20) — met
- RSI (14) above 50 — met
- Price below Bollinger (20) — near
- RSI (14) below 50 — far
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: ROC/ADX/EMA/RSI Signal Long (XLE@1d) (4 conditions)
- Entry: ROC/ADX/EMA/RSI Signal Long (USO@1d) (4 conditions)
- Exit: Position Exit Rule (XLE@1d) (3 conditions)
- Exit: Position Exit Rule (USO@1d) (3 conditions)
- Exit: TP: Near Resistance[1] (XLE@1d) (1 condition)
- Exit: TP: Near Resistance[1] (USO@1d) (1 condition)
- Exit: SL: Fib Retracement 61.8% (XLE@1d) (1 condition)
- Exit: SL: Fib Retracement 61.8% (USO@1d) (1 condition)
- Exit: Stop Loss at 2.3% (1 condition)
- Exit: Take Profit at 4.7% (1 condition)
Shared strategy rules
Rule configuration
{
"data_dependencies": [
{
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
{
"symbol": "STOCK:USO",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 20
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 50
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_xle",
"name": "ROC/ADX/EMA/RSI Signal Long (XLE@1d)",
"priority": 1,
"trade_symbol": "STOCK:XLE"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 20
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 50
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_uso",
"name": "ROC/ADX/EMA/RSI Signal Long (USO@1d)",
"priority": 2,
"trade_symbol": "STOCK:USO"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 50
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 21
}
}
],
"enabled": true,
"id": "exit_1_xle",
"name": "Position Exit Rule (XLE@1d)",
"priority": 1,
"purpose": "signal",
"target_symbol": "STOCK:XLE"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 50
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 21
}
}
],
"enabled": true,
"id": "exit_1_uso",
"name": "Position Exit Rule (USO@1d)",
"priority": 2,
"purpose": "signal",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_2_xle",
"name": "TP: Near Resistance[1] (XLE@1d)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "STOCK:XLE"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_2_uso",
"name": "TP: Near Resistance[1] (USO@1d)",
"priority": 98,
"purpose": "take_profit",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_3_xle",
"name": "SL: Fib Retracement 61.8% (XLE@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "STOCK:XLE"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_3_uso",
"name": "SL: Fib Retracement 61.8% (USO@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.34
}
}
],
"enabled": true,
"id": "exit_4",
"name": "Stop Loss at 2.3%",
"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.68
}
}
],
"enabled": true,
"id": "exit_5",
"name": "Take Profit at 4.7%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"fib_stop_ratio": 618,
"risk_percent": 2.34,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Indicator configuration
{
"indicators": [
{
"name": "roc",
"period": 3
},
{
"name": "adx",
"period": 14
},
{
"name": "ema",
"period": 20
},
{
"name": "rsi",
"period": 14
},
{
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
{
"name": "roc",
"period": 3
},
{
"name": "adx",
"period": 14
},
{
"name": "ema",
"period": 20
},
{
"name": "rsi",
"period": 14
},
{
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
}
]
}Parsed strategy
{
"data_dependencies": [
{
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
{
"symbol": "STOCK:USO",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 20
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 50
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_xle",
"name": "ROC/ADX/EMA/RSI Signal Long (XLE@1d)",
"priority": 1,
"trade_symbol": "STOCK:XLE"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 20
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 50
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_uso",
"name": "ROC/ADX/EMA/RSI Signal Long (USO@1d)",
"priority": 2,
"trade_symbol": "STOCK:USO"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 50
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 21
}
}
],
"enabled": true,
"id": "exit_1_xle",
"name": "Position Exit Rule (XLE@1d)",
"priority": 1,
"purpose": "signal",
"target_symbol": "STOCK:XLE"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 50
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 21
}
}
],
"enabled": true,
"id": "exit_1_uso",
"name": "Position Exit Rule (USO@1d)",
"priority": 2,
"purpose": "signal",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_2_xle",
"name": "TP: Near Resistance[1] (XLE@1d)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "STOCK:XLE"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_2_uso",
"name": "TP: Near Resistance[1] (USO@1d)",
"priority": 98,
"purpose": "take_profit",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:XLE",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_3_xle",
"name": "SL: Fib Retracement 61.8% (XLE@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "STOCK:XLE"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_3_uso",
"name": "SL: Fib Retracement 61.8% (USO@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.34
}
}
],
"enabled": true,
"id": "exit_4",
"name": "Stop Loss at 2.3%",
"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.68
}
}
],
"enabled": true,
"id": "exit_5",
"name": "Take Profit at 4.7%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"fib_stop_ratio": 618,
"risk_percent": 2.34,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Strategy instructions
Trading agent generated from recommendation idea 'Tanker attacks choke off oil supply — momentum play on energy stocks'. Thesis: Military tensions in the Strait of Hormuz have escalated to the point where ships are actively being hit and oil loads are visibly dropping, which limits the global oil supply. When supply is artificially restricted by conflict, oil prices naturally rise, directly benefiting the companies that pump and sell oil. Furthermore, the US government floating a new 20% reimbursement charge on ships passing through the waterway cements higher operational costs, adding a structural floor to prices regardless of the underlying demand curve. This combination of physical disruption and geopolitical posturing provides a powerful, immediate catalyst for energy stocks.
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 dated rule snapshot above shows the conditions evaluated at that time. It does not prove a current trigger or executed trade.
- 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