Loading…
Public trading strategy

Inflation running hotter than expected — park your money in gold

Created

Thesis

When inflation runs hotter than expected, the value of cash drops, pushing everyday investors toward hard assets like gold that hold their value. Since the news signals rates will stay elevated to fight this inflation, gold should catch a bid as a safe haven. We want to buy gold ETFs on any short-term dips to catch the broader momentum higher.

Strategy approach

Build a mean-reversion strategy on GLD using the daily timeframe. Enter long when the 2-period RSI drops below 10 (oversold conditions). Exit when price closes above the 5-day moving average, or after a maximum 10-day holding period. Include a 2% stop loss.

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: Oversold RSI in Uptrend Short (GLD@1d) (3 conditions)
  • Exit: Mean-Reversion Exit: Close Below 5-Day SMA (GLD@1d) (1 condition)
  • Exit: TP: Near Support[1] (GLD@1d) (1 condition)
  • Exit: SL: Fib Retracement 78.6% (GLD@1d) (1 condition)
  • Exit: SL: Above Resistance[1] (GLD@1d) (1 condition)

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "STOCK:GLD",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:GLD",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 2
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:GLD",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 200
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "field": "close",
            "type": "price"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:GLD",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 50
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "field": "close",
            "type": "price"
          }
        }
      ],
      "direction": "short",
      "enabled": true,
      "id": "entry_1",
      "name": "Oversold RSI in Uptrend Short (GLD@1d)",
      "priority": 1,
      "trade_symbol": "STOCK:GLD"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "short",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:GLD",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 5
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1",
      "name": "Mean-Reversion Exit: Close Below 5-Day SMA (GLD@1d)",
      "priority": 1,
      "purpose": "signal"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2",
      "name": "TP: Near Support[1] (GLD@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "STOCK:GLD"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:GLD",
              "timeframe": "1d"
            },
            "ratio": 786,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3",
      "name": "SL: Fib Retracement 78.6% (GLD@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:GLD"
    },
    {
      "applies_to": "short",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4",
      "name": "SL: Above Resistance[1] (GLD@1d)",
      "priority": 100,
      "purpose": "stop_loss"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "fib_stop_ratio": 786,
      "risk_percent": 2,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 2
}

Indicator configuration

{
  "indicators": [
    {
      "name": "rsi",
      "period": 2
    },
    {
      "name": "sma",
      "period": 5
    },
    {
      "name": "adx",
      "period": 14
    }
  ]
}

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "STOCK:GLD",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:GLD",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 2
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:GLD",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 200
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "field": "close",
            "type": "price"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:GLD",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 50
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "field": "close",
            "type": "price"
          }
        }
      ],
      "direction": "short",
      "enabled": true,
      "id": "entry_1",
      "name": "Oversold RSI in Uptrend Short (GLD@1d)",
      "priority": 1,
      "trade_symbol": "STOCK:GLD"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "short",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:GLD",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 5
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_1",
      "name": "Mean-Reversion Exit: Close Below 5-Day SMA (GLD@1d)",
      "priority": 1,
      "purpose": "signal"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2",
      "name": "TP: Near Support[1] (GLD@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "STOCK:GLD"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:GLD",
              "timeframe": "1d"
            },
            "ratio": 786,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3",
      "name": "SL: Fib Retracement 78.6% (GLD@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:GLD"
    },
    {
      "applies_to": "short",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4",
      "name": "SL: Above Resistance[1] (GLD@1d)",
      "priority": 100,
      "purpose": "stop_loss"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "fib_stop_ratio": 786,
      "risk_percent": 2,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 2
}

Strategy instructions

Trading agent generated from recommendation idea 'Inflation running hotter than expected — park your money in gold'. Thesis: When inflation runs hotter than expected, the value of cash drops, pushing everyday investors toward hard assets like gold that hold their value. Since the news signals rates will stay elevated to fight this inflation, gold should catch a bid as a safe haven. We want to buy gold ETFs on any short-term dips to catch the broader momentum higher.

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