Loading…
Public trading strategy

Pentagon spending hits record highs just as the Fed warns on AI inflation — long

Created

Thesis

There is a stark divergence in the market right now. The AI-driven Magnificent Seven stocks are losing trillions in value as the Fed explicitly calls out AI spending as a driver of inflation. Meanwhile, AeroVironment just reported record earnings driven by actual government defense spending. The combination of a Fed hawkish on tech-driven inflation and strong physical defense tailwinds makes defense contractors a safe haven rotation target away from frothy software and chip valuations.

Strategy approach

Build a momentum / divergence strategy that enters long AVAV on D1 when AeroVironment gaps up on earnings (>5% gap) and simultaneously the QQQ ETF closes lower than 5 days ago (broad AI/tech weakness). Hold for 21 days with a 10% trailing stop.

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: ROC/MOMENTUM/ATR/SMA Signal Long (QQQ@1d) (5 conditions)
  • Exit: Stop Loss at 2.6% (1 condition)
  • Exit: Take Profit at 5.3% (1 condition)
  • Exit: TP: Near Resistance[1] (QQQ@1d) (2 conditions)
  • Exit: SL: Below Support[1] (QQQ@1d) (1 condition)

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "QQQ",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "QQQ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "QQQ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "momentum",
              "period": 10
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "QQQ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "atr",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "QQQ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1",
      "name": "ROC/MOMENTUM/ATR/SMA Signal Long (QQQ@1d)",
      "priority": 1,
      "trade_symbol": "QQQ"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -2.636
          }
        }
      ],
      "enabled": true,
      "id": "exit_1",
      "name": "Stop Loss at 2.6%",
      "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.272
          }
        }
      ],
      "enabled": true,
      "id": "exit_2",
      "name": "Take Profit at 5.3%",
      "priority": 100,
      "purpose": "take_profit"
    },
    {
      "applies_to": "long",
      "condition_tree": {
        "children": [
          {
            "cond": {
              "left": {
                "field": "close",
                "type": "price"
              },
              "operator": "greater_than_or_equal",
              "right": {
                "rank": 1,
                "type": "resistance_level"
              }
            },
            "op": "cond"
          },
          {
            "cond": {
              "left": {
                "field": "close",
                "type": "price"
              },
              "operator": "greater_than",
              "right": {
                "chart_ref": {
                  "symbol": "QQQ",
                  "timeframe": "1d"
                },
                "ratio": 1272,
                "type": "fibonacci_extension"
              }
            },
            "op": "cond"
          }
        ],
        "op": "any"
      },
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "QQQ",
              "timeframe": "1d"
            },
            "ratio": 1272,
            "type": "fibonacci_extension"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3",
      "name": "TP: Near Resistance[1] (QQQ@1d)",
      "priority": 97,
      "purpose": "take_profit"
    },
    {
      "applies_to": "long",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4",
      "name": "SL: Below Support[1] (QQQ@1d)",
      "priority": 100,
      "purpose": "stop_loss"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2.636,
      "support_stop_rank": 1,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 1
}

Indicator configuration

{
  "indicators": [
    {
      "name": "roc",
      "period": 1
    },
    {
      "name": "momentum",
      "period": 10
    },
    {
      "name": "atr",
      "period": 14
    },
    {
      "name": "sma",
      "period": 20
    }
  ]
}

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "QQQ",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 0
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "QQQ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "QQQ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "momentum",
              "period": 10
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "QQQ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "atr",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 0.5
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "QQQ",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "sma",
              "period": 20
            },
            "type": "indicator"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1",
      "name": "ROC/MOMENTUM/ATR/SMA Signal Long (QQQ@1d)",
      "priority": 1,
      "trade_symbol": "QQQ"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -2.636
          }
        }
      ],
      "enabled": true,
      "id": "exit_1",
      "name": "Stop Loss at 2.6%",
      "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.272
          }
        }
      ],
      "enabled": true,
      "id": "exit_2",
      "name": "Take Profit at 5.3%",
      "priority": 100,
      "purpose": "take_profit"
    },
    {
      "applies_to": "long",
      "condition_tree": {
        "children": [
          {
            "cond": {
              "left": {
                "field": "close",
                "type": "price"
              },
              "operator": "greater_than_or_equal",
              "right": {
                "rank": 1,
                "type": "resistance_level"
              }
            },
            "op": "cond"
          },
          {
            "cond": {
              "left": {
                "field": "close",
                "type": "price"
              },
              "operator": "greater_than",
              "right": {
                "chart_ref": {
                  "symbol": "QQQ",
                  "timeframe": "1d"
                },
                "ratio": 1272,
                "type": "fibonacci_extension"
              }
            },
            "op": "cond"
          }
        ],
        "op": "any"
      },
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        },
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "QQQ",
              "timeframe": "1d"
            },
            "ratio": 1272,
            "type": "fibonacci_extension"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3",
      "name": "TP: Near Resistance[1] (QQQ@1d)",
      "priority": 97,
      "purpose": "take_profit"
    },
    {
      "applies_to": "long",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4",
      "name": "SL: Below Support[1] (QQQ@1d)",
      "priority": 100,
      "purpose": "stop_loss"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2.636,
      "support_stop_rank": 1,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 1
}

Strategy instructions

Trading agent generated from recommendation idea 'Pentagon spending hits record highs just as the Fed warns on AI inflation — long defense tech'. Thesis: There is a stark divergence in the market right now. The AI-driven Magnificent Seven stocks are losing trillions in value as the Fed explicitly calls out AI spending as a driver of inflation. Meanwhile, AeroVironment just reported record earnings driven by actual government defense spending. The combination of a Fed hawkish on tech-driven inflation and strong physical defense tailwinds makes defense contractors a safe haven rotation target away from frothy software and chip valuations.

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