Loading…
Public trading strategy

Oracle beats earnings and Snowflake gets an upgrade — cloud software is back in

Created

Thesis

Strong earnings from Oracle indicate that corporate spending on cloud databases and AI infrastructure remains robust. Scotiabank's increased price target for Snowflake confirms this trend, showing confidence in data-software growth. When sector leaders report strong financials and analysts simultaneously raise targets on peers, it usually creates a positive wave for the entire software industry.

Strategy approach

Build a momentum long strategy on ORCL and SNOW using the daily timeframe. Entry: when price breaks and closes above the high of the previous 5 trading days. Exit: when price closes below the 10-day EMA. Max hold: 15 days. Stop loss: 4%.

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: DONCHIAN/ADX Crossover Long (ORCL@4h) (2 conditions)
  • Entry: DONCHIAN/ADX Crossover Long (SNOW@4h) (2 conditions)
  • Exit: Position Exit Rule (ORCL@4h) (1 condition)
  • Exit: Position Exit Rule (SNOW@4h) (1 condition)
  • Exit: TP: Position Exit Rule (ORCL@4h) (1 condition)
  • Exit: TP: Position Exit Rule (SNOW@4h) (1 condition)
  • Exit: Stop Loss at 4.0% (1 condition)

Shared strategy rules

Rule configuration

{
  "data_dependencies": [
    {
      "symbol": "ORCL",
      "timeframe": "4h"
    },
    {
      "symbol": "SNOW",
      "timeframe": "4h"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "ORCL",
              "timeframe": "4h"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 5
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "ORCL",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_orcl",
      "name": "DONCHIAN/ADX Crossover Long (ORCL@4h)",
      "priority": 1
    },
    {
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "SNOW",
              "timeframe": "4h"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 5
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SNOW",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_snow",
      "name": "DONCHIAN/ADX Crossover Long (SNOW@4h)",
      "priority": 1
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_below",
          "right": {
            "chart_ref": {
              "symbol": "ORCL",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 10
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_ema_orcl",
      "name": "Position Exit Rule (ORCL@4h)",
      "priority": 1,
      "purpose": "signal"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_below",
          "right": {
            "chart_ref": {
              "symbol": "SNOW",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 10
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_ema_snow",
      "name": "Position Exit Rule (SNOW@4h)",
      "priority": 1,
      "purpose": "signal"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "left": {
              "field": "entry_price",
              "type": "position"
            },
            "op": "Add",
            "right": {
              "left": {
                "type": "constant",
                "value": 3
              },
              "op": "Multiply",
              "right": {
                "chart_ref": {
                  "symbol": "ORCL",
                  "timeframe": "4h"
                },
                "field": "value",
                "indicator": {
                  "name": "atr",
                  "period": 14
                },
                "type": "indicator"
              },
              "type": "arithmetic"
            },
            "type": "arithmetic"
          }
        }
      ],
      "enabled": true,
      "id": "exit_tp_orcl",
      "name": "TP: Position Exit Rule (ORCL@4h)",
      "priority": 5,
      "purpose": "take_profit"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "left": {
              "field": "entry_price",
              "type": "position"
            },
            "op": "Add",
            "right": {
              "left": {
                "type": "constant",
                "value": 3
              },
              "op": "Multiply",
              "right": {
                "chart_ref": {
                  "symbol": "SNOW",
                  "timeframe": "4h"
                },
                "field": "value",
                "indicator": {
                  "name": "atr",
                  "period": 14
                },
                "type": "indicator"
              },
              "type": "arithmetic"
            },
            "type": "arithmetic"
          }
        }
      ],
      "enabled": true,
      "id": "exit_tp_snow",
      "name": "TP: Position Exit Rule (SNOW@4h)",
      "priority": 5,
      "purpose": "take_profit"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -4
          }
        }
      ],
      "enabled": true,
      "id": "exit_sl",
      "name": "Stop Loss at 4.0%",
      "priority": 10,
      "purpose": "stop_loss"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2,
      "stop_loss_percent": 4,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "4h",
  "version": 1
}

Indicator configuration

{
  "indicators": [
    {
      "name": "donchian",
      "period": 5
    },
    {
      "name": "donchian",
      "period": 5
    },
    {
      "name": "ema",
      "period": 10
    },
    {
      "name": "ema",
      "period": 10
    },
    {
      "name": "adx",
      "period": 14
    },
    {
      "name": "adx",
      "period": 14
    },
    {
      "name": "atr",
      "period": 14
    },
    {
      "name": "atr",
      "period": 14
    }
  ]
}

Parsed strategy

