Oil crashes 5% on Iran de-escalation — buy airline stocks beaten down by fuel co
Created
Thesis
American Airlines was hammered by investors because expensive jet fuel was eating into profits. Now that oil has dropped over 5% in a single day on news the US is pausing strikes on Iran, fuel costs are set to fall dramatically — which is a direct tailwind for airline earnings. The market has not yet priced in this sudden drop in oil, creating a window to buy airlines while they are still priced for expensive fuel.
Strategy approach
Build a rule-based strategy that enters long AAL on D1 when front-month WTI crude oil futures (CL1) drop >4% in a single session, with a 10-trading-day max hold and a 6% trailing stop. Filter entries to only trigger when AAL is trading below its 50-day moving average.
Markets and timeframes
Latest published rule evaluation
Evaluated . This is a dated rule snapshot, not a live price or trade execution confirmation.
AAL · 1d
6 of 8 published entry conditions marked met.
- Price below -4 — far
- Price below Bollinger (20) — met
- Stochastic (14) below 30 — met
- ADX (14) above 20 — met
- Price below -4 — far
- Price below Bollinger (20) — met
- Stochastic (14) below 30 — met
- ADX (14) above 20 — met
- Price above Bollinger (20) — far
- Stochastic (14) above 80 — far
- Price above Bollinger (20) — far
- Stochastic (14) above 80 — far
DAL · 1d
4 of 8 published entry conditions marked met.
- Price below -4 — far
- Price below Bollinger (20) — met
- Stochastic (14) below 30 — far
- ADX (14) above 20 — met
- Price below -4 — far
- Price below Bollinger (20) — met
- Stochastic (14) below 30 — far
- ADX (14) above 20 — met
- Price above Bollinger (20) — near
- Stochastic (14) above 80 — far
- Price above Bollinger (20) — near
- Stochastic (14) above 80 — far
UAL · 1d
2 of 8 published entry conditions marked met.
- Price below -4 — far
- Price below Bollinger (20) — near
- Stochastic (14) below 30 — met
- ADX (14) above 20 — far
- Price below -4 — far
- Price below Bollinger (20) — near
- Stochastic (14) below 30 — met
- ADX (14) above 20 — far
- Price above Bollinger (20) — met
- Stochastic (14) above 80 — far
- Price above Bollinger (20) — met
- Stochastic (14) above 80 — 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: BB/STOCHASTIC/ADX Signal Long (AAL@1d) (4 conditions)
- Entry: BB/STOCHASTIC/ADX Signal Long (USO@1d) (4 conditions)
- Entry: BB/STOCHASTIC/ADX Signal Long (DAL@1d) (4 conditions)
- Entry: BB/STOCHASTIC/ADX Signal Long (UAL@1d) (4 conditions)
- Exit: STOCHASTIC Threshold Exit (AAL@1d) (3 conditions)
- Exit: STOCHASTIC Threshold Exit (USO@1d) (3 conditions)
- Exit: STOCHASTIC Threshold Exit (DAL@1d) (3 conditions)
- Exit: STOCHASTIC Threshold Exit (UAL@1d) (3 conditions)
- Exit: TP: Fib Extension 127.2% (AAL@1d) (1 condition)
- Exit: TP: Fib Extension 127.2% (USO@1d) (1 condition)
- Exit: TP: Fib Extension 127.2% (DAL@1d) (1 condition)
- Exit: TP: Fib Extension 127.2% (UAL@1d) (1 condition)
- Exit: SL: Below Support[2] (AAL@1d) (1 condition)
- Exit: SL: Below Support[2] (USO@1d) (1 condition)
- Exit: SL: Below Support[2] (DAL@1d) (1 condition)
- Exit: SL: Below Support[2] (UAL@1d) (1 condition)
- Exit: Stop Loss at 2.5% (1 condition)
- Exit: Take Profit at 5.0% (1 condition)
- Exit: SL: Fib Retracement 78.6% (AAL@1d) (1 condition)
- Exit: SL: Fib Retracement 78.6% (USO@1d) (1 condition)
- Exit: SL: Fib Retracement 78.6% (DAL@1d) (1 condition)
- Exit: SL: Fib Retracement 78.6% (UAL@1d) (1 condition)
Shared strategy rules
Rule configuration
{
"data_dependencies": [
{
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
{
"symbol": "STOCK:USO",
"timeframe": "1d"
},
{
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
{
"symbol": "STOCK:UAL",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -4
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 20
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_aal",
"name": "BB/STOCHASTIC/ADX Signal Long (AAL@1d)",
"priority": 1,
"trade_symbol": "STOCK:AAL"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -4
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"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
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_uso",
"name": "BB/STOCHASTIC/ADX Signal Long (USO@1d)",
"priority": 2,
"trade_symbol": "STOCK:USO"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -4
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 20
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_dal",
"name": "BB/STOCHASTIC/ADX Signal Long (DAL@1d)",
"priority": 3,
"trade_symbol": "STOCK:DAL"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -4
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 20
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_ual",
"name": "BB/STOCHASTIC/ADX Signal Long (UAL@1d)",
"priority": 4,
"trade_symbol": "STOCK:UAL"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 80
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_aal",
"name": "STOCHASTIC Threshold Exit (AAL@1d)",
"priority": 1,
"purpose": "signal",
"target_symbol": "STOCK:AAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 80
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_uso",
"name": "STOCHASTIC Threshold Exit (USO@1d)",
"priority": 2,
"purpose": "signal",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 80
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_dal",
"name": "STOCHASTIC Threshold Exit (DAL@1d)",
"priority": 3,
"purpose": "signal",
"target_symbol": "STOCK:DAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 80
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_ual",
"name": "STOCHASTIC Threshold Exit (UAL@1d)",
"priority": 4,
"purpose": "signal",
"target_symbol": "STOCK:UAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_aal",
"name": "TP: Fib Extension 127.2% (AAL@1d)",
"priority": 96,
"purpose": "take_profit",
"target_symbol": "STOCK:AAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_uso",
"name": "TP: Fib Extension 127.2% (USO@1d)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_dal",
"name": "TP: Fib Extension 127.2% (DAL@1d)",
"priority": 98,
"purpose": "take_profit",
"target_symbol": "STOCK:DAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_ual",
"name": "TP: Fib Extension 127.2% (UAL@1d)",
"priority": 99,
"purpose": "take_profit",
"target_symbol": "STOCK:UAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 2,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_3_aal",
"name": "SL: Below Support[2] (AAL@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "STOCK:AAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 2,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_3_uso",
"name": "SL: Below Support[2] (USO@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 2,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_3_dal",
"name": "SL: Below Support[2] (DAL@1d)",
"priority": 102,
"purpose": "stop_loss",
"target_symbol": "STOCK:DAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 2,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_3_ual",
"name": "SL: Below Support[2] (UAL@1d)",
"priority": 103,
"purpose": "stop_loss",
"target_symbol": "STOCK:UAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.512272727272727
}
}
],
"enabled": true,
"id": "exit_4",
"name": "Stop Loss at 2.5%",
"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": 5.024545454545454
}
}
],
"enabled": true,
"id": "exit_5",
"name": "Take Profit at 5.0%",
"priority": 100,
"purpose": "take_profit"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_6_aal",
"name": "SL: Fib Retracement 78.6% (AAL@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "STOCK:AAL"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_6_uso",
"name": "SL: Fib Retracement 78.6% (USO@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_6_dal",
"name": "SL: Fib Retracement 78.6% (DAL@1d)",
"priority": 102,
"purpose": "stop_loss",
"target_symbol": "STOCK:DAL"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_6_ual",
"name": "SL: Fib Retracement 78.6% (UAL@1d)",
"priority": 103,
"purpose": "stop_loss",
"target_symbol": "STOCK:UAL"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"fib_stop_ratio": 786,
"risk_percent": 2.512272727272727,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Indicator configuration
{
"indicators": [
{
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
{
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
{
"name": "adx",
"period": 14
},
{
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
{
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
{
"name": "adx",
"period": 14
},
{
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
{
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
{
"name": "adx",
"period": 14
},
{
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
{
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
{
"name": "adx",
"period": 14
}
]
}Parsed strategy
{
"data_dependencies": [
{
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
{
"symbol": "STOCK:USO",
"timeframe": "1d"
},
{
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
{
"symbol": "STOCK:UAL",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -4
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 20
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_aal",
"name": "BB/STOCHASTIC/ADX Signal Long (AAL@1d)",
"priority": 1,
"trade_symbol": "STOCK:AAL"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -4
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"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
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_uso",
"name": "BB/STOCHASTIC/ADX Signal Long (USO@1d)",
"priority": 2,
"trade_symbol": "STOCK:USO"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -4
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 20
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_dal",
"name": "BB/STOCHASTIC/ADX Signal Long (DAL@1d)",
"priority": 3,
"trade_symbol": "STOCK:DAL"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -4
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 30
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 20
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_ual",
"name": "BB/STOCHASTIC/ADX Signal Long (UAL@1d)",
"priority": 4,
"trade_symbol": "STOCK:UAL"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 80
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_aal",
"name": "STOCHASTIC Threshold Exit (AAL@1d)",
"priority": 1,
"purpose": "signal",
"target_symbol": "STOCK:AAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 80
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_uso",
"name": "STOCHASTIC Threshold Exit (USO@1d)",
"priority": 2,
"purpose": "signal",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 80
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_dal",
"name": "STOCHASTIC Threshold Exit (DAL@1d)",
"priority": 3,
"purpose": "signal",
"target_symbol": "STOCK:DAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "k",
"indicator": {
"d_period": 3,
"k_period": 14,
"name": "stochastic",
"slowing": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 80
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_ual",
"name": "STOCHASTIC Threshold Exit (UAL@1d)",
"priority": 4,
"purpose": "signal",
"target_symbol": "STOCK:UAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_aal",
"name": "TP: Fib Extension 127.2% (AAL@1d)",
"priority": 96,
"purpose": "take_profit",
"target_symbol": "STOCK:AAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_uso",
"name": "TP: Fib Extension 127.2% (USO@1d)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_dal",
"name": "TP: Fib Extension 127.2% (DAL@1d)",
"priority": 98,
"purpose": "take_profit",
"target_symbol": "STOCK:DAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_ual",
"name": "TP: Fib Extension 127.2% (UAL@1d)",
"priority": 99,
"purpose": "take_profit",
"target_symbol": "STOCK:UAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 2,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_3_aal",
"name": "SL: Below Support[2] (AAL@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "STOCK:AAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 2,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_3_uso",
"name": "SL: Below Support[2] (USO@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 2,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_3_dal",
"name": "SL: Below Support[2] (DAL@1d)",
"priority": 102,
"purpose": "stop_loss",
"target_symbol": "STOCK:DAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 2,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_3_ual",
"name": "SL: Below Support[2] (UAL@1d)",
"priority": 103,
"purpose": "stop_loss",
"target_symbol": "STOCK:UAL"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.512272727272727
}
}
],
"enabled": true,
"id": "exit_4",
"name": "Stop Loss at 2.5%",
"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": 5.024545454545454
}
}
],
"enabled": true,
"id": "exit_5",
"name": "Take Profit at 5.0%",
"priority": 100,
"purpose": "take_profit"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:AAL",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_6_aal",
"name": "SL: Fib Retracement 78.6% (AAL@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "STOCK:AAL"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_6_uso",
"name": "SL: Fib Retracement 78.6% (USO@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:DAL",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_6_dal",
"name": "SL: Fib Retracement 78.6% (DAL@1d)",
"priority": 102,
"purpose": "stop_loss",
"target_symbol": "STOCK:DAL"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:UAL",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_6_ual",
"name": "SL: Fib Retracement 78.6% (UAL@1d)",
"priority": 103,
"purpose": "stop_loss",
"target_symbol": "STOCK:UAL"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"fib_stop_ratio": 786,
"risk_percent": 2.512272727272727,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Strategy instructions
Trading agent generated from recommendation idea 'Oil crashes 5% on Iran de-escalation — buy airline stocks beaten down by fuel costs'. Thesis: American Airlines was hammered by investors because expensive jet fuel was eating into profits. Now that oil has dropped over 5% in a single day on news the US is pausing strikes on Iran, fuel costs are set to fall dramatically — which is a direct tailwind for airline earnings. The market has not yet priced in this sudden drop in oil, creating a window to buy airlines while they are still priced for expensive fuel.
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