{
  "additionalProperties": false,
  "description": "Price compared to a moving average (entry/gate/exit).",
  "properties": {
    "card_type": {
      "const": "price_vs_ma",
      "default": "price_vs_ma",
      "title": "Card Type",
      "type": "string"
    },
    "ma_type": {
      "default": "ema",
      "enum": [
        "ema",
        "sma"
      ],
      "title": "Ma Type",
      "type": "string"
    },
    "op": {
      "default": ">",
      "enum": [
        ">",
        ">=",
        "<",
        "<="
      ],
      "title": "Op",
      "type": "string"
    },
    "period": {
      "default": 50,
      "maximum": 500,
      "minimum": 2,
      "title": "Period",
      "type": "integer"
    },
    "price_field": {
      "default": "close",
      "enum": [
        "open",
        "high",
        "low",
        "close"
      ],
      "title": "Price Field",
      "type": "string"
    }
  },
  "title": "PriceVsMACard",
  "type": "object"
}