{
  "data_dependencies": [
    {
      "symbol": "ORCL",
      "timeframe": "4h"
    },
    {
      "symbol": "SNOW",
      "timeframe": "4h"
    }
  ],
  "entry_rules": [
    {
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "ORCL",
              "timeframe": "4h"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 5
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "ORCL",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_orcl",
      "name": "DONCHIAN/ADX Crossover Long (ORCL@4h)",
      "priority": 1
    },
    {
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_above",
          "right": {
            "chart_ref": {
              "symbol": "SNOW",
              "timeframe": "4h"
            },
            "field": "upper",
            "indicator": {
              "name": "donchian",
              "period": 5
            },
            "type": "indicator"
          }
        },
        {
          "left": {
            "chart_ref": {
              "symbol": "SNOW",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "adx",
              "period": 14
            },
            "type": "indicator"
          },
          "operator": "greater_than",
          "right": {
            "type": "constant",
            "value": 20
          }
        }
      ],
      "direction": "long",
      "enabled": true,
      "id": "entry_snow",
      "name": "DONCHIAN/ADX Crossover Long (SNOW@4h)",
      "priority": 1
    }
  ],
  "exit_rules": [
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_below",
          "right": {
            "chart_ref": {
              "symbol": "ORCL",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 10
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_ema_orcl",
      "name": "Position Exit Rule (ORCL@4h)",
      "priority": 1,
      "purpose": "signal"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "crossed_below",
          "right": {
            "chart_ref": {
              "symbol": "SNOW",
              "timeframe": "4h"
            },
            "indicator": {
              "name": "ema",
              "period": 10
            },
            "type": "indicator"
          }
        }
      ],
      "enabled": true,
      "id": "exit_ema_snow",
      "name": "Position Exit Rule (SNOW@4h)",
      "priority": 1,
      "purpose": "signal"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "left": {
              "field": "entry_price",
              "type": "position"
            },
            "op": "Add",
            "right": {
              "left": {
                "type": "constant",
                "value": 3
              },
              "op": "Multiply",
              "right": {
                "chart_ref": {
                  "symbol": "ORCL",
                  "timeframe": "4h"
                },
                "field": "value",
                "indicator": {
                  "name": "atr",
                  "period": 14
                },
                "type": "indicator"
              },
              "type": "arithmetic"
            },
            "type": "arithmetic"
          }
        }
      ],
      "enabled": true,
      "id": "exit_tp_orcl",
      "name": "TP: Position Exit Rule (ORCL@4h)",
      "priority": 5,
      "purpose": "take_profit"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "close",
            "type": "price"
          },
          "operator": "greater_than_or_equal",
          "right": {
            "left": {
              "field": "entry_price",
              "type": "position"
            },
            "op": "Add",
            "right": {
              "left": {
                "type": "constant",
                "value": 3
              },
              "op": "Multiply",
              "right": {
                "chart_ref": {
                  "symbol": "SNOW",
                  "timeframe": "4h"
                },
                "field": "value",
                "indicator": {
                  "name": "atr",
                  "period": 14
                },
                "type": "indicator"
              },
              "type": "arithmetic"
            },
            "type": "arithmetic"
          }
        }
      ],
      "enabled": true,
      "id": "exit_tp_snow",
      "name": "TP: Position Exit Rule (SNOW@4h)",
      "priority": 5,
      "purpose": "take_profit"
    },
    {
      "applies_to": "both",
      "conditions": [
        {
          "left": {
            "field": "unrealized_pnl_percent",
            "type": "position"
          },
          "operator": "less_than_or_equal",
          "right": {
            "type": "constant",
            "value": -4
          }
        }
      ],
      "enabled": true,
      "id": "exit_sl",
      "name": "Stop Loss at 4.0%",
      "priority": 10,
      "purpose": "stop_loss"
    }
  ],
  "position_sizing": {
    "max_position_percent": 25,
    "method": {
      "risk_percent": 2,
      "stop_loss_percent": 4,
      "type": "fixed_risk"
    },
    "min_position_value": 100
  },
  "trigger_timeframe": "4h",
  "version": 1
}

Strategy instructions

Trading agent generated from recommendation idea 'Oracle beats earnings and Snowflake gets an upgrade — cloud software is back in favor'. Thesis: Strong earnings from Oracle indicate that corporate spending on cloud databases and AI infrastructure remains robust. Scotiabank's increased price target for Snowflake confirms this trend, showing confidence in data-software growth. When sector leaders report strong financials and analysts simultaneously raise targets on peers, it usually creates a positive wave for the entire software industry.

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