Loading…
Public trading strategy

Tenet Healthcare spiked 16% on earnings but HCA is still flat — catch the sympat

Created

Thesis

When a hospital operator like Tenet posts results strong enough to send its stock up 16% in a single session, it signals something positive is happening across the hospital industry — whether that's patient volume, pricing, or cost control. HCA is the largest for-profit hospital chain in the country and a direct peer, yet it's lagging behind in the immediate reaction. History shows that when one major player in a tight-knit sector crushes expectations, money managers rotate into the competitors within days, expecting them to report similar good news when their own earnings arrive.

Strategy approach

Build a rule-based strategy that enters long HCA on D1 when peer stock THC gaps up ≥10% on earnings day and HCA closes up less than 2% on the same day. Hold for 10 trading days. Exit if HCA makes a new 20-day high (take profit) or drops 4% from entry (stop loss).

Markets and timeframes

Latest published rule evaluation

Evaluated . This is a dated rule snapshot, not a live price or trade execution confirmation.

HCA · 1d

0 of 8 published entry conditions marked met.

  • ROC (1) above 10 — far
  • Price below 2 — far
  • ROC (1) above 10 — far
  • Price below 2 — far
  • ROC (1) above 10 — far
  • Price below 2 — far
  • ROC (1) above 10 — far
  • Price below 2 — far
  • Price above Donchian (20) — near
  • Price above Donchian (20) — near
  • Price above Donchian (20) — near
  • Price above Donchian (20) — near

THC · 1d

