Oil spikes and Fed hints at rate hikes — short the broad market on a stagflation
Created
Thesis
Rising oil prices act as a tax on the broader economy, threatening corporate profit margins and consumer spending. When this is combined with Federal Reserve officials openly suggesting interest rate hikes to cool inflation, the economic pressure intensifies significantly. Higher borrowing costs and elevated energy expenses create a punishing environment for stocks, making a broad market pullback highly likely.
Strategy approach
Build a swing trading strategy that shorts broad US equities (using SPY or QQQ) on the D1 timeframe. Entry conditions: Enter short when front-month crude oil futures (CL=F) close up >3% for three consecutive days AND the 10-year Treasury yield (TNX) closes at a 15-day high. Exit conditions: Close the position if oil prices (CL=F) drop more than 3% from the entry close, or hold for a maximum of 10 trading days.
Markets and timeframes
Latest published rule evaluation
Evaluated . This is a dated rule snapshot, not a live price or trade execution confirmation.
QQQ · 1d
6 of 12 published entry conditions marked met.
- ROC (3) above 9 — far
- Price at or below Donchian (20) — met
- Price below EMA (50) — near
- MACD (12,26,9) below MACD (12,26,9) — met
- ROC (3) above 9 — far
- Price at or below Donchian (20) — met
- Price below EMA (50) — near
- MACD (12,26,9) below MACD (12,26,9) — met
- ROC (3) above 9 — far
- Price at or below Donchian (20) — met
- Price below EMA (50) — near
- MACD (12,26,9) below MACD (12,26,9) — met
- ROC (3) below -3 — far
- Price above EMA (50) — met
- ROC (3) below -3 — far
- Price above EMA (50) — met
- ROC (3) below -3 — far
- Price above EMA (50) — met
SPY · 1d
6 of 12 published entry conditions marked met.
- ROC (3) above 9 — far
- Price at or below Donchian (20) — met
- Price below EMA (50) — near
- MACD (12,26,9) below MACD (12,26,9) — met
- ROC (3) above 9 — far
- Price at or below Donchian (20) — met
- Price below EMA (50) — near
- MACD (12,26,9) below MACD (12,26,9) — met
- ROC (3) above 9 — far
- Price at or below Donchian (20) — met
- Price below EMA (50) — near
- MACD (12,26,9) below MACD (12,26,9) — met
- ROC (3) below -3 — far
- Price above EMA (50) — met
- ROC (3) below -3 — far
- Price above EMA (50) — met
- ROC (3) below -3 — far
- Price above EMA (50) — met
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/DONCHIAN/EMA/MACD Signal Long (SPY@1d) (4 conditions)
- Entry: ROC/DONCHIAN/EMA/MACD Signal Long (QQQ@1d) (4 conditions)
- Entry: ROC/DONCHIAN/EMA/MACD Signal Long (USO@1d) (4 conditions)
- Entry: ROC/DONCHIAN/EMA/MACD Signal Long (TLT@1d) (4 conditions)
- Exit: ROC Threshold Exit (SPY@1d) (3 conditions)
- Exit: ROC Threshold Exit (QQQ@1d) (3 conditions)
- Exit: ROC Threshold Exit (USO@1d) (3 conditions)
- Exit: ROC Threshold Exit (TLT@1d) (3 conditions)
- Exit: SL: Below Support[1] (SPY@1d) (1 condition)
- Exit: SL: Below Support[1] (QQQ@1d) (1 condition)
- Exit: SL: Below Support[1] (USO@1d) (1 condition)
- Exit: SL: Below Support[1] (TLT@1d) (1 condition)
- Exit: TP: Near Resistance[2] (SPY@1d) (1 condition)
- Exit: TP: Near Resistance[2] (QQQ@1d) (1 condition)
- Exit: TP: Near Resistance[2] (USO@1d) (1 condition)
- Exit: TP: Near Resistance[2] (TLT@1d) (1 condition)
- Exit: SL: Fib Retracement 78.6% (SPY@1d) (1 condition)
- Exit: SL: Fib Retracement 78.6% (QQQ@1d) (1 condition)
- Exit: SL: Fib Retracement 78.6% (USO@1d) (1 condition)
- Exit: SL: Fib Retracement 78.6% (TLT@1d) (1 condition)
- Exit: Stop Loss at 2.4% (1 condition)
- Exit: Take Profit at 4.8% (1 condition)
Shared strategy rules
Rule configuration
{
"data_dependencies": [
{
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
{
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
{
"symbol": "STOCK:USO",
"timeframe": "1d"
},
{
"symbol": "STOCK:TLT",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 9
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_spy",
"name": "ROC/DONCHIAN/EMA/MACD Signal Long (SPY@1d)",
"priority": 1,
"trade_symbol": "STOCK:SPY"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 9
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_qqq",
"name": "ROC/DONCHIAN/EMA/MACD Signal Long (QQQ@1d)",
"priority": 2,
"trade_symbol": "STOCK:QQQ"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 9
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"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": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_uso",
"name": "ROC/DONCHIAN/EMA/MACD Signal Long (USO@1d)",
"priority": 3,
"trade_symbol": "STOCK:USO"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 9
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_tlt",
"name": "ROC/DONCHIAN/EMA/MACD Signal Long (TLT@1d)",
"priority": 4,
"trade_symbol": "STOCK:TLT"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -3
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_spy",
"name": "ROC Threshold Exit (SPY@1d)",
"priority": 1,
"purpose": "signal",
"target_symbol": "STOCK:SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -3
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_qqq",
"name": "ROC Threshold Exit (QQQ@1d)",
"priority": 2,
"purpose": "signal",
"target_symbol": "STOCK:QQQ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -3
}
},
{
"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": 50
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_uso",
"name": "ROC Threshold Exit (USO@1d)",
"priority": 3,
"purpose": "signal",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -3
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_tlt",
"name": "ROC Threshold Exit (TLT@1d)",
"priority": 4,
"purpose": "signal",
"target_symbol": "STOCK:TLT"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_spy",
"name": "SL: Below Support[1] (SPY@1d)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "STOCK:SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_qqq",
"name": "SL: Below Support[1] (QQQ@1d)",
"priority": 98,
"purpose": "take_profit",
"target_symbol": "STOCK:QQQ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_uso",
"name": "SL: Below Support[1] (USO@1d)",
"priority": 99,
"purpose": "take_profit",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_tlt",
"name": "SL: Below Support[1] (TLT@1d)",
"priority": 100,
"purpose": "take_profit",
"target_symbol": "STOCK:TLT"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_below",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_3_spy",
"name": "TP: Near Resistance[2] (SPY@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "STOCK:SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_below",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_3_qqq",
"name": "TP: Near Resistance[2] (QQQ@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:QQQ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_below",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_3_uso",
"name": "TP: Near Resistance[2] (USO@1d)",
"priority": 102,
"purpose": "stop_loss",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_below",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_3_tlt",
"name": "TP: Near Resistance[2] (TLT@1d)",
"priority": 103,
"purpose": "stop_loss",
"target_symbol": "STOCK:TLT"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_4_spy",
"name": "SL: Fib Retracement 78.6% (SPY@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_4_qqq",
"name": "SL: Fib Retracement 78.6% (QQQ@1d)",
"priority": 102,
"purpose": "stop_loss",
"target_symbol": "STOCK:QQQ"
},
{
"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"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_4_uso",
"name": "SL: Fib Retracement 78.6% (USO@1d)",
"priority": 103,
"purpose": "stop_loss",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_4_tlt",
"name": "SL: Fib Retracement 78.6% (TLT@1d)",
"priority": 104,
"purpose": "stop_loss",
"target_symbol": "STOCK:TLT"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.388076923076923
}
}
],
"enabled": true,
"id": "exit_5",
"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.776153846153846
}
}
],
"enabled": true,
"id": "exit_6",
"name": "Take Profit at 4.8%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"fib_stop_ratio": 786,
"risk_percent": 2.388076923076923,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Indicator configuration
{
"indicators": [
{
"name": "ema",
"period": 50
},
{
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
{
"name": "roc",
"period": 3
},
{
"name": "roc",
"period": 1
},
{
"name": "donchian",
"period": 20
},
{
"name": "ema",
"period": 50
},
{
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
{
"name": "roc",
"period": 3
},
{
"name": "roc",
"period": 1
},
{
"name": "donchian",
"period": 20
},
{
"name": "ema",
"period": 50
},
{
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
{
"name": "roc",
"period": 3
},
{
"name": "roc",
"period": 1
},
{
"name": "donchian",
"period": 20
},
{
"name": "ema",
"period": 50
},
{
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
{
"name": "roc",
"period": 3
},
{
"name": "roc",
"period": 1
},
{
"name": "donchian",
"period": 20
}
]
}Parsed strategy
{
"data_dependencies": [
{
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
{
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
{
"symbol": "STOCK:USO",
"timeframe": "1d"
},
{
"symbol": "STOCK:TLT",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 9
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_spy",
"name": "ROC/DONCHIAN/EMA/MACD Signal Long (SPY@1d)",
"priority": 1,
"trade_symbol": "STOCK:SPY"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 9
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_qqq",
"name": "ROC/DONCHIAN/EMA/MACD Signal Long (QQQ@1d)",
"priority": 2,
"trade_symbol": "STOCK:QQQ"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 9
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"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": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_uso",
"name": "ROC/DONCHIAN/EMA/MACD Signal Long (USO@1d)",
"priority": 3,
"trade_symbol": "STOCK:USO"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 9
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "donchian",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_tlt",
"name": "ROC/DONCHIAN/EMA/MACD Signal Long (TLT@1d)",
"priority": 4,
"trade_symbol": "STOCK:TLT"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -3
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_spy",
"name": "ROC Threshold Exit (SPY@1d)",
"priority": 1,
"purpose": "signal",
"target_symbol": "STOCK:SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -3
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_qqq",
"name": "ROC Threshold Exit (QQQ@1d)",
"priority": 2,
"purpose": "signal",
"target_symbol": "STOCK:QQQ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -3
}
},
{
"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": 50
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_uso",
"name": "ROC Threshold Exit (USO@1d)",
"priority": 3,
"purpose": "signal",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 3
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -3
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 50
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 10
}
}
],
"enabled": true,
"id": "exit_1_tlt",
"name": "ROC Threshold Exit (TLT@1d)",
"priority": 4,
"purpose": "signal",
"target_symbol": "STOCK:TLT"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_spy",
"name": "SL: Below Support[1] (SPY@1d)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "STOCK:SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_qqq",
"name": "SL: Below Support[1] (QQQ@1d)",
"priority": 98,
"purpose": "take_profit",
"target_symbol": "STOCK:QQQ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_uso",
"name": "SL: Below Support[1] (USO@1d)",
"priority": 99,
"purpose": "take_profit",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_tlt",
"name": "SL: Below Support[1] (TLT@1d)",
"priority": 100,
"purpose": "take_profit",
"target_symbol": "STOCK:TLT"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_below",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_3_spy",
"name": "TP: Near Resistance[2] (SPY@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "STOCK:SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_below",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_3_qqq",
"name": "TP: Near Resistance[2] (QQQ@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:QQQ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:USO",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_below",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_3_uso",
"name": "TP: Near Resistance[2] (USO@1d)",
"priority": 102,
"purpose": "stop_loss",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_below",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_3_tlt",
"name": "TP: Near Resistance[2] (TLT@1d)",
"priority": 103,
"purpose": "stop_loss",
"target_symbol": "STOCK:TLT"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:SPY",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_4_spy",
"name": "SL: Fib Retracement 78.6% (SPY@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:QQQ",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_4_qqq",
"name": "SL: Fib Retracement 78.6% (QQQ@1d)",
"priority": 102,
"purpose": "stop_loss",
"target_symbol": "STOCK:QQQ"
},
{
"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"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_4_uso",
"name": "SL: Fib Retracement 78.6% (USO@1d)",
"priority": 103,
"purpose": "stop_loss",
"target_symbol": "STOCK:USO"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:TLT",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_4_tlt",
"name": "SL: Fib Retracement 78.6% (TLT@1d)",
"priority": 104,
"purpose": "stop_loss",
"target_symbol": "STOCK:TLT"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.388076923076923
}
}
],
"enabled": true,
"id": "exit_5",
"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.776153846153846
}
}
],
"enabled": true,
"id": "exit_6",
"name": "Take Profit at 4.8%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"fib_stop_ratio": 786,
"risk_percent": 2.388076923076923,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Strategy instructions
Trading agent generated from recommendation idea 'Oil spikes and Fed hints at rate hikes — short the broad market on a stagflation squeeze'. Thesis: Rising oil prices act as a tax on the broader economy, threatening corporate profit margins and consumer spending. When this is combined with Federal Reserve officials openly suggesting interest rate hikes to cool inflation, the economic pressure intensifies significantly. Higher borrowing costs and elevated energy expenses create a punishing environment for stocks, making a broad market pullback highly likely.
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