Public trading strategy

Salesforce has fallen 30% this year and Meta recently dropped sharply, purely be

Thesis

Salesforce has fallen 30% this year and Meta recently dropped sharply, purely because investors are terrified of how much cash they are pouring into AI infrastructure. But underneath that spending, both companies are still growing their top-line revenue at massive rates (Meta just posted 28% revenue growth). When the market focuses only on spending and completely ignores 20%-plus revenue growth, it historically creates a buying opportunity. As long as these companies keep growing sales at that pace, the AI investment is working, making the stock drop an emotional overreaction rather than a fundamental breakdown.

Markets and timeframes

CRMMETA1D

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "STOCK:CRM",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:META",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 35
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_crm",
      "name": "Oversold RSI/EMA/ADX Long (CRM@1d)",
      "priority": 1,
      "trade_symbol": "STOCK:CRM"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 35
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_meta",
      "name": "Oversold RSI/EMA/ADX Long (META@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:META"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 35
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_crm",
      "name": "Oversold RSI/EMA/ADX Long (CRM@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:CRM"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 35
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_meta",
      "name": "Oversold RSI/EMA/ADX Long (META@1d)",
      "priority": 3,
      "trade_symbol": "STOCK:META"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_3_crm",
      "name": "Long Entry Signal (CRM@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:CRM"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_3_meta",
      "name": "Long Entry Signal (META@1d)",
      "priority": 3,
      "trade_symbol": "STOCK:META"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 65
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "lower",
            "indicator": {
              "name": "bollinger_bands",
              "period": 20,
              "std_dev": 2
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 60
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_crm",
      "name": "Position Exit Rule (CRM@1d)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "STOCK:CRM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 65
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "lower",
            "indicator": {
              "name": "bollinger_bands",
              "period": 20,
              "std_dev": 2
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 60
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_meta",
      "name": "Position Exit Rule (META@1d)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "STOCK:META"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "ratio": 382,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_crm",
      "name": "SL: Fib Retracement 38.2% (CRM@1d)",
      "priority": 96,
      "purpose": "take_profit",
      "target_symbol": "STOCK:CRM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "ratio": 382,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_meta",
      "name": "SL: Fib Retracement 38.2% (META@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "STOCK:META"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_crm",
      "name": "TP: Near Resistance[1] (CRM@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "STOCK:CRM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_meta",
      "name": "TP: Near Resistance[1] (META@1d)",
      "priority": 98,
      "purpose": "take_profit",
      "target_symbol": "STOCK:META"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4_crm",
      "name": "SL: Below Support[2] (CRM@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:CRM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4_meta",
      "name": "SL: Below Support[2] (META@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:META"
    },
    {
      "applies_to": "long",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "ratio": 786,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_5_crm",
      "name": "SL: Fib Retracement 78.6% (CRM@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:CRM"
    },
    {
      "applies_to": "long",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "ratio": 786,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_5_meta",
      "name": "SL: Fib Retracement 78.6% (META@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:META"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -2.3941333333333334
          }
        }
      ],
      "enabled": true,
      "id": "exit_6",
      "name": "Stop Loss at 2.4%",
      "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.788266666666667
          }
        }
      ],
      "enabled": true,
      "id": "exit_7",
      "name": "Take Profit at 4.8%",
      "priority": 100,
      "purpose": "take_profit"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "fib_stop_ratio": 786,
      "risk_percent": 2.3941333333333334,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 1
}

Indicator configuration