0 of 8 published entry conditions marked met.

  • ROC (1) above 10 — far
  • Price below 2 — far
  • ROC (1) above 10 — far
  • Price below 2 — far
  • ROC (1) above 10 — far
  • Price below 2 — far
  • ROC (1) above 10 — far
  • Price below 2 — far
  • Price above Donchian (20) — met
  • Price above Donchian (20) — met
  • Price above Donchian (20) — met
  • Price above Donchian (20) — 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 Signal Long (HCA@1d) (4 conditions)
  • Entry: ROC Signal Long (THC@1d) (4 conditions)
  • Entry: ROC Signal Long (UHS@1d) (4 conditions)
  • Entry: ROC Signal Long (CYH@1d) (4 conditions)
  • Entry: ROC Signal Long (ACHC@1d) (4 conditions)
  • Exit: Position Exit Rule (HCA@1d) (2 conditions)
  • Exit: Position Exit Rule (THC@1d) (2 conditions)
  • Exit: Position Exit Rule (UHS@1d) (2 conditions)
  • Exit: Position Exit Rule (CYH@1d) (2 conditions)
  • Exit: Position Exit Rule (ACHC@1d) (2 conditions)
  • Exit: TP: Near Resistance[1] (HCA@1d) (1 condition)
  • Exit: TP: Near Resistance[1] (THC@1d) (1 condition)
  • Exit: TP: Near Resistance[1] (UHS@1d) (1 condition)
  • Exit: TP: Near Resistance[1] (CYH@1d) (1 condition)
  • Exit: TP: Near Resistance[1] (ACHC@1d) (1 condition)
  • Exit: SL: Below Support[2] (HCA@1d) (1 condition)
  • Exit: SL: Below Support[2] (THC@1d) (1 condition)
  • Exit: SL: Below Support[2] (UHS@1d) (1 condition)
  • Exit: SL: Below Support[2] (CYH@1d) (1 condition)
  • Exit: SL: Below Support[2] (ACHC@1d) (1 condition)
  • Exit: Stop Loss at 2.3% (1 condition)
  • Exit: Take Profit at 4.7% (1 condition)

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "STOCK:HCA",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:THC",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:UHS",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:CYH",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:ACHC",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_hca",
      "name": "ROC Signal Long (HCA@1d)",
      "priority": 1,
      "trade_symbol": "STOCK:HCA"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_thc",
      "name": "ROC Signal Long (THC@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:THC"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_uhs",
      "name": "ROC Signal Long (UHS@1d)",
      "priority": 3,
      "trade_symbol": "STOCK:UHS"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_cyh",
      "name": "ROC Signal Long (CYH@1d)",
      "priority": 4,
      "trade_symbol": "STOCK:CYH"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_achc",
      "name": "ROC Signal Long (ACHC@1d)",
      "priority": 5,
      "trade_symbol": "STOCK:ACHC"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_hca",
      "name": "Position Exit Rule (HCA@1d)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "STOCK:HCA"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_thc",
      "name": "Position Exit Rule (THC@1d)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "STOCK:THC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_uhs",
      "name": "Position Exit Rule (UHS@1d)",
      "priority": 3,
      "purpose": "signal",
      "target_symbol": "STOCK:UHS"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_cyh",
      "name": "Position Exit Rule (CYH@1d)",
      "priority": 4,
      "purpose": "signal",
      "target_symbol": "STOCK:CYH"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_achc",
      "name": "Position Exit Rule (ACHC@1d)",
      "priority": 5,
      "purpose": "signal",
      "target_symbol": "STOCK:ACHC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_hca",
      "name": "TP: Near Resistance[1] (HCA@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "STOCK:HCA"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_thc",
      "name": "TP: Near Resistance[1] (THC@1d)",
      "priority": 98,
      "purpose": "take_profit",
      "target_symbol": "STOCK:THC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_uhs",
      "name": "TP: Near Resistance[1] (UHS@1d)",
      "priority": 99,
      "purpose": "take_profit",
      "target_symbol": "STOCK:UHS"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_cyh",
      "name": "TP: Near Resistance[1] (CYH@1d)",
      "priority": 100,
      "purpose": "take_profit",
      "target_symbol": "STOCK:CYH"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_achc",
      "name": "TP: Near Resistance[1] (ACHC@1d)",
      "priority": 101,
      "purpose": "take_profit",
      "target_symbol": "STOCK:ACHC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_hca",
      "name": "SL: Below Support[2] (HCA@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:HCA"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_thc",
      "name": "SL: Below Support[2] (THC@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:THC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_uhs",
      "name": "SL: Below Support[2] (UHS@1d)",
      "priority": 102,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:UHS"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_cyh",
      "name": "SL: Below Support[2] (CYH@1d)",
      "priority": 103,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:CYH"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_achc",
      "name": "SL: Below Support[2] (ACHC@1d)",
      "priority": 104,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:ACHC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -2.33
          }
        }
      ],
      "enabled": true,
      "id": "exit_4",
      "name": "Stop Loss at 2.3%",
      "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.66
          }
        }
      ],
      "enabled": true,
      "id": "exit_5",
      "name": "Take Profit at 4.7%",
      "priority": 100,
      "purpose": "take_profit"
    }
  ],
  "position_sizing": {
    "max_position_percent": 20,
    "method": {
      "risk_percent": 2.33,
      "support_stop_rank": 2,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 1
}

Indicator configuration

{
  "indicators": [
    {
      "name": "donchian",
      "period": 20
    },
    {
      "name": "roc",
      "period": 1
    },
    {
      "name": "donchian",
      "period": 20
    },
    {
      "name": "roc",
      "period": 1
    },
    {
      "name": "donchian",
      "period": 20
    },
    {
      "name": "roc",
      "period": 1
    },
    {
      "name": "donchian",
      "period": 20
    },
    {
      "name": "roc",
      "period": 1
    },
    {
      "name": "donchian",
      "period": 20
    },
    {
      "name": "roc",
      "period": 1
    }
  ]
}

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "STOCK:HCA",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:THC",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:UHS",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:CYH",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:ACHC",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_hca",
      "name": "ROC Signal Long (HCA@1d)",
      "priority": 1,
      "trade_symbol": "STOCK:HCA"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_thc",
      "name": "ROC Signal Long (THC@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:THC"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_uhs",
      "name": "ROC Signal Long (UHS@1d)",
      "priority": 3,
      "trade_symbol": "STOCK:UHS"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_cyh",
      "name": "ROC Signal Long (CYH@1d)",
      "priority": 4,
      "trade_symbol": "STOCK:CYH"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "roc",
              "period": 1
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 10
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 2
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_achc",
      "name": "ROC Signal Long (ACHC@1d)",
      "priority": 5,
      "trade_symbol": "STOCK:ACHC"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_hca",
      "name": "Position Exit Rule (HCA@1d)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "STOCK:HCA"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_thc",
      "name": "Position Exit Rule (THC@1d)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "STOCK:THC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_uhs",
      "name": "Position Exit Rule (UHS@1d)",
      "priority": 3,
      "purpose": "signal",
      "target_symbol": "STOCK:UHS"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_cyh",
      "name": "Position Exit Rule (CYH@1d)",
      "priority": 4,
      "purpose": "signal",
      "target_symbol": "STOCK:CYH"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 20
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 10
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_achc",
      "name": "Position Exit Rule (ACHC@1d)",
      "priority": 5,
      "purpose": "signal",
      "target_symbol": "STOCK:ACHC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_hca",
      "name": "TP: Near Resistance[1] (HCA@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "STOCK:HCA"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_thc",
      "name": "TP: Near Resistance[1] (THC@1d)",
      "priority": 98,
      "purpose": "take_profit",
      "target_symbol": "STOCK:THC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_uhs",
      "name": "TP: Near Resistance[1] (UHS@1d)",
      "priority": 99,
      "purpose": "take_profit",
      "target_symbol": "STOCK:UHS"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_cyh",
      "name": "TP: Near Resistance[1] (CYH@1d)",
      "priority": 100,
      "purpose": "take_profit",
      "target_symbol": "STOCK:CYH"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_achc",
      "name": "TP: Near Resistance[1] (ACHC@1d)",
      "priority": 101,
      "purpose": "take_profit",
      "target_symbol": "STOCK:ACHC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:HCA",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_hca",
      "name": "SL: Below Support[2] (HCA@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:HCA"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:THC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_thc",
      "name": "SL: Below Support[2] (THC@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:THC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:UHS",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_uhs",
      "name": "SL: Below Support[2] (UHS@1d)",
      "priority": 102,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:UHS"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CYH",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_cyh",
      "name": "SL: Below Support[2] (CYH@1d)",
      "priority": 103,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:CYH"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:ACHC",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_achc",
      "name": "SL: Below Support[2] (ACHC@1d)",
      "priority": 104,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:ACHC"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -2.33
          }
        }
      ],
      "enabled": true,
      "id": "exit_4",
      "name": "Stop Loss at 2.3%",
      "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.66
          }
        }
      ],
      "enabled": true,
      "id": "exit_5",
      "name": "Take Profit at 4.7%",
      "priority": 100,
      "purpose": "take_profit"
    }
  ],
  "position_sizing": {
    "max_position_percent": 20,
    "method": {
      "risk_percent": 2.33,
      "support_stop_rank": 2,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 1
}

Strategy instructions

Trading agent generated from recommendation idea 'Tenet Healthcare spiked 16% on earnings but HCA is still flat — catch the sympathy rally'. Thesis: When a hospital operator like Tenet posts results strong enough to send its stock up 16% in a single session, it signals something positive is happening across the hospital industry — whether that's patient volume, pricing, or cost control. HCA is the largest for-profit hospital chain in the country and a direct peer, yet it's lagging behind in the immediate reaction. History shows that when one major player in a tight-knit sector crushes expectations, money managers rotate into the competitors within days, expecting them to report similar good news when their own earnings arrive.

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