Peace breaks out, Wall Street cheers — ride the market relief rally on the S&P 5
Created
Thesis
The end of the Iran war removes a massive cloud of uncertainty that has been hanging over the global economy. With the Strait of Hormuz reopening, investors are breathing a sigh of relief and rushing back into riskier assets like tech stocks. Futures for the major U.S. indexes are already jumping, suggesting a strong open. This type of sudden geopolitical resolution usually sparks a momentum rally that lasts for several days as fund managers reposition their portfolios.
Strategy approach
Build a rule-based strategy that enters long QQQ on the 1-hour timeframe when the price breaks above the previous day's high with an RSI(14) between 50 and 70. Exit if the price drops 2% from the entry point, or hold for a maximum of 5 trading days.
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: RSI Signal Long (SPY@1h) (3 conditions)
- Exit: Take Profit at 40.0% (1 condition)
- Exit: TP: Near Resistance[2] (SPY@1h) (1 condition)
- Exit: SL: Below Support[1] (SPY@1h) (1 condition)
- Exit: Stop Loss at 2.0% (1 condition)
Shared strategy rules
Rule configuration
{
"data_dependencies": [
{
"symbol": "SPY",
"timeframe": "1h"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"rank": 1,
"type": "resistance_level"
}
},
{
"left": {
"chart_ref": {
"symbol": "SPY",
"timeframe": "1h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 50
}
},
{
"left": {
"chart_ref": {
"symbol": "SPY",
"timeframe": "1h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 70
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1",
"name": "RSI Signal Long (SPY@1h)",
"priority": 1,
"trade_symbol": "SPY"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 40
}
}
],
"enabled": true,
"id": "exit_1",
"name": "Take Profit at 40.0%",
"priority": 1,
"purpose": "signal"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_2",
"name": "TP: Near Resistance[2] (SPY@1h)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_3",
"name": "SL: Below Support[1] (SPY@1h)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2
}
}
],
"enabled": true,
"id": "exit_4",
"name": "Stop Loss at 2.0%",
"priority": 10,
"purpose": "stop_loss"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"risk_percent": 2,
"support_stop_rank": 1,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1h",
"version": 1
}Indicator configuration
{
"indicators": [
{
"name": "rsi",
"period": 14
}
]
}Parsed strategy
{
"data_dependencies": [
{
"symbol": "SPY",
"timeframe": "1h"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"rank": 1,
"type": "resistance_level"
}
},
{
"left": {
"chart_ref": {
"symbol": "SPY",
"timeframe": "1h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 50
}
},
{
"left": {
"chart_ref": {
"symbol": "SPY",
"timeframe": "1h"
},
"indicator": {
"name": "rsi",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": 70
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1",
"name": "RSI Signal Long (SPY@1h)",
"priority": 1,
"trade_symbol": "SPY"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 40
}
}
],
"enabled": true,
"id": "exit_1",
"name": "Take Profit at 40.0%",
"priority": 1,
"purpose": "signal"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_2",
"name": "TP: Near Resistance[2] (SPY@1h)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_3",
"name": "SL: Below Support[1] (SPY@1h)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "SPY"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2
}
}
],
"enabled": true,
"id": "exit_4",
"name": "Stop Loss at 2.0%",
"priority": 10,
"purpose": "stop_loss"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"risk_percent": 2,
"support_stop_rank": 1,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1h",
"version": 1
}Strategy instructions
Trading agent generated from recommendation idea 'Peace breaks out, Wall Street cheers — ride the market relief rally on the S&P 500 and Nasdaq'. Thesis: The end of the Iran war removes a massive cloud of uncertainty that has been hanging over the global economy. With the Strait of Hormuz reopening, investors are breathing a sigh of relief and rushing back into riskier assets like tech stocks. Futures for the major U.S. indexes are already jumping, suggesting a strong open. This type of sudden geopolitical resolution usually sparks a momentum rally that lasts for several days as fund managers reposition their portfolios.
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