{
  "additionalProperties": false,
  "description": "Moving-average crossover entry/gate condition.\n\nFires when a fast MA crosses above/below a slow MA.\nCommon uses:\n- Entry: golden/death cross\n- Gate: only trade after bullish/bearish crossover",
  "properties": {
    "card_type": {
      "const": "ma_crossover",
      "default": "ma_crossover",
      "title": "Card Type",
      "type": "string"
    },
    "direction": {
      "default": "above",
      "enum": [
        "above",
        "below"
      ],
      "title": "Direction",
      "type": "string"
    },
    "fast_period": {
      "default": 20,
      "maximum": 400,
      "minimum": 2,
      "title": "Fast Period",
      "type": "integer"
    },
    "ma_type": {
      "default": "ema",
      "enum": [
        "ema",
        "sma"
      ],
      "title": "Ma Type",
      "type": "string"
    },
    "slow_period": {
      "default": 50,
      "maximum": 800,
      "minimum": 2,
      "title": "Slow Period",
      "type": "integer"
    }
  },
  "title": "MACrossoverCard",
  "type": "object"
}
