{
  "additionalProperties": false,
  "description": "VIB-1398 / VIB-1370 / VIB-1319: the sub-metric selector is named\n``field`` across every ValueRef-style type. The legacy name\n``position_metric`` was removed (mirrors the IR-side\n``LivePositionRef.metric \u2192 field`` rename that VIB-1394 shipped).",
  "properties": {
    "factor": {
      "anyOf": [
        {
          "maximum": 1000000.0,
          "minimum": -1000000.0,
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Factor"
    },
    "field": {
      "enum": [
        "entry_price",
        "bars_in_position",
        "unrealized_pnl_pct",
        "unrealized_pnl_usd",
        "max_excursion_pct",
        "min_excursion_pct"
      ],
      "title": "Field",
      "type": "string"
    },
    "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": "live_position",
      "default": "live_position",
      "title": "Type",
      "type": "string"
    }
  },
  "required": [
    "field"
  ],
  "title": "LivePositionSignalRef",
  "type": "object"
}
