{
  "$defs": {
    "OffsetValueRef": {
      "additionalProperties": false,
      "description": "Read a market-derived value offset completed source-frame bars ago.\n\nOffset counts bars of its source; to step on strategy bars, wrap the source in sample.\nMixed children use their finest frame, reading coarser children as of the\nlast completed bar. Use sample(clock=primary) to count primary bars instead.\nIndicator/price leaf offsets count their own frame; swing offsets count\nconfirmed swings. Missing historical values stay\nabsent. Position, account, event, zone and cross-sectional histories are not\nsupported. Nested offsets add, with at most 500 source-frame bars in total.",
      "properties": {
        "kind": {
          "const": "offset",
          "default": "offset",
          "title": "Kind",
          "type": "string"
        },
        "offset": {
          "maximum": 500,
          "minimum": 0,
          "title": "Offset",
          "type": "integer"
        },
        "source": {
          "anyOf": [
            {
              "$ref": "../defs.json#/$defs/ValueRef"
            },
            {
              "type": "number"
            }
          ]
        }
      },
      "required": [
        "source",
        "offset"
      ],
      "title": "OffsetValueRef",
      "type": "object"
    }
  },
  "$ref": "#/$defs/OffsetValueRef"
}
