{
  "additionalProperties": false,
  "description": "Gap percentage from previous bar's close.\n\nComputes ``(open - prev_close) / prev_close * 100``. Same formula the\ntop-level ``GapPctCondition`` uses; this lets the value be referenced\ninside ``compare``/``cross`` lhs/rhs so it can be combined with other\nindicators (e.g. compare gap_pct > 2.0 alongside an RSI filter).",
  "properties": {
    "factor": {
      "anyOf": [
        {
          "maximum": 1000000.0,
          "minimum": -1000000.0,
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Factor"
    },
    "resolution": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Optional higher-timeframe override for this value ref. Set it inside lhs/rhs refs such as {'type': 'indicator', ..., 'resolution': '4h'} or {'type': 'price', 'field': 'close', 'resolution': '4h'}. Do not put timeframe/source_timeframe on the parent condition. None = strategy timeframe.",
      "title": "Resolution"
    },
    "type": {
      "const": "gap_pct",
      "default": "gap_pct",
      "title": "Type",
      "type": "string"
    }
  },
  "title": "GapPctValueRef",
  "type": "object"
}
