Middle East clashes are driving up oil and inflation — protect your portfolio wi
Created
Thesis
Rising geopolitical clashes in the Middle East are disrupting global oil supplies, which pushes energy prices higher and stokes inflation fears. When inflation rises and global tensions flare, big institutional investors flee to gold as a safe place to store wealth. Instead of just buying gold itself, buying shares of the companies that mine the gold gives you outsized gains when the metal's price rises. This setup is a classic hedge against a chaotic global backdrop.
Strategy approach
Build a momentum strategy for Gold Miners (GDX) on the daily timeframe. Enter a long position when the price breaks above the 20-day Bollinger Band upper rail. Use the Average True Range (ATR) over 14 days to set a trailing stop loss at 2x ATR below the entry price. Exit if the price closes below the 10-day EMA.
Markets and timeframes
Latest published rule evaluation
Evaluated . This is a dated rule snapshot, not a live price or trade execution confirmation.
GDX · 1d
1 of 2 published entry conditions marked met.
- Price above Bollinger (20) — met
- ATR (14) above 0.5 — unknown
- Price below EMA (10) — near
GLD · 1d
0 of 2 published entry conditions marked met.
- Price above Bollinger (20) — near
- ATR (14) above 0.5 — unknown
- Price below EMA (10) — met
NEM · 1d
1 of 2 published entry conditions marked met.
- Price above Bollinger (20) — met
- ATR (14) above 0.5 — unknown
- Price below EMA (10) — near
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/ATR Crossover Long (GLD@1d) (3 conditions)
- Exit: Position Exit Rule (GLD@1d) (1 condition)
- Exit: Stop Loss at 2.7% (1 condition)
- Exit: Take Profit at 5.3% (1 condition)
- Exit: TP: Fib Extension 127.2% (GLD@1d) (1 condition)
- Exit: SL: Fib Retracement 61.8% (GLD@1d) (1 condition)
Shared strategy rules
Rule configuration
{
"data_dependencies": [
{
"symbol": "STOCK:GLD",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:GLD",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:GLD",
"timeframe": "1d"
},
"indicator": {
"name": "atr",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0.5
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1",
"name": "BB/ATR Crossover Long (GLD@1d)",
"priority": 1
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:GLD",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 10
},
"type": "indicator"
}
}
],
"enabled": true,
"id": "exit_1",
"name": "Position Exit Rule (GLD@1d)",
"priority": 1,
"purpose": "signal"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.6724666666666668
}
}
],
"enabled": true,
"id": "exit_2",
"name": "Stop Loss at 2.7%",
"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.3449333333333335
}
}
],
"enabled": true,
"id": "exit_3",
"name": "Take Profit at 5.3%",
"priority": 100,
"purpose": "take_profit"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:GLD",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_4",
"name": "TP: Fib Extension 127.2% (GLD@1d)",
"priority": 97,
"purpose": "take_profit"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:GLD",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_5",
"name": "SL: Fib Retracement 61.8% (GLD@1d)",
"priority": 100,
"purpose": "stop_loss"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"fib_stop_ratio": 618,
"risk_percent": 2.6724666666666668,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Indicator configuration
{
"indicators": [
{
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
{
"name": "ema",
"period": 10
},
{
"name": "atr",
"period": 14
}
]
}Parsed strategy
{
"data_dependencies": [
{
"symbol": "STOCK:GLD",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:GLD",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:GLD",
"timeframe": "1d"
},
"indicator": {
"name": "atr",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0.5
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1",
"name": "BB/ATR Crossover Long (GLD@1d)",
"priority": 1
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:GLD",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 10
},
"type": "indicator"
}
}
],
"enabled": true,
"id": "exit_1",
"name": "Position Exit Rule (GLD@1d)",
"priority": 1,
"purpose": "signal"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.6724666666666668
}
}
],
"enabled": true,
"id": "exit_2",
"name": "Stop Loss at 2.7%",
"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.3449333333333335
}
}
],
"enabled": true,
"id": "exit_3",
"name": "Take Profit at 5.3%",
"priority": 100,
"purpose": "take_profit"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:GLD",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_4",
"name": "TP: Fib Extension 127.2% (GLD@1d)",
"priority": 97,
"purpose": "take_profit"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:GLD",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_5",
"name": "SL: Fib Retracement 61.8% (GLD@1d)",
"priority": 100,
"purpose": "stop_loss"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"fib_stop_ratio": 618,
"risk_percent": 2.6724666666666668,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Strategy instructions
Trading agent generated from recommendation idea 'Middle East clashes are driving up oil and inflation — protect your portfolio with gold miners'. Thesis: Rising geopolitical clashes in the Middle East are disrupting global oil supplies, which pushes energy prices higher and stokes inflation fears. When inflation rises and global tensions flare, big institutional investors flee to gold as a safe place to store wealth. Instead of just buying gold itself, buying shares of the companies that mine the gold gives you outsized gains when the metal's price rises. This setup is a classic hedge against a chaotic global backdrop.
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