{
  "indicators": [
    {
      "name": "rsi",
      "period": 14
    },
    {
      "name": "ema",
      "period": 21
    },
    {
      "name": "bollinger_bands",
      "period": 20,
      "std_dev": 2
    },
    {
      "name": "adx",
      "period": 14
    },
    {
      "name": "rsi",
      "period": 14
    },
    {
      "name": "ema",
      "period": 21
    },
    {
      "name": "bollinger_bands",
      "period": 20,
      "std_dev": 2
    },
    {
      "name": "adx",
      "period": 14
    }
  ]
}

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "STOCK:CRM",
      "timeframe": "1d"
    },
    {
      "symbol": "STOCK:META",
      "timeframe": "1d"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 35
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_crm",
      "name": "Oversold RSI/EMA/ADX Long (CRM@1d)",
      "priority": 1,
      "trade_symbol": "STOCK:CRM"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 35
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_1_meta",
      "name": "Oversold RSI/EMA/ADX Long (META@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:META"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 35
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_crm",
      "name": "Oversold RSI/EMA/ADX Long (CRM@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:CRM"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "less_than",
          "right": {
            "type": "constant",
            "value": 35
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "ema",
              "period": 21
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "adx",
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_2_meta",
      "name": "Oversold RSI/EMA/ADX Long (META@1d)",
      "priority": 3,
      "trade_symbol": "STOCK:META"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_3_crm",
      "name": "Long Entry Signal (CRM@1d)",
      "priority": 2,
      "trade_symbol": "STOCK:CRM"
    },
    {
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "low",
            "type": "price"
          },
          "operator": "less_than_or_equal",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "rank": 1,
            "type": "support_level"
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_3_meta",
      "name": "Long Entry Signal (META@1d)",
      "priority": 3,
      "trade_symbol": "STOCK:META"
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 65
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "lower",
            "indicator": {
              "name": "bollinger_bands",
              "period": 20,
              "std_dev": 2
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 60
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_crm",
      "name": "Position Exit Rule (CRM@1d)",
      "priority": 1,
      "purpose": "signal",
      "target_symbol": "STOCK:CRM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "indicator": {
              "name": "rsi",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 65
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "lower",
            "indicator": {
              "name": "bollinger_bands",
              "period": 20,
              "std_dev": 2
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "field": "holding_period_bars",
            "type": "position"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "type": "constant",
            "value": 60
          }
        }
      ],
      "enabled": true,
      "id": "exit_1_meta",
      "name": "Position Exit Rule (META@1d)",
      "priority": 2,
      "purpose": "signal",
      "target_symbol": "STOCK:META"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "ratio": 382,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_crm",
      "name": "SL: Fib Retracement 38.2% (CRM@1d)",
      "priority": 96,
      "purpose": "take_profit",
      "target_symbol": "STOCK:CRM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "ratio": 382,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_2_meta",
      "name": "SL: Fib Retracement 38.2% (META@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "STOCK:META"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_crm",
      "name": "TP: Near Resistance[1] (CRM@1d)",
      "priority": 97,
      "purpose": "take_profit",
      "target_symbol": "STOCK:CRM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "rank": 1,
            "type": "resistance_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_3_meta",
      "name": "TP: Near Resistance[1] (META@1d)",
      "priority": 98,
      "purpose": "take_profit",
      "target_symbol": "STOCK:META"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4_crm",
      "name": "SL: Below Support[2] (CRM@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:CRM"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "rank": 2,
            "type": "support_level"
          }
        }
      ],
      "enabled": true,
      "id": "exit_4_meta",
      "name": "SL: Below Support[2] (META@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:META"
    },
    {
      "applies_to": "long",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:CRM",
              "timeframe": "1d"
            },
            "ratio": 786,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_5_crm",
      "name": "SL: Fib Retracement 78.6% (CRM@1d)",
      "priority": 100,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:CRM"
    },
    {
      "applies_to": "long",
      "conditions": [
        {
          "left": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "field": "close",
            "type": "price"
          },
          "operator": "less_than",
          "right": {
            "chart_ref": {
              "symbol": "STOCK:META",
              "timeframe": "1d"
            },
            "ratio": 786,
            "type": "fibonacci_retracement"
          }
        }
      ],
      "enabled": true,
      "id": "exit_5_meta",
      "name": "SL: Fib Retracement 78.6% (META@1d)",
      "priority": 101,
      "purpose": "stop_loss",
      "target_symbol": "STOCK:META"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -2.3941333333333334
          }
        }
      ],
      "enabled": true,
      "id": "exit_6",
      "name": "Stop Loss at 2.4%",
      "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.788266666666667
          }
        }
      ],
      "enabled": true,
      "id": "exit_7",
      "name": "Take Profit at 4.8%",
      "priority": 100,
      "purpose": "take_profit"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "fib_stop_ratio": 786,
      "risk_percent": 2.3941333333333334,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "1d",
  "version": 1
}

Strategy instructions

Trading agent generated from recommendation idea 'Salesforce has fallen 30% this year and Meta recently dropped sharply, purely because investors are terrified of how much cash they are pouring into AI infrastructure. But underneath that spending, both companies are still growing their top-line revenue a'. Thesis: Salesforce has fallen 30% this year and Meta recently dropped sharply, purely because investors are terrified of how much cash they are pouring into AI infrastructure. But underneath that spending, both companies are still growing their top-line revenue at massive rates (Meta just posted 28% revenue growth). When the market focuses only on spending and completely ignores 20%-plus revenue growth, it historically creates a buying opportunity. As long as these companies keep growing sales at that pace, the AI investment is working, making the stock drop an emotional overreaction rather than a fundamental breakdown.

How CommonQuant strategies work

  • Each strategy is generated from a plain-English thesis with fresh, LLM-selected news headlines, grounded in SEC XBRL fundamentals and peer percentiles.
  • The strategy is expressed in an auditable DSL checked by a real compiler, and passes an adversarial AI review before it can be published.
  • Every AI-generated strategy is automatically backtested over 12-month and 5-year windows (walk-forward tuned) and stress-tested across drawdowns and best/worst windows — it stays gated until that evidence run completes.
  • Once live, an AI news judge re-reads fresh headlines hourly and can conclude the campaign when they confirm the strategy’s thesis-invalidation conditions, notifying the owner and followers.

Explore

Discover public strategies · Latest market news